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
/ Plugin Name: Delete all duplicate posts Plugin URI: Description: Deletes duplicate posts based on their title Author: podz Version: 2.0 Author URI:
Название плагина: Delete all duplicate posts URI плагина: Описание: Удаляет дублирующиеся посты на основе их заголовка Автор: podz Версия: 2.0 URI автора:
function WPDeleteDuplicatePosts(){ global $wpduplicate; $wpdeletingpost = $wpduplicate->prefix; $wpduplicate->query("DELETE bad_rows . * FROM ".$wpdeletingpost."posts AS bad_rows INNER JOIN ( SELECT ".$wpdeletingpost."posts.post_title, MIN( ".$wpdeletingpost."posts.ID ) AS min_id FROM ".$wpdeletingpost."...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delte_duplicates( $args, $assoc_args ) {\n\t\t$assoc_args = $this->sanitize_delete_arguments( $assoc_args );\n\n\t\t$elements = $this->get_element_ids( $assoc_args );\n\n\t\t// Create progress bar\n\t\t$progress = \\WP_CLI\\Utils\\make_progress_bar( 'Processing', count( $elements ) );\n\t\t$duplica...
[ "0.65141547", "0.6273747", "0.6264055", "0.621475", "0.61659116", "0.6129118", "0.6123116", "0.6086943", "0.605388", "0.6049908", "0.59869903", "0.5985223", "0.5968297", "0.5966881", "0.5920729", "0.5919584", "0.5913836", "0.589093", "0.58699685", "0.5863577", "0.5861227", ...
0.74262786
0
Gets the traits that have been used in the current statement tree.
Получает черты, которые были использованы в текущем дереве выражений.
public function getTraitsUsed() { return $this->traitsUsed; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUsedTraits()\n {\n return $this->usedTraits;\n }", "public function getTraits()\n {\n return isset($this->traits) ? $this->traits : null;\n }", "public function traits(): array\n {\n return $this->getRealClass()->getTraitNames();\n }", "public functio...
[ "0.7149085", "0.69870394", "0.66478986", "0.6564809", "0.649433", "0.64754426", "0.6003822", "0.58499444", "0.57289314", "0.5683291", "0.5655966", "0.5525178", "0.5461697", "0.5445843", "0.54382765", "0.5407751", "0.5407751", "0.5236835", "0.5216404", "0.5056084", "0.50218034...
0.7340137
0
Creates the items added by createCalendarItems_addItem
Создает элементы, добавленные createCalendarItems_addItem
public function createCalendarItems() { if(!$this->have_started_createItem) { $this->createCalenderItems_shutdown(); throw new Exception ('No items added.'); } if(count($this->CreateItem->Items->CalendarItem) == 0) { $this->createCalenderItems_shutdown(); throw new Exception ('No items added.'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createCalendarItems_addItem($title, $text, $start, $end, $options, $primary_emailaddress = null)\n\t{\n\t\tif(!$this->have_started_createItem)\n\t\t\t$this->createCalendarItems_startup($primary_emailaddress);\n\t\tif(!is_array($options))\n\t\t\tthrow new Exception('Options must be array');\n\t\t\n\...
[ "0.6870669", "0.6640306", "0.6579311", "0.653937", "0.6532325", "0.63905203", "0.6223364", "0.62005496", "0.619992", "0.619989", "0.6107904", "0.60801214", "0.6065809", "0.60486716", "0.60174584", "0.59942716", "0.5993126", "0.598851", "0.5965741", "0.59578156", "0.5934517", ...
0.72819024
0
After creation of calendar items (or it has failed) we'll do some clean up
После создания элементов календаря (или если это завершилось неудачей) мы выполним некоторую очистку
protected function createCalenderItems_shutdown() { unset($this->CreateItem); $this->have_started_createItem = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createCalendarItems()\n\t{\n\t\tif(!$this->have_started_createItem)\n\t\t{\n\t\t\t$this->createCalenderItems_shutdown();\n\t\t\tthrow new Exception ('No items added.');\n\t\t}\n\t\tif(count($this->CreateItem->Items->CalendarItem) == 0)\n\t\t{\n\t\t\t$this->createCalenderItems_shutdown();\n\t\t\tthr...
[ "0.61189884", "0.60202163", "0.59121907", "0.5906392", "0.59041053", "0.585781", "0.57897973", "0.5757262", "0.57201475", "0.5714127", "0.571013", "0.57090247", "0.56981945", "0.5683007", "0.56612146", "0.5653961", "0.5653961", "0.5644074", "0.5644074", "0.5644074", "0.563096...
0.722821
0
Search admin by name
Поиск администратора по имени
public function ajxSearchAdminName($adminName) { $escaped_name = addcslashes($adminName, '%'); $sql = "SELECT user.*, group_concat(user_tel.tel_no) AS telNos FROM user JOIN user_tel on user.user_id =user_tel.user_id WHERE user.role = 'admin' AND (user.first_name LIKE :first_name OR user.last_name LI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function admin_search() {\n $this->search();\n }", "public function adminsearch()\n {\n $search_text = $_GET['admin_search'];\n $adminsearch = Personal::where('unique_id', 'like', '%'.$search_text.'%')->first();\n return view('admin.form.search', compact('adminsearch'));\...
[ "0.7254315", "0.6956809", "0.6902788", "0.67070204", "0.66880816", "0.66742784", "0.6588434", "0.6578965", "0.6512255", "0.64174885", "0.64141697", "0.64109737", "0.6408075", "0.640226", "0.6349702", "0.633511", "0.62447137", "0.6207265", "0.61916727", "0.6177404", "0.6149559...
0.7335398
0
Search admin by NIC
Поиск администратора по НИКу
public function ajxSearchAdminNic($nic) { $escaped_name = addcslashes($nic, '%'); $sql = "SELECT user.*, group_concat(user_tel.tel_no) AS telNos FROM user JOIN user_tel on user.user_id =user_tel.user_id WHERE user.role = 'admin' AND user.nic LIKE :nic GROUP BY user.user_id"; $st = $this->db...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajxSearchOfficerNic($nic)\n {\n $escaped_name = addcslashes($nic, '%');\n $sql = \"SELECT user.*, group_concat(user_tel.tel_no) AS telNos FROM user JOIN user_tel on user.user_id =user_tel.user_id WHERE user.role = 'officer' AND user.nic LIKE :nic GROUP BY user.user_id\";\n ...
[ "0.6976208", "0.6172626", "0.608168", "0.60680014", "0.5933701", "0.5898829", "0.58181214", "0.57064575", "0.57007575", "0.5676884", "0.5657286", "0.5621871", "0.5551557", "0.5481166", "0.5451713", "0.5451045", "0.54403055", "0.5423367", "0.54198116", "0.5379471", "0.53743625...
0.75962716
0
Creates a new item from $assocArray and inserts into DB
Создает новый элемент из $assocArray и вставляет в БД
public function addNewItem($assocArray) { $item = \Entity\Entity::factory()->create(); foreach ($assocArray as $field=>$value) { $item->set($field,is_bool($value) ? (int) $value : $value); } $item->save(); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function insertCar($carArray){\n// $carArray[self::CAR] = $carNumber;\n $cars = new Cars();\n $cars->carNumber = (int)$carArray[self::CAR];\n $cars->driver = $carArray[self::DRIVER];\n $cars->save();\n }", "public function insert(array $item);", "public function in...
[ "0.617941", "0.60906285", "0.5967284", "0.5937875", "0.5935488", "0.5795357", "0.5770633", "0.5763998", "0.57589686", "0.5755001", "0.57496864", "0.57464373", "0.5733892", "0.5691879", "0.5689302", "0.568698", "0.5656346", "0.5642834", "0.5642834", "0.56291413", "0.5626443", ...
0.7032333
0
/ Get tb_am_user by id_asset
/ Получить tb_am_user по id_asset
function get_tb_am_user($id_asset) { return $this->db->get_where('tb_im_users',array('id_asset'=>$id_asset))->row_array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserID($asset_id)\n\t{\n\t\treturn $Asset=Asset::find($asset_id)->user_id;\n\t}", "function update_tb_am_user($id_asset,$params)\n {\n $this->db->where('id_asset',$id_asset);\n return $this->db->update('tb_im_users',$params);\n }", "function delete_tb_am_user($id_asset)\n...
[ "0.7403394", "0.6598887", "0.6487585", "0.62845427", "0.62229496", "0.61919236", "0.61524796", "0.6144985", "0.6127395", "0.61155236", "0.61130875", "0.61032766", "0.6097282", "0.6075978", "0.6075782", "0.6061625", "0.6055334", "0.6055334", "0.60349035", "0.60205424", "0.6020...
0.8643089
0
/ Get all tb_am_users count
/ Получить количество tb_am_users
function get_all_tb_am_users_count() { $this->db->from('tb_im_users'); return $this->db->count_all_results(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUsersCount();", "public function countAllUsers(){\n $totalusers = self::count_all();\n return $totalusers;\n \n }", "function get_all_tbl_user_count()\n {\n $this->db->from('tbl_user');\n return $this->db->count_all_results();\n }", "public functio...
[ "0.81133425", "0.8034314", "0.80024785", "0.79542047", "0.7828262", "0.77696705", "0.7673436", "0.7636951", "0.7620449", "0.75866085", "0.75822216", "0.7549424", "0.75413334", "0.7514459", "0.7499681", "0.74942774", "0.7481643", "0.74518466", "0.7433878", "0.7433672", "0.7412...
0.8799576
0
This Environment class instance represents the Zoho CRM Sandbox Environment in US Domain.
Экземпляр класса Environment представляет среду Zoho CRM Sandbox в зоне US.
public static function SANDBOX() { self::$US = new USDataCenter(); if (USDataCenter::$SANDBOX == null) { USDataCenter::$SANDBOX = DataCenter::setEnvironment("https://sandbox.zohoapis.com", self::$US->getIAMUrl(), self::$US->getFileUploadUrl()); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function environment();", "public function environment()\n {\n // TODO: Implement environment() method.\n }", "public function get_environment() {\n\t\treturn 'sandbox' === $this->environment ? 'sandbox' : 'live';\n\t}", "public static function environment() {\n\t\t\tstatic $environment = null;\n...
[ "0.64204216", "0.6368073", "0.61984587", "0.60643154", "0.5932573", "0.5919779", "0.57946247", "0.5679766", "0.5604337", "0.5561302", "0.55369765", "0.55354", "0.5488249", "0.54832673", "0.54832673", "0.54487705", "0.5440723", "0.5430773", "0.539919", "0.5383877", "0.5369295"...
0.7041577
0
Check if seasons api works
Проверьте, работает ли API сезонов
public function testGetSeasons() { $championship = Championship::first(); $response = $this->get('/api/seasons/' . $championship->id); if ($response->getStatusCode() == 200 || $response->getStatusCode() == 204) { if ($response->getStatusCode() == 200) { $respons...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function validateSeason() {\n $this->season = 'ALL';\n }", "function get_seasonal_animes(){\n $url = \"https://api.jikan.moe/v3/season/\";\n $year = date(\"Y\");\n $season = get_season((int)date(\"m\"));\n $url_build = $url.$year.\"/\".$season;\n\n $contents = file_get_contents($u...
[ "0.6505487", "0.6454913", "0.61530226", "0.6060564", "0.60341495", "0.5924521", "0.59197", "0.5896501", "0.5891313", "0.58434415", "0.5843438", "0.5799296", "0.57882285", "0.5783515", "0.5774735", "0.5733099", "0.56977075", "0.5625272", "0.55929226", "0.558735", "0.55581045",...
0.7163228
0
Test if matchdays api works
Проверить, работает ли API матчдэйсов
public function testGetMatchdays() { $season = Season::first(); $response = $this->get('/api/matchdays/' . $season->id); if ($response->getStatusCode() == 200 || $response->getStatusCode() == 204) { if ($response->getStatusCode() == 200) { $response->assertJsonS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testWeekly()\n {\n $response = $this->get('/ringkasan-mingguan');\n\n $response->assertStatus(200);\n }", "public function UpcomingResultYesterday () {\n // die('ok');\n $resultInclude = array(\n 'homeTeam' , 'awayTeam' , 'odds'\n );\n $m...
[ "0.6203612", "0.61938256", "0.6144069", "0.59086293", "0.5895294", "0.58708", "0.5790913", "0.5780507", "0.577458", "0.5752659", "0.5729209", "0.5723081", "0.5719948", "0.56870896", "0.56752807", "0.5668706", "0.56417197", "0.563634", "0.56346124", "0.563402", "0.56307906", ...
0.7709998
0
Test Patch Match api
Тестирование API соответствия патча
public function testPatchMatch() { $match = Match::first(); $request = [ 'id' => $match->id, 'first_team_score' => 1, 'second_team_score' => 1 ]; $response = $this->patch('/api/match/', $request); if ($response->getStatusCode() == 200) {...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testProxyPATCHNode()\n {\n }", "public function testPatch()\n\t{\n\t\t$this->transport->expects($this->once())\n\t\t\t->method('request')\n\t\t\t->with('PATCH', new JUri('http://example.com'), array('key' => 'value'), array('testHeader'))\n\t\t\t->will($this->returnValue('ReturnString'));\n...
[ "0.70509106", "0.70185584", "0.69841534", "0.69534564", "0.69250715", "0.676018", "0.67438513", "0.6738576", "0.6666749", "0.6642802", "0.66345006", "0.6613905", "0.6551014", "0.65433764", "0.6530721", "0.6519295", "0.65092146", "0.65026456", "0.64747435", "0.6470148", "0.642...
0.75508004
0
Test match post api
Test match post api
public function testPostMatch() { $sport = Sport::firstOrFail(); $championship = $sport->championship()->first(); $season = Season::whereChampionshipId($championship->id)->first(); $matchday = Matchday::whereSeasonId($season->id)->first(); $teams = Team::whereChampionshipId($...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testOnlyPost() {\n $response = $this->post('/match');\n $response->assertStatus(200);\n\n $response = $this->put('/match');\n $response->assertStatus(405);\n\n $response = $this->get('/match');\n $response->assertStatus(405);\n }", "function POST($matc...
[ "0.7755007", "0.7207059", "0.71818906", "0.70302486", "0.6932332", "0.6904523", "0.6878852", "0.6830189", "0.6815214", "0.6809224", "0.6804134", "0.6800151", "0.679724", "0.67965347", "0.6746222", "0.67371", "0.6692771", "0.66847086", "0.6672428", "0.6650537", "0.6646877", ...
0.73602897
1
/ TBD perform PK compression, based on values of data each column in PK becomes a key of resulting array $records: array of arrays, of count > $pk_count
/ TBD выполнить сжатие PK, основываясь на значениях данных, каждая колонка в PK становится ключом результирующего массива $records: массив массивов, количество которых больше $pk_count
function aggregate_pk_table($records, $pk_count) { $recursive = function($c) { }; $aa = array(); $pk = array_pad(array(), $pk_count, null); foreach($records as $record) { //$vs = array_values($r); $i = 0; $rr = $aa; foreach($record as $value) { if ($...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getPrimaryKeyData(array $data)\n {\n $pk = array();\n foreach($this->primaryKeys as $primaryKey){\n if(array_key_exists($primaryKey, $data)){\n $pk[$primaryKey] = $data[$primaryKey];\n }\n }\n return $pk;\n }", "function dbQu...
[ "0.5656955", "0.5563204", "0.5316831", "0.52667606", "0.51853335", "0.5167197", "0.51592004", "0.5159141", "0.5155975", "0.5085571", "0.5081765", "0.5074231", "0.50702107", "0.50573516", "0.50571", "0.5052878", "0.50163823", "0.5001481", "0.50004786", "0.5000367", "0.4999454"...
0.71740204
0
Enable link manager on wpadmin page.
Включите менеджер ссылок на странице wpadmin.
protected function link_manager() { add_filter( 'pre_option_link_manager_enabled', '__return_true' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function autolinkAddPages() {\r\n\tadd_options_page('AutoLink Options', 'AutoLinks', 8, __FILE__, 'autolinkAddAdminPage');\r\n}", "function addAdminPage()\r\n\t{\r\n\t\t$adminPage = add_options_page('Auto Content Links Options', 'Auto Content Links', 'administrator', 'auto-content-links', array($this, 'admin'));...
[ "0.75666744", "0.7272842", "0.7141191", "0.7060666", "0.698221", "0.6910204", "0.6873137", "0.6776463", "0.67110544", "0.6705361", "0.66422296", "0.66249555", "0.6614838", "0.66089666", "0.6565333", "0.6525619", "0.65174526", "0.6514701", "0.6511804", "0.65021354", "0.6497603...
0.8331434
0
Sets the session ID
Устанавливает идентификатор сеанса
public function setSessionId($id) { $this->sessionID = $id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setSessionId($id);", "public function setSessionID($id)\n {\n Session::set($this->getSessionKey(), $id);\n }", "function setSessionID($session)\n\t{\n\t\t$this->user_session = $session;\n\t}", "public function set_id( $id ) {\n\t\t$this->id = $this->is_valid_id( $id ) ? $id : $th...
[ "0.81643647", "0.7999125", "0.79622465", "0.7850915", "0.7830858", "0.7830858", "0.7679876", "0.75380594", "0.75380594", "0.74766386", "0.74766386", "0.74027103", "0.7271629", "0.72398293", "0.7232351", "0.717739", "0.71740013", "0.7114016", "0.70938736", "0.70616627", "0.701...
0.8191909
0
Sets the client IP address
Устанавливает IP-адрес клиента
public function setClientIp($ip) { $this->clientIP = $ip; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function setClientIP() {\r\n $this->clientIP = $_SERVER['REMOTE_ADDR'];\r\n }", "protected function setClientIp($clientIp)\n {\n $this->clientIp = $clientIp;\n }", "private function setUsersIpAddress()\n {\n $CIP = ( ! isset($_SERVER['HTTP_CLIENT_IP'])) ? FALSE : ...
[ "0.8776662", "0.74363893", "0.73351556", "0.73313886", "0.72851944", "0.7169082", "0.7134694", "0.71125805", "0.70614475", "0.7020477", "0.69795203", "0.69795203", "0.6978725", "0.6836867", "0.68145025", "0.678169", "0.6767426", "0.6720543", "0.6656844", "0.66220576", "0.6560...
0.8196065
1
CircleBurst Main Helper Function Creates a set of Circles relative in size to Wallpaper & Total amount of circles to build
Основная вспомогательная функция CircleBurst создает набор окружностей, размер которых относится к размеру обоев, и общее количество окружностей для построения
public function borderBurstCircles($bbP = array(), $tcs) { // Compute Circle Size // First Circle size is relative to Wallpaper size / half of total colors // Additional Circles are relative [%]PERCENT of primary circle size if ($bbP["counter"] === 1) { $cSize = intval(ro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function DrawCircle(int $centerX, int $centerY, float $radius, \\raylib\\Color $color): void { }", "function createCircle($mac, $parentID){\n\t\n\tGLOBAL $CircleGroups;\n\tGLOBAL $Profil_Plugwise_Leistung;\n \tGLOBAL $Profil_Plugwise_Verbrauch;\n \tGLOBAL $Profil_Plugwise_Switch;\n\n // Archive ID ermit...
[ "0.5951404", "0.5759042", "0.56529266", "0.56316066", "0.5629406", "0.5624095", "0.5573912", "0.5560994", "0.5546308", "0.54957306", "0.5492205", "0.5460458", "0.54564494", "0.5375243", "0.53589493", "0.52946603", "0.52870804", "0.52409756", "0.52240103", "0.5195231", "0.5194...
0.7728812
0
Are we allowed to use Buspakje by preferences from Magento
Можно ли использовать Buspakje на основе предпочтений из Magento
private function canUseBuspakje() { return Mage::helper('postnl')->canUseBuspakje(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _isAllowed()\n {\n return Mage::getSingleton('admin/session')->isAllowed('bs_data/kpi');\n }", "protected function _isAllowed()\t{\r\n\t\treturn Mage::getSingleton('admin/session')->isAllowed('stagem_estimator/addon');\r\n\t}", "protected function _isAllowed()\n {\n re...
[ "0.63418347", "0.62205136", "0.6215853", "0.62074816", "0.61892384", "0.6178337", "0.6077797", "0.60502857", "0.604645", "0.6005992", "0.6004616", "0.59875774", "0.5968961", "0.5953756", "0.59403855", "0.59368205", "0.5928259", "0.591194", "0.59015733", "0.5900413", "0.586212...
0.7481228
0
Is this a Dutch shipment
Это дутчевский груз?
private function isDutchShipment($order) { return $order->getShippingAddress()->getCountry() == 'NL'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function is_dutch_project(): bool {\n\t\t$attributes = $this->get_attributes();\n\t\tif ( ! isset( $attributes[ Taxonomy_Attribute::COUNTRY()->value ] ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn 'nederland' === $attributes[ Taxonomy_Attribute::COUNTRY()->value ]->get_slugs()[0];\n\t}", "public functio...
[ "0.66504335", "0.5971561", "0.5970947", "0.5847394", "0.58457536", "0.5711233", "0.57003045", "0.5681472", "0.5677878", "0.5649732", "0.5646872", "0.5629978", "0.55881906", "0.5543663", "0.55426043", "0.55418426", "0.5534139", "0.5517887", "0.5510017", "0.5508745", "0.5500996...
0.7298088
0
Check type of share and return $URL or FALSE
Проверьте тип доли и верните $URL или FALSE
function share_check( $type='' ){ $url = array( 'twitter' => 'http://twitter.com/share', 'facebook' => 'http://facebook.com/sharer.php', 'buzz' => 'http://www.google.com/buzz/post', 'vkontakte' => 'http://vkontakte.ru/share.php', 'google' => 'https://plus.google.com/share' ); return (isset...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function share_url( $type='', $args=array() ){\r\n\t\t$url = share_check( $type );\r\n\t\tif( $url === FALSE ){\r\n\t\t\tlog_message( 'debug', 'Please check your type share_url('.$type.')' );\r\n\t\t\treturn \"#ERROR-check_share_url_type\";\r\n\t\t}\r\n\r\n\t\t$params = array();\r\n\t\tif( $type == 'twitter' ){\r\...
[ "0.6970071", "0.68104225", "0.65187883", "0.64945376", "0.64650184", "0.64126647", "0.6399754", "0.6369455", "0.63674027", "0.632698", "0.6241091", "0.61705804", "0.6107829", "0.61018324", "0.6072821", "0.60691047", "0.60688263", "0.6067543", "0.601865", "0.5969873", "0.59580...
0.8338786
0
/ Get tembusan by idtembusan
/ Получить тембусан по idtembusan
function get_tembusan($idtembusan) { return $this->db->get_where('tembusan',array('idtembusan'=>$idtembusan))->row_array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get($anuncio_id);", "public function getByMuatanId($id) {\n $this->db->select('transaksi.*, wilayah.wilayah');\n $this->db->join('wilayah', 'transaksi.id_wilayah = wilayah.id_wilayah');\n return $this->db->get_where($this->table, [\"id_muatan\" => $id])->result();\n }", ...
[ "0.71748364", "0.710662", "0.69803923", "0.6962689", "0.68908274", "0.68194795", "0.6786834", "0.6778495", "0.67555374", "0.6742609", "0.6704188", "0.6668232", "0.6655376", "0.6653866", "0.66365004", "0.66251296", "0.66251296", "0.6616579", "0.6615799", "0.6615799", "0.660528...
0.7913396
0
/ Get all tembusan
/ Получить все тембусан
function get_all_tembusan() { $this->db->order_by('idtembusan', 'desc'); return $this->db->get('tembusan')->result_array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readAllTalla()\n {\n $sql = 'SELECT id_talla, talla, descripcion\n FROM talla\n ORDER BY talla';\n $params = null;\n return Database::getRows($sql, $params);\n }", "public function queryAll(){\n\t\t$sql = 'SELECT * FROM kelas_tugas';\n\t\t$...
[ "0.75476587", "0.7444052", "0.7444052", "0.7416156", "0.74082154", "0.74082154", "0.74082154", "0.74082154", "0.74082154", "0.74082154", "0.74082154", "0.74082154", "0.74082154", "0.74082154", "0.74082154", "0.74082154", "0.74082154", "0.74082154", "0.74082154", "0.74082154", ...
0.773565
0
Returns the description for a test suite.
Возвращает описание для набора тестов.
private function _DescribeSuite(\PHPUnit_Framework_TestSuite $suite) { $count = $suite->Count(); return sprintf('%d %s from %s', $count, $this->_Plural('test', $count), $suite->GetName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDescription()\n {\n $this->generate(\n $this->getSuiteDocument(),\n array(\n 'description' => 'Hello World',\n )\n );\n\n $output = $this->getOutput()->fetch();\n $this->assertContains('Hello World', $output);\n }...
[ "0.7173694", "0.71301293", "0.6668796", "0.6597055", "0.64113533", "0.64113533", "0.63632286", "0.63274723", "0.63192445", "0.63115025", "0.6276186", "0.6161061", "0.61396676", "0.6087061", "0.6018948", "0.6016641", "0.5982888", "0.5947298", "0.59311986", "0.5919993", "0.5918...
0.71727055
1
Returns the test suite marker.
Возвращает маркер набора тестов.
private function _SuiteMarker() { if ($this->suite_depth == 0) return '[==========]'; else return '[----------]'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSuite()\n {\n return $this->_testSuite;\n }", "public function getSuite()\n {\n return $this->suite;\n }", "public function getSuite(/* ... */)\n {\n return $this->_suite;\n }", "protected function _getSuite() {\n\t\treturn Deck::getSuite($this->_suit...
[ "0.66387874", "0.64410025", "0.63761985", "0.6007699", "0.5677168", "0.5583761", "0.556973", "0.5498074", "0.5461612", "0.5449792", "0.5439546", "0.5406145", "0.5400041", "0.53696096", "0.53184605", "0.53184605", "0.53184605", "0.53184605", "0.52415097", "0.5202266", "0.51772...
0.7885607
0
Colors |$str| to be a certain |$color|.
Цвета |$str| должны быть определенным |$color|.
private function _Color($str, $color) { $color_code = ''; switch ($color) { case self::COLOR_RED: $color_code = '0;31'; break; case self::COLOR_GREEN: $color_code = '0;32'; break; case self::COLOR_BLUE: $color_code = '0;34'; break; case self::COL...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function doColor($str) {\n return'#'.substr($str, 0, 6);\n }", "public static function colorString(string $string, null|string $color=self::GREEN):string{\n return \"\\033[\".$color.\"m\".$string.\"\\033[0m\"; \n }", "public static function color($str)\r\n\t{\r\n\t\treturn (bool) pre...
[ "0.75935346", "0.72392267", "0.7099668", "0.702741", "0.6982632", "0.668258", "0.6672047", "0.6565811", "0.65591556", "0.65473515", "0.6437841", "0.6389784", "0.63486", "0.63409907", "0.628386", "0.6224405", "0.6164607", "0.6076727", "0.60761803", "0.60316145", "0.60185", "...
0.82818407
0
Apply resample mode during resizing: slightly more CPU usage but smoother rendering.
Применять режим пересэмплирования при изменении размера: немного большее использование CPU, но более плавная отрисовка.
public function resample(): self { $this->resizeMode = static::RESAMPLE; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function resampleImage ($x_resolution, $y_resolution, $filter, $blur) {}", "function resampleToWidth($width)\n {\n //\n // h1 x\n // -- = --\n // w1 w2\n //\n // So the formula is (w2 * h1) / w1\n \n $height = floor(($width * imagesy($this->img)) ...
[ "0.63775426", "0.6263699", "0.60987103", "0.6071684", "0.59455323", "0.58370095", "0.5823277", "0.58065003", "0.5769998", "0.57435966", "0.5732793", "0.56849074", "0.5384096", "0.5343785", "0.5339548", "0.53153336", "0.53142023", "0.529332", "0.52826226", "0.52660966", "0.522...
0.72176445
0
Get an array of all users in a channel, active or inactive
Получите массив всех пользователей в канале, активных или неактивных
public function getChannelUsers($channel) { $users = array(); $stmt = $this->prepare('SELECT `users`.`name`, `user_channels`.`permissions` FROM `user_channels` INNER JOIN `users` ON `user_channels`.`user` = `users`.`id` WHERE `channel` = ?;'); $stmt->execute(array($channel)); while (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUsersFromChannel() {\n if ( empty($this->redisChannel) ) {\n return null;\n }\n $users = Redis::smembers('patterns:online:user:' . $this->redisChannel);\n return str_replace(\"online:user:\" . $this->redisChannel . \":\", \"\", $users);\n }", "static f...
[ "0.7629945", "0.73041546", "0.72175205", "0.7211917", "0.71566504", "0.7105382", "0.7098097", "0.7068451", "0.70493656", "0.70325583", "0.7006368", "0.6960099", "0.6946155", "0.692964", "0.68869203", "0.6883586", "0.6883586", "0.6883586", "0.68825155", "0.6876432", "0.6856828...
0.77400374
0
Get offline messages of a user
Получить офлайн-сообщения пользователя
public function getOfflineMessages(User $user, $limit = 30) { $result = array(); $stmt = $this->prepare(" SELECT `users`.`name` AS `from`, `message`, `date` FROM `events` INNER JOIN `users` ON `users`.`id` = `userid` WHERE `type` = 'message' AND `to` =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function d4os_io_db_os_services_offline_message_retrievemessages($params) {\n $uuid = $params['Guid'];\n\n // get the messages\n $messages_list = array();\n d4os_io_db_set_active('os_offline_message');\n $messages = db_query(\"SELECT * FROM {offline_msgs} WHERE uuid = '%s'\", array($uuid));\n while ($message...
[ "0.7306152", "0.6908733", "0.6628025", "0.65874237", "0.6568397", "0.65538496", "0.652186", "0.65070957", "0.6500318", "0.6448334", "0.64132744", "0.64126164", "0.6392788", "0.639088", "0.638896", "0.638456", "0.6383", "0.63727784", "0.637039", "0.63689536", "0.63560504", "...
0.7170043
1
Get user permissions in a channel
Получить разрешения пользователя в канале
public function getUserChannelPermissions($userid, $channel) { $stmt = $this->prepare('SELECT `permissions` FROM `user_channels` WHERE `user` = ? AND `channel` = ?'); $stmt->execute(array($userid, $channel)); $result = $stmt->fetch(); $stmt->closeCursor(); return $result != n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserPermissions();", "public function getPermissions();", "public function getPermissions();", "public function getPermissions();", "public function getPermissions();", "public function getPermissions();", "public static function getPermissions(): array;", "public function getPermi...
[ "0.73796403", "0.6919773", "0.6919773", "0.6919773", "0.6919773", "0.6919773", "0.6630737", "0.6611222", "0.6548014", "0.6548014", "0.6534926", "0.6513412", "0.65025085", "0.64989847", "0.64959127", "0.6448332", "0.6438304", "0.6417366", "0.64079523", "0.6369564", "0.63382983...
0.7279114
1
=============================================================================================== SECTION: Player.permissions DataHandler definitions
=============================================================================================== ОТДЕЛ: Player.permissions DataHandler определения
function handle_player_build_permissions_handler( $name, $player, $ds ) { $details = array ( "key" => "permission" , "post_processor" => Callback::for_method($this, "fix_permission_type") , "load_filter" => Callback::for_method($this, "filter_out_stale_permissions...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function definePermissions();", "public function permissions();", "public function permissions();", "public function permissions();", "public function permissions();", "public function permissions();", "public function permission();", "protected function initPermissions() {}", "protected fun...
[ "0.7308772", "0.70952165", "0.70952165", "0.70952165", "0.70952165", "0.70952165", "0.6750863", "0.67433923", "0.6742012", "0.66267955", "0.65808254", "0.6464779", "0.64644283", "0.64644283", "0.64644283", "0.64644283", "0.64644283", "0.6453384", "0.6450726", "0.6354449", "0....
0.74404025
0
Save state into the session
Сохранить состояние в сессию
public function saveState() { $this->session->set('itkg_consumer.oauth', $this); $this->session->set('itkg_consumer.oauth_values', array( 'secret' => $this->secret, 'state' => $this->state, 'token' => $this->token )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function persistState() {\n\t\t$session = Environment::getSession(\"insertingBook\");\n\t\t$session->setExpiration(1800); // 30 minutes\n\t\t$session[\"state\"] = $this->state;\n\t}", "public function storeState($state){\n\t\t\\Session::set('state',$state);\n\t}", "public function storeGameState()\n ...
[ "0.8314679", "0.79927653", "0.78138167", "0.78062326", "0.7737698", "0.7646623", "0.76410806", "0.7639285", "0.76018673", "0.75480235", "0.7542274", "0.7430561", "0.74198437", "0.73874307", "0.73511964", "0.7334063", "0.7302646", "0.7290327", "0.7289837", "0.72430694", "0.721...
0.81786364
1
Converts keyVal dictionary instance variable into string containing xmlwrapped key=>value pairs
Преобразует переменную keyVal объекта dictionary в строку, содержащую xmlwrapped пары ключ=>значение
public function getXML() { $xml = ""; foreach ($this->keyVal as $key => $val) { if (isset($val)) { $xml .= "<key>" . $key . "</key>\n"; if ($key == "PayloadContent") { $xml .= "<array>\n" . implode($val) . "</array>\n"; } else { $xml .= $this->wrapVal($val) . "\n"; } } } return $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function wrapKey($key)\n {\n return '<' . $key . '>';\n }", "static public function PrepareInfoItemXML($key, $value)\n{\n\n\treturn str_replace( array(\"#Key\", \"#Value\"), array(htmlentities($key), htmlentities($value)), self::$XiPayInfoItemTemplate);\n}", "public function __toString()...
[ "0.6070489", "0.606479", "0.59306276", "0.591122", "0.58757174", "0.58082664", "0.5777976", "0.57665664", "0.5717718", "0.5711691", "0.56745964", "0.5668611", "0.56606054", "0.56580335", "0.5634288", "0.55571556", "0.55403763", "0.54979724", "0.54695326", "0.5459727", "0.5448...
0.7188442
0
Uses bash command uuidgen to generate a Universally Unique IDentifier (UUID), a 128bit value guaranteed to be unique over both space and time, for use as the value of PayloadUUID
Использует команду bash uuidgen для генерации универсального уникального идентификатора (UUID), 128-битного значения, гарантирующего уникальность в пространстве и времени, для использования в качестве значения PayloadUUID
protected function gen_uuid() { return rtrim(shell_exec("uuidgen")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function gen_uuid() {\n return sprintf( '%04x%04x-%04x-%04x-%04x-%04x%04x%04x',\n mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ),\n mt_rand( 0, 0xffff ),\n mt_rand( 0, 0x0fff ) | 0x4000,\n mt_rand( 0, 0x3fff ) | 0x8000,\n mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ), mt_rand( 0, 0xf...
[ "0.7640805", "0.75381434", "0.75273776", "0.7523869", "0.750293", "0.7479167", "0.73948497", "0.7383016", "0.7360744", "0.7313029", "0.7268972", "0.7261097", "0.72363424", "0.72335154", "0.72330666", "0.7221745", "0.72120714", "0.7198289", "0.7196583", "0.71770084", "0.717182...
0.79633933
0
Get mail head file.
Получить файл заголовка почты.
public function getHeadMailFile() { return realpath(__DIR__ . '/../../etc/header.html'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getHead(){\n\t\t$ct = new EmailHeaderContentType($this->contentType);\n\t\tif (count($this->childParts) !== 0){\n\t\t\t$ct->setParameter(\"boundary\", $this->boundary);\n\t\t}\n\t\tif ($this->charset != ''){\n\t\t\t$ct->setParameter(\"charset\", $this->charset);\n\t\t}\n\t\tif ($this->name != ''){\n\t\t\t...
[ "0.73384225", "0.7258412", "0.68330175", "0.6464462", "0.6419506", "0.63040584", "0.6300542", "0.62987334", "0.6286506", "0.62159187", "0.61717004", "0.6146718", "0.61323005", "0.611944", "0.60879636", "0.60718256", "0.606984", "0.60594714", "0.6048857", "0.6048857", "0.60488...
0.8484462
0
Get mail footer file.
Получить файл подвала электронной почты.
public function getFooterMailFile() { return realpath(__DIR__ . '/../../etc/footer.html'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function getFooter()\n\t{\n\t\techo file_get_contents(\"templates/footer.php\");\n\t}", "public function _getMailFooter() {\n\t\treturn $this->_mailFooter;\n\t}", "public function getCustomFooter() {\n if ($this->_exists) { //if exists...\n return $this->_realpath . '/footer.php';\n ...
[ "0.7699289", "0.7611964", "0.75121003", "0.7278595", "0.72729504", "0.72483826", "0.7209986", "0.7101122", "0.7023874", "0.69468236", "0.6912918", "0.6865055", "0.6834331", "0.6818617", "0.681208", "0.68067056", "0.67950326", "0.6776779", "0.67693514", "0.6731225", "0.6710802...
0.869189
0
Find Mage Path into $dir.
Найдите путь Mage в $dir.
private function _findMagePathInto($dir) { if ($this->_isRoot($dir)) { return false; } else if ($this->_isMageDir($dir)) { return $dir; } else { return $this->_findMagePathInto(dirname($dir)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function searchPath(): string;", "abstract protected function locateInSyncDir();", "private function findModule(){\n\n $dir_handle = opendir($this->moudleDir);\n\n while($filename = readdir($dir_handle)){\n if( ( $filename != \".\" ) && ( $filename != \"..\" ) ){\n ...
[ "0.58197814", "0.57667226", "0.549967", "0.5471929", "0.54173934", "0.5369641", "0.5328975", "0.53190416", "0.52931845", "0.5282736", "0.52673167", "0.5258721", "0.5257853", "0.52567375", "0.52098835", "0.5200695", "0.51547647", "0.51398563", "0.51133764", "0.5103032", "0.510...
0.7396375
0
Register the service providers.
Зарегистрируйте поставщиков служб.
public function registerServiceProviders() { $container = $this->router->getContainer(); $providers = config('app.providers'); array_walk($providers, function ($provider) use ($container) { $container->register(new $provider); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerServiceProviders()\n {\n $list = new ProviderList(Core::getFacadeRoot());\n\n foreach ($this->providers as $provider) {\n $list->registerProvider($provider);\n }\n }", "protected function registerProviders()\n {\n foreach ($this->get('pro...
[ "0.83759", "0.8181239", "0.8147619", "0.79507685", "0.7928695", "0.783458", "0.78188455", "0.7725922", "0.7723817", "0.7723026", "0.77082187", "0.7647642", "0.7643861", "0.76223385", "0.75376177", "0.7525581", "0.7424312", "0.74210256", "0.74016696", "0.7396534", "0.73832864"...
0.83889675
0
Removed icon by map id
Удалён иконка по id карты
private function removeIcon($id) { $mapDir = $this->appConfig->getRootDir() . self::ICON_PATH . '/' . $id; if (is_dir($mapDir)) { return FileManager::rmdir($mapDir); } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function borraUnIcono($id){\n\n\t\t$recurso = $this->getResourcesId($id);\n\n\t\tif($recurso->name != \"\" && $recurso->iconoov==\"S\"){\n\n\t\t\t$path = getcwd().\"/../download/iconos\";\n\n\t\t\t$nombreIco = $this->getNombreIcono($recurso->idov,$recurso->name);\n\n\t\t\tif(file_exists($path.\"/\".$nombreIco)){\n...
[ "0.674841", "0.6386695", "0.63283676", "0.63021046", "0.6287551", "0.6264522", "0.6205194", "0.61905706", "0.6123214", "0.6064052", "0.6048533", "0.60437053", "0.59550595", "0.5936047", "0.5921095", "0.589056", "0.58792675", "0.58370763", "0.5836513", "0.5830962", "0.57784057...
0.7072428
0
Returns last map id
Возвращает последний идентификатор карты
public function getLastId() { return $this->mapMapper->getMaxId(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getMapId()\n {\n return md5(serialize($this->map)) . '_' . $this->map->getMapId();\n }", "public function getMapID()\n {\n return $this->sMapId;\n }", "public function getMapid()\n {\n $value = $this->get(self::MAPID);\n return $value === null ? (integer)$val...
[ "0.77103436", "0.7489575", "0.74176776", "0.7188051", "0.71220726", "0.70019704", "0.69687474", "0.69665563", "0.69562966", "0.69548583", "0.68966436", "0.6889395", "0.6886641", "0.6886641", "0.6846938", "0.6827268", "0.6818967", "0.68171406", "0.6771792", "0.67313457", "0.67...
0.816219
0
Return a stdClass object of info associated with a posts thumbnail.
Вернуть объект stdClass с информацией, связанной с миниатюрой поста.
function pm_get_post_thumbnail( $size=null, $post_id=null ) { if( $post_id ) { $post = get_post( $post_id ); } else { global $post; } if ( has_post_thumbnail( $post->ID ) ) { $thumb = new stdClass(); // get/set thumbnail id $thumb->id = get_post_thumbnail_id( $post->ID ); // ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getThumbnail() {\r\n\treturn $this->_imageInfo[\"h\"][\"Thumbnail\"];\r\n }", "function the_image_info() {\n\tglobal $post;\n\tif(!$post->thumb_url) {\n\t\timage_setup($post);\n\t}\n\treturn $post->image_info;\n}", "function build_post_obj($post) {\n return array(\n 'link' => get_per...
[ "0.6947055", "0.6908098", "0.69078857", "0.6772722", "0.6665993", "0.66139656", "0.6593293", "0.6549301", "0.65475285", "0.6532687", "0.6492597", "0.6485249", "0.64639014", "0.64416045", "0.64416045", "0.6363939", "0.63552135", "0.6343859", "0.6311795", "0.6285381", "0.624199...
0.7441529
0
Parse the width and height from a WordPress sizesuffixed image filename, e.g. murthy480x318.jpg
Разберите ширину и высоту из имени файла изображения WordPress с суффиксом размера, например, murthy480x318.jpg
function elit_parse_dimensions( $filename ) { $re = '/\d{3}x\d{3}/'; $match = preg_match( $re, $filename, $matches ); if ( $match ) { $vals = explode( 'x', $matches[0] ); $keys = array( 'width', 'height' ); return array_combine( $keys, $vals ); } return false; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function affinity_mikado_get_image_dimensions($url) {\n\t\t$image_sizes = array();\n require_once(ABSPATH . 'wp-admin/includes/file.php');\n\n\t\t//is url passed?\n\t\tif ($url !== '') {\n\t\t\t//get image sizes from posts meta if attachment exists\n\t\t\t$image_sizes = affinity_mikado_get_attachment_meta_f...
[ "0.68239474", "0.67383146", "0.67383146", "0.67249143", "0.6657643", "0.6551852", "0.65450436", "0.6533207", "0.64278257", "0.64100075", "0.63790077", "0.6359987", "0.6352573", "0.63500625", "0.6327257", "0.62856823", "0.627269", "0.6271889", "0.62463814", "0.6181209", "0.617...
0.7288521
0
Get the width of a specific image size.
Получить ширину конкретного размера изображения.
function get_image_width( $size ) { if ( ! $size = get_image_size( $size ) ) { return false; } if ( isset( $size['width'] ) ) { return $size['width']; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getWidth()\n {\n $imageSizes = $this->getImageSizes();\n return $imageSizes[0];\n }", "public function getWidth()\n {\n return $this->isImage() ? $this->imageSize[0] : null;\n }", "public static function get_image_width( $size ) {\n if ( ! $size = self::g...
[ "0.81814134", "0.79311675", "0.78200465", "0.78013", "0.7779817", "0.7707976", "0.7698518", "0.769431", "0.76530254", "0.76257336", "0.76124", "0.7611352", "0.76012886", "0.75825125", "0.7572024", "0.7569253", "0.7568764", "0.7568764", "0.7568764", "0.7566878", "0.7544901", ...
0.7948176
1
Get the height of a specific image size.
Получить высоту конкретного размера изображения.
function get_image_height( $size ) { if ( ! $size = get_image_size( $size ) ) { return false; } if ( isset( $size['height'] ) ) { return $size['height']; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHeight()\n {\n $imageSizes = $this->getImageSizes();\n return $imageSizes[1];\n }", "public function getHeight()\n {\n return $this->isImage() ? $this->imageSize[1] : null;\n }", "public static function get_image_height( $size ) {\n if ( ! $size = self...
[ "0.8352466", "0.8233275", "0.80886316", "0.80170757", "0.79766756", "0.79469615", "0.7940672", "0.7877656", "0.7877656", "0.7877656", "0.78771174", "0.7876649", "0.7872256", "0.7870074", "0.78672266", "0.78562003", "0.7832626", "0.78147936", "0.77937186", "0.7787796", "0.7761...
0.8250547
1
Get the name of the largest image size available.
Получить имя самого крупного доступного размера изображения.
function elit_get_largest_image_name() { $image_sizes = elit_get_image_sizes(); $keys = array_keys($image_sizes); $widest = 0; $widest_name = null; for ($i = 0; $i < count($keys); $i++) { //echo '<pre>'; var_dump($keys[$i], ($image_sizes[$keys[$i]]['width']), $widest_name, $widest, $imag...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getName() \t\t { return 'NP_ImageLimitSize'; }", "public function imageMaxSizeDescription(): string\n {\n return\n Yii::t('app', 'Max. size of image') . ': ' . \n ArrayHelper::getValue($this->imageSize, 'maxWidth') . 'x' . \n ArrayHelper::getValue($this->image...
[ "0.6886294", "0.6863302", "0.6811783", "0.6740035", "0.67299056", "0.6715389", "0.6704701", "0.6659275", "0.6652494", "0.66408724", "0.6621742", "0.6609557", "0.66076034", "0.65971947", "0.6530389", "0.65226454", "0.64825386", "0.6481871", "0.647746", "0.6459235", "0.64476407...
0.7777181
0
Set the source step.
Установите шаг источника.
public function setSource(StepInterface $step): self;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setSource($source)\r\n\t{\r\n\t\t$this->source = $source;\r\n\t}", "public function setSource($source) {\n $this->source = $source;\n }", "public function setSource($source) {\n\n\t\t$this->source = $source;\n\t}", "public function setSource($source);", "public function setSource(...
[ "0.674754", "0.6740017", "0.67248255", "0.67063016", "0.67063016", "0.67063016", "0.6705842", "0.6651604", "0.65046126", "0.6497031", "0.64850897", "0.6468831", "0.6395893", "0.636517", "0.6345902", "0.6290369", "0.62349755", "0.62206405", "0.6185511", "0.61039656", "0.609504...
0.7598724
0
Get the source step.
Получить шаг источника.
public function getSource(): StepInterface;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_step() {\n\t\treturn $this->step;\n\t}", "public function GetStep () {\n\t\treturn $this->step;\n\t}", "private function getSource() {\n\t\treturn $this->line['source'];\n\t}", "public function getSource()\n {\n return $this->arguments['source'];\n }", "public function getS...
[ "0.7201959", "0.71413285", "0.7133461", "0.7041648", "0.69850266", "0.69850266", "0.6961313", "0.69578755", "0.6948628", "0.6948628", "0.6948628", "0.6948628", "0.6948628", "0.6948628", "0.6948628", "0.6948628", "0.6948628", "0.6948628", "0.6948628", "0.6948628", "0.6948628",...
0.8069971
0
Add a destination step.
Добавьте шаг назначения.
public function addDestination(StepInterface $step): self;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add(Step $step): void;", "public function addStep($step)\n {\n $this->steps[] = $step;\n }", "public function actionAdd()\n\t{\n\t\t$formId = $this->_input->filterSingle('form_id', XenForo_Input::UINT);\n\t\t$destinationId = $this->_input->filterSingle('destination_id', XenForo_Inp...
[ "0.6735098", "0.649479", "0.6313146", "0.6290758", "0.6259214", "0.6095764", "0.6039076", "0.59629184", "0.59128165", "0.59097165", "0.59062946", "0.59062946", "0.5868683", "0.58228135", "0.58126307", "0.5790946", "0.5750853", "0.5662209", "0.5589725", "0.5585289", "0.5579555...
0.79703826
0
Returns the path types used to construct the path.
Возвращает типы путей, используемые для построения пути.
public function getType(): PathTypeInterface;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPaths($type);", "function __paths($type) {\n\t\t$type = strtolower($type);\n\t\t$paths = array();\n\n\t\tif ($type === 'core') {\n\t\t\treturn App::core('libs');\n\t\t}\n\t\tif (isset($this->{$type . 's'})) {\n\t\t\treturn $this->{$type . 's'};\n\t\t}\n\t\treturn $paths;\n\t}", "public funct...
[ "0.7204925", "0.6742663", "0.6692958", "0.6535382", "0.63917834", "0.6376375", "0.62360764", "0.6186167", "0.6158472", "0.608946", "0.60644925", "0.6048447", "0.59949857", "0.5978546", "0.58252764", "0.5792025", "0.5778825", "0.57776946", "0.57728803", "0.5771233", "0.5763377...
0.7016299
1
Loads the message translation for the specified language and category.
Загружает перевод сообщения для указанного языка и категории.
protected function loadMessages ($category, $language) { if ($this->cachingDuration > 0 && $this->cacheID !== false && ($cache = Yii::app()->getComponent( $this->cacheID )) !== null) { $key = self::CACHE_KEY_PREFIX . '.messages.' . $category . '.' . $language; if (($...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function loadMessages($category, $language) {\n\t\t$messageFile = $this->getMessageFile($category,$language);\n\t\tif ($this->cachingDuration > 0 && $this->cacheID!==false && ($cache=\\Yii::app()->getComponent($this->cacheID))!==null) {\n\t\t\t$key = self::CACHE_KEY_PREFIX . $messageFile;\n\t\t\tif (($da...
[ "0.73019", "0.720615", "0.71369624", "0.7008276", "0.6987644", "0.68739974", "0.6763349", "0.6474515", "0.64684784", "0.6439958", "0.64379686", "0.6326886", "0.62441796", "0.6221019", "0.621766", "0.62149334", "0.6213974", "0.61928767", "0.6184335", "0.6125615", "0.61176324",...
0.768986
0
Get the allowed roles.
Получить разрешенные роли.
public function getAllowedRoles();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _getAllowedRoles()\n {\n return $this->roles;\n }", "public static function getRoles(){\n return self::$acceptable_roles;\n }", "public function getAllowedRoles()\n {\n return $this->allowedRoles;\n }", "public function getRequiredRoles();", "public functi...
[ "0.83051324", "0.8203473", "0.8183528", "0.7879538", "0.7787929", "0.7624995", "0.756968", "0.756968", "0.756968", "0.756968", "0.756968", "0.756968", "0.756968", "0.756968", "0.756968", "0.756968", "0.75418407", "0.75233257", "0.74979", "0.74828255", "0.74305683", "0.73359...
0.8517717
0
Get the related widgets.
Получить связанные виджеты.
public function getWidgets();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function widgets()\n {\n return $this->widgets;\n }", "public function getWidgets()\n {\n return $this->widgets;\n }", "public function getWidgets() {\n\t\t// Mystery stuff\n\t}", "private function getWidgets(){\n\t\t$q = \"SELECT w.content, w.title, w.settings, t.template_fi...
[ "0.7970795", "0.7870028", "0.7433518", "0.70230496", "0.69990826", "0.688616", "0.6818183", "0.6805564", "0.67649734", "0.671094", "0.66766655", "0.6614714", "0.65879047", "0.6585971", "0.65469575", "0.65462846", "0.65003264", "0.6449036", "0.6380786", "0.6374876", "0.6368798...
0.80992025
0
Render the content on the theme customizer page
Отобразить содержимое на странице настроек темы
public function render_content() { ?> <label> <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span> <?php $settings = array( 'media_buttons' => false, 'quicktags' => false ); $this->filter_editor...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function render_content() {\n?>\n\t <label>\n\t <span class=\"customize-control-title\"><?php echo esc_html($this->label); ?></span>\n<?php\n\t $settings = array('media_buttons' => true, 'drag_drop_upload' => true);\n\t $this->filter_editor_setting_link();\n\t wp_editor($this->value(), $this-...
[ "0.7348721", "0.7018419", "0.70145", "0.692374", "0.69087005", "0.69057083", "0.68944955", "0.68663627", "0.68348455", "0.68204707", "0.6804591", "0.6794966", "0.67882633", "0.67872703", "0.67821205", "0.67757624", "0.6730712", "0.67268986", "0.6725107", "0.6690205", "0.66578...
0.7307964
1
Generated from protobuf field string leader = 1;
Сгенерировано из поля protobuf string leader = 1;
public function setLeader($var) { GPBUtil::checkString($var, True); $this->leader = $var; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setLeader($var)\n {\n GPBUtil::checkUint64($var);\n $this->leader = $var;\n }", "public function getLeader()\n {\n return $this->leader;\n }", "public function getLeader()\n {\n return $this->leader;\n }", "public function getFirstLeader()\n {\...
[ "0.7100793", "0.6764525", "0.6764525", "0.6762486", "0.6513184", "0.6287916", "0.6228105", "0.60481614", "0.5933152", "0.5850902", "0.5813716", "0.57417727", "0.5636128", "0.5501628", "0.54974455", "0.5496737", "0.5352431", "0.5325947", "0.53186756", "0.523681", "0.5181515", ...
0.7028878
1
Generated from protobuf field .api.Membership membership = 2;
Сгенерировано из поля protobuf .api.Membership membership = 2;
public function setMembership($var) { GPBUtil::checkEnum($var, \Api\Membership::class); $this->membership = $var; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setMembership($var)\n {\n GPBUtil::checkString($var, True);\n $this->membership = $var;\n\n return $this;\n }", "public function getMembership()\n {\n return $this->membership;\n }", "public function getMembership()\n {\n return $this->membershi...
[ "0.7696336", "0.70603746", "0.70603746", "0.6063626", "0.60399574", "0.6015242", "0.59805286", "0.5957825", "0.5905448", "0.5901049", "0.5901025", "0.58510256", "0.5817239", "0.58162946", "0.57619905", "0.5722311", "0.5707221", "0.5678298", "0.5671822", "0.5626312", "0.557613...
0.74768007
1
Generated from protobuf field repeated .api.Peer peers = 3;
Сгенерировано из поля protobuf repeated .api.Peer peers = 3;
public function setPeers($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Api\Peer::class); $this->peers = $arr; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPeers()\n {\n return $this->peers;\n }", "public function getPeers() {\n return $this->_peers;\n }", "public function setNumPeers($var)\n {\n GPBUtil::checkUint32($var);\n $this->num_peers = $var;\n\n return $this;\n }", "private function g...
[ "0.65852284", "0.6499168", "0.6159024", "0.5965753", "0.5831126", "0.5740858", "0.5389869", "0.5385445", "0.520439", "0.5111604", "0.5029913", "0.49371397", "0.49325296", "0.49251756", "0.49251756", "0.4884907", "0.4851657", "0.4788927", "0.47701895", "0.47532573", "0.4744703...
0.74485385
0
Get internet address collection
Получить сборку адресов интернета
public function getInternetAddressCollection() { return $this->internetAddressCollection; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAddresses();", "public function getAddresses();", "public function getAddresses(): array;", "public function getAddresses()\n {\n return $this->callApi('/api/addresses');\n }", "public function allAddresses()\n {\n return $this->addresses;\n }", "public functi...
[ "0.73630214", "0.73630214", "0.6798899", "0.6747486", "0.65980005", "0.659612", "0.659612", "0.659612", "0.659612", "0.659612", "0.6516033", "0.6444628", "0.644057", "0.6438807", "0.64354247", "0.63795465", "0.63795465", "0.6377578", "0.6363117", "0.63582164", "0.6354148", ...
0.8392759
0
Get second phone number
Получить второй телефонный номер
public function getPhone2() { return $this->phone2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_phone();", "public function getPhoneNumber();", "public function getSecondaryPhoneNumber(): ?string\n {\n return $this->secondaryPhoneNumber;\n }", "public function getOtherMobileNumber()\n {\n return $this->getFirstAttribute($this->schema->otherMobile());\n }", ...
[ "0.7020843", "0.68393445", "0.675466", "0.6738465", "0.67036", "0.66470265", "0.66470265", "0.66440415", "0.6589854", "0.65609795", "0.65406287", "0.652047", "0.6507534", "0.6507534", "0.64850277", "0.6479255", "0.63602227", "0.63602227", "0.63327473", "0.6327239", "0.6305545...
0.74914724
0
Get third phone number
Получить третий телефонный номер
public function getPhone3() { return $this->phone3; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_phone();", "public function getPhoneNumber();", "public function getPhoneNumber()\n {\n return '+254' . (int)$this->phone;\n }", "public function get_phone_number( $parens = false ) {\n $number = $this->get_meta( 'phone_number' );\n $replace = $parens ? '($1) $...
[ "0.69707847", "0.68886584", "0.6573813", "0.656122", "0.65422845", "0.65422845", "0.65135455", "0.6504092", "0.6475423", "0.6461772", "0.6441288", "0.6437454", "0.6420965", "0.6415844", "0.6394066", "0.63122636", "0.6296054", "0.6296054", "0.629032", "0.62696743", "0.62696743...
0.7514749
0
Get Deck of Player as a String. It appears to be the wrong deck sometimes so its better to use getDeckFromPlayedCards maybe the deck is filled with the client deck the replay if from because it is unknown to the game.
Получить колоду игрока в виде строки. Похоже, что иногда это неправильная колода, поэтому лучше использовать getDeckFromPlayedCards, возможно, колода заполнена клиентской колодой, если реплеи происходят из-за того, что это неизвестно игре.
function getDeckString(){ if(!isset($this->deck))return ""; $retval=""; $first=true; foreach($this->deck->deckcards as $deckcard){ if($first)$first=false; else $retval.=", "; $usedString=""; if(isset($this->cardsPlayed[$deckcard->getCa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getDeckStringFromPlayedCards(){\n\n if(!isset($this->deck))return \"\";\n\n $retval=\"\";\n $first=true;\n foreach($this->cardsPlayed as $cardid=>$timesUsed){\n\n if($first)$first=false;\n else $retval.=\", \";\n\n $usedString=\"\";\n\n ...
[ "0.7183755", "0.7025846", "0.6334069", "0.62903833", "0.6110629", "0.6046896", "0.59886557", "0.59886557", "0.58503103", "0.5808426", "0.5800308", "0.5714632", "0.56899923", "0.5688007", "0.56709504", "0.55931795", "0.55407596", "0.5517739", "0.5515059", "0.545229", "0.544889...
0.7187124
0
Get Deck of Player as a String from played Cards. It appears getDeckString gives the wrong deck sometimes (see fyre example replay) so its better to use getDeckFromPlayedCards
Получить колоду игрока в виде строки из сыгранных карт. Появляется, что getDeckString иногда даёт неправильную колоду (см. пример реплея fyre), поэтому лучше использовать getDeckFromPlayedCards
function getDeckStringFromPlayedCards(){ if(!isset($this->deck))return ""; $retval=""; $first=true; foreach($this->cardsPlayed as $cardid=>$timesUsed){ if($first)$first=false; else $retval.=", "; $usedString=""; $usedString = "(ID $car...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getDeckString(){\n\n if(!isset($this->deck))return \"\";\n\n $retval=\"\";\n $first=true;\n foreach($this->deck->deckcards as $deckcard){\n\n if($first)$first=false;\n else $retval.=\", \";\n\n $usedString=\"\";\n\n if(isset($this->ca...
[ "0.76603603", "0.73322767", "0.68416494", "0.68241066", "0.6753474", "0.6452178", "0.6332205", "0.6297767", "0.6297767", "0.6265234", "0.6183181", "0.6135986", "0.59824926", "0.5971374", "0.59569246", "0.5851568", "0.58306456", "0.58001345", "0.57187873", "0.56791484", "0.566...
0.8053084
0
Display pager links. If you pass $previous and $next arrays, then there is no need to ``$this>set()`` anything.
Показать ссылки на страницы. Если вы передаете массивы $previous и $next, то не нужно ничего вызывать ``$this->set()``.
public function pager($previous = 'Previous', $next = 'Next') { $links = ''; if (!empty($previous)) { if (is_array($previous)) { if (isset($previous['url']) && isset($previous['title'])) { $links .= $this->format($this->pager['previous'], $previous['ti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setPaginationLinks( $args )\n\t{\n\t\t$total = (int) $args['total'];\n\t\tif ( $total < 2 )\n\t\t\treturn;\n\t\t$current = (int) $args['current'];\n\t\t$end_size = ( 0 < (int) $args['end_size'] ) ? (int) $args['end_size'] : 1; // Out of bounds? Make it the default.\n\t\t$mid_size = ( 0 <= (int) $args['m...
[ "0.74017996", "0.7002959", "0.69373816", "0.685854", "0.67456806", "0.6650898", "0.6646796", "0.66458344", "0.6535953", "0.64414364", "0.6424784", "0.6402421", "0.63915426", "0.63713855", "0.6367318", "0.6363134", "0.6356917", "0.63479114", "0.63268286", "0.6295565", "0.62604...
0.71255296
1
Testting Shop_License::_canUpdate(); for malladmin
Testting Shop_License::_canUpdate(); для malladmin
public function testCanUpdateForNonMallAdmin() { $oSubj = $this->getProxyClass("Shop_License"); $this->getSession()->setVariable("malladmin", false); $oConfig = $this->getMock(\OxidEsales\Eshop\Core\Config::class, array("isDemoShop", "getConfigParam", "setConfigParam", "saveShopConfVar", "...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testCanUpdateForDemoVersion()\n {\n $oSubj = $this->getProxyClass(\"Shop_License\");\n\n $this->getSession()->setVariable(\"malladmin\", true);\n\n $oConfig = $this->getMock(\\OxidEsales\\Eshop\\Core\\Config::class, array(\"isDemoShop\"));\n $oConfig->expects($this->a...
[ "0.7207222", "0.694073", "0.6748949", "0.6741384", "0.6712321", "0.6612847", "0.65507936", "0.63775116", "0.63078266", "0.6285761", "0.6275287", "0.6273681", "0.6266625", "0.61951834", "0.61556184", "0.6148787", "0.6112616", "0.6066141", "0.6059016", "0.60574996", "0.60351837...
0.7584837
0
Testting Shop_License::_canUpdate(); for demo shops (3870)
Тестирование Shop_License::_canUpdate(); для демонстрационных магазинов (3870)
public function testCanUpdateForDemoVersion() { $oSubj = $this->getProxyClass("Shop_License"); $this->getSession()->setVariable("malladmin", true); $oConfig = $this->getMock(\OxidEsales\Eshop\Core\Config::class, array("isDemoShop")); $oConfig->expects($this->any())->method('isDemoS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testCanUpdateForNonMallAdmin()\n {\n $oSubj = $this->getProxyClass(\"Shop_License\");\n\n $this->getSession()->setVariable(\"malladmin\", false);\n\n $oConfig = $this->getMock(\\OxidEsales\\Eshop\\Core\\Config::class, array(\"isDemoShop\", \"getConfigParam\", \"setConfigPara...
[ "0.72696173", "0.6706471", "0.66052234", "0.6578759", "0.6522961", "0.64821273", "0.64000684", "0.6368954", "0.625861", "0.6237605", "0.62141514", "0.616994", "0.61662287", "0.61536324", "0.6142796", "0.61397564", "0.6139261", "0.61324394", "0.6100358", "0.6099699", "0.607827...
0.74414676
0
Returns all schema names in the database. This method should be overridden by child classes in order to support this feature because the default implementation simply throws an exception.
Возвращает все имена схем в базе данных. Этот метод должен быть переопределен дочерними классами для поддержки этой функции, поскольку реализация по умолчанию просто вызывает исключение.
protected function findSchemaNames() { // throw new \Exception( "{get_class( $this )} does not support fetching all schema names." ); return ['']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSchemaNames();", "public function getSchemas()\n {\n $sql = <<<SQL\nselect\n n.nspname as \"name\",\n n.oid as \"oid\",\n d.description as \"comment\",\n count(c) as \"relations\"\nfrom pg_catalog.pg_namespace n\n left join pg_catalog.pg_description d ...
[ "0.7905484", "0.711643", "0.69550043", "0.6948586", "0.6708437", "0.6675946", "0.65812707", "0.6562322", "0.6558979", "0.65319586", "0.65310824", "0.6511747", "0.6505352", "0.6502782", "0.6470381", "0.644045", "0.64040947", "0.6395796", "0.63822407", "0.6342322", "0.63224226"...
0.78486514
1
Return an array of supported schema resource types.
Вернуть массив поддерживаемых схем ресурсов.
public function getSupportedResourceTypes() { return [DbResourceTypes::TYPE_TABLE]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getResourceTypes(): array\n {\n return $this->resourceTypes;\n }", "public function getResourceTypes()\n {\n return $this->types;\n }", "public function getSupportedTypes();", "public static function swaggerTypes()\n {\n return [\n 'resource_id' ...
[ "0.7827827", "0.724964", "0.7176245", "0.71546954", "0.69019246", "0.6822001", "0.68036675", "0.67474115", "0.6685379", "0.66807824", "0.66746265", "0.66689897", "0.6667343", "0.6664922", "0.66569567", "0.66390204", "0.65525496", "0.6534113", "0.6509327", "0.6479794", "0.6463...
0.7830322
0
Returns all table references in the database. This method should be overridden by child classes in order to support this feature because the default implementation simply throws an exception.
Возвращает все ссылки на таблицы в базе данных. Этот метод должен быть переопределен дочерними классами для поддержки этой функции, так как реализация по умолчанию просто генерирует исключение.
protected function findTableReferences() { return []; // throw new NotImplementedException("Database or driver does not support fetching all table references."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function referencing_tables()\n\t{\n\t\tif ($this->_referencing_tables === NULL)\n\t\t{\n\t\t\t$this->_referencing_tables = DB::select(array('TABLE_NAME', 'table'), array('COLUMN_NAME', 'column'))\n\t\t\t\t->from('INFORMATION_SCHEMA.KEY_COLUMN_USAGE')\n\t\t\t\t->where('TABLE_SCHEMA', '=', $this->_table_sche...
[ "0.76209027", "0.7535545", "0.70031935", "0.6887242", "0.67739403", "0.67376417", "0.67241174", "0.6643978", "0.66378784", "0.6624705", "0.6559107", "0.65467024", "0.6537173", "0.6509166", "0.6501071", "0.6476108", "0.64541376", "0.6438828", "0.633657", "0.63191944", "0.63123...
0.8172348
0
Compares two table names. The table names can be either quoted or unquoted. This method will consider both cases.
Сравнивает два имени таблиц. Имена таблиц могут быть как оформлены кавычками, так и без них. Этот метод учитывает оба случая.
public function compareTableNames($name1, $name2) { $name1 = str_replace(['"', '`', "'"], '', $name1); $name2 = str_replace(['"', '`', "'"], '', $name2); if (($pos = strrpos($name1, '.')) !== false) { $name1 = substr($name1, $pos + 1); } if (($pos = strrpos($name2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function compareTableNames($name1,$name2)\n\t{\n\t\t$name1=str_replace(array('\"','`',\"'\"),'',$name1);\n\t\t$name2=str_replace(array('\"','`',\"'\"),'',$name2);\n\t\tif(($pos=strrpos($name1,'.'))!==false)\n\t\t\t$name1=substr($name1,$pos+1);\n\t\tif(($pos=strrpos($name2,'.'))!==false)\n\t\t\t$name2=substr...
[ "0.7959545", "0.7505912", "0.7344048", "0.6285363", "0.5853026", "0.5853026", "0.58144814", "0.5746134", "0.57410246", "0.57121384", "0.5704712", "0.56493455", "0.5556714", "0.55466044", "0.55307883", "0.54883873", "0.5473513", "0.54701376", "0.54686207", "0.53968537", "0.537...
0.7819888
1
Converts the input value to the type that this column is of.
Преобразует входное значение в тип, который имеет эта колонка.
public function typecast(ColumnSchema $field, $value) { if (gettype($value) === $field->phpType || $value === null || $value instanceof Expression) { return $value; } if ($value === '' && $field->allowNull) { return ($field->phpType === 'string') ? '' : null; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function valueType() {\n\t\treturn $this->column('value_type');\n\t}", "public function cast() {\n\t\t$type = $this->getDefinition()->getType();\n\t\tif ($type == 'multiple') {\n\t\t\t// TODO\n\t\t}\n\t\telseif ($type == 'text') {\n\t\t\tsettype($this->value, 'string');\n\t\t}\n\t\telse {\n\t\t\tsettype($...
[ "0.71577686", "0.68322945", "0.6741546", "0.67279834", "0.6570711", "0.6546737", "0.6524945", "0.6509425", "0.64545697", "0.645355", "0.6416441", "0.6394833", "0.63881016", "0.636853", "0.6338699", "0.63351715", "0.6331433", "0.6323582", "0.6288686", "0.627317", "0.6265586", ...
0.72152674
0
Destroy the session and optionally specify $regenerate = true to regenerate a new session id.
Уничтожьте сессию и необязательно укажите $regenerate = true, чтобы сгенерировать новый идентификатор сессии.
public function destroy(bool $regenerate = false): bool { $this->instance->unlock(); $result = $this->instance->destroy(); if ($regenerate == true) { session_regenerate_id(true); } return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function destroy()\n {\n session_regenerate_id(true);\n session_destroy();\n }", "public function destroy()\n {\n session_start();\n \n if(ini_get(\"session.use_cookies\")) \n {\n $params = session_get_cookie_params();\n...
[ "0.8005926", "0.7238975", "0.71242946", "0.7101555", "0.70944405", "0.7085196", "0.70771646", "0.707128", "0.7066527", "0.7063104", "0.70427364", "0.7030003", "0.7030003", "0.7021853", "0.7006671", "0.7005661", "0.7000571", "0.6965411", "0.6954521", "0.6948179", "0.6926786", ...
0.7831571
1
Affiche la liste des procedures
Показывает список процедур
public function list_procedure() { Fsb::$tpl->set_file('modo/modo_procedure.html'); Fsb::$tpl->set_vars(array( 'U_ADD' => sid(ROOT . 'index.' . PHPEXT . '?p=modo&amp;module=procedure&amp;mode=new'), )); $sql = 'SELECT procedure_id, procedure_name FROM ' . SQL_PREFIX . 'sub_procedure ORDER BY proce...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function procedure_list()\n\t{\n\t\treturn 'SHOW PROCEDURE STATUS';\n\t}", "public function procedureList(): string\n\t{\n\t\treturn 'SHOW PROCEDURE STATUS';\n\t}", "function list()\n {\n if (!empty($this->fun))\n foreach ($this->fun as $key => $value)\n echo \"$key(\...
[ "0.70439345", "0.69907725", "0.6554162", "0.61181825", "0.6091439", "0.60754484", "0.5962899", "0.59609365", "0.5879916", "0.583414", "0.5826961", "0.58224154", "0.58224154", "0.57826954", "0.57698286", "0.57687426", "0.572464", "0.56757736", "0.56730354", "0.56647354", "0.56...
0.7857507
0
Get the Billings records associated with the User record.
Получите записи Billings, связанные с записью User.
public function billings() { return $this->hasMany('App\Models\Billing', 'user_id', 'id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getBill()\n {\n if(Auth::user())\n {\n return \\App\\userBills::get();\n }\n }", "public function billings()\n {\n return $this->hasMany('App\\Billing');\n }", "public function getBills()\n {\n $id = $_SESSION['id'];\n \n ...
[ "0.7237961", "0.6654736", "0.65813595", "0.6553327", "0.6429992", "0.6379045", "0.63158554", "0.6217433", "0.6195118", "0.6189279", "0.61776423", "0.60486245", "0.60151774", "0.6009651", "0.60032", "0.5964814", "0.5928166", "0.5774118", "0.57664037", "0.5697124", "0.5633089",...
0.7850565
0
Creates a shopware Connect customer group this can be used by the shop owner to manage the Connect product prices Logic is very simple here if a group with the key 'SC' already exists, no new group is created
Создает группу клиентов Connect Shopware, которую можно использовать владельцем магазина для управления ценами на товары Connect. Логика здесь очень простая: если группа с ключом 'SC' уже существует, новая группа не создается.
public function createConnectCustomerGroup() { $connectGroupAttributeId = $this->getConnectCustomerGroupId(); if (!$this->connectCustomerGroupExists($connectGroupAttributeId)) { // Create Customer Group $this->db->insert( 's_core_customergroups', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createGroup();", "public function create_group($name);", "public function createGroup(array $group_data);", "public function createGroup() {\n\t\treturn $this->objectManager->get('Tx_Sfsvgapi_Domain_Model_Group');\n\t}", "public function testCreateGroupSoap()\n {\n $this->_markTes...
[ "0.6819811", "0.65970635", "0.64473546", "0.6437228", "0.6365106", "0.6233577", "0.6226688", "0.62001705", "0.6196347", "0.61599433", "0.61577094", "0.6145794", "0.61205816", "0.611937", "0.6095573", "0.6083912", "0.60801965", "0.60763997", "0.60072815", "0.5971893", "0.59468...
0.7911178
0
Return a free customer group name. It will only check 5 groups if all are used, probably the detection of existing connectCustomerGroups is broken. Throw an exception then
Вернуть имя свободной группы клиентов. Проверится только 5 групп, если все они заняты, вероятно, обнаружение существующих connectCustomerGroups повреждено. Выбросить исключение в таком случае
private function getAvailableCustomerGroupName() { $names = ['SC', 'SWC', 'SWCONN', 'SC-1']; $repo = $this->modelManager->getRepository('Shopware\Models\Customer\Group'); foreach ($names as $name) { $model = $repo->findOneBy(['key' => $name]); if (is_null($model)) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCustomerGroup();", "public function getCustomerGroup();", "public function get_group_name(): string {\n\t\treturn '';\n\t}", "public function groupName(){\n if(isset($_SESSION['user']['group_id'])){\n $groupTable = new Table\\Table();\n $groupTable-...
[ "0.6596754", "0.6596754", "0.6148748", "0.59941053", "0.5942478", "0.5919014", "0.58906806", "0.5865623", "0.584891", "0.5843333", "0.5737748", "0.5737748", "0.5720267", "0.57042617", "0.56566185", "0.5628349", "0.55900216", "0.5493794", "0.5472323", "0.5447089", "0.54413915"...
0.7738814
0
Generates connect payment attribute
Генерирует атрибут платежа connect
public function generateConnectPaymentAttribute() { /** @var CrudService $crudService */ $crudService = $this->getCrudService(); $crudService->update( 's_core_paymentmeans_attributes', 'connect_is_allowed', 'boolean', [], null, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPayment()\n {\n return 'CC';\n }", "public function generatePaymentURL(): string;", "private function createMyAttributes()\n {\n /** @var CrudService $crudService */\n $crudService = $this->getCrudService();\n\n $crudService->update(\n 's_order...
[ "0.59396654", "0.5531096", "0.55013686", "0.544303", "0.54407746", "0.54105675", "0.5393525", "0.5343704", "0.53416175", "0.5290342", "0.52579", "0.5207543", "0.51753217", "0.51599526", "0.50759125", "0.5056955", "0.5048845", "0.5033526", "0.50240004", "0.500747", "0.50001526...
0.8394212
0
Method to insert questions
Метод вставки вопросов
public function insertQuestion($question, $attempt, $section_id = '');
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _insert($questions)\n\t{\n\t\t$db = database();\n\n\t\t$db->insert('',\n\t\t\t'{db_prefix}antispam_questions',\n\t\t\tarray('question' => 'string-65535', 'answer' => 'string-65535', 'language' => 'string-50'),\n\t\t\t$questions,\n\t\t\tarray('id_question')\n\t\t);\n\t}", "public function Insert ...
[ "0.7938423", "0.72090846", "0.7139996", "0.7058476", "0.70474535", "0.70171744", "0.70158666", "0.6960521", "0.69150007", "0.6878102", "0.6802097", "0.67785007", "0.6771875", "0.6735658", "0.6682819", "0.6672898", "0.6635266", "0.66233253", "0.6619629", "0.6617111", "0.661597...
0.73686504
1
Sets the left padding of the axis canvas from the chart picture
Устанавливает левое отступа полотна оси от изображения графика
public function setAxisPaddingLeft($left) { $this->axis_padding_left = $left; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAxisPaddingLeft()\n\t{\n\t\treturn $this->axis_padding_left;\n\t}", "public function getAxisPaddingRight()\n\t{\n\t\treturn $this->axis_padding_right;\n\t}", "public function setAxisPaddingRight($right)\n\t{\n\t\t$this->axis_padding_right = $right;\n\t}", "protected function canvasSpacingX...
[ "0.72724247", "0.5983666", "0.5707837", "0.5637575", "0.5588581", "0.5574118", "0.5410253", "0.54070073", "0.5373311", "0.5350222", "0.5332097", "0.5271982", "0.51940423", "0.5181046", "0.5160998", "0.5106923", "0.5027214", "0.49767715", "0.49574152", "0.49236503", "0.4805707...
0.74434286
0
Sets the bottom padding of the axis canvas from the chart picture
Устанавливает нижний отступ области оси от изображения диаграммы
public function setAxisPaddingBottom($bottom) { $this->axis_padding_bottom = $bottom; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAxisPaddingBottom()\n\t{\n\t\treturn $this->axis_padding_bottom;\n\t}", "public function getAxisPaddingTop()\n\t{\n\t\treturn $this->axis_padding_top;\n\t}", "public function setAxisPaddingTop($top)\n\t{\n\t\t$this->axis_padding_top = $top;\n\t}", "public function getAxisPaddingRight()\n\t...
[ "0.70901424", "0.5888331", "0.58246034", "0.5530978", "0.54866815", "0.5476491", "0.53564507", "0.5303302", "0.52725947", "0.5266937", "0.5182376", "0.5138269", "0.49867415", "0.4972047", "0.49188346", "0.48637655", "0.4810769", "0.47851816", "0.4771209", "0.4696418", "0.4673...
0.7469646
0
Sets the top padding of the axis canvas from the chart picture
Устанавливает верхнее отступа оси canvas от изображения диаграммы
public function setAxisPaddingTop($top) { $this->axis_padding_top = $top; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAxisPaddingTop()\n\t{\n\t\treturn $this->axis_padding_top;\n\t}", "public function setAxisPaddingBottom($bottom)\n\t{\n\t\t$this->axis_padding_bottom = $bottom;\n\t}", "public function getAxisPaddingBottom()\n\t{\n\t\treturn $this->axis_padding_bottom;\n\t}", "public function getAxisPaddin...
[ "0.69470054", "0.6407889", "0.59226364", "0.541855", "0.53156817", "0.52524364", "0.5167947", "0.5128964", "0.51248103", "0.5119322", "0.5055121", "0.49918717", "0.49859765", "0.49753094", "0.49343318", "0.49064374", "0.4809912", "0.4806654", "0.47313836", "0.470538", "0.4695...
0.7253467
0
Sets the font size axis labels use
Устанавливает размер шрифта меток оси
public function setAxisFontSize($size) { $this->axis_fontsize = $size; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setTitleFontSize($size)\n\t{\n\t\t$this->title_fontsize = $size;\n\t}", "public function getAxisFontSize()\n\t{\n\t\treturn $this->axis_fontsize;\n\t}", "function set_font_size($size) {\n $this->__font_size_calculated = false;\n $this->_props[\"font_size\"] = $size;\n }", "public funct...
[ "0.6971018", "0.6705004", "0.6623687", "0.65656674", "0.6514488", "0.63529646", "0.63476294", "0.63325953", "0.63025135", "0.6276709", "0.6276709", "0.6261442", "0.6184777", "0.61407316", "0.6134875", "0.6131948", "0.61094177", "0.61021715", "0.60026634", "0.5995596", "0.5941...
0.754901
0
Sets x offset of the x axis labels
Устанавливает смещение x оси меток
public function setAxisXLabelOffsetX($dx) { $this->axis_xlabel_offX = $dx; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function SetXLabelOffset($aLabelOff, $aTickOff = -1)\n {\n $this->xlabel_offset = $aLabelOff;\n if ($aTickOff == -1) // Same as label offset\n $this->xtick_offset = $aLabelOff;\n else\n $this->xtick_offset = $aTickOff;\n if ($aLabelOff > 0)\n $this...
[ "0.73113114", "0.7182818", "0.6065389", "0.6048728", "0.59724045", "0.58603543", "0.5836432", "0.57753307", "0.5755031", "0.57440215", "0.57134855", "0.5695325", "0.5654066", "0.56115884", "0.56056136", "0.55479485", "0.55103785", "0.54947436", "0.54434353", "0.5423305", "0.5...
0.73084515
1
Sets x offset of the y axis labels
Устанавливает смещение x меток оси y
public function setAxisYLabelOffsetX($dx) { $this->axis_ylabel_offX = $dx; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAxisYLabelOffsetX()\n\t{\n\t\treturn $this->axis_ylabel_offX;\n\t}", "function SetXLabelOffset($aLabelOff, $aTickOff = -1)\n {\n $this->xlabel_offset = $aLabelOff;\n if ($aTickOff == -1) // Same as label offset\n $this->xtick_offset = $aLabelOff;\n else\n ...
[ "0.7103413", "0.6919237", "0.68455154", "0.68163884", "0.6529134", "0.6226573", "0.61032045", "0.6079454", "0.5956729", "0.59459305", "0.59337956", "0.56866825", "0.56463844", "0.5635977", "0.5626719", "0.55960226", "0.5500501", "0.54530096", "0.5433868", "0.5401433", "0.5329...
0.7178576
0
Sets y offset of the y axis labels
Устанавливает смещение оси y меток оси y
public function setAxisYLabelOffsetY($dy) { $this->axis_ylabel_offY = $dy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function drawYaxis()\n {\n\n $min =\n round($this->min, $this->precision);\n $max =\n round($this->max, $this->precision);\n\n if (!isset($this->y_axis_legend_increment)) {\n\n $increment =\n round(($max - $min) / $this->total_values, ...
[ "0.7317454", "0.7122296", "0.68397766", "0.67237496", "0.6648135", "0.65865535", "0.651322", "0.64373744", "0.63361496", "0.6134063", "0.6066786", "0.6063381", "0.60373306", "0.6022237", "0.5983715", "0.598174", "0.5972843", "0.5933656", "0.58220255", "0.58182305", "0.5806966...
0.7194387
1
Sets the top offset of the title text
Устанавливает верхнее смещение текста заголовка
public function setTitleOffsetTop($dy) { $this->title_offY = $dy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTitleOffsetTop()\n\t{\n\t\treturn $this->title_offY;\n\t}", "public function setTitle($title) {\n $this->title->text = $title;\n $this->title->align = 'center';\n $this->title->verticalAlign = 'middle';\n }", "function Header()\n {\n // Cabacera\n global $title;\n\...
[ "0.74312633", "0.65173787", "0.62824875", "0.60004455", "0.59903497", "0.59869474", "0.598098", "0.5972703", "0.59467", "0.59463114", "0.5914809", "0.5914809", "0.5904814", "0.5891512", "0.58648306", "0.58511335", "0.5838393", "0.5838393", "0.5829821", "0.5828475", "0.5813858...
0.7105375
1
Sets the font size of the title
Устанавливает размер шрифта заголовка
public function setTitleFontSize($size) { $this->title_fontsize = $size; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTitleFontSize()\n\t{\n\t\treturn $this->title_fontsize;\n\t}", "function set_font_size($size) {\n $this->__font_size_calculated = false;\n $this->_props[\"font_size\"] = $size;\n }", "function SetTextFontSize($fontSize)\n\t\t\t\t{ \n\t\t\t\t\t$this->t_font_size = $fontSize; ...
[ "0.71660733", "0.7130442", "0.6885898", "0.6834722", "0.683373", "0.67933035", "0.67846364", "0.67667156", "0.6737422", "0.6737422", "0.6714915", "0.6597496", "0.6536285", "0.65310377", "0.64880526", "0.6424817", "0.6406492", "0.6348087", "0.6290912", "0.6271157", "0.6249274"...
0.8417755
0
Gets the distance the y axis has from the left border of the axis canvas
Получает расстояние, на которое ось Y отстоит от левой границы холста оси
public function getAxisDistanceY() { return $this->axis_distance_y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAxisYLabelOffsetX()\n\t{\n\t\treturn $this->axis_ylabel_offX;\n\t}", "public function getAxisStrokeDistance()\n\t{\n\t\treturn $this->delta_pixel;\n\t}", "public function getAxisXLabelOffsetY()\n\t{\n\t\treturn $this->axis_xlabel_offY;\n\t}", "public function getAxisPaddingLeft()\n\t{\n\t\...
[ "0.6873446", "0.6773739", "0.6478053", "0.6416718", "0.64082193", "0.63126785", "0.63050425", "0.62461066", "0.62173456", "0.6193308", "0.6102243", "0.6083615", "0.6077891", "0.60456717", "0.6021101", "0.59724116", "0.58949375", "0.5887123", "0.58793896", "0.5847245", "0.5831...
0.7179383
0
Gets the left padding of the axis canvas from the chart picture
Получает левое отступление оси canvas из изображения диаграммы
public function getAxisPaddingLeft() { return $this->axis_padding_left; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAxisPaddingRight()\n\t{\n\t\treturn $this->axis_padding_right;\n\t}", "public function getAxisPaddingTop()\n\t{\n\t\treturn $this->axis_padding_top;\n\t}", "public function setAxisPaddingLeft($left)\n\t{\n\t\t$this->axis_padding_left = $left;\n\t}", "public function getAxisPaddingBottom()\...
[ "0.68826663", "0.6522984", "0.6473026", "0.6332954", "0.5965808", "0.5802207", "0.5780925", "0.56983", "0.56146735", "0.560156", "0.5551525", "0.54042566", "0.54042566", "0.5326966", "0.52957994", "0.52897525", "0.5278702", "0.5258682", "0.52489716", "0.52026695", "0.5183006"...
0.8003556
0
Gets the right padding of the axis canvas from the chart picture
Получает правое отступление оси canvas из изображения графика
public function getAxisPaddingRight() { return $this->axis_padding_right; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAxisPaddingLeft()\n\t{\n\t\treturn $this->axis_padding_left;\n\t}", "public function getAxisPaddingBottom()\n\t{\n\t\treturn $this->axis_padding_bottom;\n\t}", "public function getAxisPaddingTop()\n\t{\n\t\treturn $this->axis_padding_top;\n\t}", "public function setAxisPaddingRight($right)...
[ "0.70485604", "0.6670785", "0.6617558", "0.6090766", "0.5666615", "0.5580978", "0.54951113", "0.546198", "0.5417242", "0.5417242", "0.536776", "0.53496933", "0.53446364", "0.53433025", "0.53060085", "0.52617335", "0.5234681", "0.52012724", "0.51785845", "0.51543766", "0.51005...
0.783036
0
Gets the bottom padding of the axis canvas from the chart picture
Получает нижнее отступление оси canvas из изображения диаграммы
public function getAxisPaddingBottom() { return $this->axis_padding_bottom; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAxisPaddingTop()\n\t{\n\t\treturn $this->axis_padding_top;\n\t}", "public function getAxisPaddingRight()\n\t{\n\t\treturn $this->axis_padding_right;\n\t}", "public function getAxisPaddingLeft()\n\t{\n\t\treturn $this->axis_padding_left;\n\t}", "public function setAxisPaddingBottom($bottom)...
[ "0.693555", "0.65008795", "0.6303973", "0.62847996", "0.60629696", "0.6060935", "0.5991238", "0.5980883", "0.5862139", "0.580681", "0.57657075", "0.5654202", "0.5618615", "0.5599456", "0.55984896", "0.55762386", "0.5548001", "0.55252326", "0.552373", "0.5505176", "0.5487992",...
0.79700273
0
Gets the top padding of the axis canvas from the chart picture
Получает верхнее отступа оси визуализации из графического изображения
public function getAxisPaddingTop() { return $this->axis_padding_top; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAxisPaddingBottom()\n\t{\n\t\treturn $this->axis_padding_bottom;\n\t}", "public function getAxisPaddingLeft()\n\t{\n\t\treturn $this->axis_padding_left;\n\t}", "public function getAxisPaddingRight()\n\t{\n\t\treturn $this->axis_padding_right;\n\t}", "public function setAxisPaddingTop($top)...
[ "0.68620276", "0.6430259", "0.61173576", "0.6013472", "0.5767549", "0.57578635", "0.564619", "0.55566365", "0.55165374", "0.5445019", "0.54377687", "0.539008", "0.53543466", "0.5307465", "0.52959824", "0.5287579", "0.5279873", "0.5228023", "0.5228023", "0.52248055", "0.519511...
0.7940875
0
Gets the font size axis labels use
Получает размер шрифта меток оси
public function getAxisFontSize() { return $this->axis_fontsize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function get_size_label()\n {\n $x_name = get_option(self::X_NAME_KEY, self::DEFAULT_X_NAME);\n $y_name = get_option(self::Y_NAME_KEY, self::DEFAULT_Y_NAME);\n $label = $x_name;\n if (get_option(self::USE_TWO_FIELDS_KEY, self::DEFAULT_USE_TWO_FIELDS) == 1) {\n $l...
[ "0.72463775", "0.7130616", "0.69858426", "0.69574183", "0.68869174", "0.68869174", "0.6814703", "0.67213196", "0.6705545", "0.6663947", "0.6652799", "0.6638382", "0.66172606", "0.6583034", "0.6509926", "0.6496076", "0.6404239", "0.63727874", "0.63409925", "0.61582273", "0.611...
0.7784548
0
Gets x offset of the x axis labels
Получает смещение x меток оси x
public function getAxisXLabelOffsetX() { return $this->axis_xlabel_offX; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAxisYLabelOffsetX()\n\t{\n\t\treturn $this->axis_ylabel_offX;\n\t}", "public function getAxisXLabelOffsetY()\n\t{\n\t\treturn $this->axis_xlabel_offY;\n\t}", "public function getAxisDistanceX()\n\t{\n\t\treturn $this->axis_distance_x;\n\t}", "public function setAxisXLabelOffsetX($dx)\n\t{\...
[ "0.75322515", "0.6932504", "0.6615163", "0.66063195", "0.6519061", "0.6492395", "0.6438706", "0.6417721", "0.6306694", "0.63021874", "0.6300756", "0.6300229", "0.6260616", "0.62046486", "0.61199504", "0.6075851", "0.595968", "0.5950885", "0.5943768", "0.586092", "0.5857137", ...
0.86521053
0
Gets y offset of the x axis labels
Получает смещение y меток оси x
public function getAxisXLabelOffsetY() { return $this->axis_xlabel_offY; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAxisYLabelOffsetX()\n\t{\n\t\treturn $this->axis_ylabel_offX;\n\t}", "public function getAxisYLabelOffsetY()\n\t{\n\t\treturn $this->axis_ylabel_offY;\n\t}", "public function getAxisXLabelOffsetX()\n\t{\n\t\treturn $this->axis_xlabel_offX;\n\t}", "public function getYDescriptionOffsetLeft(...
[ "0.86098856", "0.74951506", "0.7466104", "0.69369805", "0.65043163", "0.64779764", "0.64695334", "0.6284457", "0.6264289", "0.6201853", "0.60971314", "0.60397685", "0.6036948", "0.6003872", "0.59899247", "0.58857447", "0.5863695", "0.578714", "0.578677", "0.5695724", "0.56214...
0.82569814
1
Gets x offset of the y axis labels
Получает смещение x меток оси y
public function getAxisYLabelOffsetX() { return $this->axis_ylabel_offX; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAxisXLabelOffsetY()\n\t{\n\t\treturn $this->axis_xlabel_offY;\n\t}", "public function getAxisYLabelOffsetY()\n\t{\n\t\treturn $this->axis_ylabel_offY;\n\t}", "public function getAxisXLabelOffsetX()\n\t{\n\t\treturn $this->axis_xlabel_offX;\n\t}", "public function getYDescriptionOffsetLeft(...
[ "0.8193099", "0.7486844", "0.7419647", "0.6868426", "0.64796895", "0.6384592", "0.6333171", "0.6326624", "0.6286165", "0.62398326", "0.62161475", "0.61223984", "0.61166793", "0.60787547", "0.5995492", "0.59750026", "0.58921695", "0.5698752", "0.565965", "0.5645089", "0.564050...
0.86691475
0
Gets y offset of the y axis labels
Получает смещение y меток оси y
public function getAxisYLabelOffsetY() { return $this->axis_ylabel_offY; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAxisYLabelOffsetX()\n\t{\n\t\treturn $this->axis_ylabel_offX;\n\t}", "public function getAxisXLabelOffsetY()\n\t{\n\t\treturn $this->axis_xlabel_offY;\n\t}", "public function getAxisDistanceY()\n\t{\n\t\treturn $this->axis_distance_y;\n\t}", "public function get_y_pos() {\n return $...
[ "0.8258082", "0.8197101", "0.6886376", "0.6738027", "0.66687906", "0.65471923", "0.64719707", "0.6436191", "0.64344704", "0.6394284", "0.6333164", "0.62177193", "0.6214148", "0.62002933", "0.6187845", "0.61662066", "0.6147097", "0.60840553", "0.6068987", "0.60383135", "0.5980...
0.8450586
0
Gets the length of axis label strokes
Получает длину штрихов меток оси
public function getAxisLabelLineLength() { return $this->axis_label_linelength; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAxisStrokeDistance()\n\t{\n\t\treturn $this->delta_pixel;\n\t}", "protected function getSideBordersLength()\n\t{\n\t\t$border = (static::BORDER_WIDTH + static::MIN_SPACE_FROM_BORDER_X);\n\n\t\treturn $border * $this->nesting;\n\t}", "public function getNumLabels()\n {\n return $thi...
[ "0.68501633", "0.59723467", "0.597034", "0.5959281", "0.59096116", "0.5899711", "0.5768862", "0.57566506", "0.57558566", "0.57165706", "0.5684356", "0.5659088", "0.5637954", "0.5623538", "0.55940086", "0.55874914", "0.55643475", "0.556072", "0.5545634", "0.5541273", "0.552721...
0.76472217
0
Gets the top offset of the title text
Получает верхний сдвиг заголовка текста
public function getTitleOffsetTop() { return $this->title_offY; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTopLabel()\n {\n return $this->getParent()->TopLabel;\n }", "function getTop()\r\n\t{\r\n\t\treturn $this->_topHtml;\r\n\t}", "public function centerTop(): string\n {\n return $this->get(__FUNCTION__);\n }", "function _fillTop()\n {\n if ($this->_alignme...
[ "0.66977257", "0.6619052", "0.65133077", "0.65104586", "0.644319", "0.6236459", "0.61930925", "0.61265236", "0.6105456", "0.6089808", "0.60814327", "0.60814327", "0.60043985", "0.5918136", "0.59153986", "0.5905982", "0.5851829", "0.5841395", "0.5798033", "0.5778288", "0.57561...
0.89743555
0
Gets the font size of the title
Получает размер шрифта заголовка
public function getTitleFontSize() { return $this->title_fontsize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTitleSize()\n {\n return $this->titleSize;\n }", "public function getFontSize () {}", "public function size()\n {\n return (float) $this->data->textElement->font['size'] ? (float) $this->data->textElement->font['size'] : 10;\n }", "public function getFontSize()\n ...
[ "0.82645667", "0.7490219", "0.7331274", "0.72979224", "0.72966194", "0.7246787", "0.7246787", "0.7060264", "0.69079536", "0.689497", "0.67273647", "0.66307366", "0.66050214", "0.65058285", "0.64882344", "0.6416852", "0.640133", "0.6316706", "0.6239772", "0.6186897", "0.617774...
0.888725
0
Gets the bottom offset of the x axis description
Получает нижнее смещение описания оси x
public function getXDescriptionOffsetBottom() { return $this->xdescr_offY; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getYDescriptionOffsetLeft()\n\t{\n\t\treturn $this->ydescr_offX;\n\t}", "public function getAxisXLabelOffsetY()\n\t{\n\t\treturn $this->axis_xlabel_offY;\n\t}", "public function getAxisYLabelOffsetX()\n\t{\n\t\treturn $this->axis_ylabel_offX;\n\t}", "public function getTitleOffsetTop()\n\t{\n...
[ "0.7327848", "0.73252094", "0.7252263", "0.68946743", "0.67563707", "0.6592761", "0.63924336", "0.63748413", "0.63650024", "0.63028437", "0.6262055", "0.62000465", "0.6188343", "0.6188343", "0.61317503", "0.6005277", "0.5970461", "0.5964667", "0.58880275", "0.58590335", "0.58...
0.8610763
0