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
Actual execution of the program. Program flow is a) analyze the input file using the parser and get the important info b) set the room matrix equal to the data from input c) get the commands that would be executed d) initialize the position, direction and battery e) execute the commands f) write the data to output file...
Фактическое выполнение программы. Поток выполнения программы включает в себя: a) анализ входного файла с помощью парсера и получение важной информации; b) установку матрицы комнат равной данным из входного файла; c) получение команд, которые будут выполнены; d) инициализацию положения, направления и батареи; e) выполне...
public function run() { $data = $this->parser->analyzeInputFile($this->inputFile); if ($data == true) { $this->room->setMatrix(ArrayTransposer::transposeArray($data->map)); $this->robot->setRoom($this->room); $commands = $data->commands; $this->robot-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function execute()\n {\n $this->file_handle = $this->loadFile();\n\n $this->loadVariables();\n\n $this->loadStatements();\n\n while (($line = fgets($this->file_handle)) !== false) {\n $data = $this->parse($line);\n\n if (is_array($data) && $this->fill ===...
[ "0.62132853", "0.59735376", "0.5860207", "0.58043915", "0.57235134", "0.5683352", "0.54972005", "0.5483612", "0.54680777", "0.5451017", "0.5434689", "0.54113036", "0.5408253", "0.54077697", "0.54037744", "0.53874457", "0.5385617", "0.53683037", "0.5356604", "0.5355675", "0.53...
0.8075091
0
DELETE FROM `albumyeuthich` WHERE `MaNguoiDung` = AND `MaAlbum` =
DELETE FROM `albumyeuthich` WHERE `MaNguoiDung` = AND `MaAlbum` =
function deletelikealbum(){ $idalbum = $_GET['idalbum']; $mand = $_GET["mand"]; $servername = "localhost"; $username = "root"; $password = ""; $dbname = "wednhac"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function album_de($id) {\n $id = db_escape($id);\n $q = \"DELETE FROM album WHERE album_id = '$id'\";\n return db_query($q);\n}", "function deletePhotoyAlbum($id_album)\n {\n $sth = $this->db->prepare(\"DELETE FROM \".DB_PREFIX.\"list_photos WHERE\n id_album ...
[ "0.69805473", "0.6814579", "0.67001545", "0.663985", "0.66307604", "0.6621968", "0.6620421", "0.65938216", "0.65711594", "0.6536664", "0.6530771", "0.6489885", "0.6487246", "0.6446938", "0.6408771", "0.64049715", "0.63904405", "0.63818055", "0.6363054", "0.63403285", "0.63349...
0.7423242
0
Tests list of School
Список тестов школы
public function testList() { //Tests list $this->clientAuthenticated->request('GET', '/school/list'); $response = $this->clientAuthenticated->getResponse(); $content = $this->assertJsonResponse($response, 200); $this->assertInternalType('array', $content); $first = $c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSchoolListRoute()\n {\n $response = $this->get('/members');\n $content = $response->getContent();\n $this->assertStringContainsString(\"<h1>List Schools</h1>\", $content);\n $response->assertStatus(200);\n }", "public function testCreateListMembers()\n {\n...
[ "0.70869356", "0.6481643", "0.64412713", "0.6424522", "0.61243755", "0.60979146", "0.6059344", "0.6032678", "0.5965753", "0.59262735", "0.59023523", "0.57697946", "0.5762973", "0.5748119", "0.57480156", "0.5699772", "0.5676625", "0.5672979", "0.5655612", "0.56026584", "0.5589...
0.7784286
0
Tests search of School
Тестирование поиска школы
public function testSearch() { $this->clientAuthenticated->request('GET', '/school/search/name'); $response = $this->clientAuthenticated->getResponse(); $content = $this->assertJsonResponse($response, 200); $this->assertInternalType('array', $content); $first = $content[0]; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSearch()\n {\n }", "function testSearch() {\n\t\t$this->get_page(\"post/list/author=bob/1\");\n\t}", "public function testSuccessfulSearchCondition()\n {\n $this->actingAs(User::find(1));\n\n $response = $this->get('/v1/home?query=science');\n\n $response->asse...
[ "0.66908205", "0.66401845", "0.6570858", "0.6511771", "0.6420915", "0.63918996", "0.63861173", "0.6266906", "0.6250971", "0.623259", "0.6215422", "0.61820793", "0.6176781", "0.6169677", "0.61684304", "0.61684304", "0.6147587", "0.6085185", "0.6081259", "0.6080637", "0.6073632...
0.7835206
0
Tests delete School AND physically deletes it
Тесты удаляют School и физически удаляют его
public function testDelete() { $this->clientAuthenticated->request('DELETE', '/school/delete/' . self::$objectId); $response = $this->clientAuthenticated->getResponse(); $this->assertJsonResponse($response, 200); //Deletes physically the entity created by test $this->deleteE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function delete_school($school_id = null){\n if($school_id){\n $this->db->where('school_id',$school_id);\n $this->db->delete('schools');\n }\n }", "public function testCanDeleteStudent()\n {\n $this->browse(function (Browser $browser) {\n $browser->loginAs($this->u...
[ "0.68741757", "0.68075436", "0.6702565", "0.6702565", "0.66637594", "0.66411537", "0.6628238", "0.6616554", "0.65732145", "0.6566015", "0.6495762", "0.64911795", "0.6487133", "0.64764786", "0.6473679", "0.6468774", "0.6465259", "0.6456788", "0.64291084", "0.6429007", "0.64206...
0.78879654
0
Lookup hosts for a given topic
Поиск хостов для заданной темы
public function lookupHosts($topic);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function subscribersByTopic(string $topic);", "public function all($topic);", "public function lookup($topic)\n {\n Args::req_string($topic);\n\n $dispatch_class = Arrays::optional($this->map, $topic);\n\n return isset($dispatch_class) ? new $dispatch_class($topic) : null;\n }", "function f...
[ "0.62462676", "0.59616214", "0.59490097", "0.5780336", "0.56800866", "0.5677345", "0.5607013", "0.5590341", "0.55433416", "0.5494358", "0.5468887", "0.5461641", "0.5426112", "0.5399504", "0.5393032", "0.53894913", "0.53670347", "0.53559774", "0.5341053", "0.5301986", "0.52886...
0.92349803
0
Check if the order info is about an advertisement
Проверьте, относится ли информация о заказе к объявлению
public static function is_advertisement( array $order ) { return isset( $order['ad_id'] ) && ! empty( $order['ad_id'] ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function checkTheKeyboardIsViewFullAdvertInformation()\n {\n if (GeneralService::isQuery()){\n if (Str::startsWith(GeneralService::getCallBackQueryData(),'view_advert_info'))\n return true;\n return false;\n }\n return false;\n }", "public function ha...
[ "0.6231545", "0.61378634", "0.60346586", "0.60346586", "0.58261496", "0.56789136", "0.5619627", "0.5531065", "0.5500996", "0.5500996", "0.54836434", "0.5472741", "0.5437499", "0.53878266", "0.53878266", "0.5384617", "0.5363723", "0.53588504", "0.53580797", "0.535338", "0.5329...
0.8078879
0
Check if the order info is about an package
Проверьте, относится ли информация о заказе к упаковке
public static function is_package( array $order ) { return ! self::is_advertisement( $order ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function has_package() {\n\t\treturn ! empty( $this->package );\n\t}", "static function checkPackage($package){\n\t\texec('dpkg -s '.$package.' 2>&1',$out);\n\t\tif(preg_match('@not installed@',$out[0])){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "function check_package_info($packagedir) {\n ...
[ "0.70423603", "0.69328034", "0.6908796", "0.6749546", "0.64515185", "0.6414967", "0.6413269", "0.6413269", "0.6413269", "0.641286", "0.63683623", "0.6313347", "0.6269845", "0.6269753", "0.626234", "0.61873555", "0.6179905", "0.614433", "0.61441416", "0.6090564", "0.60424596",...
0.7616993
0
Get DisagreementOnVerificationDiscount value An additional test has been added (isset) before returning the property value as this property may have been unset before, due to the fact that this property is removable from the request (nillable=true+minOccurs=0)
Получить значение DisagreementOnVerificationDiscount. Дополнительный тест был добавлен (isset) перед возвращением значения свойства, так как это свойство может быть unset'ed ранее, поскольку это свойство может быть удалено из запроса (nillable=true+minOccurs=0)
public function getDisagreementOnVerificationDiscount() { return isset($this->DisagreementOnVerificationDiscount) ? $this->DisagreementOnVerificationDiscount : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDiscountProperty() {\n if ($this->isCouponValid()) {\n return $this->plan->discount($this->coupon);\n }\n return $this->plan->discount();\n }", "public function getDiscountValue()\n {\n return $this->discountValue;\n }", "public function getDiscount(){\r\n ...
[ "0.6875759", "0.6824921", "0.6784396", "0.67659724", "0.6664017", "0.6664017", "0.6664017", "0.6664017", "0.6664017", "0.6664017", "0.6664017", "0.6664017", "0.6664017", "0.6664017", "0.6664017", "0.6552506", "0.65364224", "0.64988476", "0.6496801", "0.6496801", "0.64371216",...
0.8225238
0
Set DisagreementOnVerificationDiscount value This property is removable from request (nillable=true+minOccurs=0), therefore if the value assigned to this property is null, it is removed from this object
Установить значение свойства DisagreementOnVerificationDiscount. Это свойство можно удалить из запроса (nillable=true+minOccurs=0), поэтому если значение, назначенное этому свойству, равно null, оно удаляется из этого объекта.
public function setDisagreementOnVerificationDiscount(\Mu4ddi3\Compensa\Webservice\StructType\DisagreementOnVerificationDiscount $disagreementOnVerificationDiscount = null) { if (is_null($disagreementOnVerificationDiscount) || (is_array($disagreementOnVerificationDiscount) && empty($disagreementOnVerificati...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct(\\Mu4ddi3\\Compensa\\Webservice\\StructType\\DisagreementOnVerificationDiscount $disagreementOnVerificationDiscount = null)\n {\n $this\n ->setDisagreementOnVerificationDiscount($disagreementOnVerificationDiscount);\n }", "public function getDisagreementOnVerif...
[ "0.76183194", "0.6942336", "0.64421713", "0.6148551", "0.60830915", "0.5969161", "0.58728755", "0.58524454", "0.58167046", "0.5609384", "0.55729866", "0.554755", "0.55212706", "0.5501156", "0.5448877", "0.54360783", "0.5420724", "0.54156613", "0.53962505", "0.5392518", "0.533...
0.77372116
0
Public Methods ========================================================================= Get OAuth Providers
Публичные методы ========================================================================= Получить провайдеров OAuth
public function getOAuthProviders() { return [ 'Dukt\OAuth\Providers\Bitbucket', 'Dukt\OAuth\Providers\Dribbble', 'Dukt\OAuth\Providers\Facebook', 'Dukt\OAuth\Providers\Github', 'Dukt\OAuth\Providers\Google', 'Dukt\OAuth\Providers\Insta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSocialProviders();", "public function getProviders();", "public function oauthProviders(): \\Illuminate\\Database\\Eloquent\\Relations\\HasMany\n {\n return $this->hasMany(OAuthProvider::class);\n }", "public static function getAuthProviders(): array {\n\t\t$auth_providers = s...
[ "0.7833713", "0.7549821", "0.7422495", "0.73507434", "0.7223308", "0.7129762", "0.71290374", "0.709924", "0.709924", "0.709924", "0.709924", "0.709924", "0.709924", "0.7070229", "0.7059219", "0.70260113", "0.69486123", "0.6880838", "0.68759066", "0.6742597", "0.67190415", "...
0.8194837
0
$db = mysql_connect("localhost", "vandg", "TJat789661") or die(mysql_error());
$db = mysql_connect("localhost", "vandg", "TJat789661") or die(mysql_error());
function connect(){ // mysql_select_db("colbrad") or die(mysql_error()); $db = mysql_connect("localhost", "ukhoza", "lmbo89") or die(mysql_error()); mysql_select_db("colbrad") or die(mysql_error()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function makeConnectionToDb(){\r\n $connection = mysql_connect(\"kidswithfoodallergies.org:3306\", \"kidswitror_rcp\", \"allergenfree\");\r\n mysql_select_db(\"kidswitror_eve\",$connection);\r\n\t}", "function connect_db()\n{\n\tmysql_connect(\"localhost\", \"root\", \"root\") or die(mysql_erro...
[ "0.82276237", "0.8200127", "0.8171863", "0.8151029", "0.8128061", "0.80234927", "0.79938096", "0.7979546", "0.7979546", "0.7965638", "0.78893566", "0.78859794", "0.78832173", "0.78746104", "0.7842864", "0.78378516", "0.7832602", "0.7827273", "0.78247035", "0.78119177", "0.780...
0.84905434
0
Test pagination empty list.
Тестирование пагинации пустого списка.
public function testCreatePaginatedListEmptyList(): void { // given $page = 1; $expectedResultSize = 0; // when $result = $this->tagService->createPaginatedList($page); // then $this->assertEquals($expectedResultSize, $result->count()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testListEmpty()\n {\n $this->browse(function (Browser $browser) {\n $browser->visit('/admin/hotel')\n ->assertSee('List of hotels');\n $elements = $browser->elements('#table-contain tbody tr');\n $this->assertCount(0, $elements);\n ...
[ "0.8091905", "0.7800474", "0.72030205", "0.71739805", "0.71713746", "0.70962197", "0.70511264", "0.7015447", "0.700315", "0.6957476", "0.69286317", "0.6774123", "0.67628473", "0.6741328", "0.6714214", "0.66875565", "0.66734254", "0.66540515", "0.6646515", "0.6631776", "0.6612...
0.86498517
0
Set error message in session admin_error,
Задайте сообщение об ошибке в сессии admin_error,
private function _returnError($errorText = ''){ $this->dsp->session->SetParam('admin_error' , array($errorText)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function set_admin_error( $msg ) {\n\t\t$errors = (array) $this->get_option( 'admin_errors' );\n\t\t$errors[] = $msg;\n\t\t$this->update_option( 'admin_errors', $errors );\n\t}", "private function showErrorMessage() {\n\t\tif (isset($_SESSION[self::SESSION_MESSAGE_ERROR_KEY])) {\n\t\t\tadd_settings_err...
[ "0.7672116", "0.73248935", "0.7183438", "0.7140543", "0.7140543", "0.7140543", "0.7038244", "0.7033523", "0.7026437", "0.6983356", "0.6973338", "0.6954443", "0.6845134", "0.68321264", "0.6743037", "0.6711491", "0.6710426", "0.66841537", "0.6615983", "0.65795386", "0.6579223",...
0.7364266
1
Returns the authed user name
Возвращает имя аутентифицированного пользователя
function user_authed_name() { return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserName(): string\n {\n return $this->userInfo->getUsername();\n }", "public function getUsername()\n {\n return $this->getNameUser().' '.$this->getLastnameUser();\n }", "public function getUsername()\n {\n return $this->auth->getUsername();\n }", "p...
[ "0.8084171", "0.7976081", "0.79634416", "0.79588145", "0.7927512", "0.7912025", "0.78765136", "0.78623146", "0.7845355", "0.7828456", "0.7825726", "0.7814759", "0.78105867", "0.78094846", "0.78040296", "0.7803909", "0.7799667", "0.77944887", "0.7773287", "0.7767686", "0.77641...
0.80246913
1
Return account based on account id.
Вернуть аккаунт на основе идентификатора аккаунта.
public function getAccount($id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getAccount($id) {\n return self::get(self::T(DB::ACCOUNT), $id);\n }", "public function getAccountById(string $id) : Account\n {\n return $this->table->where(['id' => $id])->firstOrFail();\n }", "public function findAccountById($id)\n {\n return $this->accountQ...
[ "0.8248638", "0.80634874", "0.78379697", "0.77971995", "0.7736333", "0.77297187", "0.772789", "0.7653321", "0.7573604", "0.75158614", "0.74360174", "0.739425", "0.7365766", "0.7275321", "0.72678685", "0.7239892", "0.7232516", "0.7232516", "0.72063446", "0.7144454", "0.7142028...
0.81602883
1
Transfer amount of money $from_account to $to_account.
Перевод суммы денег $from_account на $to_account.
public function transferAccount(Account $from_account, Account $to_account, array $params);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function transfer($fromAccountId, $toAccountId, $amount);", "public function transfer(Account $fromAccount, Account $toAccount, float $amount): bool;", "public function transfer ($from_id,$to_id,$amount);", "public function transferCoins($amount, $accountTo, $numberOutputs = 1, $accountFrom = null);",...
[ "0.83096665", "0.7726664", "0.73025614", "0.7087848", "0.69672346", "0.688091", "0.687886", "0.68102044", "0.66701925", "0.6664461", "0.656525", "0.65363437", "0.6475139", "0.6403201", "0.62075186", "0.6195444", "0.6189278", "0.6168044", "0.61165476", "0.60688096", "0.6037379...
0.7973717
1
Removes the limitation for paid or unpaid registrations.
Удаляет ограничение по оплаченным или неоплаченным регистрациям.
public function removePaymentLimitation() { unset($this->whereClauseParts['paid']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clear_unpaid_signups()\n {\n $sql = 'delete from ' . $this->table_name . \n ' where status = \\'unpaid\\' and created < NOW() - interval ' .\n self::UNPAID_REG_TIME_LIMIT . ' second';\n $this->wpdb->query($sql);\n }", "public function unsetLimit(...
[ "0.65619177", "0.6115401", "0.5866507", "0.5802472", "0.56244105", "0.56206846", "0.5456753", "0.5436924", "0.5403611", "0.53852946", "0.5376542", "0.53721476", "0.52835155", "0.52707183", "0.5238603", "0.52184206", "0.516944", "0.5152687", "0.51265115", "0.51139116", "0.5108...
0.7447609
0
Removes the limitation for regular or on queue registrations.
Удаляет ограничение для обычной или очередной регистрации.
public function removeQueueLimitation() { unset($this->whereClauseParts['queue']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function unsetLimit() {}", "public function limitToOnQueue() {\n\t\t$this->whereClauseParts['queue'] = SEMINARS_TABLE_ATTENDANCES .\n\t\t\t'.registration_queue=1';\n\t}", "public function limitToRegular() {\n\t\t$this->whereClauseParts['queue'] = SEMINARS_TABLE_ATTENDANCES .\n\t\t\t'.registration_queue=...
[ "0.6870312", "0.6044952", "0.6037115", "0.5776474", "0.5547086", "0.5540566", "0.553394", "0.546508", "0.5436828", "0.54107785", "0.5378874", "0.5365939", "0.53455573", "0.5313425", "0.52994996", "0.52988374", "0.527154", "0.527022", "0.52695376", "0.52670103", "0.52662706", ...
0.7228044
0
Limits the bag to contain only registrations with seats equal or less than the seats given in the parameter $seats.
Ограничивает сумку, чтобы она содержала только регистрации с количеством мест, равным или меньшим, чем количество мест, указанное в параметре $seats.
public function limitToSeatsAtMost($seats = 0) { if ($seats < 0) { throw new InvalidArgumentException('The parameter $seats must be >= 0.', 1333292923); } if ($seats == 0) { unset($this->whereClauseParts['seats']); return; } $this->whereClauseParts['seats'] = SEMINARS_TABLE_ATTENDANCES . '.seats...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setSeats($var)\n {\n GPBUtil::checkInt64($var);\n $this->seats = $var;\n }", "public function reserve($seats)\n {\n if (is_array($seats)) {\n $reservations = $this->individual($seats);\n } elseif (is_numeric($seats)) {\n $reservations = $...
[ "0.6981731", "0.6804893", "0.6632869", "0.5917741", "0.57727754", "0.5740713", "0.56014436", "0.5544557", "0.5409956", "0.5313196", "0.5310504", "0.511603", "0.5089181", "0.5086965", "0.5055728", "0.50295866", "0.49687192", "0.49477422", "0.48817405", "0.4881289", "0.4879681"...
0.71625173
0
/ Return a field name given an integer offset.
Возвращает имя поля по заданному целочисленному смещению.
function fieldName($offset) { $field = @pg_field_name($this->result, $offset); return $field; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fieldName($offset){\n\t\t$field = @pg_field_name($this->result, $offset);\n\t\treturn $field;\n\t}", "public function field_name( $qHandle, $offset )\n\t{\n\t\treturn $qHandle->fetchColumn( $offset );\n\t}", "function getFieldName( $query_id=-1, $fieldOffset=0 ) {\n\t\tif ($query_id!=-1) $this->query_...
[ "0.81236297", "0.7469563", "0.7153949", "0.7077547", "0.7019125", "0.6988341", "0.6987516", "0.6920206", "0.6889529", "0.68497115", "0.6836089", "0.68301016", "0.6819744", "0.6778319", "0.6633417", "0.66074806", "0.65685534", "0.65685534", "0.65185505", "0.65100694", "0.65100...
0.81725895
0
Shows the profile update form
Показывает форму обновления профиля
protected function profileUpdateAction() { $this->getModel()->setUser($this->getRequest()->getSession()->getUser()); $oView = new profileView($this); $oView->showProfilePage(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUpdateProfile()\n\t{\n\t\t// Show the page\n\t\treturn View::make('backend.account.profile');\n\t}", "public function getUpdateProfile()\n\t{\n\t\treturn View::make('admin.edit_profile');\n\n\t}", "public function showProfileEditForm()\n {\n return view(\"admin.profile.edit\");\n ...
[ "0.82411695", "0.816702", "0.8148047", "0.79367536", "0.79289734", "0.7886514", "0.7848521", "0.7808103", "0.7777656", "0.776447", "0.77055466", "0.76472706", "0.7614216", "0.75880533", "0.75804526", "0.75788355", "0.75486314", "0.75441337", "0.7528319", "0.75261146", "0.7519...
0.8429054
0
Checks if a profile name has been taken or not, only works for ajax requests
Проверяет, не занят ли имя профиля, работает только для ajax-запросов
protected function checkProfileNameAction() { if ( !$this->getRequest()->isAjaxRequest() ) { $this->redirect($this->buildUriPath(self::ACTION_PROFILE)); } else { $data = $this->getInputManager()->doFilter(); if ( array_key_exists('ProfileName', $data) && strlen($data['ProfileName']) > 2 ) { systemLog::...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function action_checkusername()\n\t{\n\t\tif ($this->request->is_ajax()) {\n\t\t\t$this->auto_render = FALSE;\n\n\t\t\tif(!ORM::factory('User')->unique_key_exists($_POST['username'])) {\n\t\t\t\techo json_encode(array('available' => 1));\n\t\t\t} else {\n\t\t\t\techo json_encode(array('available' => 0));\n\...
[ "0.70464003", "0.7044103", "0.7034041", "0.67122805", "0.6603532", "0.65315753", "0.6526886", "0.6488498", "0.64714205", "0.6463393", "0.64632773", "0.6374372", "0.6363105", "0.63361967", "0.63199085", "0.6269056", "0.62616915", "0.62535155", "0.62523633", "0.6228242", "0.621...
0.81942844
0
Handles file uploads for the profile image
Обрабатывает загрузку файлов для аватарки профиля
protected function uploadImageAction() { $userID = $this->getActionFromRequest(false, 1); $oUser = $this->getRequest()->getSession()->getUser(); $response = 'failed'; systemLog::message("Received upload request for $userID"); if ( $userID && $userID == $oUser->getID() ) { try { $oFileUpload = new mv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function uploadProfilePicture(){\n $this->viewBuilder()->layout = false;\n $this->render(false);\n\t\t$UsersTable = TableRegistry::get('Users');\n $loggedIn_user = $this->Auth->user();\n if($this->request->is('post')){\n \t$handle = new \\Upload($this->request->data['image...
[ "0.75477463", "0.71244305", "0.70728177", "0.7071917", "0.7065484", "0.706054", "0.703219", "0.70291865", "0.7025626", "0.69751346", "0.6972889", "0.69546956", "0.69502634", "0.6916566", "0.69090724", "0.6906588", "0.6906584", "0.6897928", "0.68669474", "0.6864974", "0.685250...
0.71854496
1
Updates a profile movie
Обновляет профиль фильма
protected function updateProfileMovie() { $this->getInputManager()->addFilter('id', utilityInputFilter::filterString()); $this->getInputManager()->addFilter('value', utilityInputFilter::filterString()); $data = $this->getInputManager()->doFilter(); if ( preg_match('/^movID\-\d+/', $data['id']) ) { $id = (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update()\n\t{\n\t\t$movie = new Movie();\n\t\t//récupération du film\n\t\t$id = htmlentities($_GET['id']);\n\t\t$movie =$this->movieManager->findOne($id);\n\n\t\tView::show('admin/moviesForm.php', \n\t\t\t\t\t\"Manage your movies\", \n\t\t\t\t\t['movie' => $movie, \n\t\t\t\t\t'action' => \"update\"...
[ "0.70862144", "0.6773372", "0.65898895", "0.6476909", "0.64708054", "0.6345486", "0.6337008", "0.6313842", "0.6313842", "0.6313842", "0.6313842", "0.6313842", "0.6313842", "0.62682766", "0.62004215", "0.61967826", "0.61820495", "0.61601835", "0.6141593", "0.6122257", "0.61066...
0.8368161
0
Add social media buttons Options: $items: An array of options. Ex, array('facebook', 'twitter'); $style: 'plain', 'dotted' For ex, to include in your theme file: print gazebo_ubc_social_media_links(array('twitter'), 'dotted');
Добавить кнопки социальных сетей. Опции: $items: массив опций. Например, array('facebook', 'twitter'); $style: 'plain', 'dotted'. Например, чтобы включить в ваш файл темы: print gazebo_ubc_social_media_links(array('twitter'), 'dotted');
function gazebo_ubc_social_media_links($items = NULL, $style = 'plain') { // social media buttons $variables['tweet'] = '<span class="social-link social-link-twitter"><a href="http://twitter.com/share" class="twitter-share-button" data-url="'; $variables['tweet'] .= $_SERVER['HTTP_HOST'] . base_path() . drupal_ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addSocialMedia($style)\n{\n\techo '<ul class=\"socialmedia\">';\n\t\n\tif( have_rows('social_media_repeater', 'option') ):\n\n \twhile ( have_rows('social_media_repeater', 'option') ) : the_row();\n\t\t\tif(get_sub_field('social_media_link'))\n\t\t\t{\n\t\t\t\tif(get_sub_field('social_media_type') == \...
[ "0.64711046", "0.64567965", "0.6419076", "0.639723", "0.63949496", "0.6295293", "0.62706226", "0.6135199", "0.612208", "0.61058056", "0.6105086", "0.6090585", "0.6051835", "0.60432863", "0.60231996", "0.60215604", "0.60155", "0.60077524", "0.5999331", "0.5974442", "0.5949511"...
0.801203
0
UBC CLF Carousel options Options: $duration: in milliseconds $speed: in milliseconds $style: 'default', 'thumbnail', 'sliding_gallery', 'transparent_slider' For ex, to include in your theme file: print gazebo_ubc_clf_carousel('4000', '800', 'sliding_gallery');
Опции карусели UBC CLF Опции: $duration: в миллисекундах $speed: в миллисекундах $style: 'default', 'thumbnail', 'sliding_gallery', 'transparent_slider' Например, чтобы включить в ваш файл темы: print gazebo_ubc_clf_carousel('4000', '800', 'sliding_gallery');
function gazebo_ubc_clf_carousel($duration = NULL, $speed = NULL, $style = NULL) { // output carousel view $output = ' <div id="UBCHeadlineWidget" '; if (isset($duration['element'])) { $duration = $duration['element']; } else { $duration = theme_get_setting('carousel_duration'); } $output .= '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function pixelgarage_preprocess_views_bootstrap_carousel_plugin_style(&$vars) {\n // replace slide with fade\n $count = count($vars['classes_array']);\n $vars['classes_array'][$count-1] = 'carousel carousel-fade';\n\n // add item attributes (different interval for each slide)\n $view = $vars['view'];\n forea...
[ "0.6248823", "0.61168545", "0.6100432", "0.6073156", "0.6067087", "0.6064682", "0.6039589", "0.59938717", "0.5972711", "0.5972588", "0.59199023", "0.5910072", "0.588089", "0.5879219", "0.5872127", "0.5872117", "0.5831463", "0.5800225", "0.57347834", "0.5733288", "0.57116103",...
0.8506798
0
Return the UBC CLF visual identity footer
Верните футер визуальной идентичности UBC CLF
function gazebo_ubc_clf_visual_identity_footer($variables) { $output = '<div id="UbcBottomInfoWrapper"> <div id="UbcBottomInfo" class="UbcContainer"> <div id="UbcBottomLeft" > <p>'; $image = array( 'path' => base_path() . path_to_theme() . '/_ubc_clf/img/footer/logo.gif', 'alt' => t('A place o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFooter()\r\n {\r\n return \"<footer>&copy;2020 Christian Hur. I own this!</footer>\";\r\n }", "private function _makeFooter(): string\n {\n $backtrace = debug_backtrace();\n $fromFile = $backtrace[2]['file'];\n $fromLine = $backtrace[2]['line'];\n re...
[ "0.6880739", "0.6599071", "0.65292555", "0.6520221", "0.6400813", "0.6398119", "0.6366668", "0.63319606", "0.6309497", "0.63028264", "0.6281908", "0.6276781", "0.62728", "0.62500554", "0.624077", "0.62376136", "0.6209729", "0.62048846", "0.61621326", "0.61602604", "0.6152072"...
0.71770865
0
Return the UBC CLF global utility footer
Верните глобальный футер UBC CLF
function gazebo_ubc_clf_global_utility_footer($variables) { $output = '<div id="UbcUtilNavWrapper"> <div id="UbcUtilNav" class="UbcContainer"> <p> <a href="http://www.emergency.ubc.ca">Emergency Procedures</a>&nbsp;|&nbsp;'; $output .= l(t('Accessibility'), 'http://www.ubc.ca/accessibility'); $output .= '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFooter()\r\n {\r\n return \"<footer>&copy;2020 Christian Hur. I own this!</footer>\";\r\n }", "function PageFooter() {\n global $c;\n echo <<<FOOTERTABLE\n<div id=\"page_footer\">\nWRMS: $c->code_major.$c->code_minor.$c->code_patch, DB: $c->schema_major.$c->schema_minor.$c->...
[ "0.78505313", "0.7735537", "0.7614534", "0.7543297", "0.7517452", "0.75023305", "0.74882513", "0.7464683", "0.7428131", "0.7422745", "0.7415467", "0.7386471", "0.73833627", "0.73672247", "0.7362759", "0.73165303", "0.7286321", "0.7285377", "0.72803044", "0.72754705", "0.72494...
0.7890688
0
Add imgrounded and imgresponsive css class
Добавить css классы imgrounded и imgresponsive
function italystrap_add_image_class($class){ $class .= ' img-rounded img-responsive '; return $class; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function kumonosu_add_class_to_images($class){\n\t$class .= ' img-fluid mx-auto';\n\treturn $class;\n}", "function add_image_class($class){\n\t$class .= ' img-fluid';\n\treturn $class;\n}", "function add_image_responsive_class($content) {\n global $post;\n $pattern =\"/<img(.*?)class=\\\"(.*?)\\\"(.*?)>/i\...
[ "0.7002572", "0.6760307", "0.6698135", "0.66729355", "0.6650037", "0.6430945", "0.6270451", "0.624721", "0.6243304", "0.61740315", "0.61319715", "0.611101", "0.60617435", "0.6057557", "0.6055958", "0.6052224", "0.6037553", "0.60104483", "0.599732", "0.59837216", "0.5916206", ...
0.7218716
0
Gets the failedDeviceCount Number of Devices that have failed to install this app.
Получает число failedDeviceCount устройств, которые не смогли установить это приложение.
public function getFailedDeviceCount() { if (array_key_exists("failedDeviceCount", $this->_propDict)) { return $this->_propDict["failedDeviceCount"]; } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function failed()\n {\n return count($this->failedItems);\n }", "public function failureCount() {\n return sizeof($this->failed);\n }", "public function failureCount() {\n return sizeof($this->failed);\n }", "public function get_failed_count();", "public function countFailur...
[ "0.7423979", "0.7188349", "0.71796894", "0.7044428", "0.69527155", "0.68582004", "0.68154603", "0.6810393", "0.6786096", "0.6747251", "0.67149013", "0.67116636", "0.66952276", "0.6627094", "0.6613022", "0.6613022", "0.66088897", "0.6595842", "0.6583699", "0.6570498", "0.65542...
0.8147757
0
Sets the failedDeviceCount Number of Devices that have failed to install this app.
Устанавливает failedDeviceCount количество устройств, которые не смогли установить это приложение.
public function setFailedDeviceCount($val) { $this->_propDict["failedDeviceCount"] = intval($val); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setFailedDeviceCount(?int $value): void {\n $this->getBackingStore()->set('failedDeviceCount', $value);\n }", "public function setErrorDeviceCount(?int $value): void {\n $this->getBackingStore()->set('errorDeviceCount', $value);\n }", "public function setFailedUserCount($val...
[ "0.7453458", "0.68384945", "0.6493236", "0.649059", "0.64684004", "0.64684004", "0.640308", "0.6394188", "0.63785356", "0.6367132", "0.6335671", "0.6305744", "0.6305744", "0.628548", "0.628548", "0.62624335", "0.6253216", "0.62511206", "0.61705256", "0.61524916", "0.614312", ...
0.7802748
0
Gets the failedUserCount Number of Users that have 1 or more device that failed to install this app.
Получает число failedUserCount пользователей, у которых есть 1 или более устройств, не уданных установить эту приложение.
public function getFailedUserCount() { if (array_key_exists("failedUserCount", $this->_propDict)) { return $this->_propDict["failedUserCount"]; } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function failed()\n {\n return count($this->failedItems);\n }", "public function getFailedLoginCt(){\n\n\t global $db;\n\n\t #get the count from the user table..\n $db->SQL = \"SELECT failed_attempts FROM ebb_users WHERE Username='\".$this->user.\"' LIMIT 1\";\n\t\t$getFailedLogi...
[ "0.7152415", "0.7073082", "0.70671374", "0.7043746", "0.7043746", "0.696949", "0.68450445", "0.6844922", "0.6840403", "0.67222977", "0.6681134", "0.66653556", "0.658147", "0.6571017", "0.64954114", "0.64760846", "0.6458245", "0.6438545", "0.64151555", "0.6375067", "0.63738346...
0.77859753
0
Sets the failedUserCount Number of Users that have 1 or more device that failed to install this app.
Устанавливает failedUserCount число пользователей, у которых есть 1 или более устройств, которые не смогли установить эту приложение.
public function setFailedUserCount($val) { $this->_propDict["failedUserCount"] = intval($val); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setFailedLogin(){\n\n\t global $db;\n\n\t #get new count.\n\t\t$newCount = $this->getFailedLoginCt();\n\t\t$incrementFailedCt = $newCount['failed_attempts'] + 1;\n\n\t #get the count from the user table.\n $db->SQL = \"UPDATE ebb_users SET failed_attempts='$incrementFailedCt' WHERE ...
[ "0.7220935", "0.70821226", "0.70821226", "0.6818933", "0.6518494", "0.64234614", "0.62837446", "0.61905926", "0.61624956", "0.611087", "0.60319597", "0.6006319", "0.5954599", "0.5920115", "0.5867375", "0.58644396", "0.58237743", "0.58237743", "0.58211267", "0.5813361", "0.577...
0.7566406
0
Gets the installedDeviceCount Number of Devices that have successfully installed this app.
Получает количество установленных устройств Количество устройств, которые успешно установили эту программу.
public function getInstalledDeviceCount() { if (array_key_exists("installedDeviceCount", $this->_propDict)) { return $this->_propDict["installedDeviceCount"]; } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getInstalledCount(): int\n {\n return count($this->getInstalled());\n }", "public function getNumDevices() {\n\t\t$this->getData();\n\t\treturn $this->numDevices;\n\t}", "public function getNotInstalledDeviceCount()\n {\n if (array_key_exists(\"notInstalledDeviceCount\", ...
[ "0.7566107", "0.72141093", "0.7121219", "0.7121219", "0.70342094", "0.69279367", "0.68912154", "0.68748766", "0.67969036", "0.67679775", "0.67168796", "0.6570987", "0.65178657", "0.65178657", "0.6466722", "0.63988924", "0.63793784", "0.633886", "0.6317563", "0.6302842", "0.62...
0.8012723
0
Sets the installedDeviceCount Number of Devices that have successfully installed this app.
Устанавливает installedDeviceCount Количество устройств, которые успешно установили эту приложение.
public function setInstalledDeviceCount($val) { $this->_propDict["installedDeviceCount"] = intval($val); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setInstalledDeviceCount(?int $value): void {\n $this->getBackingStore()->set('installedDeviceCount', $value);\n }", "public function setNotInstalledDeviceCount(?int $value): void {\n $this->getBackingStore()->set('notInstalledDeviceCount', $value);\n }", "public function set...
[ "0.7376639", "0.6658963", "0.6444743", "0.634371", "0.6264315", "0.6250538", "0.6250538", "0.61939824", "0.61939824", "0.6189722", "0.6172592", "0.6118669", "0.60845846", "0.6057242", "0.6047729", "0.60075074", "0.59800446", "0.5891845", "0.5891845", "0.5855991", "0.5849639",...
0.7417566
0
Gets the installedUserCount Number of Users whose devices have all succeeded to install this app.
Получает количество пользователей, у которых устройства успешно установили эту приложение.
public function getInstalledUserCount() { if (array_key_exists("installedUserCount", $this->_propDict)) { return $this->_propDict["installedUserCount"]; } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getInstalledCount(): int\n {\n return count($this->getInstalled());\n }", "public function countUsers() {\n $users = count_users();\n return $users['total_users'];\n }", "public function count()\n {\n return count($this->_users);\n }", "public static...
[ "0.7370877", "0.72687757", "0.71687716", "0.71206367", "0.70702976", "0.69624734", "0.6941182", "0.69166934", "0.6912916", "0.6910858", "0.69035715", "0.69016755", "0.68962413", "0.6878614", "0.68780833", "0.6862591", "0.68249637", "0.6813105", "0.68063915", "0.67972845", "0....
0.7633238
0
Sets the installedUserCount Number of Users whose devices have all succeeded to install this app.
Устанавливает количество пользователей, чьи устройства успешно установили эту приложение.
public function setInstalledUserCount($val) { $this->_propDict["installedUserCount"] = intval($val); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setPendingInstallUserCount($val)\n {\n $this->_propDict[\"pendingInstallUserCount\"] = intval($val);\n return $this;\n }", "public function setNotInstalledUserCount($val)\n {\n $this->_propDict[\"notInstalledUserCount\"] = intval($val);\n return $this;\n }"...
[ "0.65891767", "0.655556", "0.6505913", "0.6490679", "0.6490679", "0.6281442", "0.6142271", "0.5976648", "0.5845943", "0.5845943", "0.5829064", "0.58263665", "0.5762894", "0.57398635", "0.57184494", "0.5717295", "0.57145804", "0.56993395", "0.56979334", "0.56849545", "0.566563...
0.748792
0
Gets the notApplicableDeviceCount Number of Devices that are not applicable for this app.
Получает несоответствующее количество устройств, количество устройств, которые не подходят для этой приложения.
public function getNotApplicableDeviceCount() { if (array_key_exists("notApplicableDeviceCount", $this->_propDict)) { return $this->_propDict["notApplicableDeviceCount"]; } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDetectionScriptNotApplicableDeviceCount()\n {\n if (array_key_exists(\"detectionScriptNotApplicableDeviceCount\", $this->_propDict)) {\n return $this->_propDict[\"detectionScriptNotApplicableDeviceCount\"];\n } else {\n return null;\n }\n }", "p...
[ "0.71922714", "0.7190908", "0.7190908", "0.7187703", "0.6651311", "0.65796626", "0.65796626", "0.65146524", "0.65146524", "0.6398649", "0.63359356", "0.620237", "0.61988795", "0.60632", "0.60535806", "0.6014365", "0.59594375", "0.592033", "0.5918218", "0.5842274", "0.58009785...
0.83972013
0
Sets the notApplicableDeviceCount Number of Devices that are not applicable for this app.
Устанавливает несоответствующее количество устройств (notApplicableDeviceCount), то есть количество устройств, которые не подходят для этой приложения.
public function setNotApplicableDeviceCount($val) { $this->_propDict["notApplicableDeviceCount"] = intval($val); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDetectionScriptNotApplicableDeviceCount($val)\n {\n $this->_propDict[\"detectionScriptNotApplicableDeviceCount\"] = intval($val);\n return $this;\n }", "public function setNotApplicableUserCount($val)\n {\n $this->_propDict[\"notApplicableUserCount\"] = intval($va...
[ "0.75377166", "0.694156", "0.67689806", "0.66822994", "0.66822994", "0.6654875", "0.64140826", "0.64140826", "0.63147444", "0.6232677", "0.61563206", "0.58913964", "0.5796113", "0.57814956", "0.5779427", "0.568426", "0.5652396", "0.5605442", "0.55401546", "0.55401546", "0.544...
0.80364513
0
Gets the notApplicableUserCount Number of Users whose devices were all not applicable for this app.
Получает неApplicableUserCount число пользователей, устройства которых были все неприменимы для этой приложения.
public function getNotApplicableUserCount() { if (array_key_exists("notApplicableUserCount", $this->_propDict)) { return $this->_propDict["notApplicableUserCount"]; } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNotApplicableDeviceCount()\n {\n if (array_key_exists(\"notApplicableDeviceCount\", $this->_propDict)) {\n return $this->_propDict[\"notApplicableDeviceCount\"];\n } else {\n return null;\n }\n }", "public function getNotInstalledUserCount()\n ...
[ "0.72534287", "0.67066777", "0.6427108", "0.64022684", "0.6368591", "0.6342861", "0.62647206", "0.6260064", "0.6236656", "0.60757804", "0.6071847", "0.607158", "0.6050853", "0.6050853", "0.59855694", "0.5968032", "0.59438723", "0.5928857", "0.5898986", "0.588362", "0.58760136...
0.79426956
0
Sets the notApplicableUserCount Number of Users whose devices were all not applicable for this app.
Устанавливает неиспользуемое количество пользователей, чьи устройства были полностью не применимы к этой приложению.
public function setNotApplicableUserCount($val) { $this->_propDict["notApplicableUserCount"] = intval($val); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setNotApplicableDeviceCount($val)\n {\n $this->_propDict[\"notApplicableDeviceCount\"] = intval($val);\n return $this;\n }", "public function getNotApplicableUserCount()\n {\n if (array_key_exists(\"notApplicableUserCount\", $this->_propDict)) {\n return $...
[ "0.7233571", "0.70545495", "0.6786617", "0.6535625", "0.63328457", "0.61182445", "0.5888366", "0.5888366", "0.56698895", "0.56698895", "0.55663645", "0.552541", "0.5480017", "0.5474611", "0.5424263", "0.5376804", "0.52304864", "0.52185327", "0.521344", "0.5175373", "0.5141328...
0.7676458
0
Gets the notInstalledDeviceCount Number of Devices that does not have this app installed.
Получает неустановленное количество устройств, количество устройств, которые не имеют этой программы.
public function getNotInstalledDeviceCount() { if (array_key_exists("notInstalledDeviceCount", $this->_propDict)) { return $this->_propDict["notInstalledDeviceCount"]; } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNotApplicableDeviceCount()\n {\n if (array_key_exists(\"notApplicableDeviceCount\", $this->_propDict)) {\n return $this->_propDict[\"notApplicableDeviceCount\"];\n } else {\n return null;\n }\n }", "public function getNotInstalledUserCount()\n ...
[ "0.76659995", "0.74304754", "0.7150946", "0.7150946", "0.7016642", "0.7016642", "0.68599534", "0.6831763", "0.68025166", "0.6775279", "0.6775279", "0.6639729", "0.65986705", "0.65640813", "0.65096635", "0.64589566", "0.64589566", "0.64564115", "0.64368165", "0.63323605", "0.6...
0.85191756
1
Sets the notInstalledDeviceCount Number of Devices that does not have this app installed.
Устанавливает количество устройств, которые не имеют установленного этого приложения.
public function setNotInstalledDeviceCount($val) { $this->_propDict["notInstalledDeviceCount"] = intval($val); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setNotInstalledDeviceCount(?int $value): void {\n $this->getBackingStore()->set('notInstalledDeviceCount', $value);\n }", "public function setNotApplicableDeviceCount($val)\n {\n $this->_propDict[\"notApplicableDeviceCount\"] = intval($val);\n return $this;\n }", "...
[ "0.7590301", "0.7423791", "0.7162015", "0.69572264", "0.68785447", "0.68785447", "0.6848555", "0.6848555", "0.6583176", "0.64353627", "0.6379699", "0.6379699", "0.6365356", "0.6282824", "0.6225358", "0.62057847", "0.61938137", "0.61571765", "0.6152203", "0.6078352", "0.606350...
0.79238456
1
Gets the notInstalledUserCount Number of Users that have 1 or more devices that did not install this app.
Получает notInstalledUserCount Количество пользователей, у которых есть 1 или более устройств, которые не установили это приложение.
public function getNotInstalledUserCount() { if (array_key_exists("notInstalledUserCount", $this->_propDict)) { return $this->_propDict["notInstalledUserCount"]; } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNotInstalledDeviceCount()\n {\n if (array_key_exists(\"notInstalledDeviceCount\", $this->_propDict)) {\n return $this->_propDict[\"notInstalledDeviceCount\"];\n } else {\n return null;\n }\n }", "public function getNotInstalledDeviceCount()\n ...
[ "0.7310154", "0.7310154", "0.71247107", "0.707177", "0.70220727", "0.67598784", "0.67360544", "0.67057776", "0.6628766", "0.6608553", "0.65995735", "0.653685", "0.6535357", "0.6530499", "0.6521185", "0.6486131", "0.6461371", "0.6442717", "0.643875", "0.64059156", "0.6404238",...
0.8071082
0
Sets the notInstalledUserCount Number of Users that have 1 or more devices that did not install this app.
Устанавливает notInstalledUserCount Количество пользователей, у которых есть 1 или более устройств, которые не установили это приложение.
public function setNotInstalledUserCount($val) { $this->_propDict["notInstalledUserCount"] = intval($val); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setNotInstalledDeviceCount($val)\n {\n $this->_propDict[\"notInstalledDeviceCount\"] = intval($val);\n return $this;\n }", "public function setNotInstalledDeviceCount($val)\n {\n $this->_propDict[\"notInstalledDeviceCount\"] = intval($val);\n return $this;\n ...
[ "0.7174016", "0.7174016", "0.7125002", "0.6918245", "0.686544", "0.66359997", "0.66275454", "0.6457625", "0.63189155", "0.62441736", "0.6166699", "0.6166699", "0.5931499", "0.5931499", "0.59037495", "0.5884843", "0.5883323", "0.5764713", "0.5739219", "0.5739219", "0.5687278",...
0.77340513
0
Gets the pendingInstallDeviceCount Number of Devices that have been notified to install this app.
Получает число устройств, которые были уведомлены о установке этой программы.
public function getPendingInstallDeviceCount() { if (array_key_exists("pendingInstallDeviceCount", $this->_propDict)) { return $this->_propDict["pendingInstallDeviceCount"]; } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getInstalledDeviceCount()\n {\n if (array_key_exists(\"installedDeviceCount\", $this->_propDict)) {\n return $this->_propDict[\"installedDeviceCount\"];\n } else {\n return null;\n }\n }", "public function getInstalledDeviceCount()\n {\n ...
[ "0.70882213", "0.70882213", "0.7035513", "0.6970042", "0.69420373", "0.69420373", "0.6871061", "0.68450904", "0.6812185", "0.67790407", "0.6684606", "0.6640029", "0.6624784", "0.66227454", "0.656272", "0.64497346", "0.6442489", "0.6402588", "0.6402588", "0.6333736", "0.632862...
0.82937753
0
Sets the pendingInstallDeviceCount Number of Devices that have been notified to install this app.
Устанавливает количество устройств, которые были уведомлены о установке этой программы.
public function setPendingInstallDeviceCount($val) { $this->_propDict["pendingInstallDeviceCount"] = intval($val); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setPendingSignatureUpdateDeviceCount($val)\n {\n $this->_propDict[\"pendingSignatureUpdateDeviceCount\"] = $val;\n return $this;\n }", "public function setPendingInstallUserCount($val)\n {\n $this->_propDict[\"pendingInstallUserCount\"] = intval($val);\n retur...
[ "0.6934207", "0.6728307", "0.65870476", "0.65870476", "0.65562314", "0.6547059", "0.6547059", "0.65081036", "0.64576805", "0.64553076", "0.6445602", "0.6436081", "0.64239794", "0.64239794", "0.62600416", "0.6224025", "0.5994769", "0.58703136", "0.5774776", "0.5745683", "0.574...
0.78458554
0
Gets the pendingInstallUserCount Number of Users that have 1 or more device that have been notified to install this app and have 0 devices with failures.
Получает количество пользователей, ожидающих установку, то есть количество пользователей, у которых есть 1 или более устройств, которые были уведомлены о установке этого приложения, и у которых нет устройств с ошибками.
public function getPendingInstallUserCount() { if (array_key_exists("pendingInstallUserCount", $this->_propDict)) { return $this->_propDict["pendingInstallUserCount"]; } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPendingUserCount()\n {\n return count(self::getPendingVerification());\n }", "public function getPendingInstallDeviceCount()\n {\n if (array_key_exists(\"pendingInstallDeviceCount\", $this->_propDict)) {\n return $this->_propDict[\"pendingInstallDeviceCount\"]...
[ "0.7753883", "0.7320094", "0.7171112", "0.70596355", "0.68110967", "0.67023605", "0.6686378", "0.66340643", "0.66186917", "0.6542984", "0.65416265", "0.6520464", "0.6500645", "0.6494384", "0.6482241", "0.6481302", "0.64559364", "0.6443531", "0.64319307", "0.6412221", "0.63822...
0.7899441
0
Sets the pendingInstallUserCount Number of Users that have 1 or more device that have been notified to install this app and have 0 devices with failures.
Устанавливает значение pendingInstallUserCount, равное количеству пользователей, у которых есть 1 или более устройств, которые были уведомлены о установке этой программы, и 0 устройств с ошибками.
public function setPendingInstallUserCount($val) { $this->_propDict["pendingInstallUserCount"] = intval($val); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setPendingInstallDeviceCount($val)\n {\n $this->_propDict[\"pendingInstallDeviceCount\"] = intval($val);\n return $this;\n }", "public function getPendingInstallUserCount()\n {\n if (array_key_exists(\"pendingInstallUserCount\", $this->_propDict)) {\n retu...
[ "0.7086154", "0.6743235", "0.6729369", "0.6677317", "0.612772", "0.6124437", "0.6097683", "0.6097683", "0.6060365", "0.6005499", "0.5900274", "0.5861537", "0.5821094", "0.5821094", "0.57886773", "0.5713453", "0.56525576", "0.56317127", "0.5619156", "0.55976945", "0.55509734",...
0.76179683
0
Optional. In this method you can do other configurations, it's called by the constructor.
Опционально. В этом методе вы можете выполнить другие настройки, он вызывается конструктором.
protected function configuration() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function configurate()\n {\n\n }", "abstract protected function config();", "function __construct() {\n /**\n Implement Config Reading\n */\n }", "public function __construct( ) {\n\t\t\t\t//$this->config ;\n\t\t\t}", "private function __construct() {\n\t\t$this->set...
[ "0.73794127", "0.7241352", "0.72122586", "0.72025895", "0.7175883", "0.7161795", "0.7142855", "0.7119906", "0.7090628", "0.7081577", "0.7038724", "0.7033442", "0.7017764", "0.7012717", "0.701005", "0.701005", "0.69978637", "0.69914424", "0.69602364", "0.69542545", "0.69542545...
0.7624319
0
CertChecker constructor. If the expiration day is within the current day + days parameter it will send a notification The config parameter is the filename where it reads the settings
Конструктор CertChecker. Если день истечения срока действия находится в пределах текущего дня + параметр days, он отправит уведомление. Параметр config — это имя файла, из которого он считывает настройки.
public function __construct($config) { error_reporting(E_ALL); $conf = Config::load($config); $mailConf = $conf->get('MAIL'); $appConf = $conf->get('APP'); $this->_notificationDays = (int)$appConf['days']; $this->_logger = new Logger('cert-checking'); $logFile...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run(): void\n {\n\n $this->dbForConsole = $this->getConsoleDB();\n\n $skipCheck = $this->args['skipRenewCheck'] ?? false; // If true, we won't double-check expiry from cert file\n $document = new Document($this->args['domain'] ?? []);\n $domain = new Domain($document-...
[ "0.5400863", "0.53067577", "0.51491374", "0.5095546", "0.5071677", "0.5071438", "0.50661576", "0.50555426", "0.5027384", "0.49219775", "0.49146962", "0.48902935", "0.47863302", "0.475651", "0.47538963", "0.47479415", "0.47314313", "0.47204563", "0.46961874", "0.4681118", "0.4...
0.78961015
0
/ IMPORT PROCEDURE Imports categories and conferences from the CHC Forum into the forums table of the mm_forum extension.
/ ИМПОРТ ПРОЦЕДУРА Импортирует категории и конференции из CHC Forum в таблицу forums расширения mm_forum.
Public Function importForums() { $insertStatement = $this->localDatabase->prepare ( self::STMT_INSERT_FORUM ); $selectStatement = $this->getRemoteQuery ( self::STMT_SELECT_CATEGORIES ); $forumSelectStatement = $this->localDatabase->prepare ( self::STMT_SELECT_FORUMS ); $categoryCount = 0; ForEa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function __importCategories(){\n \t\n\t\t$xml = $this->__importCategoriesQuery();\n\t\t\n \tif($xml->Results > 0){\n\t\t\n\t \t$import_count = 0;\n\t\t\tforeach($xml->item as $item)\n\t\t\t{\n\t\t\t\t$data['IcodesusCategoriesDump']['icodes_name'] = $item->category;\n\t\t\t\t$data['IcodesusCategoriesDump']...
[ "0.6319813", "0.6213771", "0.6196598", "0.6042618", "0.60076565", "0.5935866", "0.5852724", "0.5815066", "0.5589202", "0.5548207", "0.5486087", "0.54432356", "0.5434282", "0.54152584", "0.54149824", "0.54011554", "0.5363772", "0.53527796", "0.53402185", "0.5313378", "0.529821...
0.7818065
0
Returns all of the customer data from the table 'customer_info' uses a specifid ID
Возвращает все данные клиента из таблицы 'customer_info' с использованием определенного ID
public function getCustomerData($id) { $this->db->from('customer_info'); $this->db->where('customer_id', $id); $query = $this->db->get(); $data = array(); if($query->num_rows() > 0) { //customer found foreach($query->result_array() as $row) { $row['phone'] = $row['home_phone']; //added for c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getCustomerInfo(){\n $c_id = $this->c_id[$this->index];\n\n $sql = \"SELECT * FROM customer INNER JOIN quotation ON customer.C_ID = quotation.C_ID\n WHERE customer.C_ID = '{$c_id}'\";\n \n return DB::run($sql);\n }", "public function detailCu...
[ "0.7773146", "0.7329844", "0.72773075", "0.7198927", "0.71763647", "0.71656734", "0.7160619", "0.715069", "0.71410555", "0.71294916", "0.7092746", "0.70847785", "0.70732886", "0.7058197", "0.70387965", "0.70296204", "0.7026552", "0.6997727", "0.69662464", "0.6964025", "0.6933...
0.76991856
1
end getCustomerData(); Returns a specific customers store credit by date;
end getCustomerData(); Возвращает определенный кредит клиента по дате;
public function getCustomerStoreCreditByDate($customer_id, $invoice_id, $date) { $this->db->from('customer_store_credit'); $this->db->where('customer_id', $customer_id); $this->db->where('invoice_id', $invoice_id); $this->db->where('date', $date); $data = array(); $query = $this->db->get(); if($q...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCustomerData(){\n $customerData=$this->getCustomerDetails();\n return $this->_customer->load ( $customerData->getId() );\n }", "function GetCustomerByDateData($date) {\n $data = $this->db\n ->select('first_name,email,no_phone,no_hp,kode_pemasangan,created...
[ "0.6674692", "0.6467592", "0.6370646", "0.6364461", "0.63529277", "0.6293571", "0.628282", "0.62114793", "0.62037987", "0.6200734", "0.6167288", "0.6153447", "0.6093787", "0.6067931", "0.6044998", "0.6035643", "0.6016807", "0.59961605", "0.5988089", "0.59491557", "0.59491557"...
0.7556211
0
Updates a store credit via a credit id,
Обновляет кредит магазина через идентификатор кредита,
public function updateCustomerStoreCreditByInvoiceId($credit_id, $fields) { $this->db->where('store_credit_id', $credit_id); $this->db->limit(1); //always limit one $this->db->update('customer_store_credit', $fields); return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function credit_put()\n {\n $id=$this->get('id');\n $update_data=array(\n // 'ca_id'=>$this->put('ca_id'),\n 'c_balance'=>$this->put('c_balance'),\n 'c_limit'=>$this->put('c_limit')\n );\n $result=$this->Credit_model->update_credit($id, $update...
[ "0.67365026", "0.6660829", "0.66470987", "0.6634655", "0.66346276", "0.6612538", "0.6566867", "0.6522735", "0.6469916", "0.64277655", "0.6412317", "0.6394842", "0.6348988", "0.6302501", "0.6297574", "0.62747294", "0.627311", "0.6266986", "0.6263432", "0.62523574", "0.62440795...
0.73319864
0
Define the function ca_state_question_admin_settings_form(). This function will create the admin settings page.
Определите функцию ca_state_question_admin_settings_form(). Эта функция создаст страницу настроек администратора.
function ca_state_question_admin_settings_form() { $form = array(); $form['ca_state_question_list'] = array( '#type' => 'select', '#title' => t('State Question\'s List Template'), '#options' => array( 'ca_state_question_list_template_one' => t('Template One'), 'ca_state_question_list_templa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create_admin_settings_page() {\n\t}", "public function create_admin_page() {\n\t\t?>\n\t\t<div class=\"wrap\">\n\t\t\t<h2><?php esc_html_e( 'Tidal Settings', 'tidal' ); ?></h2>\n\n\t\t\t<form method=\"post\" action=\"options.php\">\n\t\t\t\t<?php\n\t\t\t\tsettings_fields( 'tidal' );\n\t\t\t\tdo_s...
[ "0.748087", "0.732626", "0.7147675", "0.7134122", "0.70818", "0.7038718", "0.7034578", "0.70340294", "0.70273453", "0.694959", "0.69001675", "0.6899643", "0.68717813", "0.6866905", "0.68432766", "0.6829496", "0.6803072", "0.68016976", "0.68012977", "0.67978036", "0.6783915", ...
0.81546706
0
/ Define the function ca_state_question_admin_settings_form_submit(). This function will save the admin settings page.
Определите функцию ca_state_question_admin_settings_form_submit(). Эта функция будет сохранять страницу настроек администратора.
function ca_state_question_admin_settings_form_submit($form, &$form_state) { variable_set('ca_state_question_list_template', $form_state['values']['ca_state_question_list']); variable_set('ca_state_question_node_template', $form_state['values']['ca_state_question_node']); drupal_set_message('Configuration has bee...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function save() {\n\t\tif ( empty( $_POST['submit'] ) ) {\n\t\t\treturn;\n\t\t}\n\t\t$data = get_option( $this->args['option_name'], array() );\n\t\t$data = apply_filters( 'mb_settings_pages_data', $data, $this->args['option_name'] );\n\t\tupdate_option( $this->args['option_name'], $data );\n\n\t\tadd_setti...
[ "0.7206191", "0.7203102", "0.7198791", "0.7173921", "0.7149021", "0.71403605", "0.7076239", "0.7070069", "0.70602465", "0.7005829", "0.695072", "0.69209826", "0.6916494", "0.68766624", "0.6852109", "0.68417954", "0.6820191", "0.6817518", "0.679232", "0.67871755", "0.6787173",...
0.7497457
0
Status of league now
Текущее состояние лиги
public function getLeagueStatus() { if ($this->ToursPlayed() == 0) $status = 'new'; elseif ($this->ToursToPlay() == 0) { $status = 'finished'; } else { $status = 'playing'; } return $status; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function status()\n {\n $identifier = GameIdentifier::fromString($this->id());\n $game = $this->repository()->get($identifier);\n\n echo 'Get game status: ' . $game->id() . PHP_EOL;\n echo (string) $game;\n\n $result = '';\n $status = $game->status();\n ...
[ "0.6995525", "0.6545146", "0.6545146", "0.6545146", "0.6545146", "0.6545146", "0.6545146", "0.6545146", "0.6545146", "0.6545146", "0.6545146", "0.6545146", "0.6545146", "0.6545146", "0.6545146", "0.6545146", "0.6545146", "0.6545146", "0.6545146", "0.6545146", "0.65409464", ...
0.80857056
0
Return a last Played Tour or NULL if League have't start yet
Вернуть последний сыгранный тур или NULL, если чемпионат еще не начался
public function getlastTour() { if (!isset($this->tours[sizeof($this->tours)-1])) throw new \Exception('New League', 503); return $this->tours[sizeof($this->tours)-1]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLastPlayedGame(): ?SteamGame\n {\n // Check if we have a current game via user profile\n $currentGame = $this->getCurrentGameFromProfile();\n\n if ($currentGame) {\n return $currentGame;\n }\n\n // No current game, use history\n return $thi...
[ "0.6592706", "0.64389944", "0.6039979", "0.6035328", "0.5897125", "0.58552456", "0.58063793", "0.57930475", "0.57922554", "0.57843316", "0.5753946", "0.57258224", "0.57219183", "0.57086796", "0.5690887", "0.56874275", "0.5666534", "0.5665297", "0.5643783", "0.5610679", "0.558...
0.71493685
0
Displays a form to create a new Equipement entity.
Показывает форму для создания новой сущности Equipement.
public function newAction() { $entity = new Equipement(); $EquipementType = new EquipementType(); $EquipementType->setUser($this->get('security.context')->getToken()->getUser()); $form = $this->createForm($EquipementType, $entity); return $this->render('chevChevalBundle:Eq...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createAction()\n {\n $entity = new Equity();\n $request = $this->getRequest();\n $form = $this->createForm(new EquityType(), $entity);\n $form->bindRequest($request);\n\n if ($form->isValid()) {\n $em = $this->getDoctrine()->getEntityManager();\n...
[ "0.7490811", "0.7387046", "0.70766675", "0.6957671", "0.6901284", "0.6857135", "0.6849731", "0.67385644", "0.67336833", "0.6728166", "0.6713476", "0.666627", "0.6663433", "0.665617", "0.66228694", "0.661376", "0.659423", "0.65882957", "0.6565714", "0.6564729", "0.6563741", ...
0.8364963
0
Displays a form to edit an existing Equipement entity.
Показывает форму для редактирования существующего сущности Equipement.
public function editAction($id) { $em = $this->getDoctrine()->getManager(); $entity = $this->getEquipement($em, $id); if (!$entity) { throw $this->createNotFoundException('Unable to find Equipement entity.'); } $EquipementType = new EquipementType(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Equipement $equipement)\n {\n //\n }", "function edit() {\n\t\t$this->isAuthorized() or $this->abortUnauthorized();\n\n\t\t$productId = KRequest::getInt('productId');\n\t\t$matrixId = KRequest::getInt('id');\n\n\t\t$view = $this->getDefaultViewForm();\n\t\t$view->setProductId($p...
[ "0.77451265", "0.69866216", "0.6956429", "0.6928384", "0.6865124", "0.68112946", "0.6803165", "0.6746092", "0.6732816", "0.6731292", "0.6695954", "0.6661805", "0.66459095", "0.66266114", "0.6625941", "0.65789515", "0.6569842", "0.65582275", "0.6552137", "0.65478826", "0.65268...
0.7692433
1
Initialize login plugin if path matches.
Инициализировать плагин входа, если путь соответствует.
public function initializeLogin() { /** @var Uri $uri */ $uri = $this->grav['uri']; // Admin has its own login; make sure we're not in admin. if (!isset($this->grav['admin'])) { $this->route = $this->config->get('plugins.loginldap.route'); } // Register ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function init()\n {\n $this->requireLogin();\n }", "function MyApp_Login_Init()\n {\n $this->LoginType=\"Public\";\n $this->Profile=\"Public\";\n if ($this->Authentication)\n {\n $this->AuthHash();\n\n $this->MyApp_Login_Detect();\n ...
[ "0.667685", "0.6462856", "0.6383488", "0.6157406", "0.6147734", "0.6102627", "0.61005723", "0.60772777", "0.6026832", "0.6018976", "0.59888035", "0.59839875", "0.59782654", "0.59699357", "0.5913681", "0.58561367", "0.5828287", "0.5795289", "0.5783291", "0.5747645", "0.5733449...
0.74984074
0
Authorize the Page fallback url (page media accessed through the page route)
Разрешить URL-адрес страницы-заглушки (медиа-файлы страницы, доступные через маршрут страницы)
public function authorizeFallBackUrl() { if ($this->config->get('plugins.loginldap.protect_protected_page_media', false)) { $page_url = dirname($this->grav['uri']->path()); $page = $this->grav['pages']->find($page_url); $this->grav['page'] = $page; $this->auth...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function page_restricted()\n\t{\t\n\t\t// Check that the user has a landing page\n\t\tif($this->session->userdata('sv_landing_page'))\n\t\t{\n\t\t\t// Redirect\n\t\t\tredirect($this->session->userdata('sv_landing_page'));\n\t\t}\n\t\telse\n\t\t{\t\n\t\t\t// Redirect\n\t\t\tredirect('login');\n\t\t}\n\t}", "stati...
[ "0.61079484", "0.5956388", "0.58991367", "0.584386", "0.5747437", "0.5672581", "0.5666319", "0.5657051", "0.56570333", "0.5619837", "0.56128556", "0.5601721", "0.5596523", "0.5570969", "0.55687183", "0.55494785", "0.55286753", "0.5512864", "0.55026895", "0.54969376", "0.54939...
0.8390239
0
Add twig paths to plugin templates.
Добавьте пути twig к шаблонам плагина.
public function onTwigTemplatePaths() { $twig = $this->grav['twig']; $twig->twig_paths[] = __DIR__ . '/templates'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function onTwigTemplatePaths()\n {\n $this->grav['twig']->twig_paths[] = __DIR__ . '/templates';\n }", "public function onTwigTemplatePaths()\n {\n $this->grav['twig']->twig_paths[] = __DIR__ . '/templates';\n }", "public function onTwigTemplatePaths() {\n $this->grav['twig']->twig_path...
[ "0.80127287", "0.80127287", "0.79850745", "0.7956147", "0.7956147", "0.7956147", "0.7956147", "0.7956147", "0.7956147", "0.7956147", "0.7956147", "0.7907987", "0.7631645", "0.7442166", "0.7404829", "0.71655816", "0.69693667", "0.68184197", "0.68125236", "0.68125236", "0.67006...
0.805445
0
Searches for all css files and creates a unique html string.
Ищет все файлы css и создает уникальную строку html.
public function css() { $html = ''; foreach (glob('css/*.css') as $file) { $html .= '<link href="' . $file . '" rel="stylesheet" type="text/css" media="all" />'; } return $html; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function load_all_css_files() {\n $path = APP_ROOT.'/css';\n $dir = opendir($path);\n\n while (($file = readdir($dir)) !== false) {\n if (is_dir(APP_ROOT.'/css/'.$file) && $file != '.' && $file != '..') {\n $d = opendir(APP_ROOT.'/css/'.$file);\n ...
[ "0.7434526", "0.71889555", "0.7157886", "0.7119989", "0.7038784", "0.7021589", "0.69528407", "0.6951378", "0.6926358", "0.68982315", "0.68930876", "0.6857554", "0.6756445", "0.6702155", "0.6693567", "0.6685547", "0.6672741", "0.66557467", "0.66093093", "0.6607568", "0.6602672...
0.75823987
0
Searches for all js files and creates a unique html string.
Ищет все файлы js и создает уникальную строку html.
public function js() { $jquery = glob('js/jquery*.js'); $html = '<script type="text/javascript" src="' . $jquery[0] . '"></script>'; foreach (glob('js/*.js') as $file) { if ($file != $jquery[0]) { $html .= '<script type="text/javascript" src="' . $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function makeFiles()\n {\n $list = $this->getBuffer()->getScriptFiles();\n\n $html = \"\";\n\n foreach ($list as $path) {\n if($path[LibsFinder::L_MAIN] === true ){\n $html .= sprintf($this->templateScriptFile, $path[BufferCache::PATH_ABS]);\n ...
[ "0.7442972", "0.7258696", "0.72543764", "0.7221107", "0.7015772", "0.6998588", "0.6960911", "0.6956785", "0.69335556", "0.6867215", "0.6748343", "0.6721171", "0.67018354", "0.6655374", "0.65977824", "0.65927726", "0.65238225", "0.6518973", "0.650412", "0.64500535", "0.6426300...
0.7331128
1
Find the orderByField for current request
Найдите orderByField для текущего запроса
public static function orderByFieldAttribute(NovaRequest $request) { return static::$defaultOrderField ?? static::modelOrderByFieldAttribute(static::newModel()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function orderBy()\n {\n $orderBy = static::getOrderByKey();\n return $this->request->{$orderBy} ?: static::getDefaultOrderBy();\n }", "protected function getOrderBy($req) {\n $order_by = $req->input('orderBy');\n if(isset($this->columns_filter[$order_by]) && Schema::hasC...
[ "0.734881", "0.6914185", "0.6774222", "0.66284204", "0.662722", "0.6587255", "0.6466071", "0.6306696", "0.627856", "0.6200672", "0.62004346", "0.6183106", "0.6174789", "0.6174789", "0.61497146", "0.61311865", "0.606376", "0.6059716", "0.6059716", "0.6059716", "0.604965", "0...
0.708983
1
Extract the order_column_name from a Sortable Model
Извлеките order_column_name из Sortable Model
public static function modelOrderByFieldAttribute($model) { if (!$model instanceof Sortable) { return; } return $model->sortable['order_column_name'] ?? null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function determineOrderColumnName(): string\n {\n if (\n isset($this->sortable['order_column_name']) &&\n !empty($this->sortable['order_column_name'])\n ) {\n return $this->sortable['order_column_name'];\n }\n\n return 'order_column';\n }...
[ "0.75940317", "0.7172661", "0.71152455", "0.70446986", "0.69342035", "0.6688789", "0.6607861", "0.6564594", "0.6447416", "0.6376991", "0.6323336", "0.63085896", "0.63075644", "0.63033265", "0.624821", "0.6241517", "0.62369263", "0.6222997", "0.62215716", "0.62110066", "0.6179...
0.71906924
1
Delete all submissions for this webform on the Drupal 8 database. This is never called, but is available to external code.
Удалите все подачи для этой веб-формы в базе данных Drupal 8. Это никогда не вызывается, но доступно внешнему коду.
public function deleteSubmissions() { if (isset($this->options['simulate']) && $this->options['simulate']) { $this->print('SIMULATE: Delete submissions for webform before reimporting them.'); return; } $query = $this->getConnection('default')->select('webform_submission', 'ws'); $query->cond...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteSubmissions() {\n if (isset($this->options['simulate']) && $this->options['simulate']) {\n $this->print('SIMULATE: Delete submissions for webform before reimporting them.');\n return;\n }\n $query = $this->getConnection('default')->select('webform_submission', 'ws');\n $...
[ "0.7974191", "0.6931382", "0.6435154", "0.6153524", "0.61300683", "0.6120083", "0.61127555", "0.61005783", "0.6073624", "0.60635763", "0.6021621", "0.6009347", "0.5985125", "0.5976923", "0.59708726", "0.59708726", "0.59708726", "0.59708726", "0.59708726", "0.59708726", "0.597...
0.79691595
1
Get the Drupal 8 Webform object.
Получите объект Webform Drupal 8.
public function getDrupalObject() : DrupalWebform { return $this->drupalObject; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getWebform() {\n return $this->webform;\n }", "public function getCurrentWebform();", "public function getForm();", "protected function getForm(): Form\n { \n return $this->getField()->forms()->create([$this->getField(), $this->getFields(), $this->getFormAction()]);\n }", ...
[ "0.7917549", "0.7300275", "0.72006196", "0.71117246", "0.70820004", "0.70045334", "0.69754475", "0.6963411", "0.695232", "0.69491076", "0.69413924", "0.6939449", "0.69309205", "0.69309205", "0.69281906", "0.69281906", "0.69281906", "0.69281906", "0.6920092", "0.6895439", "0.6...
0.78982097
1
Set the Drupal 8 Webform object.
Установите объект Drupal 8 Webform.
public function setDrupalObject(DrupalWebform $webform) { $this->drupalObject = $webform; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setForm( &$object )\r\n {\r\n if( is_a( $object, \"eZForm\" ) )\r\n {\r\n $this->Form = $object;\r\n }\r\n }", "public function setWebform(Webform $webform) {\n\t\t$this->webform = $webform;\n\t}", "public function setFormFields();", "function setForm($arg0) {\n...
[ "0.7896504", "0.72366", "0.6963487", "0.68771064", "0.6858144", "0.6777876", "0.66852677", "0.6660726", "0.66123205", "0.66123205", "0.6601436", "0.65894026", "0.65511423", "0.65511423", "0.65316033", "0.6495904", "0.64592904", "0.6435866", "0.6399545", "0.6376836", "0.630660...
0.7490424
1
Get all legacy submissions for a given webform.
Получить все старые подачи для заданной веб-формы.
public function webformSubmissions() : Submissions { if (isset($this->options['max_submissions']) && $this->options['max_submissions'] !== NULL) { $max = $this->options['max_submissions']; if ($max === 0) { $this->print('You specified max_submissions to 0, so no submissions will be loaded.'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function webformSubmissions() : Submissions {\n if (isset($this->options['max_submissions']) && $this->options['max_submissions'] !== NULL) {\n $max = $this->options['max_submissions'];\n if ($max === 0) {\n $this->print('You speicifc max_submissions to 0, so no submissions will be loade...
[ "0.71779466", "0.65741146", "0.65507334", "0.62685335", "0.5973391", "0.5968587", "0.59520096", "0.5944351", "0.59038854", "0.59038854", "0.5856259", "0.5818322", "0.5796992", "0.574869", "0.57485294", "0.57206017", "0.5710647", "0.5669752", "0.5639379", "0.5630054", "0.56147...
0.7163
1
Get the weighting score for a particular criteria letter
Получить весовой коэффициент для определенного критерия по его букве
protected function getCriteriaNameWeighting($letter, $weightings){ if ($weightings){ foreach($weightings as $row){ if ($row->letter == $letter){ return $row->score; } } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_weight($pass){\n $weight = 0;\n $capital_letter = preg_match_all('/[A-Z]/', $pass);\n $small_letter = preg_match_all('/[a-z]/', $pass);\n $numeric = preg_match_all('/[0-9]/', $pass);\n $speicial_char = preg_match_all('/[!@#$%^&*()]/', $pass);\n\...
[ "0.65443134", "0.64386475", "0.6392425", "0.6392425", "0.6355441", "0.6355441", "0.6355441", "0.6355441", "0.6355441", "0.63520646", "0.6335819", "0.6308379", "0.6308379", "0.6065966", "0.605904", "0.6024479", "0.5989955", "0.5978218", "0.5962492", "0.5945629", "0.58639824", ...
0.7977355
0
Get array of words not allowed in custom SQL reports for security reasons
Получить массив слов, которые запрещены в пользовательских SQL-отчетах по причинам безопасности
public static function getDisallowedWords(){ return array('INSERT', 'INTO', 'UPDATE', 'DELETE', 'EXECUTE', 'SHOW VIEW', 'CREATE', 'ALTER', 'REFERENCES', 'INDEX', 'DROP', 'TRIGGER', 'GRANT', 'LOCK', 'TRUNCATE'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_bad_words()\n {\n // Init bad word array and _lang var\n $this->bad_word_array = array();\n \n $sql = \"\n SELECT \n word \n FROM\n {$GLOBALS['B']->sys['db']['table_prefix']}bad_words\";\n\n $res = $GLOBALS['B']-...
[ "0.75453687", "0.7194188", "0.69823265", "0.6801156", "0.6635803", "0.663092", "0.6596466", "0.6520487", "0.64223635", "0.637568", "0.6355589", "0.63513964", "0.6323597", "0.6283955", "0.6277743", "0.6274523", "0.62724257", "0.61006224", "0.6063585", "0.59511906", "0.59296554...
0.7687507
0
Check if some SQL contains any of the disallowed words
Проверьте, содержит ли какой-либо SQL одно из запрещенных слов
public static function checkContainsDisallowedWords($sql){ return preg_match('/\b('.implode('|', self::getDisallowedWords()).')\b/i', $sql); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getDisallowedWords(){\n return array('INSERT', 'INTO', 'UPDATE', 'DELETE', 'EXECUTE', 'SHOW VIEW', 'CREATE', 'ALTER', 'REFERENCES', 'INDEX', 'DROP', 'TRIGGER', 'GRANT', 'LOCK', 'TRUNCATE');\n }", "function validateQuery($query) {\n // explicitly forbidden statements\n if (p...
[ "0.7037767", "0.6357868", "0.63420844", "0.6250689", "0.6212523", "0.61777043", "0.612725", "0.6094815", "0.60770434", "0.6044008", "0.60128295", "0.586411", "0.5848144", "0.5800874", "0.57690746", "0.5755423", "0.57553613", "0.569189", "0.5689503", "0.5675491", "0.5652729", ...
0.86047566
0
Gets a ConnectionInterface instance.
Получает экземпляр ConnectionInterface.
protected function getConnection(): ConnectionInterface { return $this->connection; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getConnection(): ConnectionInterface\n {\n return self::$connection;\n }", "protected function getConnection(): ConnectionInterface\n {\n return $this->getConnectionResolver()->connection($this->connectionName());\n }", "public static function getConnection()\n ...
[ "0.8159445", "0.7849551", "0.76231414", "0.7295958", "0.7147614", "0.7119983", "0.7075983", "0.7068248", "0.70103204", "0.69779176", "0.69616306", "0.6957788", "0.68980765", "0.68940556", "0.68930465", "0.68711895", "0.6869362", "0.6867698", "0.68438274", "0.6827268", "0.6796...
0.789372
1
Helper for pretty printing values
Помощник для красивого отображения значений
function pretty($val) { echo "<pre>"; print_r($val); echo "</pre>"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function prettyPrint(array $val)\n{\n echo '<pre>';\n print_r($val);\n echo '</pre>';\n\n}", "function pretty_print( $result ){\n echo '<pre>';\n var_dump($result);\n echo '</pre>';\n}", "function dump()\n{\n\t$s='';foreach(func_get_args()as$v){$s.='<pre>'.h($v===NULL?'NULL':(is_scalar($v)?$...
[ "0.73794866", "0.6784184", "0.67741776", "0.66877115", "0.665612", "0.66551334", "0.6646914", "0.66300356", "0.66208166", "0.66188747", "0.6605343", "0.6603689", "0.65957654", "0.65723693", "0.65651065", "0.65446866", "0.6498441", "0.64942914", "0.64665097", "0.6461513", "0.6...
0.8078549
0
Select All records for which the given value matches the given attribute
Выберите все записи, для которых заданное значение соответствует заданному атрибуту
public function selectAllByAttributeEquals($attribute, $value);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function findByAttribute($attribute, $value);", "public function findBy($attribute, $value, $columns = ['*'], $with = []);", "function find_by($attribute, $value) {\n\t\t$sql = \"\n\t\t\tSELECT\n\t\t\t\t*\n\t\t\tFROM\n\t\t\t\t`\" . $this->tableName . \"`\n\t\t\tWHERE\n\t\t\t\t`\" . $attribute . \"` = '\" . $va...
[ "0.6991308", "0.6849041", "0.67972785", "0.6372786", "0.6360257", "0.62022287", "0.6116717", "0.6104128", "0.59632367", "0.59437656", "0.59291476", "0.58838636", "0.58578306", "0.5799677", "0.5792748", "0.5779881", "0.5750445", "0.5746457", "0.5744175", "0.57427186", "0.57070...
0.83314574
0
Adds generedted salts to env file.
Добавляет сгенерированные соли в файл env.
public static function addSalts(Event $event) { $composer = $event->getComposer(); $root = preg_replace("/\/vendor/", '', $composer->getConfig()->get('vendor-dir')); $io = $event->getIO(); if (file_exists(sprintf('%s/.env', $root))) { return 1; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function social_get_salt()\n{\n $salts = social_get_salts();\n $time = time();\n $expires = $time - (60 * 5);\n if (empty($salts[0]) || $salts[0]['ts'] < $expires) {\n // not cryptographically secure, but good enough\n $salt = array('ts' => time(), 'salt' => rand());\n array_unshif...
[ "0.5510744", "0.5423318", "0.5400987", "0.53497267", "0.5264326", "0.52384573", "0.52122676", "0.5045109", "0.5042379", "0.50392735", "0.50301206", "0.5016759", "0.4969773", "0.48920777", "0.48336673", "0.48120427", "0.4781044", "0.47721195", "0.47658607", "0.47553104", "0.47...
0.7015421
0
no need to Implement truncateToCrsTable() method.
Не нужно реализовывать метод truncateToCrsTable().
public function truncateToCrsTable() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function truncateTable();", "public function Truncar_tabla($tabla){\r\n $this->db->truncate($tabla);\r\n}", "abstract public function truncate();", "public function truncate()\n\t{\n\t}", "public function truncate(string $table);", "public function truncateTable()\n\t{\n\t\t$retVal = $this->idb...
[ "0.77452594", "0.67805165", "0.67335975", "0.66684145", "0.6552319", "0.6539625", "0.63547814", "0.6349564", "0.62451804", "0.6199548", "0.6146932", "0.61240244", "0.61240244", "0.6119524", "0.61105853", "0.60897654", "0.6085038", "0.6079249", "0.60642266", "0.60557604", "0.6...
0.92853016
0
Returns the login model attribute.
Возвращает атрибут модели логина.
public function loginAttribute() { return UserSettings::get('login_attribute', UserSettings::LOGIN_EMAIL); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLogin()\r\n {\r\n return $this->login;\r\n }", "public function getLogin()\n {\n return $this->login;\n }", "public function getLogin()\n {\n return $this->login;\n }", "public function getLogin()\n {\n return $this->login;\n }", "publi...
[ "0.7507309", "0.750494", "0.750494", "0.750494", "0.750494", "0.750494", "0.750494", "0.750494", "0.7499157", "0.74915457", "0.74317694", "0.7429556", "0.7394132", "0.7394132", "0.73934317", "0.7382991", "0.73803246", "0.735845", "0.7291101", "0.72631603", "0.7229052", "0.7...
0.8666022
0
Returns the login label as a word.
Возвращает метку входа в виде слова.
public function loginAttributeLabel() { return $this->loginAttribute() == UserSettings::LOGIN_EMAIL ? Lang::get('micropoplar.volunteer::component.login.attribute_email') : Lang::get('micropoplar.volunteer::component.login.attribute_username'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLabel() {\n\t\treturn $this->imie .\" \".$this->nazwisko . \" \" .$this->email .\" \".$this->username;\n\t}", "public static function get_name()\n {\n return _t(self::class . '.TITLE', 'Yubikey 2 factor login');\n }", "protected function get_label()\n\t{\n\t\tif (empty($this->pa...
[ "0.67580074", "0.66689616", "0.66074294", "0.65963787", "0.655305", "0.650697", "0.64974046", "0.64828604", "0.64715", "0.64621514", "0.6432773", "0.64296925", "0.63969207", "0.63910264", "0.63910264", "0.63910264", "0.63910264", "0.6387255", "0.6384934", "0.63613975", "0.634...
0.74676794
0
Valida que el $fieldName sea mayor que $than
Проверяет, что $fieldName больше, чем $than
protected function _greater($fieldName, $than) { if ($this->data[$fieldName] < $than) { $this->addError($fieldName, $this->msgs[$fieldName]['greater']); return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _smaller($fieldName, $than) {\n\t\tif ($this->data[$fieldName] > $than) {\n\t\t\t$this->addError($fieldName, $this->msgs[$fieldName]['smaller']);\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public function validateField( $fieldName, $value ) {\n }", "public function lessThanActio...
[ "0.7329008", "0.57678086", "0.54882", "0.5469303", "0.5357965", "0.53290373", "0.53194326", "0.5312761", "0.52986604", "0.5264409", "0.5232977", "0.5197325", "0.518111", "0.5152151", "0.5124912", "0.5110477", "0.5103827", "0.5096625", "0.5096065", "0.5096024", "0.5087934", ...
0.7229846
1
Valida que el $fieldName sea menor que $than
Проверяет, что $fieldName меньше, чем $than
protected function _smaller($fieldName, $than) { if ($this->data[$fieldName] > $than) { $this->addError($fieldName, $this->msgs[$fieldName]['smaller']); return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _greater($fieldName, $than) {\n\t\tif ($this->data[$fieldName] < $than) {\n\t\t\t$this->addError($fieldName, $this->msgs[$fieldName]['greater']);\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public function validateField( $fieldName, $value ) {\n }", "function validate_is_positive...
[ "0.72936255", "0.60539365", "0.58402485", "0.5721716", "0.5618197", "0.5557779", "0.5556975", "0.5509096", "0.5497659", "0.5481894", "0.54301757", "0.5409274", "0.54040295", "0.5389208", "0.53824055", "0.5378432", "0.53474134", "0.53359884", "0.5313904", "0.53035396", "0.5260...
0.75485057
0
Valida que el $fieldName tenga al menos $minLength caracteres.
Проверяет, чтобы $fieldName имел не менее $minLength символов.
protected function _min($fieldName, $minLength) { if(strlen($this->data[$fieldName]) < $minLength) { $this->addError($fieldName, $this->msgs[$fieldName]['min']); return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function checkMinLength($text,$minLength,$valueName){\n if (strlen($text) < $minLength){\n validate::$error[$valueName] = $valueName. ' is too short<b>! ' . $minLength. ' +</b> characters required';\n }else{\n return true;\n }\n }", "privat...
[ "0.6975779", "0.67814785", "0.67814785", "0.6756973", "0.6549205", "0.6549126", "0.64917153", "0.6412983", "0.6401819", "0.63489807", "0.63228726", "0.6299496", "0.6247337", "0.622008", "0.62103486", "0.61305463", "0.610126", "0.6094306", "0.6069477", "0.6067867", "0.6065584"...
0.79278445
0
Valida que el formato del $fieldName sea de un email correcto.
Проверяет, что формат поля $fieldName соответствует корректному электронному адресу.
protected function _email($fieldName) { $emailRegEx = '/^([\w-\.]+)@((?:[\w]+\.)+)([a-z]{2,4})/'; if (!preg_match($emailRegEx, $this->data[$fieldName])) { $this->addError($fieldName, $this->msgs[$fieldName]['email']); return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function CheckEmail($fieldName)\n {\n $message = \"\";\n //check the field is in a valid email format\n if (isset($_POST[$fieldName]) && !empty($_POST[$fieldName])) {\n if (!filter_var($_POST[$fieldName], FILTER_VALIDATE_EMAIL)) {\n //if...
[ "0.78490925", "0.7672324", "0.7478521", "0.7467072", "0.74131805", "0.7348688", "0.72740185", "0.72651076", "0.7209119", "0.7209119", "0.71207225", "0.70995206", "0.7084905", "0.7038489", "0.7033495", "0.6941288", "0.69408613", "0.6919335", "0.68915814", "0.6802513", "0.67559...
0.79915214
0
Is the icon an image or icon class
Является ли иконка изображением или класс иконки
public function is_image() { return \CCStr::extension( $this->icon() ) === 'png'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function isIcon() {\n return ($this->dsid == 'TN') || (preg_match('/-tn\\.([^\\/]*)$/i', $this->dsid) > 0);\n }", "public function isIcon()\n {\n return ($this->ModeExpanded == self::MODE_ICON);\n }", "public function hasIcon(){\n return $this->_has(7);\n }", "public function...
[ "0.7812322", "0.7739795", "0.7443369", "0.73499006", "0.72814584", "0.72524977", "0.7072336", "0.70544714", "0.7054185", "0.70445335", "0.7036037", "0.70003086", "0.6976212", "0.68844396", "0.6874961", "0.68154025", "0.6791704", "0.6788439", "0.67686206", "0.6733669", "0.6719...
0.839838
0
If $key has been set to a function, then get() executes the function and keeps the result as the new value for the key. If $key is set to a value, then returns the value.
Если $key установлен как функция, то get() выполняет функцию и сохраняет результат как новое значение для ключа. Если $key установлен как значение, то возвращается это значение.
function get($key) { if (is_callable($this->store[$key])) { $this->store[$key] = $this->store[$key](); } return $this->store[$key]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract function &get($key);", "abstract function &get($key);", "function __get($key) {\n if (!is_string($key)) {\n throw new \\Calf\\Exception\\InvalidArgument('Key must be string.');\n }\n\n if (!isset($this->_keys[$key])) {\n throw new \\Calf\\Exception\\Runtime('...
[ "0.6808294", "0.6808294", "0.67986405", "0.6669109", "0.666318", "0.6620101", "0.6558405", "0.65370786", "0.6523668", "0.6519981", "0.64983755", "0.64983636", "0.6497014", "0.64945775", "0.64945775", "0.647605", "0.6460043", "0.6448605", "0.64371973", "0.64256", "0.64256", ...
0.7614164
0
Sets the process name.
Устанавливает имя процесса.
protected function setProcessName($name) { $pid = getmypid(); return cli_set_process_title($name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProcessName($processName) {\n\t\t$this->processName = $this->sanitizer->name($processName); \n\t}", "protected function setProcessTitle()\n {\n if (version_compare(PHP_VERSION, '5.5', 'lt')) {\n return;\n }\n\n // Mac OS X does not support cli_set_process_tit...
[ "0.81380117", "0.75199723", "0.7286816", "0.71557385", "0.67185646", "0.66551703", "0.6653238", "0.66272783", "0.6627065", "0.6615991", "0.66076386", "0.65957004", "0.6567295", "0.6567295", "0.6567295", "0.6561961", "0.6561961", "0.6561961", "0.6561961", "0.6561961", "0.65619...
0.82125
0
ManytoMany relations with the user model.
Многократные отношения с моделью пользователя.
public function users(): BelongsToMany { return $this->belongsToMany(User::class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function users(): BelongsToMany\n {\n return $this->belongsToMany(User::hsFinder(), 'user_role', 'role_id', 'user_id')->withTimestamps();\n }", "public function users(): BelongsToMany\n {\n return $this->belongsToMany(\n User::class,\n 'role_user'\n );\n...
[ "0.78042054", "0.7672106", "0.76146185", "0.7424127", "0.74002796", "0.7392415", "0.7376553", "0.7362812", "0.7337035", "0.7276006", "0.7276006", "0.7276006", "0.7276006", "0.7276006", "0.7275455", "0.7275455", "0.7275455", "0.7275455", "0.7275455", "0.7275455", "0.7275455", ...
0.77406657
1
set setCreator from auth user
установить setCreator из auth user
public function setCreator(): self { $this->added_by_user_id = auth()->user() ? auth()->user()->id : User::SYSUID; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setCreator($creator)\n {\n $this->_creator = $creator;\n }", "public function setCreatedBy(?IdentitySet $value): void {\n $this->getBackingStore()->set('createdBy', $value);\n }", "public function setCreatorId($creatorId);", "public function setCreatorId(?string $value): void ...
[ "0.74222785", "0.67063695", "0.6656401", "0.6599811", "0.65259105", "0.65259105", "0.6451595", "0.6414349", "0.6414349", "0.6414349", "0.6406955", "0.64046735", "0.64046735", "0.64046735", "0.6396167", "0.63626695", "0.63420564", "0.6332954", "0.63239145", "0.6265685", "0.624...
0.74759513
0
Backup journal_entries contents (executed from journal_backup_mods)
Резервное копирование содержимого journal_entries (выполняется из journal_backup_mods)
function backup_journal_entries ($bf,$preferences,$journal) { global $CFG; $status = true; $journal_entries = get_records("journal_entries","journal",$journal,"id"); //If there is entries if ($journal_entries) { //Write start tag $status =fwrite ($bf,st...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function journal_backup_mods($bf,$preferences) {\n\n global $CFG;\n\n $status = true;\n\n //Iterate over journal table\n $journals = get_records (\"journal\",\"course\",$preferences->backup_course,\"id\");\n if ($journals) {\n foreach ($journals as $journal) {\n ...
[ "0.6704408", "0.5931602", "0.5795964", "0.57194334", "0.5682266", "0.55433047", "0.5352956", "0.5319245", "0.53180623", "0.52566177", "0.52507585", "0.5225454", "0.52199715", "0.51954377", "0.5191807", "0.5170586", "0.5142797", "0.5139138", "0.5127932", "0.51185226", "0.50607...
0.7642433
0
Returns an array of journal entries id
Возвращает массив идентификаторов записей журнала
function journal_entry_ids_by_course ($course) { global $CFG; return get_records_sql ("SELECT s.id , s.journal FROM {$CFG->prefix}journal_entries s, {$CFG->prefix}journal a WHERE a.course = '$course...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function journal_ids ($course) {\n\n global $CFG;\n\n return get_records_sql (\"SELECT a.id, a.course\n FROM {$CFG->prefix}journal a\n WHERE a.course = '$course'\");\n }", "function getJournalId() {\n\t\treturn $this->journalId;\n\t...
[ "0.7134682", "0.6483598", "0.6411049", "0.6362199", "0.63613003", "0.6271193", "0.624664", "0.62273175", "0.6215619", "0.61991495", "0.61592436", "0.6141336", "0.6103065", "0.60659295", "0.60659295", "0.60566497", "0.6015425", "0.60063803", "0.5977591", "0.5974998", "0.592103...
0.7016644
1
Renders a set of components.
Отображает набор компонентов.
static function getRenderingOfSet (array $components = null) { ob_start (null, 0); if (isset($components)) foreach ($components as $component) $component->run (); return ob_get_clean (); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function renderSet (array $components = null)\n {\n if (isset($components))\n foreach ($components as $component)\n $component->run ();\n }", "public function render()\n {\n foreach ($this->getRenderers() as $renderer) {\n $renderer->render();\n }\n }", "f...
[ "0.7267019", "0.68941927", "0.6743584", "0.63215727", "0.6308794", "0.6223565", "0.6208278", "0.6183992", "0.6112952", "0.6109458", "0.6064673", "0.59237456", "0.5909412", "0.5909412", "0.5895495", "0.5866293", "0.58374417", "0.58374417", "0.58374417", "0.58374417", "0.583744...
0.7067954
1
Renders a set of components.
Отображает набор компонентов.
static function renderSet (array $components = null) { if (isset($components)) foreach ($components as $component) $component->run (); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function getRenderingOfSet (array $components = null)\n {\n ob_start (null, 0);\n if (isset($components))\n foreach ($components as $component)\n $component->run ();\n return ob_get_clean ();\n }", "public function render()\n {\n foreach ($this->getRenderers() as $renderer...
[ "0.7067954", "0.68941927", "0.6743584", "0.63215727", "0.6308794", "0.6223565", "0.6208278", "0.6183992", "0.6112952", "0.6109458", "0.6064673", "0.59237456", "0.5909412", "0.5909412", "0.5895495", "0.5866293", "0.58374417", "0.58374417", "0.58374417", "0.58374417", "0.583744...
0.7267019
0
Do something before the component renders (ex. append to the output).
Сделайте что-нибудь перед отрисовкой компонента (например, добавьте в вывод).
protected function preRender () { //noop }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function preRender()\n\t{}", "protected function beforeRender() {}", "public function beforeRender() {\n\t\tparent::beforeRender();\n\t}", "public function preRender() {}", "function beforeRender() {\n\t}", "protected function executePreRenderHook() {}", "protected function before_render() {\n\n...
[ "0.7323672", "0.718654", "0.7131358", "0.711111", "0.70786977", "0.70636207", "0.70452946", "0.7017677", "0.7017677", "0.6992975", "0.69913715", "0.69745535", "0.69668114", "0.6819816", "0.6808225", "0.6804998", "0.6764499", "0.6747592", "0.6747586", "0.6706068", "0.6691292",...
0.73289454
0
Set post parameter string. Data will be sent as post.
Установить строку параметра POST. Данные будут отправляться как POST.
public function set_post_string($post_string) { $this->setopt(CURLOPT_POSTFIELDS, $post_string); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setPostString($str = '')\n {\n $this->postString = $str;\n }", "protected function setPost($post)\n\t{\n\t\tif (!$post instanceof ParametersInterface) {\n\t\t\t$post = new Parameters($post);\n\t\t}\n\t\t$this->getRequest()->setPost($post);\n\t\t//$this->getRequest()->setMethod(Reques...
[ "0.717589", "0.6986583", "0.69063234", "0.6902339", "0.6748699", "0.67386174", "0.66854423", "0.6506904", "0.64944345", "0.647756", "0.64679354", "0.6428104", "0.64150286", "0.63810986", "0.630429", "0.6236004", "0.6236004", "0.6235289", "0.60962003", "0.60527205", "0.6031827...
0.7133668
1
Gets the estimatedRuntimeInMinutes The estimated runtime of the device when the battery is fully charged. Unit in minutes. Valid values 2147483648 to 2147483647
Получает оцененное время работы в минутах. Оцененное время работы устройства при полностью заряженной батарее. Единица измерения — минуты. Допустимые значения от 2147483648 до 2147483647
public function getEstimatedRuntimeInMinutes() { if (array_key_exists("estimatedRuntimeInMinutes", $this->_propDict)) { return $this->_propDict["estimatedRuntimeInMinutes"]; } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAverageEstimatedRuntimeInMinutes()\n {\n if (array_key_exists(\"averageEstimatedRuntimeInMinutes\", $this->_propDict)) {\n return $this->_propDict[\"averageEstimatedRuntimeInMinutes\"];\n } else {\n return null;\n }\n }", "public function getMed...
[ "0.6277401", "0.60998625", "0.57747936", "0.5713782", "0.5685339", "0.5647781", "0.56309026", "0.5512776", "0.54672915", "0.54318666", "0.5425415", "0.5392087", "0.5383051", "0.5363658", "0.5314294", "0.53031176", "0.5244042", "0.52100384", "0.52036065", "0.51770586", "0.5174...
0.7066464
0
Gets the runtimeDateTime The datetime for the instance of runtime history.
Получает runtimeDateTime Дата и время для экземпляра истории выполнения.
public function getRuntimeDateTime() { if (array_key_exists("runtimeDateTime", $this->_propDict)) { return $this->_propDict["runtimeDateTime"]; } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setRuntimeDateTime($val)\n {\n $this->_propDict[\"runtimeDateTime\"] = $val;\n return $this;\n }", "public function getRunDateTime()\n {\n if (array_key_exists(\"runDateTime\", $this->_propDict)) {\n if (is_a($this->_propDict[\"runDateTime\"], \"\\DateTime...
[ "0.61811393", "0.6009276", "0.59553", "0.59553", "0.58982754", "0.5836095", "0.5814934", "0.5800261", "0.5729829", "0.5729829", "0.5729829", "0.56997603", "0.56591463", "0.5656302", "0.56551313", "0.5653056", "0.5624663", "0.5602043", "0.5591343", "0.5591343", "0.5591343", ...
0.7588567
0