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 |
|---|---|---|---|---|---|---|---|
Check href for containing an fragment (ex. /blah/index.htmlhello). | Проверьте, содержит ли href фрагмент (например, /blah/index.htmlhello). | public static function hasFragment($href) {
if (substr_count($href, "#") > 0) {
return TRUE;
}
return FALSE;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function isOnlyFragment($href) {\n $first_char = substr($href, 0, 1);\n if ($first_char === \"#\") {\n return TRUE;\n }\n return FALSE;\n }",
"function fragmentCheck(){\n\n\t\t/* Get our URI */\n\t\t$uri = $_SERVER['REQUEST_URI'];\n\n\t\t/* Check to see if we're using fragments */... | [
"0.76852643",
"0.69386387",
"0.6864983",
"0.61805373",
"0.6128746",
"0.6093807",
"0.6004143",
"0.5970865",
"0.58194524",
"0.57559854",
"0.5740226",
"0.5535317",
"0.53645766",
"0.5341598",
"0.5316087",
"0.5226562",
"0.5188018",
"0.51648325",
"0.51498115",
"0.5142217",
"0.51342... | 0.7637604 | 1 |
Check href for only containing a fragment (ex. hello). | Проверьте href, чтобы он содержал только фрагмент (например, hello). | public static function isOnlyFragment($href) {
$first_char = substr($href, 0, 1);
if ($first_char === "#") {
return TRUE;
}
return FALSE;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function hasFragment($href) {\n if (substr_count($href, \"#\") > 0) {\n return TRUE;\n }\n return FALSE;\n }",
"public function test_fragment_only()\n {\n $link = WebLink::make('https://#fragment');\n $this->assertEquals('#fragment', $link->getUrl());\n\n $lin... | [
"0.77454245",
"0.7070848",
"0.67604244",
"0.6241675",
"0.6065772",
"0.589869",
"0.5858634",
"0.56714714",
"0.5645913",
"0.56018704",
"0.5492034",
"0.54068816",
"0.5399042",
"0.5357805",
"0.53224516",
"0.532026",
"0.52980167",
"0.51373214",
"0.5129398",
"0.5117526",
"0.511549"... | 0.79999095 | 0 |
Lookup a migrate destination ID by path. WARNING This only works if the key in the migration is the uri of the file. | Поиск идентификатора назначения миграции по пути. ПРЕДУПРЕЖДЕНИЕ Это работает только в том случае, если ключ в миграции является URI файла. | public static function lookupMigrateDestinationIdByKeyPath(string $source_key_uri, array $migrations, string $trim_path = '') {
$found_id = '';
if (!empty($source_key_uri)) {
// Go search.
self::trimPath($source_key_uri, $trim_path);
foreach ($migrations as $migration) {
$map_table = "... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function lookupSourceID(array $destination_id) {\n migrate_instrument_start('lookupSourceID');\n $query = $this->connection->select($this->mapTable, 'map')\n ->fields('map', $this->sourceKeyMap);\n foreach ($this->destinationKeyMap as $key_name) {\n $query = $query->condition(\"ma... | [
"0.58805597",
"0.57700586",
"0.5463282",
"0.54414564",
"0.5306253",
"0.5270895",
"0.5181246",
"0.5121488",
"0.50140274",
"0.50140274",
"0.49761644",
"0.4968183",
"0.4948763",
"0.49432296",
"0.49258888",
"0.49146345",
"0.49102888",
"0.49101633",
"0.4893724",
"0.48656893",
"0.4... | 0.7349503 | 0 |
Alter URIs and URLs in page that are relative, absolute or full alter base. Relative links will be made either absolute or root relative depending on the value of $base_for_relative. If root relative is used, then attempts will be made to lookup the redirect and detect the final destination. | Измените URI и URL на странице, которые являются относительными, абсолютными или полными, изменяя базовый адрес. Относительные ссылки будут преобразованы либо в абсолютные, либо в относительные по корню в зависимости от значения $base_for_relative. Если используется относительный по корню, то будут предприниматься попы... | public static function rewritePageHref($href, array $url_base_alters, $file_path, $base_for_relative, $destination_base_url) {
if (!empty($href)) {
// Fix relatives Using the $base_for_relative and file_path.
$source_file = $base_for_relative . '/' . $file_path;
$href = self::convertRelativeToAbso... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function absolutize($base, $relative)\n {\n }",
"public static function absolutize($base, $relative)\n {\n }",
"public static function rewriteImageHrefsOnPage($query_path, array $url_base_alters, $file_path, $base_for_relative, $destination_base_url) {\n // Find all... | [
"0.6627413",
"0.6626928",
"0.6193491",
"0.6181398",
"0.61551595",
"0.61425257",
"0.60920715",
"0.6072377",
"0.60543996",
"0.60346735",
"0.5965375",
"0.5954869",
"0.5911563",
"0.58710635",
"0.58592075",
"0.57885355",
"0.5721136",
"0.57173127",
"0.56767446",
"0.564738",
"0.5629... | 0.70726913 | 0 |
getEngine Return the adapter if there is one, else return the scheme | getEngine Возвращает адаптер, если он есть, иначе возвращает схему | public function getEngine()
{
$adapter = $this->getAdapter();
if ($adapter) {
return $adapter;
}
return ucfirst($this->dsn->scheme);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getEngine ()\n {\n return $this->engine;\n }",
"public function getEngine()\n {\n return $this->engine;\n }",
"public function getEngine()\n {\n return $this->engine;\n }",
"public function getEngine()\n {\n return $this->engine;\n }",
"pu... | [
"0.7190013",
"0.7158358",
"0.7158358",
"0.7158358",
"0.7158358",
"0.7147801",
"0.7147801",
"0.7147801",
"0.7085785",
"0.7085785",
"0.7026126",
"0.6999034",
"0.69233555",
"0.688366",
"0.683487",
"0.6812323",
"0.6802913",
"0.6795979",
"0.6776267",
"0.6615872",
"0.654559",
"0.... | 0.83037037 | 0 |
Gets the value of the CurrencyCode property. | Получает значение свойства CurrencyCode. | public function getCurrencyCode()
{
return $this->_fields['CurrencyCode']['FieldValue'];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getCurrencyCode()\n {\n return $this->_fields['CurrencyCode']['FieldValue'];\n }",
"public function getCurrencyCode()\n {\n return $this->currencyCode;\n }",
"public function getCurrencyCode()\n {\n return $this->currencyCode;\n }",
"public function getC... | [
"0.8591661",
"0.8483913",
"0.8483913",
"0.8483913",
"0.8483913",
"0.8483913",
"0.84665734",
"0.813115",
"0.7941929",
"0.77447",
"0.76291627",
"0.76291627",
"0.76291627",
"0.7570783",
"0.75682145",
"0.7538617",
"0.7508259",
"0.73747396",
"0.73710793",
"0.7292958",
"0.72928685"... | 0.8508329 | 1 |
Checks if CurrencyCode is set | Проверяет, установлен ли CurrencyCode | public function isSetCurrencyCode()
{
return !is_null($this->_fields['CurrencyCode']['FieldValue']);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setCurrencyCode($currencyCode);",
"function setCurrencyCode($currencycode) {\n\t\tif (strlen($currencycode) == 3) {\n\t\t\t$this->currencycode = $currencycode;\n\t\t} else {\n\t\t\t$this->error[] = \"Invalid Currency Code\";\n\t\t}\n\t}",
"function setCurrencyCode($currencycode) {\n\t\tif (strl... | [
"0.6791662",
"0.66001415",
"0.66001415",
"0.65941393",
"0.6545575",
"0.65001446",
"0.64931166",
"0.6310719",
"0.62493145",
"0.6245121",
"0.6243182",
"0.62299335",
"0.62265265",
"0.6215503",
"0.61691916",
"0.61512613",
"0.61329395",
"0.61286527",
"0.6121935",
"0.6098899",
"0.6... | 0.761548 | 1 |
Checks if Amount is set | Проверяет, задано ли Amount | public function isSetAmount()
{
return !is_null($this->_fields['Amount']['FieldValue']);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function hasAmount()\n {\n return isset($this->amount);\n }",
"public function hasAmount(): bool\n {\n return isset($this->amount);\n }",
"public function isEmptyAmount()\n {\n if ($this->amount == 0) {\n return true;\n }\n return ... | [
"0.74502075",
"0.7343876",
"0.69951534",
"0.6973139",
"0.6973139",
"0.68393075",
"0.67648447",
"0.668805",
"0.6523347",
"0.6479692",
"0.64644533",
"0.64603716",
"0.6388301",
"0.6384029",
"0.63306344",
"0.6271671",
"0.6245531",
"0.62161994",
"0.61704725",
"0.61674845",
"0.6167... | 0.75796276 | 1 |
11 aug 2003: do not enclose with quotes all numerals 4 Oct 2002: short INSERT format (intCnt = [ 0, 1, 2 ... ] 24 May 2002: $isFields include field names to query or not 8 Feb 2005: no quotes for hexadecimal values 22 Feb 2005: DELAYED inserts | 11 авг 2003: не заключать все числа в кавычки 4 окт 2002: сокращенный формат INSERT (intCnt = [ 0, 1, 2 ... ] 24 мая 2002: $isFields включают имена полей для запроса или нет 8 фев 2005: отсутствие кавычек для шестнадцатеричных значений 22 фев 2005: задержанные вставки | function gw_sql_insert($SQLnamesA, $table, $isFields = 1, $intCnt = 0, $is_delayed = 0)
{
$query = '';
$SQLfileds = '';
$SQLfiledA = $SQLvalueA = array();
if (is_array($SQLnamesA))
{
for (reset($SQLnamesA); list($k, $v) = each($SQLnamesA);)
{
$v = gw_text_sql($v);
if ($v == '') {
$vF = "''... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function GenerateSqlInsert($data, $fields)\n{\n $loc = \"database.php->GenerateSqlInsert\";\n // First make an array that is an intersection of the two inputs.\n $final = array();\n foreach($fields as $f)\n {\n $fn = $f[0]; // Field name\n $ft = $f[1]; // Field type\n if(!isse... | [
"0.67727214",
"0.6455783",
"0.64232427",
"0.62759495",
"0.62687874",
"0.6187857",
"0.6158087",
"0.6123919",
"0.60920525",
"0.6054932",
"0.60216385",
"0.59857553",
"0.5966598",
"0.59391123",
"0.59107584",
"0.59096766",
"0.5884136",
"0.58570486",
"0.5847232",
"0.58350754",
"0.5... | 0.7179409 | 0 |
Return the raw post content for the specified post id | Верните сырые данные поста для указанного идентификатора поста | public static function get_raw_post_content(int $post_id): string
{
$post = get_post($post_id);
return $post ? $post->post_content : '';
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPost($id) {\n\t\treturn $this->postDAL->getPost($id);\n\t}",
"public function getPostContent();",
"public function getPost($id)\n\t{\n\t\t// make sure we have the latest state of posts\n\t\tif (!isset($this->metadata['posts'])) {\n\t\t\t$this->regeneratePostsMetadata();\n\t\t}\n\t\t// get th... | [
"0.744184",
"0.73112255",
"0.69985807",
"0.69716084",
"0.6937682",
"0.6913452",
"0.6876634",
"0.68681437",
"0.6836498",
"0.68342894",
"0.6816118",
"0.6777162",
"0.66507035",
"0.66397727",
"0.661593",
"0.66022325",
"0.6547359",
"0.6529206",
"0.6529206",
"0.6519101",
"0.6493818... | 0.8504743 | 0 |
lixlpixel recursive PHP functions scan_directory_recursively( directory to scan, filter ) expects path to directory and optional an extension to filter | Рекурсивные PHP-функции scan_directory_recursively(директорию для сканирования, фильтр) ожидает путь к директории и необязательное расширение для фильтрации | function scan_directory_recursively($directory, $filter=FALSE)
{
if(substr($directory,-1) == '/')
{
$directory = substr($directory,0,-1);
}
if(!file_exists($directory) || !is_dir($directory))
{
return FALSE;
}elseif(is_readable($directory))
{
$directory_list = opendir($directory);
while($file = readdir($... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function scan_directory($dir, $ext = '*', $recurse = true) {\n $files = array ();\n if ($handle = opendir($dir)) {\n while (false !== ($file = readdir($handle))) {\n if ($file == '.' || $file == '..' ||\n $file == 'CVS' || preg_match('|^\\.|', $file)) {\n continu... | [
"0.7365833",
"0.6470901",
"0.64123094",
"0.6315087",
"0.6304886",
"0.62927294",
"0.62897396",
"0.6267294",
"0.6255155",
"0.6250878",
"0.62452817",
"0.6229992",
"0.61644083",
"0.6160024",
"0.61408114",
"0.6133717",
"0.61173576",
"0.6106241",
"0.6103352",
"0.6040724",
"0.599069... | 0.73558325 | 1 |
Get the emoji country flag for the given country code. | Получить эмодзи флаг страны для заданного кода страны. | function country_flag($countryCode)
{
return CountryFlag::get($countryCode);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected static function country_code(): mixed\n\t{\n\t\treturn self::$query->country_code;\n\t}",
"static function get_country($code) {\n $countries = self::get_countries();\n foreach($countries as $c) {\n if($c->code == $code || $c->code2l == $code) {\n return $c;\n ... | [
"0.6938896",
"0.6765127",
"0.66688985",
"0.66329914",
"0.66089135",
"0.64887667",
"0.6487301",
"0.6464388",
"0.64364856",
"0.64127177",
"0.63825023",
"0.635371",
"0.6349881",
"0.6336349",
"0.62748784",
"0.62381095",
"0.61727625",
"0.6118596",
"0.6111141",
"0.60943353",
"0.609... | 0.75854194 | 0 |
Get Legal Document Type By RemarkTypeId | Получить тип юридического документа по RemarkTypeId | public function getLegalDocumentTypeByRemarkId ($remarkTypeId)
{
$legalDocumentType = 0;
if ($remarkTypeId == ApplicationRemarkType::TYPE_FILE_BIR_PERMIT ) {
$legalDocumentType = LegalDocumentType::TYPE_BIR_PERMIT;
}
else if ($remarkTypeId == ApplicationRemarkType... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getDocType();",
"function readDocumentType($id){\n $obj = new DocumentType($id);\n if($obj->isNew()) return false; else return $obj;\n }",
"public function setDocType($docType);",
"public function getDocumentType() {\n\t\tif($this->document_type == 'DOCUMENT' && $this->document_id)... | [
"0.6941356",
"0.6457717",
"0.61338395",
"0.60111564",
"0.5937266",
"0.5935095",
"0.59086734",
"0.5865947",
"0.5862416",
"0.5848411",
"0.5792302",
"0.57666224",
"0.57645994",
"0.5755874",
"0.57437575",
"0.56948435",
"0.56588215",
"0.5648785",
"0.56168324",
"0.5576396",
"0.5571... | 0.7972749 | 0 |
Update Accreditation Application Type | Обновление типа заявки на аккредитацию | public function updateApplicationType (AccreditationApplication $accreditationApplication, $accreditationApplicationTypeId, Store $store)
{
$accreditationReference = $this->em->getReference('YilinkerCoreBundle:AccreditationLevel', $accreditationApplicationTypeId);
if(!is_null($accreditationRefe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setApplicationIdentityType(?TeamworkApplicationIdentityType $value): void {\n $this->getBackingStore()->set('applicationIdentityType', $value);\n }",
"function editApp($appid, $usertype, $date, $projtitle, $princinvest, $coprincinvest1, $princinvestdept, $princinvestphone, $email, $dead... | [
"0.5755849",
"0.56772304",
"0.565952",
"0.5540196",
"0.5482525",
"0.5469314",
"0.5304715",
"0.53039974",
"0.53039974",
"0.5302946",
"0.52719194",
"0.5254388",
"0.52502245",
"0.52392447",
"0.5219835",
"0.521965",
"0.5203743",
"0.51803476",
"0.51655036",
"0.51630604",
"0.516114... | 0.71197236 | 0 |
Get Application Completion Percentage | Получить процент завершения приложения | public function getApplicationCompletionPercentage (AccreditationApplication $accreditationApplication = null, $legalDocuments = null)
{
$progress = 0;
if ($accreditationApplication !== null) {
if ((bool)$accreditationApplication->getIsBusinessApproved() === true) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function completions() {\n\t\t$completions_calc = $this->_completions/$this->_attempts;\n\t\t// Other NFL QBR specific manipulations\n\t\t$completions_calc -= .3;\n\t\tif ($completions_calc * 5 < 0) {\n\t\t\t$completions_calc = 0;\n\t\t} elseif ($completions_calc * 5 > 2.375) {\n\t\t\t$completions_calc = 2... | [
"0.6884999",
"0.67731214",
"0.6702122",
"0.6677123",
"0.6529506",
"0.6520701",
"0.6495131",
"0.6405681",
"0.6253002",
"0.6239268",
"0.6070016",
"0.6059016",
"0.60315907",
"0.5914786",
"0.59082884",
"0.5845962",
"0.58259296",
"0.5804386",
"0.57900715",
"0.5783191",
"0.5777193"... | 0.71300673 | 0 |
Get Application Type by store type | Получение типа приложения по типу магазина | public function getApplicationTypeByStoreType ($storeType)
{
if ( (int) $storeType === AccreditationApplication::SELLER_TYPE_RESELLER) {
$storeType = AccreditationApplication::SELLER_TYPE_RESELLER;
}
else {
$storeType = AccreditationApplication::SELLER_TYPE_MERC... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getAppType();",
"public function getApplicationType()\n {\n return $this->applicationType;\n }",
"protected function getAppUuid($type, $store)\n {\n $url = \"\";\n if ($type ==\"sketch\") {\n $url = $this->_codesHelper->getSketchUrl($store);\n ... | [
"0.7872113",
"0.6817175",
"0.6235384",
"0.60161245",
"0.5928851",
"0.5903828",
"0.5883104",
"0.5837614",
"0.5820838",
"0.58197296",
"0.5815476",
"0.577914",
"0.57312566",
"0.5672414",
"0.5671038",
"0.5671038",
"0.5614743",
"0.5598212",
"0.5597602",
"0.5563028",
"0.5542724",
... | 0.7433134 | 1 |
Add City ID to error message | Добавить идентификатор города в сообщение об ошибке | protected function getErrorWithCityId(FreeShippingInterface $city, $errorText)
{
return '[City ID: ' . $city->getCityId() . '] ' . $errorText;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function message()\n {\n return 'The Category id is invalid.';\n }",
"public function message()\n {\n return 'The report location is invalid because there is an active existing report already in the area. Please don\\'t create duplicate reports.';\n }",
"public function message... | [
"0.59879893",
"0.5731379",
"0.5701401",
"0.5597393",
"0.55355686",
"0.54918677",
"0.5469727",
"0.5438394",
"0.5365454",
"0.53522265",
"0.5349465",
"0.53309846",
"0.5321003",
"0.53204316",
"0.5296143",
"0.52917516",
"0.52876145",
"0.5279534",
"0.5278833",
"0.5271116",
"0.52514... | 0.7037821 | 0 |
Converts a hash in hex form to binary form | Конвертирует хэш в шестнадцатеричной форме в двоичную форму | public static function hexToBin($hash)
{
// If using PHP 5.4, there is a native function to convert from hex to binary
static $useNative;
if ($useNative === null) {
$useNative = function_exists('hex2bin');
}
if (!$useNative && strlen($hash) % 2 !== 0) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function binToHex($hash)\n {\n return bin2hex($hash);\n }",
"function sha1_bin($hex)\r\n{\r\n return pack('H40', $hex);\r\n}",
"function hextobin($hexString) \n { \n $length = strlen($hexString); \n $binString=\"\"; \n $count=0; \n while($count<$le... | [
"0.7451742",
"0.6904995",
"0.6477196",
"0.6408912",
"0.63023025",
"0.6293589",
"0.6181585",
"0.6171403",
"0.6148444",
"0.61452526",
"0.6131103",
"0.59920394",
"0.59887",
"0.59275705",
"0.5838102",
"0.58224994",
"0.5807395",
"0.58048457",
"0.5736268",
"0.57354736",
"0.57052416... | 0.76573384 | 0 |
Converts a hash in binary form to hex form | Конвертирует хэш в двоичной форме в шестнадцатеричную форму | public static function binToHex($hash)
{
return bin2hex($hash);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function hexToBin($hash)\n {\n // If using PHP 5.4, there is a native function to convert from hex to binary\n static $useNative;\n if ($useNative === null) {\n $useNative = function_exists('hex2bin');\n }\n\n if (!$useNative && strlen($hash) % 2 !== 0... | [
"0.7061621",
"0.6726149",
"0.66637397",
"0.637879",
"0.63669884",
"0.627641",
"0.62530893",
"0.6201719",
"0.61720675",
"0.6148772",
"0.61055416",
"0.60956055",
"0.60699683",
"0.59929836",
"0.59890974",
"0.59841913",
"0.59590477",
"0.5954503",
"0.5944585",
"0.59282887",
"0.588... | 0.80508184 | 0 |
Lists all DollInfo models. | Список всех моделей DollInfo. | public function actionIndex()
{
$searchModel = new DollInfoSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
return $this->render('index', [
'searchModel' => $searchModel,
'dataProvider' => $dataProvider,
]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function liste()\n {\n $discs = $this->LoadModel('Disc');\n $discDetail = $discs->info_record();\n $this->render('liste', [\n 'discs' => $discDetail\n ]);\n }",
"public function getModels();",
"public function getModels();",
"public function listModels() {\... | [
"0.64438814",
"0.6298668",
"0.6298668",
"0.62913895",
"0.62639356",
"0.6258607",
"0.61507505",
"0.61457294",
"0.6141489",
"0.611133",
"0.60787356",
"0.60374194",
"0.60351723",
"0.60313755",
"0.60252273",
"0.60233015",
"0.6013212",
"0.6010859",
"0.5968535",
"0.5959769",
"0.592... | 0.71787024 | 0 |
Get the list of parameters for this form. | Получите список параметров для этой формы. | public static function get_parameters() {
return array(
array(
'name' => 'termlist_id',
'caption' => 'Term List',
'description' => 'The term list being edited.',
'type' => 'select',
'table' => 'termlist',
'captionField' => 'title',
'valueFi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getFormParameters()\n {\n return $this->form_parameters;\n }",
"public function getParameters()\n {\n return $this->parameters->all();\n }",
"function getFormParams() {\n\t\treturn $this->_formParams;\n\t}",
"public function get_parameters() {\r\n\t\treturn $this->pa... | [
"0.83327293",
"0.7673348",
"0.7606245",
"0.74927783",
"0.74764305",
"0.74746084",
"0.74746084",
"0.74746084",
"0.74746084",
"0.74587613",
"0.74587613",
"0.7454035",
"0.74270177",
"0.7424826",
"0.7424826",
"0.7424826",
"0.7424826",
"0.7424826",
"0.7424826",
"0.7424826",
"0.742... | 0.78400004 | 1 |
Return the templates configuration structure which control what extra fields will be shown in the "Template" tab when configuring a form's PDF. The fields key is based on our \GFPDF\Helper\Helper_Abstract_Options Settings API See the Helper_Options_Fields::register_settings() method for the exact fields that can be pas... | Верните структуру конфигурации шаблонов, которая управляет тем, какие дополнительные поля будут отображаться в вкладке "Шаблон" при настройке PDF-формы. Ключ fields основан на нашей \GFPDF\Helper\Helper_Abstract_Options Settings API. Посмотрите метод Helper_Options_Fields::register_settings() для точного списка полей, ... | public function configuration() {
return [
/* Enable core fields */
'core' => [
'enable_conditional' => true,
'show_empty' => true,
'background_image' => true,
],
/* Create custom fields to control the look and feel of a template */
'fields' => [
'letter_number' => ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function template_options() {\n\t\treturn array(\n\t\t\t'title' => __( 'Protected Content Markup', 'byobgpcm' ),\n\t\t\t'fields' => array(\n\t\t\t\t'use_protected_content_markup' => array(\n\t\t\t\t\t'type' => 'checkbox',\n\t\t\t\t\t'label' => __( 'Does this template contain protected content... | [
"0.76471496",
"0.67804855",
"0.65752053",
"0.6542611",
"0.6516883",
"0.6471955",
"0.64517903",
"0.6407626",
"0.6317888",
"0.6291372",
"0.6283711",
"0.62689734",
"0.6260548",
"0.62224627",
"0.6182933",
"0.61812454",
"0.61769915",
"0.61704165",
"0.6169526",
"0.61485046",
"0.613... | 0.725489 | 1 |
Find whether a handled notification code supports categories. (Content types, for example, will define notifications on specific categories, not just in general. The categories are interpreted by the hook and may be complex. E.g. it might be like a regexp match, or like FORUM:3 or TOPIC:100) | Определите, поддерживает ли обработанный код уведомления категории. (Типы содержимого, например, определяют уведомления на конкретных категориях, а не просто в общем случае. Категории интерпретируются хуком и могут быть сложными. Например, они могут быть похожи на совпадение регулярного выражения, или на FORUM:3 или TO... | public function supports_categories($notification_code)
{
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function hasCategories() {\n return $this->_has(16);\n }",
"public function is_category($category = '')\n {\n }",
"function _getNotificationSettingCategories() {\n\t\treturn array(\n\t\t\t'submissions' => array('categoryKey' => 'notification.type.submissions',\n\t\t\t\t'settings' =... | [
"0.5860655",
"0.5794245",
"0.5691196",
"0.5650265",
"0.56381476",
"0.5637379",
"0.5634113",
"0.560038",
"0.5579383",
"0.55618674",
"0.55477655",
"0.55303836",
"0.55199057",
"0.5513825",
"0.5513825",
"0.5513825",
"0.53819495",
"0.53174084",
"0.52835166",
"0.52485025",
"0.52383... | 0.72142065 | 0 |
Get a list of all the notification codes this hook can handle. (Addons can define hooks that handle whole sets of codes, so hooks are written so they can take wide authority) | Получите список всех кодов уведомлений, которые этот хук может обрабатывать. (Плагины могут определять хуки, обрабатывающие целые наборы кодов, поэтому хуки пишутся так, чтобы иметь широкие права) | public function list_handled_codes()
{
$list = array();
$list['filedump'] = array(do_lang('CONTENT'), do_lang('filedump:NOTIFICATION_TYPE_filedump'));
return $list;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function getAllCodes() {\n \t$codes = array();\n \t$config = Mage::getConfig()->getNode('crontab/jobs'); /* @var $config Mage_Core_Model_Config_Element */\n\t\tif ($config instanceof Mage_Core_Model_Config_Element) {\n\t\t\tforeach ($config->children() as $key => $tmp) {\n\t\t\t\tif (!in_array($key... | [
"0.6726171",
"0.66064316",
"0.6601019",
"0.6216556",
"0.6199188",
"0.60930735",
"0.6081675",
"0.60282975",
"0.601612",
"0.585455",
"0.5851668",
"0.5848004",
"0.5815001",
"0.58126533",
"0.5779163",
"0.5748517",
"0.5744446",
"0.5688069",
"0.56798387",
"0.5676644",
"0.56759083",... | 0.7120404 | 0 |
Check create person validation. | Проверьте валидацию создания персоны. | public function check_create_person_validation()
{
$person = [];
$this->signInAsRelationshipsManager('api');
$response = $this->json('POST','api/v1/person/', $person);
$response->assertStatus(422)
->assertJson( [
'message' => 'The given data was invalid.',
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function checkIsValidForCreate() {\n $errors = array();\n if (strlen($this->email) < 5) {\n $errors[\"email\"] = i18n(\"You must write your email\");\n }\n if (sizeof($errors)>0){\n throw new ValidationException($errors, \"user is not valid\");\n }\n }",
"function ctr_validateDet... | [
"0.70678824",
"0.6912674",
"0.6803462",
"0.67670065",
"0.67114013",
"0.6701259",
"0.6678954",
"0.66605467",
"0.66580576",
"0.66430044",
"0.66178644",
"0.6581013",
"0.6515533",
"0.6515533",
"0.6514173",
"0.6509381",
"0.64894927",
"0.637923",
"0.63351506",
"0.6283792",
"0.62376... | 0.83110464 | 0 |
Check authorization uri to show a person. | Проверьте URI авторизации для отображения человека. | public function check_authorization_uri_to_show_a_person()
{
$person = create_person_with_nif_array();
$this->check_json_api_uri_authorization('api/v1/person/','post', $person);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function authorize() {\n\t\tif (Auth::user()->user_type == \"S\" || Auth::user()->user_type == \"O\") {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tabort(404);\n\t\t}\n\t}",
"abstract public function url_authorize();",
"public function authorize()\n {\n return $this->route('address')->userCanView... | [
"0.6208289",
"0.619818",
"0.61616457",
"0.6037186",
"0.60190815",
"0.591433",
"0.58267933",
"0.578252",
"0.576901",
"0.5762709",
"0.5741984",
"0.5741984",
"0.5696148",
"0.56688863",
"0.5667511",
"0.5658546",
"0.5647978",
"0.56392956",
"0.5636935",
"0.561792",
"0.56166047",
... | 0.80825865 | 0 |
\ Content functions \ Displays meta information for a post | Функции содержимого \ Отображает метаинформацию для поста | function boom_post_meta() {
if ( get_post_type() == 'post' ) {
echo sprintf(
__( 'Posted %s in %s%s by %s. ', 'boom' ),
get_the_time( get_option( 'date_format' ) ),
get_the_category_list( ', ' ),
get_the_tag_list( __( ', <b>Tags</b>: ', 'boom' ), ', ' ),
get_the_author_link()
);
}
edit_post_link( ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function et_divi_post_meta() {\n\t\t$pages = array(\n\t\t\tintval( \\SermonManager::getOption( 'smp_archive_page', 0 ) ),\n\t\t\tintval( \\SermonManager::getOption( 'smp_tax_page', 0 ) ),\n\t\t);\n\t\tif ( in_array( get_the_ID(), $pages ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$postinfo = is_single() ? et_get_option( 'd... | [
"0.7678935",
"0.76153183",
"0.75185114",
"0.73106444",
"0.7301531",
"0.72853297",
"0.72778004",
"0.7268532",
"0.7203399",
"0.710013",
"0.7057284",
"0.70221335",
"0.69878346",
"0.6981914",
"0.695175",
"0.692633",
"0.690987",
"0.6854962",
"0.6841516",
"0.6817306",
"0.68082416",... | 0.770635 | 0 |
filter the tags from the images and iFrame | отфильтруйте теги из изображений и iFrame | function filter_ptags_on_images($content){
$content = preg_replace('/<p>\s*(<a .*>)?\s*(<img .* \/>)\s*(<\/a>)?\s*<\/p>/iU', '\1\2\3', $content);
return preg_replace('/<p>\s*(<iframe .*>*.<\/iframe>)\s*<\/p>/iU', '\1', $content);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function filter_ptags_on_images($content) {\n $content = preg_replace('/<p>\\s*(<a .*>)?\\s*(<img .* \\/>)\\s*(<\\/a>)?\\s*<\\/p>/iU', '\\1\\2\\3', $content);\n return preg_replace('/<p>\\s*(<iframe .*>*.<\\/iframe>)\\s*<\\/p>/iU', '\\1', $content);\n}",
"function filter_ptags_on_images($content) {\n $c... | [
"0.72098565",
"0.72098565",
"0.66952026",
"0.6674728",
"0.66632783",
"0.66617215",
"0.66617215",
"0.66617215",
"0.66617215",
"0.66617215",
"0.66617215",
"0.6661173",
"0.66301674",
"0.65832156",
"0.6579503",
"0.65528077",
"0.6528508",
"0.65041566",
"0.6501746",
"0.6442931",
"0... | 0.7472433 | 0 |
Wraps Images content on a DIV element | Оборачивает содержимое Images в элемент DIV | function content_addDivToImage( $content ) {
$pattern = '/(<img([^>]*)>)/i';
$replacement = '<div class="image_wrapper">$1</div>';
$content = preg_replace( $pattern, $replacement, $content );
return $content;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function image_wrap() {\r\n add_filter('the_content', array('cwp', 'filter_images'));\r\n }",
"public function asHtml(): string {\n\n $resultsHtml = \"<div class='img-grid'>\";\n $count = 0;\n\n foreach ($this->results as $image) {\n $count++;\n ... | [
"0.70296353",
"0.62475896",
"0.6192706",
"0.61710554",
"0.60392153",
"0.5983281",
"0.58517945",
"0.5844741",
"0.57071084",
"0.5691835",
"0.5685138",
"0.56612575",
"0.56366354",
"0.56049633",
"0.5560673",
"0.55400383",
"0.55104524",
"0.55083305",
"0.5495247",
"0.54838276",
"0.... | 0.7396228 | 0 |
/////////////////////////////////////////////////////////////////////////////// Adds a metarefresh tag in the header of the site to redirect all traffic to a specific URL every X seconds. /////////////////////////////////////////////////////////////////////////////// | /////////////////////////////////////////////////////////////////////////////// Добавляет метатег metarefresh в заголовок сайта для перенаправления всего трафика на определенный URL каждые X секунд. /////////////////////////////////////////////////////////////////////////////// | function add_metarefresh() {
$post_url;
// Redirects to a custom URL
if(METAREFRESH_CUSTOM_URL){
$post_url = METAREFRESH_URL ? METAREFRESH_URL : get_bloginfo('url');
// Redirects to a random address within an array or URL
} else if(METAREFRESH_CUSTOM_URL_ARRAY){
$url_array = unserialize(METARE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function app_auto_refresh(int $delay)\n{\n header('Refresh: ' . $delay . '; ' . $_SERVER['REQUEST_URI']);\n}",
"function meta_refresh($time, $url, $disable_cd_check = false)\n{\n\tglobal $template;\n\n\t$url = redirect($url, true, $disable_cd_check);\n\t$url = str_replace('&', '&', $url);\n\n\t// For XHTML... | [
"0.70994556",
"0.7004533",
"0.67559975",
"0.6361787",
"0.6313741",
"0.6174323",
"0.6157777",
"0.5926107",
"0.5807808",
"0.5794741",
"0.5689044",
"0.5571267",
"0.5521268",
"0.55022466",
"0.5429606",
"0.53721493",
"0.5361081",
"0.5300412",
"0.52998793",
"0.5299391",
"0.52809626... | 0.7339435 | 0 |
/ this way it works well only for orthogonal lines imagesetthickness($image, $thick); return imageline($image, $x1, $y1, $x2, $y2, $color); | Таким образом, это работает хорошо только для ортогональных линий imagesetthickness($image, $thick); return imageline($image, $x1, $y1, $x2, $y2, $color); | function imagelinethick($image, $x1, $y1, $x2, $y2, $color, $thick = 1)
{
if ($thick == 1) {
return imageline($image, $x1, $y1, $x2, $y2, $color);
}
$t = $thick / 2 - 0.5;
if ($x1 == $x2 || $y1 == $y2) {
return imagefilledrectangle($image, round(min($x1, $x2) - $t), round(min($y1, $y2) - $t), ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function imagelinethick($image, $x1, $y1, $x2, $y2, $color, $thick = 1)\n {\n if ($thick == 1) {\n return imageline($image, $x1, $y1, $x2, $y2, $color);\n }\n $t = $thick / 2 - 0.5;\n if ($x1 == $x2 || $y1 == $y2) {\n return imagefill... | [
"0.8573647",
"0.8501134",
"0.79354656",
"0.74994016",
"0.72305226",
"0.7107917",
"0.6801208",
"0.66063446",
"0.65580803",
"0.63726324",
"0.60559034",
"0.60532975",
"0.5880996",
"0.58563715",
"0.5822639",
"0.5817805",
"0.57569975",
"0.56424606",
"0.56362456",
"0.5605013",
"0.5... | 0.85506845 | 1 |
registration_button. This method is used to show connect with loyaltybox button which will open registration / login popup if session is already runnig for logged in user it will show users account details with available loyalty points. | registration_button. Этот метод используется для отображения кнопки "Подключиться к loyaltybox", которая открывает окно регистрации/входа. Если сессия уже запущена и пользователь авторизован, будет отображаться информация о пользователе с доступными лояльными баллами. | public function registration_button() {
$rewardProgrammeName = Mage::getStoreConfig('lbconfig_section/lb_settings_group/reward_programme_name_field');
Lb_Points_Helper_Data::$rewardProgrammeName = $rewardProgrammeName;
if(isset($_SESSION['LB_Session']))
{
if(!empty($_SESSION... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function registration_popup() {\n ?>\n <div style=\"display:none;\">\n <div id=\"popup_form_registration\" class=\"main\">\n <div class=\"col-main\" style=\"float: none;width:100%;\">\n <div class=\"page-title\">\n <h1>Connect... | [
"0.67709357",
"0.67042327",
"0.62745816",
"0.6193503",
"0.6124903",
"0.5984627",
"0.59040767",
"0.58807456",
"0.58584887",
"0.58158845",
"0.58122087",
"0.57709104",
"0.57471806",
"0.5720803",
"0.5713735",
"0.5680387",
"0.56651187",
"0.56461066",
"0.56364346",
"0.5614515",
"0.... | 0.82411844 | 0 |
registration_popup. This method is used to render registration/login dialog box. | registration_popup. Этот метод используется для отображения диалогового окна регистрации/авторизации. | public function registration_popup() {
?>
<div style="display:none;">
<div id="popup_form_registration" class="main">
<div class="col-main" style="float: none;width:100%;">
<div class="page-title">
<h1>Connect with <?php echo Lb_Poi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function showRegistrationForm()\n {\n return view('skins.' . config('pilot.SITE_SKIN') . '.auth.register');\n }",
"function DisplayLoginPopup()\n\t{\n\t\t$this->LoadPage('generic_popup');\n\t\t$this->Page->SetName(\"Login\");\n\t\t$this->Page->AddObject('UserLogin', COLUMN_ONE, HTML_CONTEXT_P... | [
"0.6570414",
"0.651452",
"0.6450565",
"0.64338094",
"0.63390696",
"0.6301324",
"0.62267715",
"0.62121123",
"0.61955094",
"0.6168004",
"0.6158292",
"0.6154698",
"0.61509985",
"0.6123401",
"0.61215955",
"0.6116056",
"0.60746676",
"0.6066945",
"0.6065777",
"0.6047308",
"0.603736... | 0.7435636 | 0 |
redeem_points. This method is used to render Redeem Points form | redeem_points. Этот метод используется для отображения формы списания баллов | public function redeem_points() {
$rewardProgrammeName = Mage::getStoreConfig('lbconfig_section/lb_settings_group/reward_programme_name_field');
Lb_Points_Helper_Data::$rewardProgrammeName = $rewardProgrammeName;
if(isset($_SESSION['LB_Session']))
{
if(!empty($_SESSION['LB_Se... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function redeemAction(){\n $txtRedeemPoints = $_POST['txtRedeemPoints'];\n $quoteData = Mage::getSingleton('checkout/session')->getQuote();\n \n $CartContentsTotal = $quoteData['subtotal'];\n $CartTotal = $quoteData['grand_total'];\n \n if(!empty($txtRedeemPo... | [
"0.67140895",
"0.66167986",
"0.5845974",
"0.5793979",
"0.57863957",
"0.57825184",
"0.5688812",
"0.5618296",
"0.56000495",
"0.55366266",
"0.5496469",
"0.549352",
"0.5492733",
"0.5475493",
"0.54700106",
"0.54416525",
"0.5430484",
"0.5411562",
"0.5396062",
"0.5374926",
"0.537346... | 0.77689725 | 0 |
Get token for current user and current session | Получить токен для текущего пользователя и текущей сессии | public static function get_token() {
global $USER;
$sid = session_id();
return self::get_token_for_user($USER->id, $sid);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getUserToken()\n {\n return !is_null($this->authToken) ? $this->authToken : $this->cookieHelper->getRequestCookie('auth');\n }",
"protected function retrieveSessionToken() {}",
"protected function retrieveSessionToken() {}",
"protected function retrieveSessionToken() {}",
"prot... | [
"0.7511241",
"0.7504436",
"0.7504436",
"0.75041944",
"0.75041944",
"0.74776256",
"0.7458744",
"0.742556",
"0.7403113",
"0.7247412",
"0.7232093",
"0.72083265",
"0.7151412",
"0.71220917",
"0.7072392",
"0.7066118",
"0.7050692",
"0.7050453",
"0.70492166",
"0.7034856",
"0.700692",... | 0.80625516 | 0 |
Display the trainingen page. | Показать страницу обучения. | public function trainingen()
{
return view('pages.trainingen');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function training()\n {\n return view('training');\n }",
"public function show(Training $training)\n {\n //\n }",
"public function traininglist()\n {\n return view('training.opentraining.index');\n }",
"public function index()\n {\n return view('trainin... | [
"0.7517378",
"0.7281552",
"0.7074264",
"0.70442677",
"0.6984545",
"0.6908189",
"0.67756504",
"0.6657752",
"0.6559157",
"0.6516138",
"0.65024227",
"0.6494711",
"0.6492683",
"0.649082",
"0.64902055",
"0.6475568",
"0.6429362",
"0.6416625",
"0.6393047",
"0.6390218",
"0.6385416",
... | 0.7941928 | 0 |
Display the biotim page. | Показать страницу biotim. | public function biotim()
{
return view('pages.biotim');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function show() {\n $this->buildPage();\n echo $this->_page;\n }",
"public function biowim()\n\t{\n\t\treturn view('pages.biowim');\n\t}",
"function showPage() \n\t{\n\t\t$this->xt->display($this->templatefile);\n\t}",
"public function show()\n {\n /** Configure generic views */\n ... | [
"0.70402324",
"0.69638723",
"0.69442993",
"0.6780792",
"0.67758614",
"0.672785",
"0.6688839",
"0.66764104",
"0.6649364",
"0.6566488",
"0.6566009",
"0.65582913",
"0.65241915",
"0.65101755",
"0.6497314",
"0.6492671",
"0.6492671",
"0.6490646",
"0.6490646",
"0.648595",
"0.6474471... | 0.75264925 | 0 |
Display the biowim page. | Показать страницу biowim. | public function biowim()
{
return view('pages.biowim');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function show() {\n $this->buildPage();\n echo $this->_page;\n }",
"public function biotim()\n\t{\n\t\treturn view('pages.biotim');\n\t}",
"function showPage() \n\t{\n\t\t$this->xt->display($this->templatefile);\n\t}",
"public function show()\n {\n /** Configure generic views */\n ... | [
"0.74522656",
"0.7130924",
"0.71187615",
"0.7036122",
"0.6946333",
"0.6922578",
"0.68875295",
"0.68491083",
"0.6819816",
"0.679951",
"0.67669797",
"0.6760535",
"0.6694673",
"0.6636045",
"0.6636045",
"0.6636045",
"0.66299397",
"0.6627444",
"0.6623019",
"0.6623019",
"0.6621124"... | 0.7221221 | 1 |
Gets the metadataToAdd A collection of keyvalue pairs that should be added to the file. | Получает метаданные metadataToAdd — коллекцию пар ключ-значение, которые должны быть добавлены в файл. | public function getMetadataToAdd()
{
if (array_key_exists("metadataToAdd", $this->_propDict)) {
if (is_a($this->_propDict["metadataToAdd"], "\Beta\Microsoft\Graph\SecurityNamespace\Model\KeyValuePair") || is_null($this->_propDict["metadataToAdd"])) {
return $this->_propDict["meta... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getAddMetadata()\n {\n return $this->readOneof(3);\n }",
"public function setMetadataToAdd($val)\n {\n $this->_propDict[\"metadataToAdd\"] = $val;\n return $this;\n }",
"public function addMetadata()\n {\n $metadata = new clozetext_metadata();\n ... | [
"0.65856576",
"0.6050154",
"0.5808412",
"0.570184",
"0.5596507",
"0.5593734",
"0.550526",
"0.54395956",
"0.5430593",
"0.53976893",
"0.53729856",
"0.53718114",
"0.53718114",
"0.53718114",
"0.5365972",
"0.5363957",
"0.5350035",
"0.5349724",
"0.53401923",
"0.53392845",
"0.533928... | 0.70751345 | 0 |
Gets the metadataToRemove A collection of strings that indicate which keys to remove from the file metadata. | Получает metadataToRemove Коллекцию строк, указывающих, какие ключи удалить из метаданных файла. | public function getMetadataToRemove()
{
if (array_key_exists("metadataToRemove", $this->_propDict)) {
return $this->_propDict["metadataToRemove"];
} else {
return null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function delMetadata() {}",
"public function delMetadata() {}",
"public function delMetadata() {}",
"public function getDeleteMetadata()\n {\n return $this->readOneof(4);\n }",
"public function getRemoveTags() {\n\t\treturn $this->removeTags;\n\t}",
"protected function _remove()\n ... | [
"0.552871",
"0.552871",
"0.552871",
"0.5365626",
"0.53509885",
"0.5302153",
"0.52644527",
"0.5199049",
"0.51217324",
"0.5118283",
"0.51068085",
"0.5094225",
"0.5085879",
"0.5039409",
"0.4996771",
"0.49885955",
"0.49806613",
"0.49720898",
"0.49266577",
"0.4891758",
"0.48408672... | 0.72064364 | 0 |
Converts the received value to the Euro format | Преобразует получаемое значение в формат Евро | public static function euro($value)
{
if (! is_numeric($value)) {
throw new Exception('[fieldRendererHelper::euro] The inserted value is not numeric!');
}
return '€ '.number_format($value, 2, ',', '.');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function currency_format_en($value) {\n $value = number_format($value, 2, '.', ',');\n $value = str_replace('.00', '', $value);\n return $value;\n }",
"function european_format($amount)\n {\n //return $fmt->formatCurrency($amount, \"EUR\");\n return $amount;\n }... | [
"0.6946296",
"0.6927172",
"0.64700776",
"0.6387634",
"0.6357601",
"0.6298162",
"0.6116194",
"0.61106825",
"0.61036587",
"0.60473263",
"0.5987716",
"0.5959169",
"0.5951928",
"0.59432983",
"0.5928837",
"0.5928837",
"0.5868156",
"0.58627117",
"0.5862655",
"0.5859593",
"0.5859309... | 0.7648277 | 0 |
Create new daemon reference from dictionary. | Создать новый дэемон из словаря. | public static function newFromDictionary(array $dict)
{
$ref = new DaemonReference;
$ref->name = Arr::get($dict, 'name', 'Unknown');
$ref->pid = Arr::get($dict, 'pid');
$ref->start = Arr::get($dict, 'start');
return $ref;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function __construct($dictionary = null) {}",
"public static function createDictionary() {}",
"public function create( &$object );",
"function vdn_make($name,$umd=NULL){\n if(is_null($umd)) $umd = $this->ddef;\n if(is_object($umd)) return $umd->key . $this->svdn . $name;\n else ... | [
"0.51235944",
"0.50945127",
"0.47428128",
"0.47115842",
"0.461738",
"0.44723433",
"0.44106826",
"0.4401278",
"0.43539694",
"0.43376103",
"0.4328578",
"0.432068",
"0.43194214",
"0.4310321",
"0.43043825",
"0.4302915",
"0.4298945",
"0.4286619",
"0.4286619",
"0.4286619",
"0.42866... | 0.784082 | 0 |
Evaluate a double quoted string literal We need to replace the double quoted string with a | Оценить двойной кавычечный строковый литерал. Нам нужно заменить двойной кавычечный строковый литерал на | public function StringLiteral_DoubleQuotedStringLiteral(&$result, $sub)
{
$result['code'] = '\'' . substr(str_replace(['\'', '\\"'], ['\\\'', '"'], $sub['text']), 1, -1) . '\'';
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function quote4Eval($in) {\n\t\tif (is_numeric($in)) {\n\t\t\treturn $in;\n\t\t} else {\n\t\t\treturn '\"' . str_replace(\"\\\\'\", \"'\", addslashes($in)) . '\"';\n\t\t}\n\t}",
"public static function intoQuote($string){ return \"'\".$string.\"'\"; }",
"function prepare_eval($phrase)\n{\n $retVal = \"\";\n... | [
"0.64030397",
"0.6339041",
"0.63248557",
"0.6257721",
"0.6214622",
"0.62100613",
"0.62001795",
"0.61983013",
"0.61735827",
"0.61577743",
"0.61317647",
"0.6129143",
"0.60889196",
"0.6074564",
"0.60499704",
"0.6026522",
"0.5969111",
"0.59674126",
"0.59493345",
"0.5938987",
"0.5... | 0.70083034 | 0 |
Return an expression that unwraps the given expression if it is a Context object. | Вернуть выражение, которое распаковывает заданное выражение, если оно является объектом Context. | protected function unwrapExpression($expression)
{
$varName = '$_' . $this->tmpId++;
return '((' . $varName . '=' . $expression . ') instanceof \Neos\Eel\Context?' . $varName . '->unwrap():' . $varName . ')';
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getExpressionContext()\n {\n return $this->expressionContext;\n }",
"public function normalize($value)\n {\n if ($value instanceof Expression ||\n $value instanceof Expressionable) {\n return $value;\n }\n\n return parent::normalize($valu... | [
"0.53272545",
"0.5058471",
"0.48233417",
"0.47118062",
"0.46983784",
"0.46795946",
"0.46736154",
"0.463953",
"0.46379808",
"0.46356824",
"0.45975503",
"0.45570228",
"0.45417708",
"0.45283318",
"0.45200315",
"0.4510017",
"0.4508338",
"0.43867028",
"0.43540326",
"0.43398088",
"... | 0.73917663 | 0 |
Returns currently handled field info | Возвращает информацию о текущем обрабатываемом поле | public function getFieldInfo()
{
return $this->fieldInfo;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function getCompleteFieldInformation() {}",
"public abstract function GetCurrentField();",
"public function getIncomingFields() {}",
"abstract protected function getFields();",
"function fieldInfo( $table, $field );",
"public function getField();",
"public function getField();",
"public fun... | [
"0.8046285",
"0.7346443",
"0.70788896",
"0.6952199",
"0.68741375",
"0.68539214",
"0.68539214",
"0.68539214",
"0.68151975",
"0.6754026",
"0.6753113",
"0.6753113",
"0.6753113",
"0.67487186",
"0.6742767",
"0.6731911",
"0.6731911",
"0.6713632",
"0.67040193",
"0.67024946",
"0.6699... | 0.8102869 | 0 |
Creates a html warning template. Can be implemented flexibly. | Создает шаблон html-предупреждения. Может быть реализован гибко. | function createWarningHTML($paraTitle, $paraMessage) {
$html = "
<div class='alert alert-danger alert-dismissible fade show' role='alert'>
<h4>$paraTitle</h4>
$paraMessage
</div>
";
return $html;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function template_ecl_warning_above ()\n{\n\tglobal $context;\n\n\techo '\n\t<div id=\"ecl_notification\">\n\t\t', $context['ecl_main_notice'], '\n\t</div>';\n}",
"public function get_warnings() {\n\n\t\t$output = '';\n\t\t\n\t\t$warnings = $this->warnings;\n\t\t\n\t\tif ($warnings) {\n\t\t\t$items = '';\n\t\t\t... | [
"0.6392513",
"0.6326557",
"0.6285918",
"0.62715286",
"0.6266103",
"0.6253169",
"0.62057537",
"0.6057342",
"0.5972067",
"0.5954006",
"0.5950921",
"0.59411216",
"0.59314454",
"0.59283787",
"0.5919225",
"0.59060425",
"0.5898825",
"0.5882457",
"0.5816333",
"0.5814268",
"0.5778805... | 0.71026874 | 0 |
Get Icontact Prospect Id attribute value | Получить значение атрибута Icontact Prospect Id | public function getId() : int
{
return $this->getValue('nb_icontact_prospect_id');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getContactID()\n {\n return $this->get('ContactID');\n }",
"public function getContactID()\n {\n return $this->get('ContactID');\n }",
"public function getContactID()\n {\n return $this->get('ContactID');\n }",
"public function getIcontactId() : int\n ... | [
"0.6667847",
"0.6667847",
"0.6666448",
"0.6632674",
"0.6533523",
"0.6515566",
"0.64441454",
"0.6346272",
"0.6339089",
"0.63353395",
"0.62844706",
"0.62844706",
"0.6278635",
"0.62675464",
"0.62584364",
"0.62548506",
"0.6254567",
"0.62313926",
"0.62116784",
"0.619901",
"0.61622... | 0.7076327 | 0 |
Get Icontact Prospect Email Hash attribute value | Получить значение атрибута Icontact Prospect Email Hash | public function getEmailHash()
{
return $this->getValue('nb_icontact_prospect_email_hash');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getEmail()\n {\n return $this->getValue('nb_icontact_prospect_email');\n }",
"function getEmailKey() {\n\t\treturn $this->getData('emailKey');\n\t}",
"protected function _getEmailHash()\n {\n if (isset($this->_properties['email_hash'])) {\n return md5($this->_p... | [
"0.65616786",
"0.64263403",
"0.6304265",
"0.62540346",
"0.6251856",
"0.61685336",
"0.6134398",
"0.61256427",
"0.6123265",
"0.6056756",
"0.60498565",
"0.60454875",
"0.60368925",
"0.60368925",
"0.60368925",
"0.60350764",
"0.60350764",
"0.60286504",
"0.60153484",
"0.6003907",
"0... | 0.7844742 | 0 |
Get Icontact Prospect Status Id attribute value | Получить значение атрибута Icontact Prospect Status Id | public function getStatusId()
{
return $this->getValue('nb_icontact_prospect_status_id');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getStatusID() {\n\t\treturn $this->data_array['status_id'];\n\t}",
"public function getIdStatus()\n {\n return $this->id_status;\n }",
"public function getStatusId()\n\t{\n\n\t\treturn $this->status_id;\n\t}",
"public function getStatusId()\n\t\t{\n\t\t\t\treturn $this->getModel()->appl... | [
"0.6922434",
"0.6495864",
"0.6312298",
"0.6108296",
"0.60967606",
"0.6055607",
"0.5868648",
"0.58063763",
"0.57909673",
"0.5767292",
"0.5764183",
"0.5736758",
"0.5704611",
"0.57028884",
"0.5688073",
"0.56863844",
"0.5686016",
"0.5674778",
"0.5672597",
"0.56641704",
"0.5649491... | 0.76976633 | 0 |
Get Icontact Prospect Creation Datetime attribute value | Получить значение атрибута Icontact Prospect Creation Datetime | public function getCreationDatetime()
{
return $this->getValue('nb_icontact_prospect_creation_datetime');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getCreatetime()\n {\n return $this->createtime;\n }",
"public function getCreate_time()\r\n {\r\n return $this->create_time;\r\n }",
"public function getDatetime( Inx_Api_Recipient_Attribute $oAttribute );",
"public function getCreatetime()\n {\n return $th... | [
"0.68930227",
"0.68647385",
"0.68608874",
"0.6818008",
"0.6762321",
"0.6762321",
"0.66817456",
"0.6657511",
"0.6624833",
"0.6620258",
"0.66199034",
"0.66054446",
"0.66054446",
"0.66054446",
"0.6590746",
"0.6577612",
"0.65630805",
"0.655986",
"0.65510017",
"0.65224147",
"0.650... | 0.77571744 | 0 |
Get Icontact Prospect Last Update Datetime attribute value | Получить значение атрибута Icontact Prospect Last Update Datetime | public function getLastUpdateDatetime()
{
return $this->getValue('nb_icontact_prospect_last_update_datetime');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getUpdatedTime()\n {\n return $this->getAttribute('updatedTime');\n }",
"public function getUpdatedAt()\n {\n return $this->data['fields']['updated_at'];\n }",
"public function getLastUpdateTime()\n {\n return $this->last_update_time;\n }",
"public funct... | [
"0.6918732",
"0.6904482",
"0.68619764",
"0.6822401",
"0.676653",
"0.67520016",
"0.67510533",
"0.6739569",
"0.6738892",
"0.6729149",
"0.67261076",
"0.6724969",
"0.6724969",
"0.67002934",
"0.66934633",
"0.6690013",
"0.66846645",
"0.6670758",
"0.6665346",
"0.66569936",
"0.665696... | 0.78069997 | 0 |
Get Icontact Prospect First Name attribute value | Получить значение атрибута Icontact Prospect First Name | public function getFirstName()
{
return $this->getValue('nb_icontact_prospect_first_name');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getFirstname() {\n return $this->getValue('firstname');\n }",
"function getFirstName() {\n\t\treturn $this->getInfo('FirstName');\n\t}",
"function getPersonFirstName()\n {\n return $this->getValueByFieldName('person_fname');\n }",
"public function getFirstname() {\n\t\tre... | [
"0.78520685",
"0.78091806",
"0.76961976",
"0.75938106",
"0.7569131",
"0.7544091",
"0.7544091",
"0.7544091",
"0.7544091",
"0.7544091",
"0.7544091",
"0.7544091",
"0.7544091",
"0.7544091",
"0.7541573",
"0.7510952",
"0.7500696",
"0.74995106",
"0.7499032",
"0.7473027",
"0.74693525... | 0.8299667 | 0 |
Sets the Icontact Prospect First Name attribute value. | Устанавливает значение атрибута Icontact Prospect First Name. | public function setFirstName(string $first_name = null) : CNabuDataObject
{
$this->setValue('nb_icontact_prospect_first_name', $first_name);
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getFirstName()\n {\n return $this->getValue('nb_icontact_prospect_first_name');\n }",
"public function setFirstName($value){\n $this->first_name = $value;\n }",
"public function setFirstname($value)\n {\n $this->_firstname = $value;\n }",
"public function s... | [
"0.75533235",
"0.7496562",
"0.7409756",
"0.7285167",
"0.72364753",
"0.72247463",
"0.72082514",
"0.703136",
"0.6976977",
"0.69647205",
"0.69319534",
"0.69314635",
"0.6921811",
"0.6914211",
"0.68791145",
"0.6876629",
"0.6865524",
"0.6852605",
"0.68176746",
"0.68117917",
"0.6791... | 0.7553843 | 0 |
Get Icontact Prospect Last Name attribute value | Получить значение атрибута Icontact Prospect Last Name | public function getLastName()
{
return $this->getValue('nb_icontact_prospect_last_name');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getPersonLastName()\n {\n return $this->getValueByFieldName('person_lname');\n }",
"public function getApplicantLastName()\n {\n return $this->getProperty('applicant_last_name');\n }",
"public function getLastname() {\n return $this->getValue('lastname');\n }",
"pub... | [
"0.7290021",
"0.7077379",
"0.70624375",
"0.7061306",
"0.69539094",
"0.6923824",
"0.6858533",
"0.6838845",
"0.68001443",
"0.6799698",
"0.67709833",
"0.6770981",
"0.6752695",
"0.6748945",
"0.6742421",
"0.6730935",
"0.6712139",
"0.6703611",
"0.6697088",
"0.6690182",
"0.66814184"... | 0.76327616 | 0 |
Sets the Icontact Prospect Last Name attribute value. | Устанавливает значение атрибута Icontact Prospect Last Name. | public function setLastName(string $last_name = null) : CNabuDataObject
{
$this->setValue('nb_icontact_prospect_last_name', $last_name);
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setLastname($value)\n {\n $this->_lastname = $value;\n }",
"public function getLastName()\n {\n return $this->getValue('nb_icontact_prospect_last_name');\n }",
"public function setLastName(string $last_name);",
"function setLastName( $lname )\n {\n $this->s... | [
"0.7153936",
"0.7138143",
"0.7007816",
"0.6891748",
"0.6869068",
"0.68166506",
"0.6800841",
"0.678225",
"0.6769184",
"0.6766341",
"0.6756794",
"0.67203003",
"0.67047024",
"0.6702612",
"0.6688154",
"0.66678965",
"0.66633976",
"0.6661129",
"0.65952784",
"0.65909594",
"0.6580778... | 0.73769593 | 0 |
Get Icontact Prospect Fiscal Number attribute value | Получить значение атрибута Icontact Prospect Fiscal Number | public function getFiscalNumber()
{
return $this->getValue('nb_icontact_prospect_fiscal_number');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getFax()\n {\n return $this->getValue('nb_icontact_prospect_fax');\n }",
"public function getFiscalCode()\n {\n return $this->fiscalCode;\n }",
"public function getFaxnbr()\n {\n return $this->faxnbr;\n }",
"public function getCfax()\n {\n retu... | [
"0.71612895",
"0.6866872",
"0.6392374",
"0.6368531",
"0.6213074",
"0.6199703",
"0.61532944",
"0.61456543",
"0.6117025",
"0.6070633",
"0.6061479",
"0.601108",
"0.58977515",
"0.58977515",
"0.58977515",
"0.5828467",
"0.58057487",
"0.58052",
"0.57456124",
"0.56048954",
"0.5585215... | 0.79332566 | 0 |
Get Icontact Prospect Address 1 attribute value | Получить значение атрибута Icontact Prospect Address 1 | public function getAddress1()
{
return $this->getValue('nb_icontact_prospect_address_1');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getAddress1()\n {\n return parent::getValue('address1');\n }",
"public function getImAddress()\n {\n return $this->getProperty(\"ImAddress\");\n }",
"public function getAddress2()\n {\n return $this->getValue('nb_icontact_prospect_address_2');\n }",
"pub... | [
"0.6951034",
"0.6687104",
"0.66132176",
"0.6541282",
"0.65254337",
"0.6496288",
"0.64840126",
"0.64840126",
"0.6473111",
"0.6389668",
"0.63713235",
"0.63578224",
"0.6342028",
"0.6309464",
"0.62809706",
"0.62609136",
"0.6212956",
"0.62000227",
"0.6188262",
"0.618671",
"0.61700... | 0.74590474 | 0 |
Sets the Icontact Prospect Address 1 attribute value. | Устанавливает значение атрибута Icontact Prospect Address 1. | public function setAddress1(string $address_1 = null) : CNabuDataObject
{
$this->setValue('nb_icontact_prospect_address_1', $address_1);
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function set_address_1( $address ) {\n\t\t$this->set_prop( 'address_1', $address );\n\t}",
"public function getAddress1()\n {\n return $this->getValue('nb_icontact_prospect_address_1');\n }",
"function setStreet1( &$value )\n {\n $this->Street1 = $value;\n }",
"public functio... | [
"0.7157522",
"0.7043722",
"0.6863888",
"0.6578857",
"0.65760064",
"0.64264125",
"0.63914526",
"0.6310634",
"0.6178894",
"0.613267",
"0.60659075",
"0.6034228",
"0.6011086",
"0.6010339",
"0.60074383",
"0.6005202",
"0.6005202",
"0.6003974",
"0.5952486",
"0.5819499",
"0.57920736"... | 0.73605347 | 0 |
Get Icontact Prospect Address 2 attribute value | Получить значение атрибута Icontact Prospect Address 2 | public function getAddress2()
{
return $this->getValue('nb_icontact_prospect_address_2');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getAddress2()\n {\n return parent::getValue('address2');\n }",
"public function getAddress1()\n {\n return $this->getValue('nb_icontact_prospect_address_1');\n }",
"public function getAddress2()\r\n {\r\n return $this->_address2;\r\n }",
"public function... | [
"0.73814696",
"0.7124303",
"0.69664526",
"0.69215953",
"0.69215953",
"0.69215953",
"0.69122523",
"0.68785554",
"0.6869134",
"0.6758549",
"0.665951",
"0.6600631",
"0.6562246",
"0.6519088",
"0.6405389",
"0.6400906",
"0.639235",
"0.6328764",
"0.63270503",
"0.62981254",
"0.627906... | 0.77225566 | 0 |
Sets the Icontact Prospect Address 2 attribute value. | Устанавливает значение атрибута Icontact Prospect Address 2. | public function setAddress2(string $address_2 = null) : CNabuDataObject
{
$this->setValue('nb_icontact_prospect_address_2', $address_2);
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function set_address_2( $address ) {\n\t\t$this->set_prop( 'address_2', $address );\n\t}",
"function setStreet2( &$value )\n {\n $this->Street2 = $value;\n }",
"public function setAddress2($address2)\r\n {\r\n $this->_address2 = $address2;\r\n }",
"public function getAddress2... | [
"0.71717554",
"0.69730026",
"0.69138604",
"0.68633384",
"0.67814755",
"0.67112565",
"0.6508256",
"0.63634497",
"0.6258579",
"0.623101",
"0.6143252",
"0.6112973",
"0.61034834",
"0.60550404",
"0.59999377",
"0.59999377",
"0.59999377",
"0.59991044",
"0.5958885",
"0.59454876",
"0.... | 0.73222035 | 0 |
Get Icontact Prospect ZIP Code attribute value | Получить значение атрибута ZIP Code объекта Icontact Prospect | public function getZIPCode()
{
return $this->getValue('nb_icontact_prospect_zip_code');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getZipCode()\n {\n return parent::getValue('zip_code');\n }",
"public function getApplicantZipPostalCode()\n {\n return $this->getProperty('applicant_zip_postal_code');\n }",
"public function getFactZipCode() {\n return $this->fact_zip_code;\n }",
"public functio... | [
"0.75991505",
"0.7373561",
"0.7340149",
"0.72860765",
"0.7261774",
"0.7261774",
"0.7261774",
"0.7157591",
"0.7121993",
"0.7121993",
"0.71026826",
"0.70861274",
"0.70839906",
"0.70839906",
"0.70219505",
"0.7016189",
"0.70092803",
"0.6944991",
"0.6905464",
"0.6894662",
"0.68536... | 0.7560102 | 1 |
Sets the Icontact Prospect ZIP Code attribute value. | Устанавливает значение атрибута Icontact Prospect ZIP Code. | public function setZIPCode(string $zip_code = null) : CNabuDataObject
{
$this->setValue('nb_icontact_prospect_zip_code', $zip_code);
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setZipCode($value)\n {\n return $this->set('ZipCode', $value);\n }",
"function setZip( $value )\n {\n $this->Zip = $value;\n }",
"public function setZipCode($value)\n {\n parent::setValue('zip_code', $value);\n\n return $this;\n }",
"public functi... | [
"0.7018697",
"0.6976705",
"0.6829347",
"0.67199343",
"0.6654344",
"0.6447099",
"0.64125586",
"0.63726294",
"0.636952",
"0.6361281",
"0.6361281",
"0.6304973",
"0.6304973",
"0.6304973",
"0.6278713",
"0.6252481",
"0.6245441",
"0.6230323",
"0.62095743",
"0.6194295",
"0.61567026",... | 0.7186257 | 0 |
Get Icontact Prospect City Name attribute value | Получить значение атрибута Icontact Prospect City Name | public function getCityName()
{
return $this->getValue('nb_icontact_prospect_city_name');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getCity(): string\n {\n return $this->result->city_name;\n }",
"public function city(): string\n {\n return $this->getData('CityName');\n }",
"public function getCityNameAttribute()\n {\n return $this->city->getCityName();\n }",
"public function getCity(... | [
"0.7442881",
"0.7403294",
"0.71636546",
"0.71518356",
"0.71074027",
"0.7032033",
"0.6997171",
"0.6956183",
"0.6933689",
"0.6816",
"0.6814979",
"0.6805225",
"0.67403734",
"0.6738139",
"0.67165923",
"0.67016083",
"0.6695937",
"0.66677505",
"0.66677505",
"0.66677505",
"0.6650491... | 0.7881228 | 0 |
Sets the Icontact Prospect City Name attribute value. | Устанавливает значение атрибута Icontact Prospect City Name. | public function setCityName(string $city_name = null) : CNabuDataObject
{
$this->setValue('nb_icontact_prospect_city_name', $city_name);
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getCityName()\n {\n return $this->getValue('nb_icontact_prospect_city_name');\n }",
"public function setRecipientCityName($value)\n {\n return $this->set('RecipientCityName', $value);\n }",
"public function setCity(string $city): void\n {\n $this->_city = $ci... | [
"0.6966634",
"0.64368236",
"0.6363458",
"0.6324979",
"0.6284081",
"0.62723285",
"0.6265368",
"0.6232986",
"0.61891663",
"0.61780214",
"0.61639744",
"0.6110094",
"0.610928",
"0.60705596",
"0.6038098",
"0.6038098",
"0.5997112",
"0.5923528",
"0.5848786",
"0.58238345",
"0.572693"... | 0.71691847 | 0 |
Get Icontact Prospect Province Name attribute value | Получить значение атрибута Icontact Prospect Province Name | public function getProvinceName()
{
return $this->getValue('nb_icontact_prospect_province_name');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getCityName()\n {\n return $this->getValue('nb_icontact_prospect_city_name');\n }",
"public function getCountryNameAttribute()\n {\n return $this->city->country->country;\n }",
"public function getProvinceName()\n {\n return $this->province_name;\n }",
"... | [
"0.66666305",
"0.66075957",
"0.6567292",
"0.65218705",
"0.6513628",
"0.63782656",
"0.6289603",
"0.627011",
"0.62007356",
"0.61561596",
"0.6138012",
"0.6122851",
"0.6027206",
"0.60016245",
"0.5939655",
"0.5939655",
"0.5909215",
"0.5907759",
"0.5906895",
"0.5895163",
"0.5894819... | 0.71772265 | 0 |
Get Icontact Prospect Country Name attribute value | Получить значение атрибута Icontact Prospect Country Name | public function getCountryName()
{
return $this->getValue('nb_icontact_prospect_country_name');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getCountryName();",
"public function getCountry(): string\n {\n return $this->result->country_name;\n }",
"public function getCountryNameAttribute()\n {\n return $this->city->country->country;\n }",
"public function getCountry()\n {\n return parent::getValu... | [
"0.7642912",
"0.75186384",
"0.73346174",
"0.7262316",
"0.71506697",
"0.70680207",
"0.7062143",
"0.7022066",
"0.70164263",
"0.69419897",
"0.69419897",
"0.69156235",
"0.6915369",
"0.6895673",
"0.68402356",
"0.68251634",
"0.6803539",
"0.6803539",
"0.67989534",
"0.67625964",
"0.6... | 0.7863113 | 0 |
Sets the Icontact Prospect Country Name attribute value. | Устанавливает значение атрибута Icontact Prospect Country Name. | public function setCountryName(string $country_name = null) : CNabuDataObject
{
$this->setValue('nb_icontact_prospect_country_name', $country_name);
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getCountryName()\n {\n return $this->getValue('nb_icontact_prospect_country_name');\n }",
"private function setName()\n {\n $countries = array('Croatia', 'Serbia', 'Slovenia', 'Italia', 'England', 'Scotland', 'Spain', 'Portugal', 'Mexico', 'Brazil', 'Chile', 'Argent... | [
"0.7088833",
"0.6397987",
"0.626309",
"0.61965805",
"0.6168364",
"0.60860294",
"0.6080244",
"0.60768086",
"0.6075073",
"0.6014523",
"0.60074204",
"0.59814996",
"0.597793",
"0.59390444",
"0.5924774",
"0.5913121",
"0.59076893",
"0.5821144",
"0.58095396",
"0.5759298",
"0.5754275... | 0.7025881 | 1 |
Get Icontact Prospect Phone attribute value | Получить значение атрибута Icontact Prospect Phone | public function getPhone()
{
return $this->getValue('nb_icontact_prospect_phone');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPhone()\n {\n return $this->get(self::PHONE);\n }",
"public function getPhone(){\r\n\t\t\treturn $this->phone;\r\n\t\t}",
"public function get_phone() {\r\n return $this->phone;\r\n }",
"public function getPhone()\n {\n return $this->get('Phone');\n }",
... | [
"0.74794763",
"0.74523205",
"0.7448596",
"0.74416625",
"0.7441019",
"0.7414851",
"0.7397117",
"0.7373307",
"0.7373307",
"0.7373307",
"0.7373307",
"0.7373307",
"0.7373307",
"0.7373307",
"0.7373307",
"0.7373307",
"0.7373307",
"0.7373307",
"0.7373307",
"0.7373307",
"0.7373307",
... | 0.8067093 | 0 |
Sets the Icontact Prospect Phone attribute value. | Устанавливает значение атрибута Icontact Prospect Phone. | public function setPhone(string $phone = null) : CNabuDataObject
{
$this->setValue('nb_icontact_prospect_phone', $phone);
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setPhone($phone)\r\n {\r\n $this->_phone = $phone;\r\n }",
"public function setPhone($phone)\r\n {\r\n $this->_phone = $phone;\r\n }",
"public function setPhone($phone = \"\");",
"public function setPhone($phone) {\n\t\t$this->phone = $phone;\n\t}",
"public functio... | [
"0.7184623",
"0.7184623",
"0.7166065",
"0.7151197",
"0.71160126",
"0.7113196",
"0.7103345",
"0.7065265",
"0.70635754",
"0.70635754",
"0.69708186",
"0.6969315",
"0.6951838",
"0.69409716",
"0.6831488",
"0.6831488",
"0.68165576",
"0.678704",
"0.65486825",
"0.6541347",
"0.6532783... | 0.7311176 | 0 |
Get Icontact Prospect Telephone Prefix attribute value | Получить значение атрибута Icontact Prospect Telephone Prefix | public function getTelephonePrefix()
{
return $this->getValue('nb_icontact_prospect_telephone_prefix');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPhone()\n {\n return $this->getValue('nb_icontact_prospect_phone');\n }",
"public function get_telephone();",
"public function getTelephone() {}",
"public function getPhoneNumberAttribute()\n {\n return $this->attributes[ 'country_code' ].$this->attributes[ 'phone' ]... | [
"0.7258447",
"0.7072343",
"0.6947862",
"0.68408537",
"0.6718261",
"0.66378766",
"0.6555763",
"0.65397406",
"0.6521537",
"0.6521537",
"0.6521537",
"0.6521537",
"0.6521537",
"0.6521537",
"0.64769113",
"0.64141405",
"0.6401089",
"0.63741726",
"0.6371285",
"0.6352999",
"0.6351611... | 0.8042052 | 0 |
Sets the Icontact Prospect Telephone Prefix attribute value. | Устанавливает значение атрибута Icontact Prospect Telephone Prefix. | public function setTelephonePrefix(string $telephone_prefix = null) : CNabuDataObject
{
$this->setValue('nb_icontact_prospect_telephone_prefix', $telephone_prefix);
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getTelephonePrefix()\n {\n return $this->getValue('nb_icontact_prospect_telephone_prefix');\n }",
"public function setPrefix($p)\t{\n\t\t$this->prefix = $p;\n\t}",
"public function setPrefix($address_prefix)\n\t{\n\t\t$this->address_prefix = trim($address_prefix);\n\t}",
"public ... | [
"0.7400231",
"0.6230868",
"0.61902803",
"0.6127611",
"0.60433185",
"0.60107344",
"0.60027736",
"0.59897107",
"0.595665",
"0.59286803",
"0.59239316",
"0.58605105",
"0.5842605",
"0.58404404",
"0.58389467",
"0.5805153",
"0.5770917",
"0.5767915",
"0.57641554",
"0.5729678",
"0.571... | 0.72613573 | 1 |
Get Icontact Prospect Cellular attribute value | Получить значение атрибута Icontact Prospect Cellular | public function getCellular()
{
return $this->getValue('nb_icontact_prospect_cellular');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPhone()\n {\n return $this->getValue('nb_icontact_prospect_phone');\n }",
"public function getAttributes()\n {\n return $this->getValueJSONDecoded('nb_icontact_prospect_attributes');\n }",
"public function getEmail()\n {\n return $this->getValue('nb_iconta... | [
"0.6361543",
"0.61550057",
"0.58876616",
"0.5840882",
"0.5829249",
"0.5828084",
"0.5740345",
"0.56717235",
"0.5544847",
"0.5507087",
"0.545105",
"0.544845",
"0.5444071",
"0.5437662",
"0.5437662",
"0.5437462",
"0.5432303",
"0.54284745",
"0.5424835",
"0.54186845",
"0.5416004",
... | 0.72665113 | 0 |
Get Icontact Prospect Cellular Prefix attribute value | Получить значение атрибута Icontact Prospect Cellular Prefix | public function getCellularPrefix()
{
return $this->getValue('nb_icontact_prospect_cellular_prefix');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getTelephonePrefix()\n {\n return $this->getValue('nb_icontact_prospect_telephone_prefix');\n }",
"public function getCustomerPrefix();",
"public function getPrefix()\n {\n return $this->__get(self::FIELD_PREFIX);\n }",
"public function getPhone()\n {\n ret... | [
"0.74920523",
"0.64361894",
"0.62481457",
"0.6201967",
"0.6149073",
"0.60551846",
"0.6029763",
"0.5980653",
"0.5917929",
"0.59040064",
"0.5898023",
"0.5886976",
"0.58713084",
"0.58713084",
"0.58713084",
"0.58713084",
"0.58635867",
"0.58526796",
"0.5852027",
"0.5831769",
"0.58... | 0.7844519 | 0 |
Get Icontact Prospect Fax attribute value | Получить значение атрибута Icontact Prospect Fax | public function getFax()
{
return $this->getValue('nb_icontact_prospect_fax');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getFax() {\n\t\treturn $this->getData('fax');\n\t}",
"public function getFax() {}",
"public function getFax() {\n return $this->sFax;\n }",
"public function getFax();",
"public function getCfax()\n {\n return $this->cfax;\n }",
"public function getReqFaxPhone()\n\t{\n\t\treturn $... | [
"0.7024501",
"0.6834503",
"0.6796533",
"0.67732906",
"0.67185074",
"0.66596854",
"0.66295993",
"0.66295993",
"0.66295993",
"0.6593816",
"0.650105",
"0.60577875",
"0.6057679",
"0.59984994",
"0.59484065",
"0.5867257",
"0.5821076",
"0.581206",
"0.5778073",
"0.5734748",
"0.572996... | 0.7748036 | 0 |
Get Icontact Prospect Email attribute value | Получить значение атрибута Email контактного лица | public function getEmail()
{
return $this->getValue('nb_icontact_prospect_email');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getEmail()\n {\n return $this->getAttribute('email');\n }",
"public function getEmail()\n {\n return $this->attributes['email'] ?? null;\n }",
"function getEmail() {\n\t\treturn $this->getData('email');\n\t}",
"public function getEmail() {\n return $this->getVal... | [
"0.74349594",
"0.73478544",
"0.73189616",
"0.7251899",
"0.72168046",
"0.7180222",
"0.7149981",
"0.71309507",
"0.7100589",
"0.7077302",
"0.7077302",
"0.7077302",
"0.70761496",
"0.70761496",
"0.7074995",
"0.7072077",
"0.70658445",
"0.7053101",
"0.70490134",
"0.7019294",
"0.6997... | 0.7875489 | 0 |
Get Icontact Prospect Subject attribute value | Получить значение атрибута Icontact Prospect Subject | public function getSubject()
{
return $this->getValue('nb_icontact_prospect_subject');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getSubject() {\n\t\treturn $this->getData('subject');\n\t}",
"function getSubject() {\n\t\treturn $this->getData('subject');\n\t}",
"public function getSubject()\n {\n if (array_key_exists(\"subject\", $this->_propDict)) {\n return $this->_propDict[\"subject\"];\n } else {\... | [
"0.7275887",
"0.7275887",
"0.7008586",
"0.69473565",
"0.6858447",
"0.68528813",
"0.6816529",
"0.6752531",
"0.6748382",
"0.6741369",
"0.6741369",
"0.6741369",
"0.6741369",
"0.6741369",
"0.6741369",
"0.6741369",
"0.6741369",
"0.6741369",
"0.6741369",
"0.6741369",
"0.6741369",
... | 0.7727936 | 0 |
Sets the Icontact Prospect Subject attribute value. | Устанавливает значение атрибута Icontact Prospect Subject. | public function setSubject(string $subject = null) : CNabuDataObject
{
$this->setValue('nb_icontact_prospect_subject', $subject);
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setEmailSubject($value) { $this->_emailSubject = $value; }",
"function setSubject($subject_toset,$default=\"No Subject\"){\n\t\t\tif(strlen($subject_toset)>0)\n\t\t\t{\n\t\t\t\t$this->subject=$subject_toset;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->subject=$default;\t\n\t\t\t}\n\t\t}",
"pu... | [
"0.74960524",
"0.70334715",
"0.6971012",
"0.69651246",
"0.69651246",
"0.69651246",
"0.68983966",
"0.6864501",
"0.6851617",
"0.6851533",
"0.68352854",
"0.6830577",
"0.68145144",
"0.67941093",
"0.6788644",
"0.6759673",
"0.67594266",
"0.6698717",
"0.66918606",
"0.66844046",
"0.6... | 0.7336246 | 1 |
Get Icontact Prospect Notes attribute value | Получить значение атрибута Icontact Prospect Notes | public function getNotes()
{
return $this->getValue('nb_icontact_prospect_notes');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPersonNotes()\n {\n return $this->getProperty(\"PersonNotes\");\n }",
"public function getContactNotes()\n\t{\n\t\treturn $this->contact_notes;\n\t}",
"public function getCustomerNotes()\n {\n if (array_key_exists(\"customerNotes\", $this->_propDict)) {\n re... | [
"0.65978837",
"0.6453841",
"0.6306151",
"0.6276683",
"0.6276683",
"0.6203189",
"0.6192879",
"0.6143138",
"0.60616505",
"0.60538244",
"0.59894454",
"0.59894454",
"0.59894454",
"0.59894454",
"0.59894454",
"0.59894454",
"0.59894454",
"0.59894454",
"0.59894454",
"0.59894454",
"0.... | 0.7089385 | 0 |
Sets the Icontact Prospect Notes attribute value. | Устанавливает значение атрибута Icontact Prospect Notes. | public function setNotes(string $notes = null) : CNabuDataObject
{
$this->setValue('nb_icontact_prospect_notes', $notes);
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setNotes($value) {\n\t\tif ($value == NULL) {\n\t\t\t$this->_notes = \"\";\n\t\t} else {\n\t\t\t$this->_notes = $value;\n\t\t}\n\t}",
"public function setPersonNotes($value)\n {\n $this->setProperty(\"PersonNotes\", $value, true);\n }",
"public function setNotes($value)\n {\n ... | [
"0.7006579",
"0.69422764",
"0.65613234",
"0.65101725",
"0.65101725",
"0.63634473",
"0.62329876",
"0.6163479",
"0.6163479",
"0.60237384",
"0.59367025",
"0.58737856",
"0.57899743",
"0.5754715",
"0.5746256",
"0.5698264",
"0.5648049",
"0.5626791",
"0.5576725",
"0.5532158",
"0.551... | 0.7150892 | 0 |
Get Icontact Prospect Attributes attribute value | Получить значение атрибута Icontact Prospect Attributes | public function getAttributes()
{
return $this->getValueJSONDecoded('nb_icontact_prospect_attributes');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPropertyDetails(){\n $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance ();\n return $objectManager->get ( 'Apptha\\Airhotels\\Model\\Attributes' );\n }",
"public function getCustomAttributesAttribute()\n {\n return $this->custom_attributes()... | [
"0.675605",
"0.6437375",
"0.6309005",
"0.6210956",
"0.61287147",
"0.6098419",
"0.60817784",
"0.59823847",
"0.59698355",
"0.5960815",
"0.5960815",
"0.5950652",
"0.59497315",
"0.59352124",
"0.5906992",
"0.5901893",
"0.5901893",
"0.5901893",
"0.5901893",
"0.5901893",
"0.5901893"... | 0.7319879 | 0 |
Takes a collection of colleges and creates a CSV file | Принимает коллекцию колледжей и создает файл CSV | public static function generateCsv($colleges)
{
// Create CSV file
$filePath = '/storage/';
$fileName = 'college_export_' . date('dmyhms') . '.csv';
$fp = fopen("./" . $filePath . $fileName, 'wb');
// Generate the CSV headers based on the colleges table
$headerColumn... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function toCSV();",
"public function createCouponsCSV1()\n {\n $mysqli = new mysqli(\"127.0.0.1\",\"coupon\",\"coupon\",\"coupon\");\n if ($mysqli->connect_errno)\n {\n echo \"Failed to connect to MySQL: (\" . $mysqli->connect_errno . \") \" . $mysqli->connect_error;\n ... | [
"0.68323886",
"0.6764953",
"0.67043644",
"0.6694519",
"0.6534532",
"0.64921993",
"0.6475396",
"0.6422142",
"0.63558185",
"0.6289904",
"0.6223798",
"0.62097156",
"0.6178343",
"0.6164352",
"0.6145699",
"0.6141522",
"0.6141127",
"0.61394805",
"0.6126043",
"0.61220694",
"0.611991... | 0.74103165 | 0 |
Challenge 8 Have the function CheckNums(num1,num2) take both parameters being passed and return the string true if num2 is greater than num1, otherwise return the string false. If the parameter values are equal to each other then return the string 1. | Задача 8. Пусть функция CheckNums(num1, num2) принимает оба параметра и возвращает строку "true", если num2 больше, чем num1, иначе возвращает строку "false". Если значения параметров равны, то возвращается строка "1". | function CheckNums($num1,$num2) {
if($num2 > $num1) {
return 'true';
}
elseif($num2 < $num1) {
return 'false';
}
else {
return -1;
}
// code goes here
return $num1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function TestNumber($firstNumber, $secondNumber)\n {\n //Déclaration des messages\n $Number1Win = \"Le premier nombre est plus grand\";\n $Number1Lose = \"Le premier nombre est plus petit\";\n $Number1Equal = \"Les deux nombres sont identiques\";\n\n //Test\n if($firs... | [
"0.6908326",
"0.6549269",
"0.65107787",
"0.6441534",
"0.59615386",
"0.5959791",
"0.5829316",
"0.57443213",
"0.5659106",
"0.56190425",
"0.5612067",
"0.5599079",
"0.55457765",
"0.54828465",
"0.54691887",
"0.54436946",
"0.54396963",
"0.5437774",
"0.54057",
"0.5393613",
"0.539016... | 0.82784486 | 0 |
Get Codec instance or NULL. | Получить экземпляр Codec или NULL. | public function getCodec(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getVideoCodec()\n {\n if (array_key_exists(\"videoCodec\", $this->_propDict)) {\n if (is_a($this->_propDict[\"videoCodec\"], \"\\Microsoft\\Graph\\CallRecords\\Model\\VideoCodec\") || is_null($this->_propDict[\"videoCodec\"])) {\n return $this->_propDict[\"videoC... | [
"0.6792413",
"0.63471115",
"0.6214836",
"0.6111885",
"0.6068491",
"0.5783533",
"0.57605416",
"0.5751641",
"0.547314",
"0.53918964",
"0.5339931",
"0.5297244",
"0.52340627",
"0.5165036",
"0.515167",
"0.508529",
"0.508529",
"0.5052967",
"0.5052542",
"0.50293267",
"0.5026986",
... | 0.70024264 | 1 |
Set a new Codec instance. | Создайте новый экземпляр Codec. | public function setCodec(Codec $codec); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setVideoCodec($val)\n {\n $this->_propDict[\"videoCodec\"] = $val;\n return $this;\n }",
"public function setAudioCodec($val)\n {\n $this->_propDict[\"audioCodec\"] = $val;\n return $this;\n }",
"public function copy(): static\n {\n $this->isC... | [
"0.6764379",
"0.621892",
"0.5887907",
"0.5812258",
"0.5812258",
"0.5789779",
"0.5463182",
"0.54379034",
"0.5437253",
"0.50663173",
"0.49901783",
"0.49063995",
"0.48797125",
"0.48438305",
"0.4828979",
"0.48145452",
"0.48068815",
"0.48045623",
"0.47773555",
"0.47528595",
"0.472... | 0.7557051 | 0 |
Determine whether the user can update the vip. | Определите, может ли пользователь обновить vip. | public function update(User $user)
{
return in_array('update', $user->permissibles('vip'));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function update(): bool\n {\n return $this->isAllowed(self::UPDATE);\n }",
"function check_user() {\n\treturn false; // update allowed\n\treturn true; //no update allowed\n}",
"protected function _isAllowed()\r\n {\r\n return $this->_authorization->isAllowed('AAllen_PriceUpdate::u... | [
"0.72160465",
"0.7025353",
"0.6918185",
"0.68928015",
"0.6877601",
"0.68297684",
"0.6785628",
"0.6779692",
"0.6771634",
"0.6750269",
"0.67261654",
"0.67211497",
"0.6712063",
"0.6712063",
"0.66922325",
"0.66878825",
"0.66600496",
"0.6655419",
"0.6600401",
"0.65161073",
"0.6495... | 0.7579372 | 0 |
QTOS = Quality Time on Site | QTOS = Quality Time on Site | public function getQtos(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function eQTimeElapsed() {\n\t\tif ($GLOBALS['qTimeTotal']) {\n\t\t\treturn number_format($GLOBALS['qTimeTotal']*1000000.0,1);\n\t\t} else {\n\t\t\treturn '';\n\t\t}\n\t}",
"public static function REALTIME()\n {\n return new Vp9Quality(self::REALTIME);\n }",
"function getQueryTime($time_start,$tim... | [
"0.57182527",
"0.5611911",
"0.5415562",
"0.53776145",
"0.5280558",
"0.52314895",
"0.51861566",
"0.5180928",
"0.5177119",
"0.51687944",
"0.5162115",
"0.5146016",
"0.51277494",
"0.51193535",
"0.5104396",
"0.509741",
"0.50942254",
"0.509344",
"0.5090969",
"0.50785714",
"0.506971... | 0.725313 | 0 |
Deletes multiple attachments on a given beacon. This operation is permanent and cannot be undone. You can optionally specify `namespacedType` to choose which attachments should be deleted. If you do not specify `namespacedType`, all your attachments on the given beacon will be deleted. You also may explicitly specify `... | Удаляет несколько вложений на заданном маячке. Эта операция является постоянной и не может быть отменена. Вы можете необязательно указать `namespacedType`, чтобы выбрать, какие вложения следует удалить. Если вы не укажете `namespacedType`, будут удалены все ваши вложения на указанном маячке. Вы также можете явно указат... | public function batchDelete($beaconName, $optParams = array())
{
$params = array('beaconName' => $beaconName);
$params = array_merge($params, $optParams);
return $this->call('batchDelete', array($params), "Google_Service_Proximitybeacon_DeleteAttachmentsResponse");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function entityDeleteMultiple($fids) {\n $files = file_load_multiple($fids);\n foreach ($files as $file) {\n file_delete($file);\n }\n }",
"protected function entityDeleteMultiple($ids) {\n farm_asset_delete_multiple($ids);\n }",
"public function massDelete(Request $request)\n\t{\n... | [
"0.6238352",
"0.6026112",
"0.59627557",
"0.5920845",
"0.5877035",
"0.5796132",
"0.57709795",
"0.5654801",
"0.5618383",
"0.55749494",
"0.5558357",
"0.55516684",
"0.5533098",
"0.5526734",
"0.55125",
"0.5509071",
"0.54763347",
"0.5447636",
"0.5444962",
"0.5437601",
"0.5416639",
... | 0.75982326 | 0 |
Deletes the specified attachment for the given beacon. Each attachment has a unique attachment name (`attachmentName`) which is returned when you fetch the attachment data via this API. You specify this with the delete request to control which attachment is removed. This operation cannot be undone. Authenticate using a... | Удаляет указанное приложение-прикрепление для заданного маячка. Каждое прикрепление имеет уникальное имя прикрепления (`attachmentName`), которое возвращается при получении данных прикрепления через этот API. Вы указываете это в запросе на удаление, чтобы контролировать, какое прикрепление удаляется. Это действие невоз... | public function delete($attachmentName, $optParams = array())
{
$params = array('attachmentName' => $attachmentName);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params), "Google_Service_Proximitybeacon_ProximitybeaconEmpty");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function batchDelete($beaconName, $optParams = array())\n {\n $params = array('beaconName' => $beaconName);\n $params = array_merge($params, $optParams);\n return $this->call('batchDelete', array($params), \"Google_Service_Proximitybeacon_DeleteAttachmentsResponse\");\n }",
"function deleteAtta... | [
"0.75928193",
"0.7019951",
"0.6882661",
"0.6874216",
"0.6844878",
"0.6837348",
"0.6559351",
"0.64923155",
"0.639589",
"0.6385387",
"0.63666534",
"0.6289987",
"0.6250941",
"0.62203264",
"0.61278385",
"0.60949725",
"0.608382",
"0.6060837",
"0.59632385",
"0.59626645",
"0.5899040... | 0.70749915 | 1 |
Initialize the submodules of the repo at the specified path. | Инициализируйте подмодули репозитория в указанном пути. | public static function initSubmodules($path) {
$oldDir = getcwd();
chdir($path);
passthru(self::INIT_SUBMODULES_CMD);
chdir($oldDir);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function git_init_submodules($path) {\n\tGitUtil::initSubmodules($path);\n}",
"function git_update_submodules($path) {\n\t$status = GitUtil::updateExternals($path);\n}",
"static function loadModules($path) {\n // Prepare the iterator\n $core = new RecursiveDirectoryIterator($_SERVER['DOCUMENT_ROO... | [
"0.8622318",
"0.63352215",
"0.6253569",
"0.62153804",
"0.61189395",
"0.61161506",
"0.5994897",
"0.58679426",
"0.57577866",
"0.57424986",
"0.5734071",
"0.57059604",
"0.5612512",
"0.5531654",
"0.54932",
"0.54730964",
"0.5472321",
"0.54546887",
"0.54544926",
"0.5442336",
"0.5428... | 0.83416283 | 1 |
Indicates whether or not the given path contains a Git repository. | Указывает, содержит ли заданный путь репозиторий Git. | public static function isRepo($path) {
$dotGitPath = $path . DIRECTORY_SEPARATOR . '.git';
$dotGitExists = file_exists($dotGitPath);
$dotGitIsDir = is_dir($dotGitPath);
return $dotGitExists && $dotGitIsDir;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function git_is_repo($path) {\n\treturn GitUtil::isRepo($path);\n}",
"private function isGitObject(string $path): bool\n {\n // Non-bare Git repository.\n if (1 === preg_match('/.*\\/\\.git\\/objects\\/.+$/', $path)) {\n return true;\n }\n\n // Bare Git repository.\n ... | [
"0.82872033",
"0.7625667",
"0.70613265",
"0.67163795",
"0.64855003",
"0.64713067",
"0.64349276",
"0.643219",
"0.6230931",
"0.6193124",
"0.60056543",
"0.58625686",
"0.585077",
"0.58260787",
"0.57926124",
"0.5738129",
"0.5722523",
"0.5540091",
"0.55369014",
"0.5531937",
"0.5523... | 0.78893626 | 1 |
Clone a git repository. | Создайте копию репозитория git. | function git_clone($repo, $path, $initSubModules = false) {
GitUtil::cloneRepo($repo, $path, $initSubModules);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function gitClone()\n\t{\n\t\t$repoURL = 'https://github.com/' . $this->getUserName() . '/' . $this->getProjectName() . '.git';\n\t\t$path = $this->getPath();\n\t\t$this->gitWrapper->clone($repoURL, $path);\n\t}",
"public function cloneGitRepo($repo, $dir);",
"public function cloneRepo($repo)\n {\n ... | [
"0.8578521",
"0.78792316",
"0.73362905",
"0.69668597",
"0.6939361",
"0.6843659",
"0.66879785",
"0.6475043",
"0.6275234",
"0.6263388",
"0.62075794",
"0.6189465",
"0.61308616",
"0.613023",
"0.60807574",
"0.6034997",
"0.5917917",
"0.5759873",
"0.57526803",
"0.5695389",
"0.563546... | 0.79512674 | 1 |
Initialize any submodules for the repo at the given path. | Инициализируйте любые подмодули для репозитория по указанному пути. | function git_init_submodules($path) {
GitUtil::initSubmodules($path);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function initSubmodules($path) {\n\t\t$oldDir = getcwd();\n\t\tchdir($path);\n\t\tpassthru(self::INIT_SUBMODULES_CMD);\n\t\tchdir($oldDir);\n\t}",
"public function load_modules() {\n\t\tforeach ( $this->modules as $module_name ) {\n\t\t\t$module = $this->build( $module_name );\n\t\t\tif ( $module !... | [
"0.82586163",
"0.6352104",
"0.6333686",
"0.6127718",
"0.597031",
"0.59235466",
"0.59083855",
"0.5901166",
"0.5899059",
"0.5768716",
"0.57487667",
"0.57173336",
"0.5625211",
"0.5557827",
"0.5544795",
"0.5533338",
"0.5514038",
"0.5507386",
"0.549787",
"0.54797065",
"0.54564035"... | 0.85108614 | 0 |
Determine whether or not a given path is a git repository. | Определите, является ли заданный путь репозиторием git. | function git_is_repo($path) {
return GitUtil::isRepo($path);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function isRepo($path) {\n\t\t$dotGitPath = $path . DIRECTORY_SEPARATOR . '.git';\n\t\t$dotGitExists = file_exists($dotGitPath);\n\t\t$dotGitIsDir = is_dir($dotGitPath);\n\n\t\treturn $dotGitExists && $dotGitIsDir;\n\t}",
"private function isGitObject(string $path): bool\n {\n // Non-bare... | [
"0.78555274",
"0.78191644",
"0.73434734",
"0.7162551",
"0.66075826",
"0.6401121",
"0.62702554",
"0.6078952",
"0.6072967",
"0.60449463",
"0.5931745",
"0.5838702",
"0.56848264",
"0.56798214",
"0.5584139",
"0.55010897",
"0.549318",
"0.54878926",
"0.5483722",
"0.5470934",
"0.5386... | 0.8648549 | 0 |
Determine whether or not a given git repository is clean. | Определите, является ли данный репозиторий git чистым. | function git_is_clean($path) {
$status = GitUtil::getStatus($path);
return count($status) === 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function isClean()\n {\n return empty(static::command('git status -s'));\n }",
"function git_is_repo($path) {\n\treturn GitUtil::isRepo($path);\n}",
"public static function is_repo($var) {\n\t\t\treturn (get_class($var) == 'GitRepo');\n\t\t}",
"abstract function is_org_repo_complia... | [
"0.7354931",
"0.64854854",
"0.6077937",
"0.6058576",
"0.6011798",
"0.5966901",
"0.57241297",
"0.5722131",
"0.5706511",
"0.5610204",
"0.55890906",
"0.54955554",
"0.54934967",
"0.5435752",
"0.53806317",
"0.53009695",
"0.5299914",
"0.52395123",
"0.5219888",
"0.521423",
"0.520746... | 0.7517199 | 0 |
Update the specified git repo's submodule's. | Обновите подмодуль указанного репозитория git. | function git_update_submodules($path) {
$status = GitUtil::updateExternals($path);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function gitUpdate()\n{\n \n $config = json_decode(file_get_contents(\"/app/config.json\"), true);\n\n $git = $config['git'];\n $remote = \"https://\" . $git['user'] . \":\" . $git['token'] . \"@github.com/\" . $git['git_dir'];\n exec(\"cd \" . $config['project_dir'] . \" && git init && git pull $re... | [
"0.6352754",
"0.62736017",
"0.62188935",
"0.6126489",
"0.61173105",
"0.6097582",
"0.59442025",
"0.58423793",
"0.57919323",
"0.56713325",
"0.5399237",
"0.5386539",
"0.5345828",
"0.5247123",
"0.5239834",
"0.5188823",
"0.5187624",
"0.5172651",
"0.5166288",
"0.51377773",
"0.51317... | 0.80790377 | 0 |
actionid: viewbystaf actiondesc: Display detail view of izin for staf | actionid: viewbystaf actiondesc: Отображение детального просмотра izin для staf | public function actionViewByStaf($id){
return $this->render('viewByStaf',[
'model' => $this->findModel($id),
]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function viewAction(){\r\n\t\t//$iUnitId = Sys_Publib_Library::_getItemAttrById($_SESSION['arr_all_staff'],$_SESSION['staff_id'],'unit_id');\r\n\t\t//Lay ID phong ban cua NSD dang nhap hien thoi\r\n\t\t$pUrl = $_SERVER['REQUEST_URI'];\r\n\t\t$objFunction =\tnew\tSys_Function_DocFunctions()\t;\r\n\t\t$objFilter = n... | [
"0.68188107",
"0.6797727",
"0.677921",
"0.65227747",
"0.65227747",
"0.6490528",
"0.64677656",
"0.64150864",
"0.6393178",
"0.63520163",
"0.6351398",
"0.631365",
"0.6299754",
"0.6286404",
"0.62359726",
"0.62010765",
"0.6178616",
"0.6175141",
"0.6159682",
"0.615695",
"0.61183983... | 0.70173097 | 0 |
actionid: viewbyhrd actiondesc: Display detail view of izin for HRD | actionid: viewbyhrd actiondesc: Показать детальное представление izin для HRD | public function actionViewByHrd($id){
return $this->render('viewByHrd',[
'model' => $this->findModel($id),
]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function actionIndexByHrd(){\n $searchModel = new PermohonanIzinSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('indexByHrd',[\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]... | [
"0.6496844",
"0.6463363",
"0.6437944",
"0.6205542",
"0.6136174",
"0.59574425",
"0.5919635",
"0.5879459",
"0.5867817",
"0.586525",
"0.58534",
"0.58497083",
"0.58210135",
"0.58080417",
"0.58035666",
"0.5795394",
"0.5783395",
"0.5777988",
"0.5768196",
"0.5766399",
"0.5765667",
... | 0.7299629 | 0 |
actionid: viewbyhrdstaf actiondesc: Display detail view of izin for HRDstaf | actionid: viewbyhrdstaf actiondesc: Отображение детального представления izin для HRDstaf | public function actionViewByHrdStaf($id){
return $this->render('viewByHrdStaf',[
'model' => $this->findModel($id),
]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function landShowingDetailAction(){\n\n\t\t\t\t$params = $this->getRequest()->getParams(); \n\t\t\t\t$db = $this->db;\n\t\t\t\t$secretkey = $this->secretkey;\n\n\t\t\t\t$appkey\t= isset($params['appkey'])?$params['appkey']:\"\";\n\t\t\t\t$LoginID\t= isset($params['LoginID'])?$params['LoginID']:\"\";\n\t... | [
"0.6809829",
"0.6633601",
"0.6407932",
"0.6267323",
"0.6240988",
"0.6205663",
"0.61514306",
"0.6147583",
"0.61270475",
"0.61270475",
"0.6112112",
"0.6107416",
"0.60584515",
"0.6033962",
"0.60305643",
"0.60281557",
"0.6024982",
"0.5951128",
"0.589618",
"0.58877134",
"0.5887413... | 0.7101994 | 0 |
Gets person by nickname | Получает человека по никнейму | public function getPersonByNick(string $nick): ?Person; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function people_findByUsername ($username) {\n $response = $this->execute(array('method' => 'flickr.people.findByUsername', 'username' => $username));\n\t\t$object = unserialize($response);\n\t\tif ($object['stat'] == 'ok') {\n\t\t\treturn $object['user']['nsid'];\n\t\t} else {\n\t\t\t$this->setError($objec... | [
"0.6406432",
"0.62485933",
"0.6065081",
"0.6038427",
"0.6017064",
"0.6014015",
"0.5981655",
"0.59593564",
"0.5944888",
"0.59309214",
"0.58845174",
"0.5850759",
"0.5850759",
"0.5850759",
"0.5850759",
"0.5850759",
"0.5842141",
"0.5810166",
"0.5807012",
"0.5785411",
"0.5774685",... | 0.72174025 | 0 |
Get directory of cache area | Получить директорию области кэша | private static function getCacheDir($area)
{
return SolutionConfiguration::$cachesDir . "{$area}/";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function get_cache_directory() {\n\t\treturn $this->cache_directory;\n\t}",
"public function getCacheDir();",
"public function getCacheFolder()\n {\n\n return dirname(__FILE__) . '/../../store/cache/';\n }",
"protected function get_cache_dir()\n\t{\n\t\treturn $this->cache_dir ?: $this->p... | [
"0.8108191",
"0.806681",
"0.8035283",
"0.79428685",
"0.78919595",
"0.78735846",
"0.7720608",
"0.7720376",
"0.7720376",
"0.767161",
"0.76457065",
"0.7551495",
"0.75488365",
"0.7507906",
"0.7504676",
"0.7472603",
"0.7455249",
"0.74402016",
"0.74361646",
"0.7435384",
"0.74173576... | 0.82545537 | 0 |