query
stringlengths
11
3.13k
ru_query
stringlengths
9
3.91k
document
stringlengths
18
71k
metadata
dict
negatives
listlengths
0
100
negative_scores
listlengths
0
100
document_score
stringlengths
5
10
document_rank
stringclasses
2 values
/ / Test for PostWorksheetCellsRangeValue of RangesController. /
// Тест для PostWorksheetCellsRangeValue RangesController. /
public function testPostWorksheetCellsRangeValue() { $remoteFolder = "TestData/In"; $localName = "Book1.xlsx"; $remoteName = "Book1.xlsx"; $range = new \Aspose\Cells\Cloud\Model\Range(); $range->setColumnCount(1 ); $range->setColumnWidth(10.0 ); $range->se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testPostWorksheetCellsRanges()\n {\n $remoteFolder = \"TestData/In\";\n\n $localName = \"Book1.xlsx\";\n $remoteName = \"Book1.xlsx\";\n\n $rangeOperateSource = new \\Aspose\\Cells\\Cloud\\Model\\Range();\n $rangeOperateSource->setColumnCount(1 ); \n $ra...
[ "0.676554", "0.64601845", "0.60567933", "0.60484564", "0.5994943", "0.597002", "0.58188057", "0.54794466", "0.5420455", "0.5404871", "0.49611574", "0.4910224", "0.472995", "0.46778923", "0.46173427", "0.45797712", "0.4531389", "0.45045388", "0.44912538", "0.44891876", "0.4392...
0.7743533
0
/ / Test for PostWorksheetCellsRangeMoveTo of RangesController. /
// Тест для PostWorksheetCellsRangeMoveTo из RangesController. /
public function testPostWorksheetCellsRangeMoveTo() { $remoteFolder = "TestData/In"; $localName = "Book1.xlsx"; $remoteName = "Book1.xlsx"; $range = new \Aspose\Cells\Cloud\Model\Range(); $range->setColumnCount(1 ); $range->setColumnWidth(10.0 ); $range->s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testPostWorksheetCellsRanges()\n {\n $remoteFolder = \"TestData/In\";\n\n $localName = \"Book1.xlsx\";\n $remoteName = \"Book1.xlsx\";\n\n $rangeOperateSource = new \\Aspose\\Cells\\Cloud\\Model\\Range();\n $rangeOperateSource->setColumnCount(1 ); \n $ra...
[ "0.65584385", "0.64004016", "0.63055235", "0.61328614", "0.578619", "0.5631593", "0.5384571", "0.53709507", "0.50567555", "0.5014931", "0.48907545", "0.4760347", "0.46840745", "0.46580186", "0.46580186", "0.46375868", "0.46301192", "0.46089447", "0.4596352", "0.456288", "0.45...
0.73566335
0
/ / Test for PostWorksheetCellsRangeOutlineBorder of RangesController. /
// Тест для PostWorksheetCellsRangeOutlineBorder RangesController. /
public function testPostWorksheetCellsRangeOutlineBorder() { $remoteFolder = "TestData/In"; $localName = "Book1.xlsx"; $remoteName = "Book1.xlsx"; $rangeOperateborderColor = new \Aspose\Cells\Cloud\Model\Color(); $rangeOperateborderColor->setR(48 ); $rangeOperatebo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testPostWorksheetCellsRangeStyle()\n {\n $remoteFolder = \"TestData/In\";\n\n $localName = \"Book1.xlsx\";\n $remoteName = \"Book1.xlsx\";\n\n $rangeOperateStyleFont = new \\Aspose\\Cells\\Cloud\\Model\\Font();\n $rangeOperateStyleFont->setSize(16 ); \n ...
[ "0.5780358", "0.51316994", "0.5039689", "0.5014408", "0.49195188", "0.48647285", "0.48416653", "0.46519053", "0.4629502", "0.46208623", "0.46109292", "0.45876795", "0.45583865", "0.4554866", "0.45044678", "0.44960085", "0.4490804", "0.44131604", "0.44003752", "0.4384832", "0....
0.7681771
0
/ / Test for PostWorksheetCellsRangeColumnWidth of RangesController. /
// Тест для PostWorksheetCellsRangeColumnWidth RangesController. /
public function testPostWorksheetCellsRangeColumnWidth() { $remoteFolder = "TestData/In"; $localName = "Book1.xlsx"; $remoteName = "Book1.xlsx"; $range = new \Aspose\Cells\Cloud\Model\Range(); $range->setColumnCount(1 ); $range->setColumnWidth(10.0 ); $ran...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getColumnWidth($columnIndex);", "function getColumnWidths() {\n return $this->columnWidths;\n }", "function getColumnWidths() {\n return $this->columnWidths;\n }", "function getColumnWidth()\r\n\t{\r\n\t\tif ( !empty( $this->arrHeader ) )\r\n\t\t{\r\n\t\t\t$title[0]\t= $this->arrHeader;\r\n\...
[ "0.55132234", "0.54006535", "0.54006535", "0.53253627", "0.52401817", "0.5193196", "0.5176883", "0.5162308", "0.51218855", "0.51198953", "0.51132935", "0.5095017", "0.50552875", "0.50502044", "0.5026105", "0.5014537", "0.49935567", "0.49164873", "0.48814392", "0.4862754", "0....
0.76652694
0
/ / Test for PostWorksheetCellsRangeRowHeight of RangesController. /
// Тест для PostWorksheetCellsRangeRowHeight RangesController. /
public function testPostWorksheetCellsRangeRowHeight() { $remoteFolder = "TestData/In"; $localName = "Book1.xlsx"; $remoteName = "Book1.xlsx"; $range = new \Aspose\Cells\Cloud\Model\Range(); $range->setColumnCount(1 ); $range->setColumnWidth(10.0 ); $range...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testPostWorksheetCellsRangeColumnWidth()\n {\n $remoteFolder = \"TestData/In\";\n\n $localName = \"Book1.xlsx\";\n $remoteName = \"Book1.xlsx\";\n\n $range = new \\Aspose\\Cells\\Cloud\\Model\\Range();\n $range->setColumnCount(1 ); \n $range->setColumnWi...
[ "0.54584676", "0.5139408", "0.49152672", "0.49113795", "0.48600435", "0.48189104", "0.473156", "0.46795332", "0.46446618", "0.46386072", "0.46192884", "0.45587564", "0.45371005", "0.45193484", "0.45168453", "0.45156974", "0.44684583", "0.44509003", "0.44335234", "0.44172832", ...
0.73560685
0
/ / Test for PutWorksheetCellsRange of RangesController. /
// Тест для PutWorksheetCellsRange RangesController. /
public function testPutWorksheetCellsRange() { $remoteFolder = "TestData/In"; $localName = "Book1.xlsx"; $remoteName = "Book1.xlsx"; CellsApiTestBase::ready( $this->instance,$localName ,$remoteFolder . "/" . $remoteName , ""); $request = new PutWorksheetCellsRangeRe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testPostWorksheetCellsRanges()\n {\n $remoteFolder = \"TestData/In\";\n\n $localName = \"Book1.xlsx\";\n $remoteName = \"Book1.xlsx\";\n\n $rangeOperateSource = new \\Aspose\\Cells\\Cloud\\Model\\Range();\n $rangeOperateSource->setColumnCount(1 ); \n $ra...
[ "0.6579166", "0.6481161", "0.6437569", "0.62496614", "0.6052039", "0.6050849", "0.5866089", "0.56245756", "0.53529453", "0.53002715", "0.50988585", "0.5079278", "0.49914074", "0.49520528", "0.49035892", "0.4823807", "0.48068073", "0.47934568", "0.47934568", "0.47917268", "0.4...
0.7691804
0
/ / Test for DeleteWorksheetCellsRange of RangesController. /
// Тест для DeleteWorksheetCellsRange из RangesController. /
public function testDeleteWorksheetCellsRange() { $remoteFolder = "TestData/In"; $localName = "Book1.xlsx"; $remoteName = "Book1.xlsx"; CellsApiTestBase::ready( $this->instance,$localName ,$remoteFolder . "/" . $remoteName , ""); $request = new DeleteWorksheetCellsR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_deleteReceivingWorksheet() {\n\n }", "public function testPutWorksheetCellsRange()\n {\n $remoteFolder = \"TestData/In\";\n\n $localName = \"Book1.xlsx\";\n $remoteName = \"Book1.xlsx\";\n\n CellsApiTestBase::ready( $this->instance,$localName ,$remoteFolder...
[ "0.59170514", "0.5897396", "0.5797393", "0.5770866", "0.55719966", "0.5538272", "0.55111706", "0.54835296", "0.5476986", "0.5427025", "0.52955306", "0.5261864", "0.51940405", "0.517603", "0.5149537", "0.512914", "0.51230246", "0.5109906", "0.50945115", "0.50319755", "0.501197...
0.7887882
0
Updates an object in the database
Обновляет объект в базе данных
public function update($object);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update($object)\n {\n }", "public function update($object)\n {\n }", "public abstract function update($id, $object);", "public function update()\n {\n $this->entity->save($this->getData());\n }", "abstract function update( Content $object );", "function update($ob...
[ "0.7777318", "0.7777318", "0.7727473", "0.752919", "0.73993015", "0.73774713", "0.73390734", "0.7284553", "0.7244194", "0.7234362", "0.71900386", "0.7162969", "0.7127601", "0.7083885", "0.70829993", "0.7043009", "0.7023379", "0.70062554", "0.6977063", "0.6929632", "0.69242936...
0.8186082
0
Create a controller for the model.
Создайте контроллер для модели.
protected function createController() { $controller = Str::studly(class_basename($this->argument('modelName'))); $modelName = $this->qualifyClass($this->getNameInput()); dd($modelName); $this->call('make:controller', [ 'name' => "{$controller}Controller", '-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createController()\n {\n $model = $this->argument('model');\n\n $this->call('make:api:controller', array_filter([\n 'name' => \"{$model}Controller\",\n '--model' => $model,\n '--force' => $this->option('force')\n ]));\n }", "abstract ...
[ "0.8496537", "0.812345", "0.80668485", "0.79786193", "0.78451556", "0.7829369", "0.7687096", "0.7574297", "0.7314873", "0.7300901", "0.7273367", "0.72428125", "0.70007217", "0.6990081", "0.6979031", "0.69296134", "0.6914564", "0.68901235", "0.6801064", "0.67772925", "0.670727...
0.8354306
1
/ Adding a new categoria_servicio
/ Добавление новой категории servicio
function add() { $data['sistema'] = $this->sistema; if($this->acceso(119)){ $data['page_title'] = "Categoria Servicio"; $this->load->library('form_validation'); $this->form_validation->set_rules('catserv_descripcion','Categoria Servicio Descripcion','trim|re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addCategory(){\n $this->authHelper->checkLogged();\n $nombre = $_POST['nombre'];\n $descripcion = $_POST['descripcion'];\n\n // Verifico campos obligatorios\n if (empty($nombre)){\n $this->view->showError('Faltan datos obligatorios');\n die();\n ...
[ "0.7145868", "0.69992834", "0.6920578", "0.6900642", "0.68760455", "0.68745226", "0.68505126", "0.6846946", "0.68442434", "0.6760973", "0.67543554", "0.6681755", "0.6679656", "0.66544545", "0.6647354", "0.6638684", "0.65769345", "0.6573317", "0.65717876", "0.65692806", "0.656...
0.7258342
0
/ Listing of categoria_servicio
/ Список категория_сервиса
function getcatserv_detalle() { if($this->acceso(119)){ $datos = $this->Categoria_servicio_model->get_all_categoria_servicio(); echo json_encode($datos); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_all_categoria_servicio()\r\n {\r\n $servicio = $this->db->query(\"\r\n SELECT\r\n *\r\n\r\n FROM\r\n categoria_servicio cs, estado e\r\n\r\n WHERE\r\n cs.estado_id = e.estado_id\r\n ORDER BY `catserv_id`...
[ "0.74138874", "0.7098655", "0.7095176", "0.70766497", "0.7072513", "0.6989132", "0.6955596", "0.6950335", "0.6921149", "0.69137734", "0.6913734", "0.691028", "0.6896226", "0.6886101", "0.6871234", "0.685572", "0.6853395", "0.68510264", "0.6845142", "0.67898726", "0.6756191", ...
0.71793437
1
/ This return modules from user of this session
// Возвращает модули пользователя этой сессии
public function getUserModules () { $user = $this->user->getCurrentUserInfo() ; $id = ( int ) $user->id ; $sql = "SELECT u.id, m.id, u.username,m.js,m.module,m.name,m.iconCls,up.shorcut,up.qLaunch, m.iconLaunch FROM OfficeUserGroups ug, OfficeUsers u, OfficeGroups g, OfficeGroupsModules gm, OfficeModules m ,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserModuleList()\n {\n return $this->getTabList();\n }", "public function getAllUserModules()\n {\n $userModules = new Webdesktop_Model_ModuleSet;\n FOREACH($this->getAllModules(TRUE) AS $obj) {\n $rights = array();\n\n FOREACH($obj->getModul...
[ "0.77341926", "0.7229256", "0.70631546", "0.70457155", "0.69961184", "0.6964249", "0.6911921", "0.6897421", "0.685555", "0.6817288", "0.6797178", "0.67738676", "0.67622215", "0.6733827", "0.66869736", "0.6670389", "0.66461897", "0.6644196", "0.6619096", "0.6607805", "0.658678...
0.7948591
0
Sets a new doingBusinessAs
Устанавливает новый doingBusinessAs
public function setDoingBusinessAs($doingBusinessAs) { $this->doingBusinessAs = $doingBusinessAs; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct($business)\n {\n $this->business = $business;\n }", "public function assignReferralBusiness(?User $business): self\n {\n if ($business\n && !$this->business_id\n && $this->isPrimaryRoleTourist()\n && $business->isPrimaryRoleBusin...
[ "0.5815394", "0.5515962", "0.5342303", "0.52224535", "0.50911087", "0.50460064", "0.50447786", "0.49761307", "0.4931543", "0.4931543", "0.4931543", "0.48818964", "0.48365942", "0.48272303", "0.4805382", "0.48049787", "0.47879505", "0.4786143", "0.478247", "0.47481754", "0.474...
0.7273996
0
Sets a new paymentServiceProviderName
Устанавливает новый paymentServiceProviderName
public function setPaymentServiceProviderName($paymentServiceProviderName) { $this->paymentServiceProviderName = $paymentServiceProviderName; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProviderName($providerName);", "private function setPaymentMethodName()\n {\n $this->transaction->getOrder()->setPaymentMethodName(self::PAYMENT_METHOD_NAME);\n }", "public function setPayToName(?string $value): void {\n $this->getBackingStore()->set('payToName', $value);...
[ "0.68718207", "0.65608776", "0.64027977", "0.6318373", "0.62249845", "0.62132955", "0.596149", "0.5931203", "0.5916323", "0.58879817", "0.58559877", "0.5803881", "0.5765582", "0.57517415", "0.5734653", "0.5707582", "0.56922793", "0.5676039", "0.56283337", "0.56226605", "0.562...
0.7201352
0
Sets a new paymentServiceFacilitator
Устанавливает новый платежный сервис-посредник
public function setPaymentServiceFacilitator($paymentServiceFacilitator) { $this->paymentServiceFacilitator = $paymentServiceFacilitator; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setServiceFactory($factory);", "public function setService($service);", "public function setDIInjector( \\browserfs\\website\\Config $instantiator );", "protected function getPayum_Form_Extension_GatewayFactoriesChoiceService()\n {\n include_once \\dirname(__DIR__, 4).'/vendor/symfo...
[ "0.5565209", "0.55332685", "0.5246225", "0.51573706", "0.515045", "0.5144735", "0.5144735", "0.5130803", "0.5104401", "0.51043546", "0.5079986", "0.50716394", "0.49984688", "0.49958292", "0.49754247", "0.49754247", "0.49153575", "0.49097347", "0.49061093", "0.48997545", "0.48...
0.72117937
0
ManyToOne (inverse side) Get fkFolhapagamentoComplementar
ManyToOne (обратная сторона) Получить fkFolhapagamentoComplementar
public function getFkFolhapagamentoComplementar() { return $this->fkFolhapagamentoComplementar; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_relation_fk($attr, $tabla){\n $relacion = $tabla->get_relationship($attr);\n if (count($relacion->foreign_key) < 2){\n $fk = null;\n if (count($relacion->foreign_key) > 0)\n $fk = $relacion->foreign_key[0];\n return $fk;\n }else{\n throw new Exception(\"...
[ "0.6963537", "0.68689555", "0.68689555", "0.68098694", "0.65972626", "0.65972626", "0.65972626", "0.65972626", "0.65972626", "0.65311074", "0.6528214", "0.6451963", "0.641367", "0.641367", "0.641367", "0.641367", "0.6377802", "0.6368585", "0.6350248", "0.63501674", "0.6350167...
0.7727777
0
/ Function to delete a dependency based on the provided task_id
Функция для удаления зависимости на основе предоставленного task_id
public static function delete($tsk_id) { $table = "TASK_DEPENDENCY"; $field = "DEPENDENCY_ID"; $success = Generic_Model::__delete($tsk_id, $table, $field); return $success; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteTask(\\CodeigniterExt\\Queue\\Task $task);", "protected function deleteTask() {}", "public function delete_task($task_id){\n global $mysqli;\n $stmt = $mysqli->prepare(\"DELETE FROM queue_task WHERE id = ?\");\n $stmt->bind_param(\"i\", $task_id);\n $stmt->exec...
[ "0.7302388", "0.72331005", "0.7185545", "0.71124375", "0.70409983", "0.69249594", "0.69153607", "0.68906343", "0.68779314", "0.6831616", "0.6786694", "0.6741427", "0.67376095", "0.66614753", "0.6655373", "0.6655373", "0.6626398", "0.6597098", "0.65960395", "0.6583706", "0.655...
0.7477122
0
Display a listing of the resource. GET /subreddit
Показать список ресурса. GET /subreddit
public function index() { $subreddits = Subreddit::orderBy('article_count', 'DESC') ->paginate(25); return view('subreddits.index') ->with('subreddits', $subreddits); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show($subreddit_name)\n {\n $subreddit = Subreddit::where('name', $subreddit_name)->get();\n \n if($subreddit->isEmpty()){\n\n return view('subreddits.notfound', compact('subreddit_name'));\n }\n\n\n return view('subreddits.show', compact('subreddit'...
[ "0.6269941", "0.5967083", "0.596076", "0.59247404", "0.5910461", "0.5899828", "0.5868735", "0.58314204", "0.5812107", "0.5773259", "0.57503986", "0.57364833", "0.57347727", "0.57301736", "0.571139", "0.57080555", "0.5700021", "0.5683721", "0.5662273", "0.56458104", "0.5642101...
0.7354544
0
Retrieve the QuestionHelper object.
Получить объект QuestionHelper.
public function getQuestionHelper() { return $this->getHelperSet()->get('question'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getQuestionHelper()\n {\n return $this->getHelper('question');\n }", "protected function getQuestionHelper() {}", "public function getHelper() {\n return $this->_helper;\n }", "public function getHelper()\n {\n return $this->helper;\n }", "public static ...
[ "0.8832296", "0.78059494", "0.67426986", "0.66695935", "0.66097575", "0.6576318", "0.6530533", "0.643241", "0.6404163", "0.639406", "0.63888615", "0.6388348", "0.63257676", "0.63257676", "0.63257676", "0.63257676", "0.63257676", "0.6252728", "0.623805", "0.62063843", "0.61950...
0.8793114
1
Render the page to add a new event.
Отобразить страницу для добавления нового события.
public function addEvent(){ $regsrv = new RegistrationService($this->em, $this->app); $postcodes = $regsrv->getPostcodes(); $globals = $this->getGlobals(); $this->getApp()->render('Events/new_event.html.twig', array('globals' => $globals, 'postcodes' => $postcodes)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addEvent()\n {\n return page('add-event');\n }", "public function renderCreateEventPage()\n {\n return view('event/createEvent');\n }", "public function createEvent()\n {\n $this->render('Create Event', 'create_event.view');\n }", "public function create...
[ "0.7602155", "0.7570453", "0.75418466", "0.74739766", "0.7246744", "0.7232454", "0.70080084", "0.6815189", "0.6809902", "0.6799988", "0.6797162", "0.6764163", "0.67537034", "0.67452794", "0.67452794", "0.66981083", "0.6643374", "0.66359204", "0.6616446", "0.6611352", "0.65997...
0.7818736
0
Check permissions to edit table tl_glossar
Проверьте права на редактирование таблицы tl_glossar
public function checkPermission() { // HOOK: comments extension required if (!in_array('comments', ModuleLoader::getActive())) { unset($GLOBALS['TL_DCA']['tl_glossar']['fields']['allowComments']); } if ($this->User->isAdmin) { return; } // Set root IDs if (!is_array($...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function canEdit() {}", "public function has_edit_rights()\n\t{\n\t\treturn (bool)$this->db->query_field(HAS_EDIT_RIGHTS_SQL, array(($_SESSION['user']['distributor_id'] . ',' . $_SESSION['user']['user_id'])));\n\t}", "private function checkAccessPermissions(): bool\n\t{\n\t\treturn AccessController::...
[ "0.68842167", "0.67237115", "0.664357", "0.6356235", "0.6352027", "0.634597", "0.6310889", "0.6267098", "0.62449086", "0.6198901", "0.6181889", "0.6156949", "0.6156628", "0.6149553", "0.6068888", "0.6046747", "0.60409594", "0.6038451", "0.60335547", "0.6033215", "0.60317576",...
0.715952
0
Function enqueue_assets Enqueues style and js if needed (now needs only for image field)
Функция enqueue_assets добавляет стили и js, если это необходимо (в настоящее время требуется только для поля изображения)
function enqueue_assets () { foreach ( $this->fields as $field ) { if ( 'image' === $field['type'] ) { $dir = strstr( __DIR__, 'wp-content' ); wp_enqueue_style( 'custom-fields-style', get_site_url() . '/' . $dir . '/assets/custom-fields.css' ); wp_enqueue_script( 'custom-fields-js', get_site_url() . '/...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function enqueue_assets() {\n\tenqueue_styles();\n\tenqueue_scripts();\n}", "protected function enqueue_scripts_and_styles() {}", "public function enqueue_assets() {\n\t\twp_enqueue_style( \"wpscsp-style\", plugins_url( 'css/somcsubpages.css', __FILE__ ));\n\t\twp_enqueue_script('jquery');\n\t\twp_enqueue_scri...
[ "0.7932498", "0.78760844", "0.7848097", "0.77913666", "0.76902616", "0.7678582", "0.76552355", "0.76502407", "0.7635257", "0.7629755", "0.76135653", "0.76080817", "0.7578198", "0.7566724", "0.7562585", "0.756061", "0.755193", "0.7511771", "0.75111353", "0.75071603", "0.749025...
0.83055615
0
Get paths of settings for Apps
Получить пути настроек для приложений
public function getAppsPath() { return $this->_apps_path; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getConfiguredPaths() {\n\t\t$settings = $this->configurationProvider->getSettings();\n\t\tif (isset($settings['paths']) && is_array($settings['paths'])) {\n\t\t\treturn $settings['paths'];\n\t\t}\n\t\treturn isset($settings['paths.']) ? $settings['paths.'] : array();\n\t}", "public function getAp...
[ "0.7124547", "0.6964341", "0.6946827", "0.688669", "0.684673", "0.6783631", "0.6737252", "0.67337906", "0.6641085", "0.6617019", "0.66157556", "0.6530464", "0.6524585", "0.65020895", "0.64805776", "0.64634967", "0.64523745", "0.64358914", "0.64252436", "0.6421937", "0.641665"...
0.72788596
0
Returns all rooms from the database.
Возвращает все комнаты из базы данных.
public static function getAllRooms(){ return DB::query('SELECT roomID FROM room'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rooms()\n {\n $sql = 'SELECT r.id,\n r.name_room,\n r.max_capacity_chairs,\n r.current_chairs,\n r.defective_chairs,\n d.day,\n s.start,\n ...
[ "0.83093625", "0.81402826", "0.7956575", "0.792807", "0.7903849", "0.7898828", "0.7832625", "0.77393395", "0.7691345", "0.7652064", "0.7548608", "0.75161535", "0.7496866", "0.74643433", "0.7447319", "0.7432122", "0.7367782", "0.7346089", "0.7295317", "0.7288801", "0.72864133"...
0.82695866
1
Counts how many users there are in a room.
Посчитывает, сколько пользователей находится в комнате.
public static function countUsersFromRoom($roomID){ DB::query('SELECT roomID FROM room JOIN user ON (room.roomID = user.ROOM_roomID) WHERE room.roomID=%i', $roomID); return DB::count(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUsersCount();", "public function countUsers();", "private static function get_users_count()\n {\n return User::where('role', '!=', 'admin')->count();\n }", "public function count()\n {\n return count($this->_users);\n }", "public function getUsersCount()\n {\...
[ "0.75390506", "0.7428153", "0.71988195", "0.70255816", "0.69629085", "0.6945573", "0.69321644", "0.69130564", "0.6865114", "0.68264073", "0.68063843", "0.67419446", "0.6740141", "0.6740076", "0.6663077", "0.6642448", "0.6601188", "0.6594655", "0.6587808", "0.6578416", "0.6576...
0.7571223
0
Returns a list of rooms with their user counts. If ID of the room is specified, then it would return only one single room.
Возвращает список комнат с количеством пользователей. Если указан идентификатор комнаты, то возвращается только одна комната.
public static function getRoomsWithUserCount($roomID = null){ $userCountQuery = "(SELECT count(*) FROM room JOIN user ON (room.roomID = user.ROOM_roomID) WHERE room.roomID = targetRoomID)"; $query = "SELECT user.username as username, room.roomID as targetRoomID, $userCountQuery as userCount " . "FROM room LE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function countUsersFromRoom($roomID){\n\t\tDB::query('SELECT roomID FROM room JOIN user ON (room.roomID = user.ROOM_roomID) WHERE room.roomID=%i', $roomID);\n\t\treturn DB::count();\n\t}", "public static function getAllRooms(){\n\t\treturn DB::query('SELECT roomID FROM room');\n\t}", "public func...
[ "0.74999934", "0.6816732", "0.6681865", "0.6671343", "0.66113436", "0.6464213", "0.64218533", "0.6408099", "0.6389013", "0.6350068", "0.62986064", "0.6287945", "0.62708336", "0.62663364", "0.62387997", "0.62245077", "0.6207926", "0.6188403", "0.6174137", "0.6071754", "0.60498...
0.7648404
0
Returns all users from one specific room.
Возвращает всех пользователей из одной конкретной комнаты.
public static function getAllUsersFromRoom($roomID){ return DB::query('SELECT userID, fname as firstname, lname as lastname, username FROM user JOIN room ON (user.ROOM_roomID = room.roomID) WHERE roomID=%i', $roomID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUsersRoom() {\n\t\t$db = Database::getInstance();\n\t\t$x = $this->curr_room->getX();\n\t\t$y = $this->curr_room->getY();\n\t\t$z = $this->curr_room->getZ();\n\t\t$coord = \"{$x}{$y}{$z}\";\n\t\t$sql = \"SELECT * FROM users WHERE room_coord = '$coord' AND logged_in = 1 AND username <> '$this->us...
[ "0.81217897", "0.78144014", "0.73627263", "0.723634", "0.7150236", "0.7141176", "0.70201874", "0.69673634", "0.69588065", "0.69274086", "0.69232076", "0.6906265", "0.6801156", "0.6800728", "0.67636526", "0.67631215", "0.67061394", "0.6656379", "0.66335523", "0.66272295", "0.6...
0.8167399
0
Returns the 'whoseTurn' value from a room.
Возвращает значение 'whoseTurn' из комнаты.
public static function getWhoseTurnFromRoom($roomID){ return DB::queryFirstRow('SELECT whoseTurn FROM room WHERE roomID=%i', $roomID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTurn()\n {\n return $this->turn;\n }", "public function getTurn()\n {\n return $this->turn;\n }", "public function getTurn()\n\t{\n\t\treturn $this->turn;\n\t}", "public function getTurn() {\n return $this->turn;\n }", "public function getRoom()\n {\n...
[ "0.7126384", "0.7126384", "0.70661455", "0.70244557", "0.6835839", "0.6757792", "0.6604085", "0.6581436", "0.6577061", "0.64418495", "0.64418495", "0.6386115", "0.6383218", "0.6304535", "0.61439365", "0.6046361", "0.6020636", "0.59811676", "0.5909016", "0.59080684", "0.590597...
0.7825102
0
Returns the stringified board from a room.
Возвращает строковое представление доски из комнаты.
public static function getStringBoard($roomID){ return DB::queryFirstRow("SELECT stringifiedBoard FROM room WHERE roomID=%i", $roomID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRoom(): string;", "public function getRoom(): string;", "public function __toString( )\n\t{\n\t\treturn $this->_get_board_ascii( );\n\t}", "function getRoom($idroom){\n\n global $connection;\n $sql = \"SELECT room_name FROM mrbs_room WHERE id = \" . $idroom .\";\";\n $qry = mysqli_query...
[ "0.6663498", "0.6663498", "0.6605354", "0.63257414", "0.62031466", "0.6020933", "0.59972674", "0.59731066", "0.594709", "0.58988976", "0.5894022", "0.5864794", "0.58506924", "0.58225936", "0.58094835", "0.57994115", "0.57692164", "0.57423866", "0.5689479", "0.568086", "0.5670...
0.7815715
0
Returns the ID of a room based on the user ID.
Возвращает ID комнаты на основе ID пользователя.
public static function getRoomIDFromUser($userID){ return DB::queryFirstRow('SELECT roomID FROM room JOIN user ON (room.roomID = user.ROOM_roomID) WHERE userID=%i', $userID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRoomId()\n {\n return $this->roomId;\n }", "public function getRoomNo($id)\n {\n $room = HostelRoom::find($id);\n return $room->room_no;\n }", "public function roomId($id)\n {\n return Room::findOrFail($id);\n }", "public function roomID($id){\...
[ "0.7418", "0.659204", "0.65256447", "0.6467127", "0.63973707", "0.6300714", "0.6249585", "0.6248058", "0.6238521", "0.62119967", "0.62045026", "0.61888474", "0.614896", "0.6132732", "0.608518", "0.6083733", "0.6064533", "0.6057351", "0.604679", "0.60184515", "0.60097116", "...
0.7378791
1
Returns the room ID and whoseTurn variable by the user ID.
Возвращает идентификатор комнаты и переменную whoseTurn по идентификатору пользователя.
public static function getRoomIDAndWhoseTurnByUser($userID){ return DB::queryFirstRow("SELECT roomID, whoseTurn FROM room JOIN user ON(user.ROOM_roomID = room.roomID) WHERE userID=%i", $userID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getWhoseTurnFromRoom($roomID){\n\t\treturn DB::queryFirstRow('SELECT whoseTurn FROM room WHERE roomID=%i', $roomID);\n\t}", "public static function getRoomIDFromUser($userID){\n\t\treturn DB::queryFirstRow('SELECT roomID FROM room JOIN user ON (room.roomID = user.ROOM_roomID) WHERE userID=...
[ "0.65280986", "0.64683646", "0.5981631", "0.59480286", "0.59009176", "0.5897912", "0.5875847", "0.5818363", "0.5693225", "0.56382054", "0.5637717", "0.55991817", "0.55904007", "0.55904007", "0.55904007", "0.55904007", "0.55904007", "0.5579338", "0.55792606", "0.5578972", "0.5...
0.7832328
0
Returns all room information by user ID.
Возвращает всю информацию о комнате по идентификатору пользователя.
public static function getAllRoomInfoByUserID($userID){ return DB::queryFirstRow("SELECT roomID, stringifiedBoard, whoseTurn, lastMove, removedPawns FROM user JOIN room ON(room.roomID = user.ROOM_roomID) WHERE userID=%i", $userID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function showByUserId($id)\n {\n return Room::where('user_id', $id)->get();\n }", "public function showRoomById($id) {\n $results = $this->getRoomById($id);\n\n return $results;\n }", "public static function getAllUsersFromRoom($roomID){\n\t\treturn DB::query('SELECT userID...
[ "0.8035705", "0.73304164", "0.71325564", "0.6922015", "0.686534", "0.68471456", "0.684602", "0.68413657", "0.677795", "0.67255735", "0.6678216", "0.65298307", "0.64800024", "0.6478594", "0.64768904", "0.64394045", "0.643529", "0.6429463", "0.6334728", "0.63270956", "0.632298"...
0.74025065
1
Returns the last move from a room.
Возвращает последний ход из комнаты.
public static function getLastMove($roomID){ $room = DB::queryFirstRow("SELECT lastMove FROM room WHERE roomID=%i", $roomID); return $room['lastMove']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLastMove()\n {\n return end($this -> history);\n }", "public function getLastMove() {\n $move_no = count($this->moves);\n \n if ($move_no < 1) {\n // No moves have been recorded for this game.\n return NULL;\n }\n else if (array_key_exists('b', $this->move...
[ "0.7556018", "0.74597853", "0.7242374", "0.6599408", "0.655654", "0.6323145", "0.6112037", "0.60827494", "0.60782355", "0.6058459", "0.5939192", "0.5933454", "0.59154534", "0.586494", "0.585412", "0.5851994", "0.580231", "0.57940125", "0.5789558", "0.57624084", "0.5735184", ...
0.82499075
0
The user can reply to a comment.
Пользователь может ответить на комментарий.
public function test_user_can_reply_to_comment() { $user = \App\Models\User::factory()->create(); $this->actingAs($user); $comment = \App\Models\Comment::factory()->create(); Livewire::test(CommentComponent::class, ["comment" => $comment]) ->set("reply", "foo") ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ajan_activity_can_comment_reply( $comment ) {\n\t$can_comment = true;\n\n\tif ( get_option( 'thread_comments' ) && ajan_activity_get_comment_depth() >= get_option( 'thread_comments_depth' ) ) {\n\t\t$can_comment = false;\n\t}\n\n\treturn apply_filters( 'ajan_activity_can_comment_reply', $can_comment, $com...
[ "0.7393419", "0.7326094", "0.7201266", "0.6977886", "0.69107336", "0.666599", "0.6663713", "0.6640002", "0.66323906", "0.6619151", "0.66002774", "0.65879107", "0.6482484", "0.6434667", "0.64223176", "0.6421974", "0.64046353", "0.639289", "0.6379608", "0.63769263", "0.6372286"...
0.75100374
0
Return first record for model
Вернуть первую запись для модели
public function first() { return $this->model->first(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function find_first()\n\t{\n\t\t$sql = 'SELECT * FROM \"'.$this->get_table_name().'\" ORDER BY id LIMIT 1';\n\t\t$record = $this->_db->get_first_row($sql);\n\t\t\n\t\treturn $this->set_attributes_from_record($record);\t\n\t}", "public function first()\n\t{\n\t\treturn Model::first();\n\t}", "public function fi...
[ "0.82708436", "0.8081812", "0.78920865", "0.78920865", "0.78920865", "0.78920865", "0.78920865", "0.78920865", "0.78920865", "0.78920865", "0.78920865", "0.78920865", "0.78920865", "0.78920865", "0.7869246", "0.78067803", "0.773785", "0.7730315", "0.77233297", "0.7710455", "0...
0.8187662
1
TODO: Implement scoreAttempt() method.
TODO: Реализовать метод scoreAttempt().
function scoreAttempt(AttemptQuestionAnswer $attemptQuestionAnswer) { $attemptQuestionAnswer->setScore(1); return 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function getProfileCompletionScore();", "public function getScore();", "public function getScore();", "public function getScore()\n {\n return 0;\n }", "public function score(){\n\t\t}", "abstract function score( $answer_object ): AutoScoreResult;", "public function getScor...
[ "0.6957922", "0.6946946", "0.6946946", "0.69171804", "0.6884184", "0.6751268", "0.6715286", "0.6712855", "0.6626868", "0.6626868", "0.66058934", "0.65561", "0.65561", "0.65561", "0.65561", "0.65561", "0.65561", "0.6532849", "0.65325046", "0.6503396", "0.6494681", "0.649176"...
0.74097127
0
Disable auto commit changes
Отключить автоматическое сохранение изменений
public function disableAutoCommit() { log::put('Transaction - autoCommit disabled', config::getPackageName(__CLASS__)); return $this->backend->disableAutoCommit(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAutoCommitFalseTrasaction(){\n //Turns on or off auto-committing database modifications :: Set autocommit to off\n return parent:: setAutoCommitFalse();\n }", "protected function setAutoCommitFalse(){\n //T...
[ "0.80704355", "0.7391273", "0.71386606", "0.7043987", "0.70408016", "0.6817773", "0.65820056", "0.654816", "0.638814", "0.6311322", "0.6183052", "0.61623305", "0.6131722", "0.6068993", "0.60475606", "0.60205746", "0.5959443", "0.58768344", "0.58753884", "0.58044326", "0.57594...
0.7488504
1
Finds an executable by name.
Находит исполняемый файл по имени.
public function find($name) { $dirs = array( $this->root . DIRECTORY_SEPARATOR . 'bin', $this->root . DIRECTORY_SEPARATOR . 'app' ); $suffixes = array(''); if ('\\' === DIRECTORY_SEPARATOR) { $pathExt = getenv('PATHEXT'); $suffixes = a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function find_executable($prog) {\n\t// EXECUTABLES_PATHS will prioritise Homebrew (on macOS) over builtin utilities.\n\t// Returns boolean false if the program is not found, or the path (not including the program name)\n\t$retval = false;\n\tforeach (EXECUTABLES_PATHS as $c) {\n\t\tif (is_executable($c.$prog)) {\...
[ "0.6563823", "0.63970745", "0.63890296", "0.6284869", "0.6284869", "0.60331804", "0.6027535", "0.5913179", "0.5783572", "0.5783572", "0.5783572", "0.5783572", "0.5783572", "0.5783572", "0.5783572", "0.5783572", "0.5783572", "0.5716864", "0.56569505", "0.5609592", "0.55962694"...
0.7507267
0
Get the color for the edit state of the module instance.
Получите цвет для режима редактирования экземпляра модуля.
public function GetModuleColorEditState() { $aModuleStateCodeColorList = array('ne' => 'EB3335', 'na' => 'FAA11C', 'ea' => '78C043'); $sModuleState = $this->GetModuleEditState(); return $aModuleStateCodeColorList[$sModuleState]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getColor(){\n return $this->state['color'];\n }", "function get_color() {\n return $this->munge_color( $this->_props[\"color\"] );\n }", "protected function getColor()\r\n {\r\n return $this->color;\r\n }", "public function getcolor()\n {\n return $this->...
[ "0.7126977", "0.6858312", "0.67528725", "0.67490166", "0.6742646", "0.6694382", "0.66878444", "0.66878444", "0.6667684", "0.66445273", "0.6637335", "0.66359526", "0.66359526", "0.66359526", "0.66359526", "0.66359526", "0.66359526", "0.66359526", "0.66359526", "0.66359526", "0...
0.7997956
0
Smarty method EnableCompileCheck Enable compile checking
Метод Smarty EnableCompileCheck Включает проверку компиляции
function Smarty_Method_EnableCompileCheck($smarty) { $smarty->compile_check = true; return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _smartyCompileCheck($oSmarty)\n {\n $myConfig = $this->getConfig();\n $oSmarty->compile_check = $myConfig->getConfigParam('blCheckTemplates');\n\n }", "public function beforeCompile()\n\t{\n\t}", "abstract public function beforeCompile();", "public function enable()\n ...
[ "0.7634189", "0.662967", "0.65246826", "0.63313764", "0.61338466", "0.60564816", "0.604677", "0.5955866", "0.59397507", "0.59063244", "0.5904313", "0.5879464", "0.5813685", "0.5785652", "0.5760742", "0.5746943", "0.57036316", "0.5703111", "0.5669583", "0.5646173", "0.56222415...
0.840044
0
Assign meta description text
Присвоить мета-описание текста
public function setMetaDescription($description){ $this->assign('metaDescription', $description); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDescription($descriptionText) {\n $this->appendToHead(<<<HTML\n <meta name=\"description\" content=\"$descriptionText\">\n\nHTML\n );\n }", "public function getMetaDescription();", "public function getMetaDescription(){\n \t//Setup Meta Class\n \treturn $th...
[ "0.7685329", "0.74287546", "0.74202555", "0.7338754", "0.7242373", "0.72381634", "0.72259796", "0.7220544", "0.71546733", "0.714532", "0.71244144", "0.7121678", "0.70489573", "0.7016997", "0.70023775", "0.7001312", "0.69967616", "0.6995607", "0.6897928", "0.6896792", "0.68829...
0.75209904
1
Adds a skin to the module.
Добавляет кожу к модулю.
public function addskinAction(Request $request) { // setup a fresh skin and module object $skin = new Skin(); $module = new Module(); if ($this->get('session')->has('module')) { // get the last module from the session to fill some additional defaults for the new skin ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function load_skin()\t\n\t{\n\t\tKohana::config_set('core.modules', array_merge(array(DOCROOT.'skins/default'), Kohana::config('core.modules')));\n\t\t\n\t\t// 2) Extend the default skin with the active skin.\n\t\t$skin = Kohana::config('website.skin');\n\t\t\n\t\tif ($skin != 'default')\n\t\t{\n\t\t\tKohan...
[ "0.63376033", "0.6240421", "0.59991467", "0.59785455", "0.5926808", "0.5877634", "0.5868055", "0.5820676", "0.57913816", "0.57509387", "0.5675986", "0.5664145", "0.56580436", "0.5648982", "0.55834794", "0.5536532", "0.5512595", "0.53792924", "0.5356962", "0.5356426", "0.53393...
0.70703375
0
Resets the menu cache for static pages on update and create of an entity
Сбрасывает кэш меню для статических страниц при обновлении и создании сущности
public static function resetMenuCache(\Elgg\Event $event) { $entity = $event->getObject(); if (!$entity instanceof \StaticPage) { return; } $entity->getRootPage()->clearMenuCache(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updated(Menu $menu)\n {\n Cache::forget('models.menu');\n }", "public function created(Menu $menu)\n {\n Cache::forget('models.menu');\n }", "public function updateCache() {\r\n $sqldata = $this->MenuList();\r\n\r\n foreach($sqldata as $key => $cvalue){\...
[ "0.644785", "0.6213242", "0.6115728", "0.60076404", "0.59830266", "0.59653497", "0.5959459", "0.59540915", "0.59055185", "0.5895247", "0.5889235", "0.58628315", "0.5855651", "0.58538836", "0.58394206", "0.58095384", "0.57981825", "0.57948226", "0.5791799", "0.57881284", "0.57...
0.75679857
0
Creates a new Fiscalizacion entity.
Создает новую сущность Fiscalizacion.
public function createAction(Request $request, $idprov, $idcentro, $tipo) { $rep = array('centro' =>'CentrohipicoBundle:DataCentrohipico', 'operadora' => 'CentrohipicoBundle:DataOperadora'); $entity = new Fiscalizacion(); $em = $this->getDoctrine()->getManager(); $prov = $em->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createAction()\n {\n $entity = new Fiscalia();\n $request = $this->getRequest();\n $form = $this->createForm(new FiscaliaType(), $entity);\n $form->bindRequest($request);\n\n if ($form->isValid()) {\n $em = $this->getDoctrine()->getEntityManager(...
[ "0.69985104", "0.6771116", "0.66460544", "0.6229498", "0.6199018", "0.6122534", "0.5989843", "0.593246", "0.5929399", "0.5899164", "0.5872971", "0.58333105", "0.58217627", "0.5785693", "0.5766395", "0.5762909", "0.5755514", "0.57549226", "0.5744332", "0.57377505", "0.5720409"...
0.7081207
0
Creates a form to create a Fiscalizacion entity.
Создает форму для создания сущности Fiscalizacion.
private function createCreateForm(Fiscalizacion $entity, $centro, $prov, $tipo) { $form = $this->createForm(new FiscalizacionType(), $entity, array( 'action' => $this->generateUrl('fiscalizacion_create', array( 'idprov' => $prov, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createAction()\n {\n $entity = new Fiscalia();\n $request = $this->getRequest();\n $form = $this->createForm(new FiscaliaType(), $entity);\n $form->bindRequest($request);\n\n if ($form->isValid()) {\n $em = $this->getDoctrine()->getEntityManager(...
[ "0.7474201", "0.71543646", "0.7086334", "0.70523953", "0.7020063", "0.69577056", "0.6924979", "0.691594", "0.6802547", "0.67036885", "0.6684444", "0.66684663", "0.66476065", "0.6645504", "0.66220856", "0.6602718", "0.6543131", "0.6531981", "0.6464092", "0.6440256", "0.6434865...
0.72018796
1
Finds and displays a Fiscalizacion entity.
Находит и отображает сущность Fiscalizacion.
public function showAction($id) { $em = $this->getDoctrine()->getManager(); $entity = $em->getRepository('FiscalizacionBundle:Fiscalizacion')->find($id); if (!$entity) { throw $this->createNotFoundException('Unable to find Fiscalizacion entity.'); } $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function mostrarFacturasAction()\r\n {\r\n\r\n \r\n \t$em = $this->getDoctrine()->getManager();\r\n $idPersonal = $this->getUser()->getIdpersonal()->getId();\r\n \r\n\r\n \t// obteniendo las facturas por clinica con el estado Facturando de Cita\r\n \t$query = $em->createQuery(\" SEL...
[ "0.6747244", "0.6623793", "0.6623793", "0.6568499", "0.6484403", "0.6451687", "0.6442091", "0.63629425", "0.63434356", "0.63239235", "0.6200354", "0.6198338", "0.6112845", "0.61027735", "0.60650676", "0.60406476", "0.6031102", "0.60252655", "0.6001147", "0.5997456", "0.598280...
0.73165786
0
Creates a form to edit a Fiscalizacion entity.
Создает форму для редактирования сущности Fiscalizacion.
private function createEditForm(Fiscalizacion $entity) { $form = $this->createForm(new FiscalizacionType(), $entity, array( 'action' => $this->generateUrl('fiscalizacion_edit', array('id' => $entity->getId())), 'method' => 'PUT', )); return $form; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createEditForm(DatosFiscales $entity)\n {\n $form = $this->createForm(new DatosFiscalesType(), $entity, array(\n //'action' => $this->generateUrl('datosfiscales_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submi...
[ "0.7334182", "0.7163828", "0.68622166", "0.6852648", "0.6831845", "0.68275464", "0.68068004", "0.6775362", "0.66972953", "0.6646088", "0.6634526", "0.6531873", "0.649943", "0.6475792", "0.6470988", "0.6469755", "0.6458595", "0.6451061", "0.6422869", "0.641372", "0.64108795", ...
0.8353268
0
Creates a form to delete a Fiscalizacion entity by id.
Создает форму для удаления сущности Fiscalizacion по идентификатору.
private function createDeleteForm($id) { return $this->createFormBuilder() ->setAction($this->generateUrl('fiscalizacion_delete', array('id' => $id))) ->setMethod('DELETE') ->add('submit', 'submit', array('label' => 'Delete')) ->getForm() ; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createDeleteForm($id)\r\n {\r\n return $this->createFormBuilder()\r\n ->setAction($this->generateUrl('cr_backend_fininstitut_delete', array('id' => $id)))\r\n ->add('submit', 'submit', array('label' => 'Delete'))\r\n ->...
[ "0.74611217", "0.74528563", "0.7452767", "0.73929286", "0.73679096", "0.7300468", "0.72826344", "0.7276675", "0.72636646", "0.7253373", "0.72516775", "0.7249915", "0.7245818", "0.7235156", "0.72260493", "0.72048324", "0.71939486", "0.7181847", "0.7173304", "0.7171305", "0.716...
0.78681135
0
Get the value of libelle
Получить значение libelle
public function getLibelle() { return $this->libelle; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLibelle()\n {\n return $this->libelle;\n }", "public function getLibelle();", "public function getLibelle()\n {\n return $this->libelle;\n }", "public function getLibelle() {\n\t\treturn $this->_libelle;\n\t}", "public function get_li...
[ "0.8156887", "0.811436", "0.809313", "0.8047229", "0.8046554", "0.7186987", "0.70883054", "0.69280183", "0.6802045", "0.67990017", "0.6751441", "0.67413193", "0.66233104", "0.6592612", "0.65679866", "0.65679866", "0.6528018", "0.65248656", "0.6466111", "0.6464913", "0.6437347...
0.81321925
1
determine if report already exists for a period
определить, существует ли отчет для периода
function reportExists(){ $conn = Doctrine_Manager::connection(); $id_check = ""; if(!isEmptyString($this->getID())){ $id_check = " AND id <> '".$this->getID()."' "; } $query = "SELECT id FROM activityreport WHERE type = '".$this->getType()."' AND clientid = '".$this->getClientID()."' AND voucherid = '"....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkDuplicate() {\n\t\t$db = PearDatabase::getInstance();\n\n\t\t$query = \"SELECT 1 FROM vtiger_report WHERE reportname = ?\";\n\t\t$params = array($this->getName());\n\n\t\t$record = $this->getId();\n\t\tif ($record && !$this->get('isDuplicate')) {\n\t\t\t$query .= \" AND reportid != ?\";\n\t\t\...
[ "0.6836638", "0.6532677", "0.62547696", "0.60347867", "0.5888833", "0.5876126", "0.58482414", "0.5830861", "0.58036256", "0.57559776", "0.5678733", "0.5588623", "0.55444056", "0.55348814", "0.5519924", "0.5502567", "0.5488039", "0.54806787", "0.54530793", "0.54283845", "0.542...
0.73513967
0
Get a string of HTML hidden fields for use in a form.
Получить строку скрытых полей HTML для использования в форме.
public function getHiddenFieldString() { $array = (array)$this; $string = ""; foreach ($array as $key => $value) { if ($value) { $string .= '<input type="hidden" name="'.$key.'" value="'.$value.'">'; } } return $string; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHiddenFormFields()\n {\n $html = array();\n\n // The merchant ID is mandatory.\n\n $html[] = replace(\n array('{name}', '{value}'),\n array('merchantId', $this->getMerchantId()),\n $this::HTML_TEMPLATE_HIDDEN_FIELD\n );\n\n /...
[ "0.83799493", "0.7794451", "0.76329106", "0.7344062", "0.72917104", "0.7246612", "0.7182256", "0.71621114", "0.7143878", "0.7008348", "0.6967812", "0.6964737", "0.69638944", "0.69317424", "0.69274294", "0.69070625", "0.6903687", "0.6903529", "0.6826201", "0.6806139", "0.67901...
0.80360436
1
get list of create key
получить список ключей создания
public function getCreateKeys() { return $this->createKeyList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createKeyArray(){\n\t$keyArray = array();\n\tif (isset($this->id)) $keyArray[\"id\"] = $this->id;\n\tif (isset($this->name)) $keyArray[\"name\"] = $this->name;\n\tif (isset($this->text)) $keyArray[\"text\"] = $this->text;\n\treturn $keyArray;\n}", "public function createKeys(){\n\t\treturn Pair::...
[ "0.7283575", "0.71599454", "0.70793843", "0.6852262", "0.6852262", "0.6785984", "0.6634645", "0.6634645", "0.6634645", "0.65317714", "0.6496735", "0.6487164", "0.6487164", "0.6487164", "0.6487164", "0.6487164", "0.6487164", "0.6487164", "0.63981557", "0.63270795", "0.63046587...
0.824054
0
get list of edit key
получить список ключа редактирования
public function getEditKeys() { return $this->editKeyList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getKeysList(){\n return $this->_get(1);\n }", "public function getKeysList(){\n return $this->_get(1);\n }", "private static function author_edit_keys() {\n return array('coderunner_question_type', 'confirm_proceed', 'template_changed',\n 'info_unavailable', 'pro...
[ "0.6967751", "0.6967751", "0.6907238", "0.68436885", "0.6716547", "0.65965897", "0.6560452", "0.65045476", "0.64539325", "0.6451019", "0.6297068", "0.6297068", "0.6297068", "0.6297068", "0.6297068", "0.6297068", "0.6297068", "0.6292115", "0.6292115", "0.6292115", "0.6292115",...
0.8384956
0
get list of transformer key
получить список ключей трансформатора
public function getTransformerKeys() { return $this->transformerKeyList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getKeys();", "public function getKeys();", "public function getKeys();", "public function getKeys();", "public function getKeys();", "public function getKeys();", "public function getKeys();", "public static function getKeys();", "public static function getKeys();", "public static...
[ "0.67487925", "0.67487925", "0.67487925", "0.67487925", "0.67487925", "0.67487925", "0.67487925", "0.6632609", "0.6632609", "0.6632609", "0.662185", "0.662185", "0.65713406", "0.65713406", "0.65713406", "0.65599525", "0.64240104", "0.62628835", "0.6262871", "0.62512034", "0.6...
0.8260763
0
store list of create key
хранить список ключей создания
private function setCreateKey($key) { $this->createKeyList[] = $key; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCreateKeys()\n {\n return $this->createKeyList;\n }", "public function createKeys(){\n\t\treturn Pair::generate($this->config['keynum']);\n\t}", "public function createKeyArray(){\n\t$keyArray = array();\n\tif (isset($this->id)) $keyArray[\"id\"] = $this->id;\n\tif (isset($this-...
[ "0.70813125", "0.68458825", "0.68021333", "0.66160256", "0.6280841", "0.6207745", "0.6207745", "0.60564566", "0.6013875", "0.5976745", "0.59443784", "0.5862164", "0.5858816", "0.5830814", "0.5815424", "0.5799795", "0.5789883", "0.57461894", "0.57325476", "0.57325476", "0.5702...
0.72146815
0
store list of edit key
хранить список ключей редактирования
private function setEditKey($key) { $this->editKeyList[] = $key; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEditKeys()\n {\n return $this->editKeyList;\n }", "private static function author_edit_keys() {\n return array('coderunner_question_type', 'confirm_proceed', 'template_changed',\n 'info_unavailable', 'proceed_at_own_risk', 'error_loading_prototype',\n ...
[ "0.7377752", "0.6440955", "0.63523513", "0.58212173", "0.58212173", "0.5799561", "0.57490134", "0.56443346", "0.56324565", "0.56240803", "0.5618871", "0.5606734", "0.5600231", "0.55611736", "0.55611736", "0.55611736", "0.55611736", "0.55611736", "0.55611736", "0.55611736", "0...
0.7040391
1
Adds new sidebar to the database. $content is the sidebar's content. $document_id is the related document.
Добавляет новый бокс в базу данных. $content — это содержимое бокса. $document_id — связанный документ.
public function add($content, $document_id) { unset($this->id); // hides this variable from the db library, otherwise it will be used for insert $this->content = $content; $this->document_id = $document_id; $this->created = date( 'Y-m-d H:i:s'); $this->userid = $this->quickauth->user()->id; $this->db->ins...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function AddContentSidebar($header, $content) {\r\n\t\t$res = $this->g_contentsidebar;\r\n\t\t$res .= \"\\n\\n\\t\\t\" . '<dl>';\r\n\t\t$res .= \"\\n\\t\\t\\t\" . '<dt><h4>' . $header . '</h4></dt>'; \r\n\t\t$res .= \"\\n\\t\\t\\t\" . '<dd>' . $content . '</dd>';\r\n\t\t$res .= \"\\n\\n\\t\\t\" . '</dl>';\r\n\t\t$...
[ "0.5902271", "0.5610219", "0.5574671", "0.5549966", "0.5433617", "0.54295313", "0.5367845", "0.5323864", "0.5272553", "0.5166946", "0.5166946", "0.51576924", "0.51336163", "0.5129118", "0.51128334", "0.5096974", "0.50738305", "0.50300205", "0.50255615", "0.5016252", "0.500152...
0.8472004
0
Returns the number of stations
Возвращает количество станций
public function countStations() { $this->addField('count(*) as mxm'); $this->addFrom('stations s'); $this->runQuery(); $result = $this->getRow(0); return $result['mxm']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_num_stations() {\n\t\t$num = count($this->stations);\n\t\treturn $num;\n\t}", "public function getTotalStations(){\n \treturn $this->getStations()->count();\n }", "public function nines() {\n return count($this->routes->filter(function ($route) {\n return $route->type == '...
[ "0.8978457", "0.7436902", "0.6863694", "0.6813118", "0.67346734", "0.66251385", "0.6567139", "0.65301734", "0.6508883", "0.6508592", "0.6498248", "0.6477479", "0.647565", "0.64569575", "0.6441766", "0.6439584", "0.6429444", "0.6428222", "0.6410313", "0.6409138", "0.6405301", ...
0.79866946
1
Insert Query to add a station
Вставить Запрос для добавления станции
public function addStation($data) { array_walk($data, function($item, $key) { $this->addInsertSet($key, $item); }); $this->setInsertTable('stations'); $this->runInsert(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function station_add($khz, $call, $qth, $sta, $cnt, $lat, $lon)\n{\n global $ObjMysql;\n $ID = table_uniqID(TYPE_STATION);\n $sql =\n \"INSERT INTO\\n\"\n .\" `station`\\n\"\n .\"( `ID`,\\n\"\n .\" `khz`,\\n\"\n .\" `call`,\\n\"\n .\" `qth`,\\n\"\n ...
[ "0.738458", "0.7095245", "0.7044453", "0.68881947", "0.68212765", "0.68117607", "0.66384196", "0.6551997", "0.6548833", "0.653792", "0.6484882", "0.63845474", "0.6367935", "0.63656956", "0.63042945", "0.6298974", "0.6270573", "0.6264141", "0.62586915", "0.6257683", "0.6224186...
0.7483532
0
Gets UF list from Correios
Получает список UF из Correios
public function getCorreiosUf() { $this->addField('cd_uf'); $this->addField('ds_uf_sigla'); $this->addField('ds_uf_nome'); $this->addFrom('correios_uf'); $this->runQuery(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllUf() {\n\n $xml = self::$soapClient->lerDNE();\n $xml = $this->xmlToArray($xml);\n\n foreach ($xml[\"NODELIST\"] as $value) {\n $result[$value['sg_uf']] = $value['sg_uf'];\n }\n return $result;\n }", "public function getUserList();", "publi...
[ "0.72362435", "0.6636615", "0.6585681", "0.6541328", "0.64895785", "0.64758074", "0.64700335", "0.63922584", "0.6376953", "0.6367818", "0.6342802", "0.63360846", "0.63235193", "0.63094705", "0.62828666", "0.6277623", "0.6276618", "0.6271576", "0.6270694", "0.62472266", "0.621...
0.7680437
0
/ Fungsi list file log data
/ Функция списка файлов журналов данных
public function listFileLogData() { $this->query = $this->db->select('log_data_files.*, user_table.USERNAME') ->from('log_data_files') ->join('user_table','user_table.U_ID = log_data_files.ID_USER') ->order_by('log_data_files.DATE_INSERT', 'DESC'); $this->runQuery = $this->db->ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_log_files()\n {\n clearos_profile(__METHOD__, __LINE__);\n try {\n $list = array();\n $log_viewer = new Log_Viewer();\n $files = $log_viewer->get_log_files();\n foreach ($files as $file) {\n if (preg_match('/.*\\d$/', $file))\...
[ "0.7608461", "0.7255436", "0.7167137", "0.7136404", "0.71109873", "0.6984124", "0.68877995", "0.6819459", "0.6771101", "0.67493844", "0.6688112", "0.66784894", "0.6601698", "0.6600242", "0.6593662", "0.65822303", "0.6525614", "0.64916533", "0.64635235", "0.6463302", "0.644384...
0.7296962
1
Get the default driver name.
Получить имя стандартного драйвера.
public function getDefaultDriver(): string { return $this->config['default_driver'] ?? ''; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_default_driver_name()\n\t{\n\t\treturn $this->driver_name;\n\t}", "public function getDefaultDriver(): string\n {\n return $this->config->get($this->getConfigName() . '::default', 'local');\n }", "public function getDefaultDriver()\n {\n return 'default';\n }", "...
[ "0.8900824", "0.8560323", "0.83275515", "0.8305311", "0.82658815", "0.8251242", "0.81966406", "0.8184637", "0.8176975", "0.80840033", "0.80757076", "0.80756485", "0.80756485", "0.80756485", "0.80756485", "0.8052162", "0.80508024", "0.80397487", "0.8021705", "0.78913707", "0.7...
0.8690442
1
Store a newly created Persona_estado in storage.
Храните ново созданную Persona_estado в хранилище.
public function store(CreatePersona_estadoRequest $request) { $input = $request->all(); $personaEstado = $this->personaEstadoRepository->create($input); Flash::success('Persona Estado saved successfully.'); return redirect(route('personaEstados.index')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function guardarEstado() {\n\n $this->estadoDispositivo=new Properties();\n $this->estadoDispositivo->load(file_get_contents(\"./estadoDispositivos.properties\"));\n $this->estadoDispositivo->setProperty($this->disp.\".estado\",$this->estado);\n file_put_contents('./estadoDisposi...
[ "0.70324236", "0.6710023", "0.6539834", "0.64745903", "0.6438429", "0.6410952", "0.6393366", "0.6301304", "0.6280441", "0.62687725", "0.6220293", "0.6182167", "0.61701083", "0.6143952", "0.61212885", "0.61039174", "0.60967183", "0.60930824", "0.6091675", "0.6084341", "0.60664...
0.765319
0
/////////////////// / function to substract invoice from property unit balance account /return array of /t_final_total => transaction final total /sub_to_balance => real substract value for balance /calculated_balance => current calculated balance //////////////
/////////////////// / функция для вычитания счета-фактуры из баланса учетной единицы имущества / возвращается массив /t_final_total => итоговая сумма транзакции /sub_to_balance => реальное значение вычитания из баланса /calculated_balance => текущий рассчитанный баланс //////////////
function calTransactionBalance ($balance,$total) { // add discount back because it will used as substractor again when exportings report if( $balance >= $total ) return array('t_final_total' => 0, 'sub_to_balance' => $total, 'calculated_balance' => $balance-$total); else { $sub = $total-$b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function calculateSubTotal() {\n\n $transresRequest = $this->getTransresRequest();\n $priceList = $transresRequest->getPriceList();\n\n $invoiceItems = $this->getInvoiceItems();\n\n $subTotal = 0;\n\n foreach( $invoiceItems as $invoiceItem ) {\n $product = $invo...
[ "0.7056718", "0.67821175", "0.6449928", "0.6338114", "0.63235927", "0.6287528", "0.6217309", "0.6190957", "0.61818784", "0.6148252", "0.61420196", "0.6140495", "0.61000544", "0.605517", "0.6032661", "0.60202295", "0.6010866", "0.59893703", "0.598142", "0.5944992", "0.59428227...
0.73265517
0
This method is for populating posts table. Usage (from run function): self::populate_posts();
Этот метод предназначен для заполнения таблицы posts. Использование (из функции run): self::populate_posts();
private static function populate_posts() { $post=\Model_Post::forge(array( 'name' => 'cum-sociis', 'title' => 'cum sociis', 'body_short' => 'Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem.', 'body'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function populatePosts(){\n\t\t$result = $this->query(\" anax_post.id, anax_post.title, anax_post.content, anax_post.created, anax_post.points, anax_user.username, anax_user.email, anax_user.id as user_id\", \"post\")\n \t\t->where('parent_post IS NULL')\n \t\t->orderBy('created DESC')\n\t ->join('us...
[ "0.71896464", "0.6787894", "0.65789044", "0.6556806", "0.64113855", "0.6390067", "0.6372699", "0.6367353", "0.6339932", "0.63354766", "0.6332138", "0.6310873", "0.62753105", "0.62655", "0.6259361", "0.62417066", "0.6222052", "0.6220932", "0.62155926", "0.6200273", "0.6197098"...
0.74242204
0
This method is for populating categories table. Usage (from run function): self::populate_categories();
Этот метод предназначен для заполнения таблицы категорий. Использование (из функции run): self::populate_categories();
private static function populate_categories() { $category=\Model_Category::forge(array( 'name' => 'parent', 'title' => 'parent', 'parent_id' => NULL, 'lft' => 1, 'rght' => 4, 'status' => 1, )); $category->save(); $category=\Model_Category::forge(array( 'name' => 'news', 'title' => 'ne...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function setCategories()\n {\n $this->categories = Collection::make($this->getData()['categories'])->map(function ($category) {\n return new Category($category);\n });\n }", "public function initCategories()\n {\n $collectionClassName = IncidentCategoryTableMap::g...
[ "0.6630387", "0.6620502", "0.6507908", "0.64570713", "0.6383509", "0.6327296", "0.6314631", "0.62952304", "0.6292927", "0.62797034", "0.625887", "0.62248516", "0.62077296", "0.62074745", "0.6197762", "0.6182188", "0.61693716", "0.6169158", "0.6136492", "0.61353064", "0.612935...
0.75382143
0
This method is for populating languages table. Usage (from run function): self::populate_languages();
Этот метод используется для заполнения таблицы языков. Использование (из функции run): self::populate_languages();
private static function populate_languages() { $language=\Model_Language::forge(array( 'name' => 'sr', 'status' => 1 )); $language->save(); $language=\Model_Language::forge(array( 'name' => 'eng', 'status' => 2 )); $language->save(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function initializeLanguages() {}", "static public function loadLanguages()\n {\n self::$_LANGUAGES = array();\n $query = 'SELECT `id_lang`, `name`, `iso_code`, `active` FROM {$this->table}' ;\n DB::select($query);\n $result = DB::select('\n\t\tSELECT `id_lang`, `name`, `iso...
[ "0.7468544", "0.7161773", "0.6982402", "0.6790644", "0.67184794", "0.66311634", "0.64439154", "0.64315665", "0.64008105", "0.6374123", "0.63279915", "0.6324997", "0.63178325", "0.6316691", "0.6280909", "0.62423223", "0.6239101", "0.62318575", "0.6200601", "0.6191541", "0.6128...
0.79403734
0
This method is for populating users table. Usage (from run function): self::populate_users();
Этот метод предназначен для заполнения таблицы пользователей. Использование (из функции run): self::populate_users();
private static function populate_users() { $user=\Model_User::forge(array( 'username' => 'admin', 'password' => crypt('admin','!2y!'.\Config::get('blowfish_difficulty').'!admin!'), 'email' => 'admin@something.com', 'status' => 1, 'level' => 1 )); $user->save(); $user=\Model_User::forge(array( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function populate() {\n\t\tglobal $config;\n\t\t\n\t\tif($this->id != NULL) {\n\t\t\t$con = pg_connect(\"host=\".$config['SQL_host'].\" dbname=\".$config['SQL_db'].\" user=\".$config['SQL_user'].\" password=\".$config['SQL_pass'])\n\t\t\t\tor die (\"Could not connect to server\\n\");\n\n\t\t\t$query = \"SEL...
[ "0.7875891", "0.7354179", "0.7116597", "0.70439225", "0.6916695", "0.67818826", "0.6745023", "0.66685665", "0.6616449", "0.6582581", "0.6552326", "0.65477806", "0.6521535", "0.6484208", "0.6456361", "0.6432564", "0.643126", "0.6430002", "0.6430002", "0.63918024", "0.63886774"...
0.7532808
1
This method is for populating comments table. Usage (from run function): self::populate_comments();
Этот метод предназначен для заполнения таблицы комментариев. Использование (из функции run): self::populate_comments();
private static function populate_comments() { $comment=\Model_Comment::forge(array( 'comment' => 'Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim.', 'user_id' => 2, 'status' => 1, 'post_id' => 1, 'langua...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n DB::table('comments')->insert($this->generateData());\n }", "private function fetchComments()\n\t{\n\t\t$sql_ary = array(\n\t\t\t'SELECT'\t=> 'pc.id,\n\t\t\t\t\t\t\tpc.comment,\n\t\t\t\t\t\t\tpc.commenter_id,\n\t\t\t\t\t\t\tpc.comment_options,\n\t\t\t\t\t\t\tpc.comment_bi...
[ "0.68108344", "0.6662388", "0.6396624", "0.6261609", "0.62104475", "0.6183586", "0.61681783", "0.61517674", "0.6140205", "0.6138784", "0.6070817", "0.60159683", "0.6005765", "0.5999023", "0.59804004", "0.59467494", "0.59275687", "0.5927068", "0.591704", "0.59116626", "0.59018...
0.78896934
0
Return the destination page for an exam
Верните страницу назначения для экзамена
function getDestPage($examTypeID) { $destPage = ''; switch ($examTypeID) { case 1: $destPage = 'multi-exam.php'; break; case 2: $destPage = 'fill-exam.php'; break; default: $destPage = 'theory-exam.php'; } return $destPage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function exam(){\n\n\t\t//call the global function for the user redirections\n\t\t$this->user_redirector(\"exam\", \"\");\n\t}", "public function show($exam)\n {\n $user = \\Auth::user();\n\n $exam = Exam::findOrFail($exam);\n \n // Question sets\n $questions = array_...
[ "0.63408935", "0.60506964", "0.59182763", "0.5708118", "0.56746197", "0.5656349", "0.56391126", "0.5589888", "0.5566582", "0.5520102", "0.5497366", "0.5440932", "0.54212934", "0.5392063", "0.53452194", "0.5329485", "0.5327036", "0.5311044", "0.5306493", "0.5306428", "0.530513...
0.7464936
0
Creates a form to delete a user entity.
Создает форму для удаления сущности пользователя.
private function createDeleteForm(User $user) { return $this->createFormBuilder() ->setAction($this->generateUrl('user_delete', array('id' => $user->getId()))) ->setMethod('DELETE') ->getForm(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createDeleteForm(User $user)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('user_delete', array('id' => $user->getId())))\n ->setMethod('DELETE')\n ->getForm();\n\n }", "private function createDeleteForm(User $user)\n {\...
[ "0.774143", "0.7691348", "0.7691348", "0.7690374", "0.7690374", "0.7690374", "0.7690374", "0.7690374", "0.7690374", "0.7690374", "0.7690374", "0.7690374", "0.7646729", "0.7646729", "0.75908875", "0.73990786", "0.7353697", "0.7326252", "0.7287259", "0.7051604", "0.7049391", ...
0.7717863
1
A public key used to verify the signature of JSON Web Tokens (JWTs). When adding a new device credential, either via device creation or via modifications, this public key credential may be required to be signed by one of the registry level certificates. More specifically, if the registry contains at least one certifica...
Публичный ключ, используемый для проверки подписи JSON Web Tokens (JWT). При добавлении нового устройства, либо при создании устройства, либо при изменении, этот публичный ключ может потребоваться для подписи одним из сертификатов уровня реестра. Более точно, если реестр содержит хотя бы один сертификат, любые новые уч...
public function setPublicKey($var) { GPBUtil::checkMessage($var, \Google\Cloud\Iot\V1\PublicKeyCredential::class); $this->writeOneof(2, $var); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPublicKey(): string\n {\n return $this->public_key;\n }", "public function getPublicKey()\n {\n return $this->readOneof(2);\n }", "public function getPublicKey() {\n return $this->public_key;\n }", "public function getPublicKey()\n {\n if (!emp...
[ "0.661958", "0.6558572", "0.652838", "0.65196997", "0.64686364", "0.6433203", "0.6433203", "0.6433203", "0.6433203", "0.6302754", "0.6277525", "0.62749445", "0.6244597", "0.6232573", "0.61922944", "0.6175382", "0.61516386", "0.6148605", "0.61280864", "0.60934776", "0.6072324"...
0.7659587
0
Add animate.min.css, wow.min.js and new wow().init()
Добавить animate.min.css, wow.min.js и new wow().init()
function script_style_custom() { wp_enqueue_style('wowjs-animate', get_stylesheet_directory_uri() . '/css/animate.min.css'); wp_enqueue_script('my-script', get_stylesheet_directory_uri() .'/js/wow.min.js', array('jquery')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function clea_add_func_enqueue_scripts() {\n\twp_enqueue_style( 'animate', CLEA_ADD_FUNC_DIR_URL . '/css/animate.min.css' ); \n\n\n\t/* enqueue the wow js script */\n\twp_enqueue_script( 'wow', CLEA_ADD_FUNC_DIR_URL . '/js/wow.min.js', array( 'jquery' ), true );\n}", "function pixgraphy_scripts() {\n\t$pixgraph...
[ "0.73281926", "0.63519955", "0.6282458", "0.6246644", "0.6052937", "0.60478467", "0.5892125", "0.5850583", "0.57751966", "0.5755276", "0.5738895", "0.57325757", "0.5731407", "0.56854594", "0.5685165", "0.56710315", "0.5662645", "0.56513864", "0.564882", "0.56221795", "0.56137...
0.7044051
1
Returns array of all google font variations used for this theme.
Возвращает массив всех вариаций шрифта Google, используемых для этого темы.
public function get_google_fonts_used() { $fonts_used = array(); $settings = $this->get_settings(); $google_fonts = PUM_Integration_GoogleFonts::fetch_fonts(); if ( ! empty( $settings['title_font_family'] ) && is_string( $settings['title_font_family'] ) && array_key_exists( $settings['title_font_family'], $g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function options_typography_get_google_fonts() {\r\n\t// Google Font Defaults\r\n\t$google_faces = array(\r\n\t\t'Arvo, serif' => 'Arvo',\r\n\t\t'Copse, sans-serif' => 'Copse',\r\n\t\t'Droid Sans, sans-serif' => 'Droid Sans',\r\n\t\t'Droid Serif, serif' => 'Droid Serif',\r\n\t\t'Lobster, cursive' => 'Lobster',\r\n...
[ "0.7423655", "0.7343781", "0.72778636", "0.6820158", "0.6790386", "0.67241895", "0.66617966", "0.66569495", "0.663869", "0.6627201", "0.6598871", "0.65868145", "0.65792173", "0.653367", "0.6421591", "0.6371434", "0.63245696", "0.6307704", "0.62891906", "0.6275279", "0.6257955...
0.7356903
1
Allows for passive migration routines based on the current data version.
Позволяет использовать пассивные процедуры миграции на основе текущей версии данных.
public function passive_migration() { $this->doing_passive_migration = true; for ( $i = $this->data_version; $this->data_version < $this->model_version; $i ++ ) { // Process migration for current version. ex. current version is 2, runs pum_theme_passive_migration_2. do_action_ref_array( 'pum_theme_passive_mi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function upgrade_data()\n\t\t{\n\t\t\t// TODO: fix race condition by allowing users to run this manually\n\t\t\t\n\t\t\t$old_version = get_transient( 'wpcf7_pdf_forms_updated_old_version' );\n\t\t\tif( !$old_version )\n\t\t\t\treturn;\n\t\t\t\n\t\t\tdelete_transient( 'wpcf7_pdf_forms_updated_old_version' )...
[ "0.7154423", "0.66774815", "0.66486615", "0.6586198", "0.6525702", "0.6483988", "0.6391696", "0.63733137", "0.6312012", "0.6304019", "0.6287301", "0.6280875", "0.6249194", "0.62351406", "0.6229692", "0.6206547", "0.6176794", "0.6141029", "0.6135673", "0.61193436", "0.61160004...
0.76417816
0
Function that adds classes on body for page smooth scroll
Функция, добавляющая классы на body для плавного скролла страницы
function fiorello_mikado_page_smooth_scroll_class( $classes ) { //is smooth scroll enabled enabled? if ( fiorello_mikado_options()->getOptionValue( 'page_smooth_scroll' ) == 'yes' ) { $classes[] = 'mkdf-smooth-scroll'; } return $classes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function custom_body_class($classes) {\n if(is_page(1)) {\n $classes[] = 'homepage';\n return $classes;\n }\n if(is_page(2)) {\n $classes[] = 'aboutus';\n return $classes;\n }\n}", "function studio_add_body_class( $classes ) {\n\t$classes[] = 'landing-page';\n\treturn $classes...
[ "0.62375075", "0.62006503", "0.6112831", "0.61071473", "0.60967565", "0.6073686", "0.60260177", "0.60230905", "0.60230905", "0.601109", "0.59575415", "0.5926652", "0.5923863", "0.5889483", "0.5884641", "0.588391", "0.5883384", "0.5878262", "0.5876086", "0.58650714", "0.582225...
0.73803073
0
service for fetching the request object
сервис для получения объекта запроса
public function requestfetch() { $request = $this->container->get('request'); $freq_obj = $request->get('reqObj'); $fde_serialize = $this->decodeObjectAction($freq_obj); if (isset($fde_serialize)) { $de_serialize = $fde_serialize; } else { $de_ser...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_request();", "public function getRequestService();", "public function getRequest() {}", "public function getRequest() {}", "protected function getRequest() {}", "public function getRequest();", "public function getRequest();", "public function getRequest();", "public function ge...
[ "0.81280625", "0.7960217", "0.7726983", "0.7726983", "0.76326585", "0.76118374", "0.76118374", "0.76118374", "0.76118374", "0.76118374", "0.76118374", "0.76118374", "0.76118374", "0.76118374", "0.76118374", "0.76118374", "0.76118374", "0.76118374", "0.7610713", "0.7595958", "...
0.79754364
1
Factory method for creating Secrets.
Фабричный метод для создания секретов.
public static function create($key) { return $key instanceof Secret ? $key : new Secret($key); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function secret() {\n return new Secret($this->talker);\n }", "protected function createSeed() {\n return $this->ga->createSecret(24);\n }", "public function getSecret();", "public function getSecret();", "public function getSecret();", "public function create() {\n\t\t$obj = parent:...
[ "0.6816487", "0.67606467", "0.67310905", "0.67310905", "0.67310905", "0.65476793", "0.65374714", "0.64894503", "0.6453515", "0.63715386", "0.6332171", "0.6325682", "0.631389", "0.631389", "0.62766665", "0.6269016", "0.6237318", "0.6231867", "0.62098837", "0.61999565", "0.6196...
0.71678907
0
/Category Items Category Page Content
/Категории элементов страницы категории содержимое
public function category_page_get() { $categories_sql = 'select a.category_id, a.category, a.category_image from categories a where (select count(*) from items where a.category_id = items.category_id) > 0'; $categories = $this->my_database->passSQLAll($categories_sql); $result = []; if($categories) { foreach...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function categoriesAction() {\r\n\r\n //GET PAGE OBJECT\r\n $listingtype_id = $this->_getParam('listingtype_id', null);\r\n// $pageTable = Engine_Api::_()->getDbtable('pages', 'core');\r\n// $pageSelect = $pageTable->select()->where('name = ?', \"sitereview_index_categories\");\r\n// ...
[ "0.7335276", "0.7075536", "0.700441", "0.68471134", "0.6827147", "0.6809252", "0.6806972", "0.6719731", "0.667456", "0.6661585", "0.6646032", "0.6642617", "0.6564273", "0.6564025", "0.65408725", "0.6508785", "0.64929736", "0.6465479", "0.6461865", "0.6461865", "0.6458524", ...
0.71722186
1
Return the title of the markets page.
Верните заголовок страницы рынков.
public function title() { $title = t('Markets'); $current_path = \Drupal::service('path.current')->getPath(); $path_args = explode('/', $current_path); if (isset($path_args[3]) && $path_args[3] == 'markets' && !empty($path_args[2]) && $path_args[1] == 'currencies') { unset($path_args[3]); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPageTitle();", "private function _getPageTitle()\n {\n if (empty($this->_title)) {\n $this->_title = 'Hostel-J';\n }\n\n return $this->_title;\n }", "public function getSiteTitle(){\n\t\treturn $this->titlePage;\n\t}", "public function getTitle()\n\t{\...
[ "0.7451024", "0.74424386", "0.7401687", "0.7384087", "0.73689646", "0.7363208", "0.7358672", "0.7352418", "0.73013973", "0.7293877", "0.7293877", "0.72885484", "0.728825", "0.728825", "0.72856474", "0.7261679", "0.7187031", "0.7180561", "0.71622854", "0.7160168", "0.71555954"...
0.8039799
0
Displays a deploy history for a project
Показывает историю развертывания для проекта
public function actionHistory($id) { $project = $this->findModel($id); $searchModel = new DeploySearch(); $params = Yii::$app->request->queryParams; $params['DeploySearch']['project_id'] = $id; $dataProvider = $searchModel->search($params); return $this->render('his...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n $projectVersions = $em->getRepository('ProjectBundle:Common\\ProjectVersion')->findAll();\n\n return $this->render('ProjectBundle:common\\projectversion:index.html.twig', array(\n 'projectversions' =>...
[ "0.6486619", "0.6481601", "0.63681525", "0.6317769", "0.62955225", "0.621776", "0.60567194", "0.5976792", "0.59765464", "0.5971028", "0.59155893", "0.58645546", "0.58625317", "0.5843051", "0.5842797", "0.580952", "0.58039075", "0.5753858", "0.5747204", "0.5728399", "0.5719555...
0.72633994
0
Custom render function for Infinite Scroll.
Пользовательская функция рендеринга для бесконечного скролла.
function _k_infinite_scroll_render() { while ( have_posts() ) { the_post(); get_template_part( 'template-parts/content', get_post_format() ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wmb_jetpack_infinite_scroll_render() {\n\tget_template_part( 'loop' );\n}", "function perrymnmlist_infinite_scroll_render() {\r\n if ( have_posts() ) {\r\n while ( have_posts() ) {\r\n the_post();\r\n get_template_part( '/partials/summary', get_post_format() ); \r\n ...
[ "0.77278614", "0.7328074", "0.73186916", "0.73080736", "0.694382", "0.64954877", "0.629467", "0.61843985", "0.6127306", "0.60826546", "0.60810006", "0.5987693", "0.59826326", "0.5978449", "0.59758884", "0.59758884", "0.5967659", "0.59514165", "0.59302557", "0.59302557", "0.58...
0.744242
1
Get the next item from new batch
Получить следующий элемент из новой партии
private function nextItemFromNewBatch(): void { $this->currentBatch = $this->fetcher->fetchNext($this->maxBatchSize); if (empty($this->currentBatch)) { $this->current = null; } else { $this->next(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNextItem();", "public function next()\n\t{\n\t\t// Proceed to next item in current batch\n\t\t$this->currentBatchItemKey++;\n\t\t$this->processedItemCount++;\n\n\t\tif ($this->currentBatchItemKey >= $this->currentBatchItemCount) {\n\t\t\t// We just exceeded the capacity of the current batch. T...
[ "0.79005516", "0.7504926", "0.729109", "0.7157408", "0.71211493", "0.6946278", "0.68449587", "0.68104744", "0.6805572", "0.68044865", "0.68044865", "0.6802812", "0.67879945", "0.6756518", "0.6717385", "0.67083967", "0.67083967", "0.66974247", "0.6661022", "0.66423804", "0.662...
0.8425362
0
Get the location record associated with the locationData.
Получите запись о расположении, связанную с locationData.
public function location() { return $this->hasOne('App\Location', 'location_data_id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function location() {\n return $this->data->location;\n }", "public function getLocation()\n {\n if (null === $this->location) {\n $this->location = tx_rnbase::makeInstance(\n 'tx_mksearch_model_cal_Location',\n $this->record['location_id']\n ...
[ "0.68379635", "0.67483515", "0.672307", "0.6679235", "0.6633661", "0.6446065", "0.6432493", "0.63427025", "0.63425606", "0.63425606", "0.62923044", "0.627683", "0.6268409", "0.624102", "0.62407786", "0.6219654", "0.6218622", "0.6217615", "0.61830294", "0.61810404", "0.6173001...
0.70413125
0
Isset overloader. Will check to see if the given field exists on this object. Calls the hasField() method.
Проверка существования поля. Проверит, существует ли указанное поле в этом объекте. Вызывает метод hasField().
public function __isset($field) { if($this->hasField($field)) { return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final public function __isset($field) {\n\t\treturn $this->has($field);\n\t}", "public function hasField($field) {\n $funcNameSet = \"set$field\";\n $funcNameGet = \"get$field\";\n if(method_exists($this, $funcNameSet) || method_exists($this, $funcNameGet))\n return true;\n return property_exist...
[ "0.724879", "0.68649405", "0.68287176", "0.67663753", "0.66502905", "0.65747094", "0.6564111", "0.6492703", "0.648021", "0.6422425", "0.63939375", "0.63894457", "0.6364994", "0.6340543", "0.6282809", "0.6192647", "0.6175557", "0.61314946", "0.61139685", "0.6110472", "0.608632...
0.72557867
0
Checks if a field exists on this object. This should be overloaded in child classes.
Проверяет, существует ли поле в этом объекте. Это должен быть переопределён в дочерних классах.
public function hasField($field) { $funcNameSet = "set$field"; $funcNameGet = "get$field"; if(method_exists($this, $funcNameSet) || method_exists($this, $funcNameGet)) return true; return property_exists($this, $field) && $this->isProtected($field); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasField($field)\n {\n return property_exists($this, $field) || $this->hasDynamicData($field);\n }", "public function __isset($field) {\n if($this->hasField($field)) {\n return true;\n }\n return false;\n }", "public function hasField($field)\n {\n return i...
[ "0.7832746", "0.76568204", "0.76263607", "0.7564172", "0.75476944", "0.75161296", "0.75091624", "0.7492264", "0.7439598", "0.7427382", "0.7398749", "0.7392243", "0.7383979", "0.7368414", "0.7366878", "0.7359231", "0.7357786", "0.73295987", "0.7318561", "0.7298951", "0.7295691...
0.76614004
1
/ Delete Document by Ajax
/ Удалить документ через Ajax
public function deleteDocument(){ if($this->input->post('id')){ $response = $this->Ticket_model->delete_ticket_attachment($this->input->post('id')); if ($response==1) { echo json_encode(array('response'=>'success','message'=>sprintf(lang('deleted_successfully'),lang('page...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function document_del(){\n\t\t$id = $this->input->_request('id');\n\t\t$this->load->model(array('lms_model'));\n\t\t$this->lms_model->del($id);\n\t\techo json_encode(array('status'=>true,'ids'=>$id));\n\t}", "function delete ()\n {\n $doc_category_id = $this->input->post ( 'doc_category_id' );\n...
[ "0.75638264", "0.7496809", "0.74881035", "0.7393615", "0.7321278", "0.7321278", "0.7192533", "0.7181422", "0.716955", "0.716955", "0.716955", "0.7161779", "0.71409595", "0.713072", "0.7115727", "0.7039694", "0.70024776", "0.69749266", "0.69703794", "0.68633986", "0.6860277", ...
0.7606021
0
Consumes the next token and asserts it's the end of an object
Потребляет следующий токен и утверждает, что это конец объекта
public function endObject(): void { if ($this->peek() !== JsonToken::END_OBJECT) { throw new UnexpectedJsonTokenException( sprintf('Expected "%s", but found "%s"', JsonToken::END_OBJECT, $this->peek()) ); } $this->stack->pop(); $this->currentT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function beginObject(): void\n {\n if ($this->peek() !== JsonToken::BEGIN_OBJECT) {\n throw new UnexpectedJsonTokenException(\n sprintf('Expected \"%s\", but found \"%s\"', JsonToken::BEGIN_OBJECT, $this->peek())\n );\n }\n\n $this->stack->push(ne...
[ "0.6320975", "0.6248296", "0.61603075", "0.6058821", "0.60242945", "0.59587085", "0.5928596", "0.59053504", "0.5834991", "0.57972133", "0.5773901", "0.57662106", "0.5759702", "0.5743562", "0.57170403", "0.5711012", "0.5710671", "0.5649019", "0.5640637", "0.5600975", "0.554966...
0.7001617
0
Consumes the value of the next token, asserts it's a boolean and returns it
Потребляет значение следующего токена, утверждает, что оно является логическим и возвращает его
public function nextBoolean(): bool { if ($this->peek() !== JsonToken::BOOLEAN) { throw new UnexpectedJsonTokenException( sprintf('Expected "%s", but found "%s"', JsonToken::BOOLEAN, $this->peek()) ); } $this->currentToken = null; return $thi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function nextBoolean(): bool\n {\n $this->expect(JsonToken::BOOLEAN);\n\n $result = (bool)$this->pop();\n\n $this->incrementPathIndex();\n\n return $result;\n }", "protected function parseBoolean() {\r\n $retval = null;\r\n $c = chr($this->seqSource->peek())...
[ "0.7584865", "0.7258974", "0.6551692", "0.64498395", "0.64498395", "0.64498395", "0.6298171", "0.6289116", "0.6274388", "0.6274388", "0.6209348", "0.62046564", "0.6201619", "0.6170251", "0.6166818", "0.6160724", "0.61382353", "0.6029523", "0.60255384", "0.59906954", "0.597016...
0.7318754
1
Consumes the value of the next token, asserts it's a double and returns it
Потребляет значение следующего токена, утверждает, что оно является двойным, и возвращает его
public function nextDouble(): float { if ($this->peek() !== JsonToken::NUMBER) { throw new UnexpectedJsonTokenException( sprintf('Expected "%s", but found "%s"', JsonToken::NUMBER, $this->peek()) ); } $this->currentToken = null; return (float...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function nextDouble(): float\n {\n $this->expect(JsonToken::NUMBER);\n\n $result = (float)$this->pop();\n\n $this->incrementPathIndex();\n\n return $result;\n }", "public function parseDouble()\n {\n }", "public function readDouble(){ }", "public function getDou...
[ "0.7847024", "0.75604", "0.7233159", "0.721745", "0.7051648", "0.7051648", "0.675521", "0.675521", "0.66895664", "0.6674695", "0.65847504", "0.6502357", "0.6502357", "0.6457367", "0.644653", "0.6282948", "0.61568475", "0.6140826", "0.6090676", "0.6090676", "0.6019997", "0.5...
0.7791645
1
Consumes the value of the next token, asserts it's an int and returns it
Потребляет значение следующего токена, утверждает, что оно является целым числом, и возвращает его
public function nextInteger(): int { if ($this->peek() !== JsonToken::NUMBER) { throw new UnexpectedJsonTokenException( sprintf('Expected "%s", but found "%s"', JsonToken::NUMBER, $this->peek()) ); } $this->currentToken = null; return (int)$t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function nextInteger(): int\n {\n $this->expect(JsonToken::NUMBER);\n\n $result = (int)$this->pop();\n\n $this->incrementPathIndex();\n\n return $result;\n }", "private function processInteger() {\n if (!$this->isOfType('e'))\n $this->throwExcept...
[ "0.71694034", "0.69891846", "0.6795746", "0.675345", "0.63338566", "0.62505", "0.62425387", "0.6216768", "0.61807746", "0.61327827", "0.60231435", "0.60058403", "0.59437394", "0.5889734", "0.5867888", "0.586773", "0.586773", "0.58637637", "0.5860858", "0.5833571", "0.5805193"...
0.7214318
0
Consumes the next name and returns it
Потребляет следующее имя и возвращает его
public function nextName(): string { if ($this->peek() !== JsonToken::NAME) { throw new UnexpectedJsonTokenException( sprintf('Expected "%s", but found "%s"', JsonToken::NAME, $this->peek()) ); } /** @var StdClassIterator $iterator */ $iterato...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function consumeName(): string\n {\n $result = '';\n while (\n !$this->inputStream->isEndOfStream()\n && (\n $this->is2CodePointCheckValidEscape()\n || Definitions::isNameCodePoint($this->inputStream->peek())\n )\n ) {\n...
[ "0.7201162", "0.7031817", "0.6472818", "0.6459418", "0.6350319", "0.6225646", "0.595917", "0.59551686", "0.581901", "0.57954943", "0.57477236", "0.5713286", "0.57048494", "0.5704689", "0.5698542", "0.56979924", "0.56159157", "0.5591723", "0.5577454", "0.5539294", "0.55276376"...
0.7235004
0
Get gallery link for given image
Получить ссылку на галерею для заданного изображения
public function getGalleryUrl($image) { $params = array('faq' => $this->getFaq()->getFaqId() . '_' . urlencode(str_replace(array(' ', 'ä', 'ö', 'ü', 'ß'), array('_', 'ae', 'oe', 'ue', 'ss'), (strtolower($this->getFaq()->getQuestion()))))); if ($image) { $params['image'] = $image; r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_image_link()\n {\n }", "function get_gallery_image($gallery_id)\r\n\t{\r\n\t\treturn getField('SELECT v.image_filename FROM ('.create_sql_view_by_name_for_fields('image_filename, gallery_id, is_gallery_image', 'gallery_image').') v WHERE v.gallery_id = '.sqlValue($gallery_id).' AND v.i...
[ "0.723935", "0.72030705", "0.7117361", "0.7053799", "0.6997587", "0.69426316", "0.6854614", "0.6854614", "0.671457", "0.6655769", "0.6585207", "0.65169376", "0.6491131", "0.6476081", "0.6443568", "0.64379203", "0.64282906", "0.6419136", "0.64050454", "0.6398394", "0.63903445"...
0.74327487
0
Gets the current image
Получает текущее изображение
public function getCurrentImage() { return $this->getGalleryImages('current'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function GetImage() {\n\t\treturn $this->image;\n\t}", "public function image() {\n\t\treturn $this->_image;\n\t}", "public function getImage() {\n\t\treturn $this->image;\n\t}", "public function getImage() {\n\t\treturn $this->image;\n\t}", "public function getImage()\n\t{\n\t\treturn $this->image;\n\t}",...
[ "0.79906446", "0.79697675", "0.79341304", "0.79341304", "0.7881154", "0.7869231", "0.78636205", "0.7810801", "0.7800304", "0.7770621", "0.7763496", "0.77584326", "0.77314806", "0.77314806", "0.7727514", "0.77220714", "0.77220714", "0.77220714", "0.77220714", "0.77220714", "0....
0.8635127
0
Gets the previous image
Получает предыдущее изображение
public function getPreviousImage() { return $this->getGalleryImages('previous'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function previousImage () {}", "public function getPreviousImage() {\r\n \r\n $query = \"SELECT id FROM gallery_mig_image WHERE album_id = ? AND hidden = ? AND id < ? ORDER BY id DESC\";\r\n $Album = $this->getAlbum();\r\n \r\n $params = array(\r\n $Album->id,...
[ "0.90117896", "0.7800022", "0.7648864", "0.7439749", "0.7397206", "0.73504734", "0.73504734", "0.724523", "0.72433347", "0.71915066", "0.7179673", "0.71567184", "0.7155731", "0.7080428", "0.70223767", "0.7012464", "0.69723314", "0.6935089", "0.69335186", "0.6885236", "0.68625...
0.8882197
1
Gets the next image
Получает следующее изображение
public function getNextImage() { return $this->getGalleryImages('next'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function nextImage () {}", "function getNextImage(image $img): Image {\r\n\t\t\t$id = $img->getId();\r\n\t\t\tif ($id < $this->size()) {\r\n\t\t\t\t$img = $this->getImage($id+1);\r\n\t\t\t}\r\n\t\t\treturn $img;\r\n\t\t}", "public function getNextImage() {\r\n \r\n $query = \"SELECT id FRO...
[ "0.8760495", "0.79223174", "0.77840245", "0.76509446", "0.75020677", "0.68953156", "0.68953156", "0.6697361", "0.66943675", "0.66660285", "0.66574305", "0.6655668", "0.6599724", "0.6599498", "0.6556877", "0.65406394", "0.64700985", "0.64696914", "0.6426344", "0.64148283", "0....
0.83171135
1
Returns the current image's width
Возвращает ширину текущего изображения
public function getImageWidth() { $current = $this->getCurrentImage(); return $current['width']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getWidth()\n {\n return imagesx($this->currentImage);\n }", "public function width()\n {\n return imagesx($this->image);\n }", "public function getWidth() {\n return imagesx($this->image);\n }", "public function getImageWidth()\n {\n return $this->im...
[ "0.8885363", "0.86908644", "0.8638572", "0.859174", "0.85733753", "0.85489976", "0.85093415", "0.84855735", "0.8387392", "0.8348522", "0.8340286", "0.8312226", "0.82903785", "0.8288529", "0.82810956", "0.8280069", "0.8276674", "0.8276415", "0.82249177", "0.8211435", "0.815208...
0.90381765
0
show about page back
показать страницу о программе назад
public function ShowAboutBack() { $title="ABOUT-BACK"; $template = 'About_Back.phtml'; include 'views/LayoutBackend.phtml'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ShowEditeAboutBack()\n {\n $id_about=$_GET[\"ABOUT\"];\n $model=new About;\n $about=$model->CallAboutById($id_about);\n\n $title=\"EDITE-ABOUT-BACK\";\n $template = 'EDITE_ABOUT_BACK.phtml';\n include 'views/LayoutBackend.phtml';\n exit();\n }...
[ "0.78875256", "0.70718354", "0.6904567", "0.68632436", "0.68348503", "0.68311024", "0.67612255", "0.67570925", "0.6747632", "0.67411625", "0.6700162", "0.6672506", "0.6657704", "0.66574043", "0.665618", "0.66161954", "0.66099304", "0.6604943", "0.65966713", "0.65850216", "0.6...
0.73457426
1
Returns the type of the portal.
Возвращает тип портала.
public static function getPortalType() { if (defined('BX24_HOST_NAME')) { $type = self::TYPE_BITRIX24; } else { $type = self::TYPE_CP; } return $type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getType()\n {\n $type = $this->get('type');\n return $type;\n }", "public function get_type();", "public static function get_type();", "public function type()\n {\n return $this->get('type');\n }", "public function getType() {\n return $this->_type ?:...
[ "0.6827467", "0.6794706", "0.67250896", "0.67126673", "0.670686", "0.6702337", "0.6674696", "0.6674696", "0.6674696", "0.6674696", "0.6674696", "0.6674696", "0.6674696", "0.6674696", "0.6674696", "0.6674696", "0.6674696", "0.6674696", "0.6674696", "0.6674696", "0.6674696", ...
0.77845013
0
Converts an array into Bitrix\Main\Result object.
Преобразует массив в объект Bitrix\Main\Result.
private static function convertArrayObject(array $array) { $result = new Result(); if (!empty($array['DATA']) && is_array($array['DATA'])) { $result->setData($array['DATA']); } if (empty($array['OK'])) { if (is_array($array['ERROR'])) { foreach ($array['ERROR'] as $error) { $result-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function result_array();", "public static function fromArray(array $values): ResultInterface;", "public function transform(array $results);", "protected function transformResult(array $result): array\n {\n return $result;\n }", "protected function initializeResultArray() : arra...
[ "0.64316666", "0.6429525", "0.62973154", "0.6022386", "0.5986354", "0.59706926", "0.5927669", "0.5909913", "0.58968395", "0.5878574", "0.5861701", "0.5861701", "0.5861701", "0.5861701", "0.5818376", "0.58122206", "0.5809734", "0.5772359", "0.57600045", "0.57239264", "0.568602...
0.7219757
0