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 |
|---|---|---|---|---|---|---|---|
Detect and get quote character Return the correct character used to quote identifiers (table names, column names etc) by looking at the driver being used by \PDO. | Обнаружить и получить символ кавычки Возвращает правильный символ, используемый для ковычек идентификаторов (названия таблиц, названия столбцов и т.д.), анализируя драйвер, используемый \PDO. | private function _detectQuoteCharacter()
{
switch($this->_db->getAttribute(\PDO::ATTR_DRIVER_NAME))
{
case 'pgsql':
case 'sqlsrv':
case 'dblib':
case 'mssql':
case 'sybase':
return '"';
case 'mysql':
case 'sqlite':
case 'sqlite2':
default:
return '`';
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected static function _detect_identifier_quote_character() {\n switch(static::$_db->getAttribute(PDO::ATTR_DRIVER_NAME)) {\n case 'pgsql':\n case 'sqlsrv':\n case 'dblib':\n case 'mssql':\n case 'sybase':\n ... | [
"0.8613798",
"0.7355055",
"0.70941",
"0.65321136",
"0.64954174",
"0.6228769",
"0.6173214",
"0.60395855",
"0.60149795",
"0.6012718",
"0.59809136",
"0.59809136",
"0.5964048",
"0.5964048",
"0.5929197",
"0.5874482",
"0.58609694",
"0.58546156",
"0.5830898",
"0.581962",
"0.581962",... | 0.8589806 | 1 |
Return friends ids for specific user | Вернуть идентификаторы друзей для конкретного пользователя | private function getUserFriendsIds($userId)
{
return Friendship::where('user_id', $userId)->lists('friend_id');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function get_friends_ids($user_id) {\n global $db;\n $friends = array();\n $get_friends = $db->query(sprintf('SELECT users.user_id FROM friends INNER JOIN users ON (friends.user_one_id = users.user_id AND friends.user_one_id != %1$s) OR (friends.user_two_id = users.user_id AND friends.u... | [
"0.79189485",
"0.7399979",
"0.7395095",
"0.72284615",
"0.717168",
"0.7117332",
"0.70232797",
"0.69738704",
"0.68736225",
"0.6857751",
"0.68448734",
"0.68150383",
"0.67930335",
"0.672505",
"0.6721779",
"0.67215466",
"0.6685532",
"0.6672795",
"0.6653257",
"0.66294813",
"0.66087... | 0.783758 | 1 |
function that retrieves a students records from the excel file | функция, которая извлекает записи о студентах из файла Excel | function getStudentsInfo($excelObject,$startingRow,$sheet_index){
$students_info=array();
//get student information from the sheet
for($i=$startingRow;$i<=$excelObject->rowcount($sheet_index);$i++)
{
$temp_array=array();
//import students personal information
foreach(range('A', '... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function readStudentExcel() {\n\t\t$this->readStudentExcelFiles('./data/StudentListTest.xlsx');\n\t\t$this->readStudentExcelFiles('./data/StudentListTest.xls');\n\t\t$this->readStudentExcelFiles('./data/StudentListTest.csv');\n\t\t\n\t\t// $this->markTestIncomplete(\"Test ODS file\");\n\t}",
"private func... | [
"0.7065373",
"0.664104",
"0.63348264",
"0.61880016",
"0.6182549",
"0.61676395",
"0.61188114",
"0.6096632",
"0.6092174",
"0.6064927",
"0.6057486",
"0.6052561",
"0.603971",
"0.6039612",
"0.6024237",
"0.60082877",
"0.59553766",
"0.59422666",
"0.5926588",
"0.5911406",
"0.59002376... | 0.70823824 | 0 |
_get_info load_playlist This is called once per page load it makes sure that this session has a tmp_playlist, creating it if it doesn't, then sets $this>playlist as a tmp_playlist object that can be fiddled with later on | _get_info загрузить_плейлист Этот метод вызывается один раз при загрузке страницы, он убедится, что в этой сессии есть tmp_playlist, создаст его при необходимости, а затем установит $this>playlist как объект tmp_playlist, который позже можно будет изменять | public function load_playlist() {
$session_id = session_id();
$this->playlist = tmpPlaylist::get_from_session($session_id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function loadPlaylist() {\r\n $dbLayer = DBLayer::getInstance();\r\n\r\n $this->playlist = null;\r\n\r\n // load the user playlist\r\n $data = $dbLayer->executeQuery('users.playlist', array(':user_id' => $this->userId));\r\n\r\n if ($data) {\r\n ... | [
"0.74938524",
"0.6814772",
"0.66977537",
"0.6677457",
"0.62884104",
"0.6256722",
"0.6244432",
"0.62334675",
"0.619038",
"0.613819",
"0.61301005",
"0.6116085",
"0.5896575",
"0.5877378",
"0.58477634",
"0.58366",
"0.5826982",
"0.5797926",
"0.57957363",
"0.5771277",
"0.57466936",... | 0.8494195 | 0 |
get_from_username get_catalogs This returns the catalogs as an array of ids that this user is allowed to access | get_from_username get_catalogs Это возвращает каталоги в виде массива идентификаторов, которые этот пользователь имеет право просматривать | public function get_catalogs() {
if (parent::is_cached('user_catalog',$this->id)) {
return parent::get_from_cache('user_catalog',$this->id);
}
$sql = "SELECT * FROM `user_catalog` WHERE `user`='$user_id'";
$db_results = Dba::read($sql);
while ($row = Dba::fetch_assoc($db_results)) {
$catalogs[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function get_catalogs()\n\t{\n\t\t$path = 'users/' . $_SESSION['ms_username'] . '/';\n\n\t\t// If user do not have own folder, try to create it.\n\t\tif(! file_exists( $path ) )\n\t\t{\n\t\t\tif(! mkdir( $path, 0777 ) )\n\t\t\t\techo 'Can\\'t create user folder!';\n\n\t\t\treturn array();\n\t\t}\n\n\t\t$handle = o... | [
"0.7094233",
"0.6450845",
"0.6252153",
"0.6244553",
"0.583282",
"0.5808359",
"0.57713056",
"0.5704983",
"0.56388474",
"0.55459875",
"0.55207855",
"0.55207276",
"0.55106306",
"0.55095416",
"0.55074275",
"0.54700476",
"0.5455806",
"0.5423002",
"0.541856",
"0.5398614",
"0.539601... | 0.757351 | 0 |
get_preferences set_preferences sets the prefs for this specific user | get_preferences set_preferences устанавливает prefs для этого конкретного пользователя | public function set_preferences() {
$user_id = Dba::escape($this->id);
$sql = "SELECT preference.name,user_preference.value FROM preference,user_preference WHERE user_preference.user='$user_id' " .
"AND user_preference.preference=preference.id AND preference.type != 'system'";
$db_results = Dba::query($sql)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function user_pref_set( $p_user_id, $p_prefs, $p_project_id = ALL_PROJECTS ) {\n\tif( user_pref_exists( $p_user_id, $p_project_id ) ) {\n\t\treturn user_pref_update( $p_user_id, $p_project_id, $p_prefs );\n\t} else {\n\t\treturn user_pref_insert( $p_user_id, $p_project_id, $p_prefs );\n\t}\n}",
"function user_pr... | [
"0.7501882",
"0.7159196",
"0.6649655",
"0.6481408",
"0.6397531",
"0.6392905",
"0.61905754",
"0.6182411",
"0.61612254",
"0.613839",
"0.6123597",
"0.611994",
"0.61077535",
"0.6101471",
"0.6002317",
"0.59619045",
"0.596043",
"0.59570134",
"0.5931298",
"0.5931298",
"0.5897275",
... | 0.80616295 | 0 |
get_favorites get_recommendations This returns recommended objects of $type. The recommendations are based on voodoo economics,the phase of the moon and my current BAL. | get_favorites get_recommendations Это возвращает рекомендованные объекты $type. Рекомендации основаны на вуду-экономике, фазе луны и моем текущем BAL. | function get_recommendations($type) {
/* First pull all of your ratings of this type */
$sql = "SELECT object_id,user_rating FROM ratings " .
"WHERE object_type='" . Dba::escape($type) . "' AND user='" . Dba::escape($this->id) . "'";
$db_results = Dba::query($sql);
// Incase they only have one user
$... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function get_favorite($type) {\n\n\t\t$fav = RevLoader::get_option('rs_favorite', []);\n\t\t$list = [];\n\n\t\tif (in_array($type, $this->allowed)) {\n\t\t\t$list = $this->get_val($fav, $type, []);\n\t\t}\n\n\t\treturn $list;\n\t}",
"function get_favorites($type) { \n\n\t $web_path = Config::get('w... | [
"0.72618943",
"0.70656407",
"0.63679177",
"0.5820408",
"0.5779264",
"0.5739333",
"0.5680276",
"0.5649803",
"0.5619644",
"0.55803907",
"0.5576431",
"0.5490075",
"0.53668714",
"0.5341236",
"0.53348005",
"0.5320851",
"0.5311116",
"0.52960694",
"0.5283591",
"0.52539134",
"0.52528... | 0.7204107 | 1 |
update_validation update_fullname updates their fullname | update_validation update_fullname обновляет их fullname | public function update_fullname($new_fullname) {
$new_fullname = Dba::escape($new_fullname);
$sql = "UPDATE `user` SET `fullname`='$new_fullname' WHERE `id`='$this->id'";
$db_results = Dba::query($sql);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function updatefullname()\r\n\t{\r\n\t global $CFG,$objSmarty;\r\n if(isset($_SESSION['user_id']) && !empty($_SESSION['user_id']))\r\n {\r\n \t\t\t/*$user_already =$this->getValue(\"username\",$CFG['table']['register'],\"username='\".$this->filterInput($_POST['fullname']).\"' AND user_id ... | [
"0.7321212",
"0.69352764",
"0.647475",
"0.6333956",
"0.62197775",
"0.61916363",
"0.61793613",
"0.61697733",
"0.61685526",
"0.6146746",
"0.6127102",
"0.60789156",
"0.6043517",
"0.60334504",
"0.60313195",
"0.60177815",
"0.6011778",
"0.5972092",
"0.5949597",
"0.5938902",
"0.5916... | 0.70882136 | 1 |
update_stats insert_ip_history This inserts a row into the IP History recording this user at this address at this time in this place, doing this thing.. you get the point | update_stats insert_ip_history Это вставляет строку в историю IP, записывая этого пользователя по этому адресу в это время в этом месте, делая это действие. вы поняли, о чём я | public function insert_ip_history() {
if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])){
$sip = $_SERVER['HTTP_X_FORWARDED_FOR'];
debug_event('User Ip', 'Login from ip adress: ' . $sip,'3');
}
else {
$sip = $_SERVER['REMOTE_ADDR'];
debug_event('User Ip', 'Login from ip adress: ' . $sip,'3');
}
$ip ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function access_LogUser($user, $ip) {\n\treturn db_QueryInsert(\n\t\t\"INSERT INTO \".CMW_TABLE_USER_ACCESS.\" (\n\t\t\tuser, ip, first_timestamp, last_timestamp, total\n\t\t)\n\t\tVALUES ( \n\t\t\t?, \".(defined('CMW_USING_MARIADB')?\"INET6_ATON(?)\":\"INET_ATON(?)\").\", NOW(), NOW(), 1\n\t\t)\n\t\tON DUPLICATE ... | [
"0.6912838",
"0.6686238",
"0.66509545",
"0.63986856",
"0.6394218",
"0.6366362",
"0.62678784",
"0.62334687",
"0.6151393",
"0.61446494",
"0.61207724",
"0.61177677",
"0.6083804",
"0.60785955",
"0.60442495",
"0.59818405",
"0.59722847",
"0.59629446",
"0.59062237",
"0.5881842",
"0.... | 0.8005047 | 0 |
check_username rebuild_all_preferences This rebuilds the user preferences for all installed users, called by the plugin functions | check_username rebuild_all_preferences Это пересоздает пользовательские предпочтения для всех установленных пользователей, вызывается функциями плагина | public static function rebuild_all_preferences() {
$sql = "SELECT * FROM `user`";
$db_results = Dba::query($sql);
User::fix_preferences('-1');
while ($row = Dba::fetch_assoc($db_results)) {
User::fix_preferences($row['id']);
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function force_userdata() {\n global $data_dir, $username;\n\n include(\"../plugins/retrieveuserdata/config.php\");\n\n if ($force != 0 && isset($username)) {\n $got_external_userdata = getPref($data_dir, $username, \"got_external_userdata\");\n if ($got_external_userdata == 0) {\n ... | [
"0.6025147",
"0.59283024",
"0.5901776",
"0.5880591",
"0.5849506",
"0.5798186",
"0.5723186",
"0.57099754",
"0.56204635",
"0.5615975",
"0.5593442",
"0.5566284",
"0.55101913",
"0.5394372",
"0.5388693",
"0.5369685",
"0.5356419",
"0.5351832",
"0.53111416",
"0.5308078",
"0.5307406"... | 0.7398365 | 0 |
Return the rules of this league. | Верните правила этой лиги. | public function getLeagueRules() {
return $this->leagueRules;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getRules();",
"public function getRules();",
"public function getRules();",
"public function getRules();",
"public function getRules();",
"public function getRules();",
"protected function rules()\n {\n return $this->getRules();\n }",
"public function rules()\n {\n ... | [
"0.80584514",
"0.80584514",
"0.80584514",
"0.80584514",
"0.80584514",
"0.80584514",
"0.7957838",
"0.79159725",
"0.7902698",
"0.78234065",
"0.78234065",
"0.7817051",
"0.7817051",
"0.7817051",
"0.7817051",
"0.7817051",
"0.7817051",
"0.7817051",
"0.7749178",
"0.7749178",
"0.7736... | 0.85509175 | 0 |
Set the new rules of this league. | Задайте новые правила этой лиги. | public function setLeagueRules( $leagueRules ){
$this->leagueRules = $leagueRules;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setRules($rules);",
"public function setRules(array $rules);",
"public static function setRules($rules){\n\t\t\tself::$ruleSet = $rules;\n\t\t}",
"public function setRules($rules = array())\n\t{\n\t\t$this->rules = $rules;\n\t}",
"protected function setRule(): void\n {\n }",
"public... | [
"0.72093695",
"0.7074415",
"0.7021559",
"0.69539785",
"0.6885455",
"0.6749553",
"0.67403394",
"0.673128",
"0.673128",
"0.66848105",
"0.66518384",
"0.6629505",
"0.66190845",
"0.66185516",
"0.65870136",
"0.65045744",
"0.64531446",
"0.64118344",
"0.637165",
"0.6351879",
"0.63271... | 0.7678505 | 0 |
Return the match rules of this league. | Верните правила соответствия этого чемпионата. | public function getMatchRules() {
return $this->matchRules;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getMatchingRules()\n {\n return $this->matchingRules;\n }",
"public function getLeagueRules() {\n return $this->leagueRules; \n }",
"public function getRules();",
"public function getRules();",
"public function getRules();",
"public function getRules();",
"publi... | [
"0.81317335",
"0.7977773",
"0.7227043",
"0.7227043",
"0.7227043",
"0.7227043",
"0.7227043",
"0.7227043",
"0.71902186",
"0.71267515",
"0.7106587",
"0.7066387",
"0.696151",
"0.68378365",
"0.6830886",
"0.6807661",
"0.6807661",
"0.67996854",
"0.67996854",
"0.67996854",
"0.6799685... | 0.82366925 | 0 |
Set the new match rules of this league. | Установите новые правила встреч этого турнира. | public function setMatchRules( $matchRules ) {
$this->matchRules = $matchRules;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setLeagueRules( $leagueRules ){\n $this->leagueRules = $leagueRules; \n }",
"public function setRules($rules);",
"protected function setRule(): void\n {\n }",
"public static function setRules($rules){\n\t\t\tself::$ruleSet = $rules;\n\t\t}",
"public function setRules(array... | [
"0.71638787",
"0.64206725",
"0.64087665",
"0.6370166",
"0.6232575",
"0.6185766",
"0.61779743",
"0.6094375",
"0.6050113",
"0.60132253",
"0.59296685",
"0.5921175",
"0.5921175",
"0.58760726",
"0.5870947",
"0.581215",
"0.58077914",
"0.57997984",
"0.5791801",
"0.57733506",
"0.5764... | 0.7028137 | 1 |
Return the indoor status of this league. | Верните внутренний статус этого лига. | public function getIsIndoor() {
return $this->isIndoor;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getInjuryStatus()\n {\n return $this->injuryStatus;\n }",
"public function getIndoor()\n {\n return $this->indoor;\n }",
"public function getIndoor()\n {\n return $this->_indoor;\n }",
"public function getLeagueStatus() {\n\t\t\t\n\t\tif ($this->ToursPla... | [
"0.7173044",
"0.6904104",
"0.68326086",
"0.6805894",
"0.6580323",
"0.64724165",
"0.641415",
"0.63930357",
"0.63833255",
"0.6358393",
"0.63266605",
"0.63266605",
"0.63266605",
"0.63266605",
"0.6309638",
"0.6305246",
"0.630395",
"0.62997985",
"0.6299745",
"0.6292231",
"0.628223... | 0.72888976 | 0 |
Return the maximum number of teams in this league. | Верните максимальное количество команд в этом лиге. | public function getMaxTeams() {
return $this->maxTeams;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getNumberOfTeams()\n {\n return $this->numberOfTeams;\n }",
"public function get_tours_count():int {\n\t\t\treturn sizeof($this->teams )*2 - 2;\n\t}",
"public function getMaxPlayers()\n\t{\n\t\treturn self::MAX_PLAYERS;\n\t}",
"public function getMaxPlayers() : int {\r\n\r\n ... | [
"0.78252476",
"0.6703327",
"0.6671475",
"0.65167964",
"0.6363188",
"0.634127",
"0.63072145",
"0.62881625",
"0.62369376",
"0.62147844",
"0.61986274",
"0.6139038",
"0.6115477",
"0.60858715",
"0.60537153",
"0.60537153",
"0.6051941",
"0.60467213",
"0.6028404",
"0.60250145",
"0.60... | 0.8061653 | 0 |
Generate a password hash using a config string. | Создайте хэш пароля с использованием строки конфигурации. | public static function genHash($password, $config); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function hash($password, $config = array ());",
"private function generatePasswordHash($string)\n\t{\n\t\t$string = is_string($string) ? $string : strval($string);\n\t\t$pwHash = encrypto($string);\n\t\treturn $pwHash;\n\t}",
"public static function genHash($password, $config)\n {\n $ha... | [
"0.7767964",
"0.75096905",
"0.7350268",
"0.73393106",
"0.7236183",
"0.7168196",
"0.70310587",
"0.67946863",
"0.6733652",
"0.67268664",
"0.6719289",
"0.67127675",
"0.66638464",
"0.6657273",
"0.6656038",
"0.66219634",
"0.65824074",
"0.65816855",
"0.6559106",
"0.6553612",
"0.648... | 0.86526585 | 0 |
Generate a password hash using a config string or array. | Создайте хеш пароля с использованием строки конфигурации или массива. | public static function hash($password, $config = array ()); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function genHash($password, $config);",
"public static function hash($password, $config = array ())\n {\n if (is_array($config)) {\n $config = self::genConfig($config);\n }\n\n return self::genHash($password, $config);\n }",
"public static function genHash($p... | [
"0.85951924",
"0.74432576",
"0.72817093",
"0.72610766",
"0.68178356",
"0.67230487",
"0.67216253",
"0.65779096",
"0.6564534",
"0.6502015",
"0.6477792",
"0.64647907",
"0.6450503",
"0.64503455",
"0.64298457",
"0.64295644",
"0.6423498",
"0.63990873",
"0.6376916",
"0.6361632",
"0.... | 0.7942086 | 1 |
Verify a password against a hash string. | Проверить пароль против строки хэша. | public static function verify($password, $hash); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function verify($password, $hash);",
"function verify($password, $hash);",
"public function verify($hash, $password, $salt = null);",
"public function isValid(string $password, string $hash): bool;",
"public static function check_password($hash, $password) {\n\t\t// TO COMPLETE\n\t}",
"function ve... | [
"0.83578163",
"0.8085599",
"0.79460627",
"0.7928682",
"0.7873255",
"0.7820014",
"0.774856",
"0.77288735",
"0.77212775",
"0.76449263",
"0.7610624",
"0.7591399",
"0.7579986",
"0.75727755",
"0.7558698",
"0.7542896",
"0.7525957",
"0.74758035",
"0.74714714",
"0.7466049",
"0.746114... | 0.8526068 | 0 |
Retourne l'URL publique'vers le fichier XSD. | Возвращает публичный URL файла XSD. | public function getFileExportXsdUrl()
{
$packageHandle = Package::getByID($this->c->pkgID)->getPackageHandle();
$fileExportName = $this->fileExportXsdName;
$fileExportUrl = BASE_URL . DIR_REL. '/packages/' . $packageHandle . '/' . $fileExportName;
return $fileExportUrl;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getFileExportXsdPath()\n {\n //détermine le chemin vers la racine du package\n $packagePath = Package::getByID($this->c->pkgID)->getPackagePath();\n\n $fileExportName = $this->fileExportXsdName;\n $fileExportUrl = $packagePath . '/' . $fileExportName;\n\n return $fileExportUrl;\n }... | [
"0.70158637",
"0.64655286",
"0.6269691",
"0.60883385",
"0.5947804",
"0.5823806",
"0.58054173",
"0.58054173",
"0.58054173",
"0.57500637",
"0.57299274",
"0.571798",
"0.5696914",
"0.5674659",
"0.56315386",
"0.56171477",
"0.5615036",
"0.560202",
"0.5596299",
"0.5580766",
"0.55741... | 0.739834 | 0 |
Exporte le fichier XSD. | Экспортируйте файл XSD. | public function fileExportXsd($XSD)
{
$fileExportUrl = $this->getFileExportXsdPath();
$filePointer = fopen($fileExportUrl, 'w');
//add BOM to fix UTF-8 in Excel
fputs($filePointer, $bom =( chr(0xEF) . chr(0xBB) . chr(0xBF) ));
fputs($filePointer, $XSD);
fclose($filePointer);
if (file_exis... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function exportXmlAction()\n {\n $fileName = 'docx.xml';\n $content = $this->getLayout()->createBlock('bs_docx/adminhtml_docx_grid')\n ->getXml();\n $this->_prepareDownloadResponse($fileName, $content);\n }",
"public function exportPackage(SchemaPackage $package)... | [
"0.6265983",
"0.6224205",
"0.6072026",
"0.5993754",
"0.59156144",
"0.58673453",
"0.58417404",
"0.58212954",
"0.58120286",
"0.580841",
"0.57955384",
"0.5783918",
"0.5769735",
"0.57681274",
"0.57560605",
"0.5747344",
"0.57462114",
"0.5711712",
"0.5680807",
"0.564618",
"0.562084... | 0.7269582 | 0 |
Provides a set of valid values for 'enabled' option. | Предоставляет набор допустимых значений для параметра 'enabled'. | public function validEnabledOptionDataProvider(): array
{
return [
'Enabled' => [
'enabled' => true,
],
'Disabled' => [
'enabled' => false,
],
];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getEnabledValues() : array;",
"public function getAllowedValues(): array;",
"public function getProofDisabledAllowableValues()\n {\n return [\n self::PROOF_DISABLED_FALSE,\n self::PROOF_DISABLED_TRUE,\n self::PROOF_DISABLED_NOT_DEFINED,\n ];\n ... | [
"0.757848",
"0.69517285",
"0.68708986",
"0.68606454",
"0.6833895",
"0.68282145",
"0.68038535",
"0.68015456",
"0.67354757",
"0.67331666",
"0.6714915",
"0.6617912",
"0.66028357",
"0.66028357",
"0.6570093",
"0.6526168",
"0.65077394",
"0.6506124",
"0.64800775",
"0.64712024",
"0.6... | 0.72415304 | 1 |
Check a user The third parameter, which is optional, defines if this command should send messages to the target if $nick is not authed. | Проверьте пользователя Третий параметр, который является необязательным, определяет, отправлять ли эту команду сообщения в целевой канал, если $nick не аутентифицирован. | protected function _checkUser($nick, $target = '', $sendMessage = false)
{
if ($this->_isAuthed($nick)) {
if (null !== $this->_getUserId($nick)) {
return true;
}
if ($sendMessage) {
$this->_client->send('I dunno who the fuck ' . $nick . ' ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function user ($user = \"\")\n {\n\n if(empty($user))\n {\n $this->ERROR = \"POP3 user: no user id submitted\";\n return false;\n }\n if(!isset($this->FP))\n {\n $t... | [
"0.6267266",
"0.6129915",
"0.60928327",
"0.5961406",
"0.5869991",
"0.58698285",
"0.57785136",
"0.5686952",
"0.56436116",
"0.5631862",
"0.56115174",
"0.5601807",
"0.55563617",
"0.5555333",
"0.5552162",
"0.5499293",
"0.5455004",
"0.54497665",
"0.54473615",
"0.54465747",
"0.5439... | 0.71255755 | 0 |
Get the achievements of a user | Получить достижения пользователя | protected function _getAchievements($user)
{
$stmt = $this->_db->getAdapter()->prepare($this->_db->getAdapter()->select()
->from('achievements')
->where('user_i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function playerAchievements() {\n $achievements = new Achievement();\n $list = array();\n\t\t$player = User::getUser();\n \n\t\tif($player->canAccess('Edit achievement information') === FALSE) {\n\t\t\tDooUriRouter::redirect(MainHelper::site_url('admin'));\n\t\t}... | [
"0.7652412",
"0.74453557",
"0.7401702",
"0.73663205",
"0.7156461",
"0.71339655",
"0.6903168",
"0.67614627",
"0.6595894",
"0.64998704",
"0.6443095",
"0.6223723",
"0.6120191",
"0.61020935",
"0.6098675",
"0.60235494",
"0.5969383",
"0.59571666",
"0.5934967",
"0.59220684",
"0.5914... | 0.78204143 | 0 |
Creates a form to delete a Topics entity. | Создает форму для удаления сущности Topics. | private function createDeleteForm(Topics $topic)
{
return $this->createFormBuilder()
->setAction($this->generateUrl('topics_delete', array('id' => $topic->getId())))
->setMethod('DELETE')
->getForm()
;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getDeleteForm($topicNumber) {\n return View::make('/deleteTopic')\n \t ->with('topicNumber', $topicNumber);\n }",
"function forschungsatlas_admin_topic_delete_confirm($form, &$form_state, $topic) {\n $form_state['NEFO']['tid'] = $topic['tid'];\n $form_state['NEFO']['name'] = $... | [
"0.689047",
"0.6807421",
"0.6733994",
"0.6626597",
"0.6507529",
"0.6414675",
"0.63944274",
"0.6392604",
"0.634922",
"0.6320697",
"0.6315173",
"0.6308417",
"0.63049084",
"0.6302533",
"0.62953717",
"0.62863374",
"0.6286229",
"0.6265442",
"0.6259364",
"0.6249762",
"0.62438595",
... | 0.79911375 | 0 |
create two taxonomies, genres and writers for the post type "film" | создайте два таксономии, жанры и авторы, для типа записи "фильм" | function create_film_taxonomies() {
// Add new taxonomy, make it hierarchical (like categories)
$labels = array(
'name' => _x( 'Genres', 'taxonomy general name', 'unite-child' ),
'singular_name' => _x( 'Genre', 'taxonomy singular name', 'unite-child' ),
'search_items' => __( 'Search Genres... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function create_movie_taxonomies() {\n\t\n\t// Add new taxonomy, make it hierarchical (like categories)\n\t$labels = array(\n\t\t'name' => _x( 'Genres', 'taxonomy general name' ),\n\t\t'singular_name' => _x( 'Genre', 'taxonomy singular name' ),\n\t\t'search_items' => __( 'Search Genres' ),\n\... | [
"0.8206082",
"0.7365074",
"0.71840525",
"0.6886301",
"0.6885997",
"0.6877524",
"0.68414974",
"0.6817879",
"0.68044776",
"0.6774443",
"0.6765802",
"0.6751008",
"0.6751008",
"0.6745587",
"0.6708066",
"0.6701526",
"0.66970867",
"0.66969293",
"0.6687027",
"0.6687027",
"0.6687027"... | 0.82229793 | 0 |
filter the pool by color | фильтруйте пул по цвету | public function filterColor($p) {
$colorPool = array();
// for each card in pool...
foreach($p as $card) {
//if card has no color ID, add it to colorPool
if($card->getColors() == null) {
$colorPool[] = $card;
} else {
// for each color of card...
foreach($card->getColors() as $cardCo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function filterColor($p) {\r\n\t\t// for each card in pool...\r\n\t\tforeach($p as $index => $card) {\r\n\t\t\t// for each color of card...\r\n\t\t\tforeach($card->getColors() as $cardCol) {\r\n\t\t\t\t$r = 0;\r\n\t\t\t\t// for each color selected...\r\n\t\t\t\tforeach($this->model->getColors() as $selCol) ... | [
"0.7313038",
"0.6657954",
"0.57540107",
"0.5739942",
"0.56290954",
"0.5584958",
"0.55633414",
"0.54415953",
"0.54383373",
"0.53501725",
"0.5344552",
"0.5255502",
"0.52486145",
"0.5222684",
"0.5222684",
"0.5215116",
"0.5161172",
"0.5155657",
"0.51103",
"0.5109849",
"0.5093301"... | 0.7323087 | 0 |
Get the HTTP Client object used to fetch RDF data If no HTTP Client has previously been set, then a new default (EasyRdf_Http_Client) client will be created. | Получите объект HTTP-клиента, используемого для получения данных RDF. Если ранее не было задано HTTP-клиента, то будет создан новый клиент по умолчанию (EasyRdf_Http_Client). | public static function getHttpClient()
{
if (!self::$_httpClient) {
self::$_httpClient = new EasyRdf_Http_Client();
}
return self::$_httpClient;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getHttpClient(): Client\n {\n return $this->http ?: new Client;\n }",
"protected function getHttpClient()\n {\n if ($this->httpClient == null) {\n return $this->httpClient = new Client;\n }\n return $this->httpClient;\n }",
"public function get... | [
"0.7742804",
"0.74915904",
"0.7457626",
"0.7411185",
"0.74005425",
"0.7347549",
"0.7340072",
"0.7337609",
"0.7308174",
"0.7283034",
"0.7282715",
"0.7228113",
"0.7221019",
"0.71899676",
"0.7172252",
"0.71627694",
"0.713029",
"0.7123965",
"0.70993805",
"0.7093331",
"0.707614",
... | 0.7972284 | 0 |
Get an arry of resources matching a certain property and value. For example this routine could be used as a way of getting everyone who is male: $people = $graph>resourcesMatching('foaf:gender', 'male'); | Получить массив ресурсов, соответствующих определенному свойству и значению. Например, эта процедура может быть использована как способ получения всех мужчин: $people = $graph>resourcesMatching('foaf:gender', 'male'); | public function resourcesMatching($property, $value)
{
$matched = array();
foreach ($this->_resources as $resource) {
if ($resource->matches($property, $value)) {
array_push($matched, $resource);
}
}
return $matched;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function matches($property, $value)\n {\n foreach ($this->all($property) as $v) {\n if ($v instanceof EasyRdf_Resource and $v === $value) {\n return true;\n } else if ($v == $value) {\n return true;\n }\n }\n return false... | [
"0.6048392",
"0.5790193",
"0.5692076",
"0.55794",
"0.5562315",
"0.53443307",
"0.5283966",
"0.5282738",
"0.5224637",
"0.5158714",
"0.5157091",
"0.5125264",
"0.5026619",
"0.50147176",
"0.50123554",
"0.4987814",
"0.49582508",
"0.49500787",
"0.49418792",
"0.49355644",
"0.490759",... | 0.78066015 | 0 |
Add data to the graph The resource can either be a resource or the URI of a resource. The properties can either be a single property name or an associate array of property names and values. The value can either be a single value or an array of values. Examples: $res = $graph>resource(" $graph>add($res, 'prefix:property... | Добавить данные в граф. Ресурс может быть либо ресурсом, либо URI ресурса. Свойства могут быть либо одним именем свойства, либо ассоциативным массивом имен свойств и их значений. Значение может быть либо одним значением, либо массивом значений. Примеры: $res = $graph->resource(" $graph->add($res, 'prefix:property', 'va... | public function add($resource, $properties, $value=null)
{
if (!is_object($resource)) {
$resource = $this->resource($resource);
} else if (!$resource instanceof EasyRdf_Resource) {
throw new InvalidArgumentException(
"\$resource should be an instance of the Ea... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function add_resource(& $resource)\n {\n $this->resources[$resource->get_type()][$resource->get_id()] = $resource;\n }",
"public function add($resource)\n {\n $this->resources[] = $resource;\n }",
"public function addResource($resource)\n {\n $this->resources[] = $re... | [
"0.62350816",
"0.6176926",
"0.5929968",
"0.586986",
"0.57790095",
"0.57280034",
"0.571163",
"0.56986815",
"0.56458133",
"0.5614286",
"0.5552395",
"0.54979485",
"0.5479118",
"0.54620063",
"0.5456615",
"0.54411787",
"0.54411787",
"0.54403836",
"0.54199725",
"0.5401299",
"0.5349... | 0.760012 | 0 |
Get the resource type of the graph The type will be a shortened URI as a string. If the graph has multiple types then the type returned may be arbitrary. This method will return null if the resource has no type. | Получите тип ресурса графа. Тип будет представлен как сокращённый URI в виде строки. Если граф имеет несколько типов, то возвращённый тип может быть произвольным. Этот метод вернёт null, если у ресурса нет типа. | public function type()
{
if ($this->_uri) {
$res = $this->resource($this->_uri);
return $res->type();
} else {
return null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function typeResource()\n {\n return $this->get('rdf:type');\n }",
"public function type()\n {\n $uri = $this->get('rdf:type');\n if ($uri) {\n return EasyRdf_Namespace::shorten($uri);\n } else {\n return null;\n }\n }",
"public functi... | [
"0.77061266",
"0.76090807",
"0.70331186",
"0.70331186",
"0.70331186",
"0.70331186",
"0.7031475",
"0.68598145",
"0.68367743",
"0.67218286",
"0.66564316",
"0.65218204",
"0.65001655",
"0.6293105",
"0.626882",
"0.6234318",
"0.6219325",
"0.61853695",
"0.6174365",
"0.6147742",
"0.6... | 0.7776447 | 0 |
Get the primary topic of the graph | Получить основную тему графа | public function primaryTopic()
{
if ($this->_uri) {
return $this->resource($this->_uri)->primaryTopic();
} else {
return null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function primaryTopic()\n {\n return $this->get(\n array('foaf:primaryTopic', '-foaf:isPrimaryTopicOf')\n );\n }",
"public function getTopic()\n {\n return $this->topic;\n }",
"public function getTopic()\n {\n return $this->topic;\n }",
"public ... | [
"0.816147",
"0.7350958",
"0.7350958",
"0.7350958",
"0.7350958",
"0.7350958",
"0.7344936",
"0.7298734",
"0.71609426",
"0.7073525",
"0.7062767",
"0.6950569",
"0.68810177",
"0.68121606",
"0.6648334",
"0.66011745",
"0.64805806",
"0.6470564",
"0.6422682",
"0.63812315",
"0.631676",... | 0.7866233 | 1 |
Does the action have an active cooldown? | Есть ли у действия активная охлаждающаяся задержка? | public function isOnCooldown(): bool
{
return Cache::has($this->getCooldownCacheKey());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function shouldReleaseCooldown(): bool;",
"public function isOnAnyCooldown(): bool\n {\n return $this->isOnCooldown() || $this->bot->isOnCooldown();\n }",
"public function notOnCooldown(): bool\n {\n return ! $this->isOnCooldown();\n }",
"public function notOnAnyCooldown(): b... | [
"0.7948302",
"0.75319207",
"0.7298695",
"0.7128995",
"0.68063706",
"0.649112",
"0.6365595",
"0.63356954",
"0.631649",
"0.6294824",
"0.62211776",
"0.6158183",
"0.6130938",
"0.6065993",
"0.6014666",
"0.6012857",
"0.6012857",
"0.60112315",
"0.6010498",
"0.5991028",
"0.5990835",
... | 0.7932116 | 1 |
Does the action or the action's bot have an active cooldown? | Есть ли активный перерыв у действия или у бота действия? | public function isOnAnyCooldown(): bool
{
return $this->isOnCooldown() || $this->bot->isOnCooldown();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function shouldReleaseCooldown(): bool;",
"public function isOnCooldown(): bool\n {\n return Cache::has($this->getCooldownCacheKey());\n }",
"public function notOnCooldown(): bool\n {\n return ! $this->isOnCooldown();\n }",
"public function notOnAnyCooldown(): bool\n {\n ... | [
"0.75793344",
"0.7502174",
"0.69448954",
"0.68273777",
"0.64810956",
"0.64305496",
"0.6359072",
"0.61803246",
"0.58714986",
"0.5829828",
"0.57827485",
"0.57596064",
"0.57424164",
"0.5707808",
"0.5656291",
"0.56243694",
"0.5617224",
"0.5613096",
"0.5591271",
"0.5581666",
"0.55... | 0.75512046 | 1 |
Release the action cooldown. | Освободить охлаждение действия. | public function releaseCooldown(): void
{
Cache::forget($this->getCooldownCacheKey());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function releaseCooldown(): void;",
"public function shouldReleaseCooldown(): bool;",
"public function release_claim( ActionScheduler_ActionClaim $claim ) {\n\t\t/** @var \\wpdb $wpdb */\n\t\tglobal $wpdb;\n\t\t$wpdb->update( $wpdb->actionscheduler_actions, [ 'claim_id' => 0 ], [ 'claim_id' => $claim->g... | [
"0.8214991",
"0.6276203",
"0.59294397",
"0.57498634",
"0.5710831",
"0.54046434",
"0.53572065",
"0.53452885",
"0.5282942",
"0.52375495",
"0.5225152",
"0.5194352",
"0.5192131",
"0.5191224",
"0.51493704",
"0.51348466",
"0.5128142",
"0.5069322",
"0.50688523",
"0.50474554",
"0.504... | 0.7722522 | 1 |
Tests modifySearch method, with one and with multiple search fields. | Тесты метода modifySearch, с одним и с несколькими полями поиска. | public function testModifySearch()
{
$mockFilterState = $this->getMockBuilder('ONGR\FilterManagerBundle\Filter\FilterState')->getMock();
$mockFilterState->expects($this->exactly(2))
->method('isActive')
->will($this->returnValue(true));
$fuzzySearch = new FuzzySearch... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testSearchFields(): void\n {\n $index = $this->_createIndex();\n\n $doc = new Document('1', ['title' => 'hello world', 'firstname' => 'nicolas', 'lastname' => 'ruflin', 'price' => '102', 'year' => '2012']);\n $index->addDocument($doc);\n $index->refresh();\n\n ... | [
"0.66144115",
"0.6232436",
"0.622864",
"0.62075216",
"0.6192739",
"0.6185111",
"0.61632377",
"0.6150599",
"0.60134196",
"0.5993713",
"0.59828156",
"0.5968064",
"0.5950053",
"0.5938622",
"0.5925659",
"0.591584",
"0.58873373",
"0.58727956",
"0.5861962",
"0.58365005",
"0.5831719... | 0.76962185 | 0 |
aggiungo gli status "scaduto" e "annullato" per gestire albo pretorio Register Custom Post Status | Добавляю статусы "просрочен" и "отменен" для управления регистром в альбоме претории Custom Post Status | function dsi_register_custom_post_status(){
register_post_status( 'scaduto', array(
'label' => _x( 'Scaduto', 'design_scuole_italia' ),
'public' => true,
'exclude_from_search' => false,
'show_in_admin_all_list' => true,
'show_in... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function register_post_status()\n {\n }",
"public static function register_post_status()\n {\n }",
"public function update_status_post()\n {\n\n $post_add = $this->post();\n if($post_add)\n {\n $id_conekta = $this->post(\"id_conekta\");\n\n $sta... | [
"0.71709996",
"0.71381205",
"0.71347815",
"0.6921455",
"0.6919705",
"0.68587476",
"0.6856455",
"0.67413205",
"0.6631989",
"0.6594265",
"0.6550361",
"0.6549804",
"0.6512265",
"0.6404038",
"0.6389993",
"0.6364511",
"0.63544077",
"0.6340499",
"0.6296402",
"0.6264655",
"0.6262838... | 0.79759675 | 0 |
The exact custom question field text (for example, "What kind of vehicle do you have?"). Generated from protobuf field string custom_question_text = 1; | Точный текст пользовательского поля вопроса (например, "Какой тип транспортного средства у вас есть?"). Генерируется из поля protobuf string custom_question_text = 1; | public function getCustomQuestionText()
{
return $this->custom_question_text;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setCustomQuestionText($var)\n {\n GPBUtil::checkString($var, True);\n $this->custom_question_text = $var;\n\n return $this;\n }",
"public function get_question_text(){\n return $this->text;\n }",
"function getQuestionType()\n\t{\n\t\treturn \"SurveyT... | [
"0.78725606",
"0.65406024",
"0.63529944",
"0.6084843",
"0.5951596",
"0.57613397",
"0.5697878",
"0.5653886",
"0.5637444",
"0.55785465",
"0.5556714",
"0.55376846",
"0.55376846",
"0.55376846",
"0.55176157",
"0.54350007",
"0.54294807",
"0.5427387",
"0.54173964",
"0.5417033",
"0.5... | 0.8031796 | 0 |
The exact custom question field text (for example, "What kind of vehicle do you have?"). Generated from protobuf field string custom_question_text = 1; | Точный текст пользовательского поля вопроса (например, "Какой тип транспортного средства у вас есть?"). Генерируется из поля protobuf string custom_question_text = 1; | public function setCustomQuestionText($var)
{
GPBUtil::checkString($var, True);
$this->custom_question_text = $var;
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getCustomQuestionText()\n {\n return $this->custom_question_text;\n }",
"public function get_question_text(){\n return $this->text;\n }",
"function getQuestionType()\n\t{\n\t\treturn \"SurveyTextQuestion\";\n\t}",
"public function getTxtQuestion(): ?string {\n ... | [
"0.8031796",
"0.65406024",
"0.63529944",
"0.6084843",
"0.5951596",
"0.57613397",
"0.5697878",
"0.5653886",
"0.5637444",
"0.55785465",
"0.5556714",
"0.55376846",
"0.55376846",
"0.55376846",
"0.55176157",
"0.54350007",
"0.54294807",
"0.5427387",
"0.54173964",
"0.5417033",
"0.54... | 0.78725606 | 1 |
Answer configuration for a single choice question. Minimum of 2 answers and maximum of 12 allowed. Generated from protobuf field .google.ads.googleads.v14.common.LeadFormSingleChoiceAnswers single_choice_answers = 2; | Конфигурация ответа для вопроса с одним выбором. Минимум 2 ответа и максимум 12. Генерируется из поля protobuf .google.ads.googleads.v14.common.LeadFormSingleChoiceAnswers single_choice_answers = 2; | public function getSingleChoiceAnswers()
{
return $this->readOneof(2);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setSingleChoiceAnswers($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Ads\\GoogleAds\\V14\\Common\\LeadFormSingleChoiceAnswers::class);\n $this->writeOneof(2, $var);\n\n return $this;\n }",
"public function setActualAnswer(SingleChoiceAnswerInterface $answer);",
"p... | [
"0.7881806",
"0.63957316",
"0.54514843",
"0.5409231",
"0.52133197",
"0.5141202",
"0.50167453",
"0.501558",
"0.49402276",
"0.49332064",
"0.47311962",
"0.4685244",
"0.4664043",
"0.46190104",
"0.45769575",
"0.45720473",
"0.4558297",
"0.4542428",
"0.45111763",
"0.44895977",
"0.44... | 0.7180874 | 1 |
Answer configuration for a single choice question. Minimum of 2 answers and maximum of 12 allowed. Generated from protobuf field .google.ads.googleads.v14.common.LeadFormSingleChoiceAnswers single_choice_answers = 2; | Конфигурация ответа для вопроса с одним выбором. Минимум 2 ответа и максимум 12 разрешено. Генерируется из поля protobuf .google.ads.googleads.v14.common.LeadFormSingleChoiceAnswers single_choice_answers = 2; | public function setSingleChoiceAnswers($var)
{
GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V14\Common\LeadFormSingleChoiceAnswers::class);
$this->writeOneof(2, $var);
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getSingleChoiceAnswers()\n {\n return $this->readOneof(2);\n }",
"public function setActualAnswer(SingleChoiceAnswerInterface $answer);",
"private function changeAnswersSingleChoice($model) {\n\t\t$i = 1;\n\t\twhile(isset($_POST['choice_single_text'][$i])) {\n\t\t\t// add choice\n\... | [
"0.71808535",
"0.6398456",
"0.5454477",
"0.5411457",
"0.5212171",
"0.51451576",
"0.5017838",
"0.5017454",
"0.49396756",
"0.4935641",
"0.47305688",
"0.46862605",
"0.4663734",
"0.46194687",
"0.4579577",
"0.45728096",
"0.4560448",
"0.45419344",
"0.45128736",
"0.44902837",
"0.448... | 0.78811735 | 0 |
Answer configuration for location question. If true, campaign/account level location data (state, city, business name etc) will be rendered on the Lead Form. Starting V13.1, has_location_answer can only be set for "What is your preferred dealership?" question, for advertisers with Location Assets setup at campaign/acco... | Настройка ответа для вопроса о местоположении. Если значение истинно, данные о местоположении на уровне кампании/счета (штат, город, название бизнеса и т.д.) будут отображаться в форме контакта. Начиная с V13.1, параметр has_location_answer может быть задан только для вопроса "Какой дилер вам предпочтителен?", для рекл... | public function getHasLocationAnswer()
{
return $this->readOneof(3);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setHasLocationAnswer($var)\n {\n GPBUtil::checkBool($var);\n $this->writeOneof(3, $var);\n\n return $this;\n }",
"public function hasLocation(): bool\n {\n return isset($this->location);\n }",
"public function hasLocation(){\n return $this->_has(4);\... | [
"0.8191639",
"0.5591089",
"0.5521851",
"0.55035543",
"0.5404453",
"0.53202814",
"0.52743375",
"0.5268212",
"0.52611667",
"0.5177908",
"0.5165714",
"0.5159297",
"0.5120322",
"0.50832564",
"0.50832564",
"0.50832564",
"0.50832564",
"0.50832564",
"0.50832564",
"0.50322217",
"0.50... | 0.7899887 | 1 |
Answer configuration for location question. If true, campaign/account level location data (state, city, business name etc) will be rendered on the Lead Form. Starting V13.1, has_location_answer can only be set for "What is your preferred dealership?" question, for advertisers with Location Assets setup at campaign/acco... | Настройка ответа для вопроса о местоположении. Если значение истинно, данные о местоположении на уровне кампании/аккаунта (штат, город, название бизнеса и т.д.) будут отображаться в форме потенциального клиента. Начиная с V13.1, параметр has_location_answer можно задавать только для вопроса "Какой автосалон вам предпоч... | public function setHasLocationAnswer($var)
{
GPBUtil::checkBool($var);
$this->writeOneof(3, $var);
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getHasLocationAnswer()\n {\n return $this->readOneof(3);\n }",
"public function hasLocation(): bool\n {\n return isset($this->location);\n }",
"public function hasLocation(){\n return $this->_has(4);\n }",
"public function hasLocation()\n {\n return... | [
"0.7899887",
"0.5591089",
"0.5521851",
"0.55035543",
"0.5404453",
"0.53202814",
"0.52743375",
"0.5268212",
"0.52611667",
"0.5177908",
"0.5165714",
"0.5159297",
"0.5120322",
"0.50832564",
"0.50832564",
"0.50832564",
"0.50832564",
"0.50832564",
"0.50832564",
"0.50322217",
"0.50... | 0.8191639 | 0 |
Formats a message according to the given styles, wrapping at `$width` (0 means no wrapping). | Форматирует сообщение в соответствии с заданными стилями, обрезая по `$width` (0 означает, что обрезка не производится). | public function formatAndWrap(string $message, int $width): string; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function prepareMessage($message, $format, $width = null)\n {\n switch ( $format )\n {\n case \"success\":\n $prefix = \"<fg=green>\";\n $suffix = \"</>\";\n break;\n case \"info\":\n case \"msg\":\n case \"comment\":\n case \"error\":\n $prefix... | [
"0.6528407",
"0.6495236",
"0.5904546",
"0.5900134",
"0.5815876",
"0.5764974",
"0.5737549",
"0.57302123",
"0.57124674",
"0.55921465",
"0.5550755",
"0.5370217",
"0.53093415",
"0.5302304",
"0.5301804",
"0.5272098",
"0.52502316",
"0.51392776",
"0.5134463",
"0.50937545",
"0.507605... | 0.8134824 | 0 |
Funzione che individua le proiezione della prossima settimana. | Функция, которая определяет проекции на следующую неделю. | public static function proiezioniSettimanaProssima() {
$settimana = EData::getSettimanaProssima();
$elenco = FPersistentManager::getInstance()->loadBetween($settimana[0], $settimana[1], "EProiezione");
VGestoreREST::showJSON($elenco);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function proiezioniSettimanali() {\n $settimana = EData::getSettimana();\n $elenco = FPersistentManager::getInstance()->loadBetween($settimana[0], $settimana[1], \"EProiezione\");\n\n VGestoreREST::showJSON($elenco);\n }",
"function setProgreso($progreso) {\r\n\t\t$this->... | [
"0.675498",
"0.67424446",
"0.66058224",
"0.6423647",
"0.6394647",
"0.62641186",
"0.62584937",
"0.6220568",
"0.62063295",
"0.6172183",
"0.61649054",
"0.61066955",
"0.6093677",
"0.6070827",
"0.6057279",
"0.6053575",
"0.6021926",
"0.60195464",
"0.6009185",
"0.6000091",
"0.596431... | 0.73211855 | 0 |
Funzione che simula la richiesta di un token per l'accesso alla piattaforma. Decodificata la email dell'utente dal formato JSON viene controllaata la reale esistenza nel DB di quest'ultima. Se esiste si provvede ad inviare un token univoco. | Функция, которая имитирует запрос на получение токена для доступа к платформе. После декодирования электронной почты пользователя из формата JSON проверяется её реальное существование в базе данных. Если электронная почта существует, отправляется уникальный токен. | public static function myToken() {
$whois = json_decode('php://input',true); //Torna un tipo associativo
$utente = FPersistentManager::getInstance()->load($whois["email"], "email", "EUtente");
if(isset($utente)) {
VGestoreREST::showJSON(uniqid());
} else {
VGest... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function traeDatoToken($token) {\n $decoded = '';\n $respuesta[\"valid\"] = $valid;\n $respuesta[\"decoded\"] = $decoded;\n $respuesta[\"message \"] = $message;\n try {\n $decoded = JWT::decode($token, llave_super_secreta(), array('HS256'));\n } catch (Exception $e) {\n $valid = fal... | [
"0.65422785",
"0.6416374",
"0.6405679",
"0.6404077",
"0.6142741",
"0.6131673",
"0.60931146",
"0.59660757",
"0.58827007",
"0.585793",
"0.58398455",
"0.5830171",
"0.58266485",
"0.5826092",
"0.58256495",
"0.5813184",
"0.5807527",
"0.5777043",
"0.5772372",
"0.5764011",
"0.5718324... | 0.7646341 | 0 |
Can command be run on directories? | Можно ли выполнять команду в директориях? | public function runOnDirectories(): bool
{
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function search_in_dirs($dirs, $cmd, $show_dirs)\n{\n foreach($dirs as $dir){\n if ($show_dirs)\n echo \"$dir\\n\";\n\n if (check_exact($dir, $cmd))\n return $dir;\n }\n\n return null;\n}",
"abstract public function dir($path);",
"public function test_handle_directo... | [
"0.6496603",
"0.6333574",
"0.6128029",
"0.60901064",
"0.6049324",
"0.5964366",
"0.58663183",
"0.5861767",
"0.5831037",
"0.58295363",
"0.58295363",
"0.5784794",
"0.5762996",
"0.5731287",
"0.57283324",
"0.56625336",
"0.56572104",
"0.5635658",
"0.5615061",
"0.56111324",
"0.56051... | 0.7095985 | 0 |
returns the metadata of an archive | возвращает метаданные архива | public static function getMetaData($archive)
{
$current = self::acquire($archive);
if (isset($current['index']) == false) {
throw new StarException('Star file ' . $archive . ' does not exist or is not a valid star file.');
}
$metaData = array();
fseek($c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getExtractedMetadata() {\n\t\treturn $this->metadata;\n\t}",
"public function getMetaData()\n {\n return $this->metaData;\n }",
"public function get_metadata() {\n return $this->metadata;\n }",
"public function get_metadata() {\n return $this->metadata;\n }",
... | [
"0.6475699",
"0.6432432",
"0.6406671",
"0.6406671",
"0.6406671",
"0.6406671",
"0.6406671",
"0.63992375",
"0.63657457",
"0.63400596",
"0.6285833",
"0.628581",
"0.6272409",
"0.6252846",
"0.62081015",
"0.6188192",
"0.61597306",
"0.6103179",
"0.6097773",
"0.60717726",
"0.60717726... | 0.7177799 | 0 |
Copy all the newly created tiles to the projects folder | Скопируйте все новые созданные плитки в папку проектов | private function copyTiles()
{
$files = Storage::allFiles($this->jobPath . "/tiles");
foreach ($files as $file) {
$stream = Storage::getDriver()->readStream($file);
$fileName = str_replace($this->jobPath . "/tiles/", "", $file);
Storage::disk('projects')->put($t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function incident_move_templates(){\n copy(dirname(__FILE__).'/templates/emergency-form.php', get_template_directory().DIRECTORY_SEPARATOR.'templates'.DIRECTORY_SEPARATOR.'emergency-form.php');\n copy(dirname(__FILE__).'/templates/emergency-map.php', get_template_directory().DIRECTORY_SEPARATOR.'templates'.D... | [
"0.668832",
"0.60669106",
"0.5942049",
"0.59072894",
"0.58192414",
"0.57863134",
"0.57116055",
"0.57075214",
"0.5665444",
"0.56511855",
"0.5575456",
"0.555965",
"0.55449426",
"0.5523673",
"0.551347",
"0.5487688",
"0.5486043",
"0.53768367",
"0.536572",
"0.53627986",
"0.5359863... | 0.82459825 | 0 |
Get the image filename based on it's size. | Получить имя файла изображения в зависимости от его размера. | private function getFilename(string $size)
{
return $size == 'original' ? $this->original_filename : $this->filename;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getName($size=null) {\n\t\t$name = md5($this->source);\n\t\tif ($size === null) {\n\t\t\t$size = $this->size;\n\t\t}\n\t\treturn $name.'-'.$size[0].'-'.$size[1].'.png';\n\t}",
"public function GetImageFile($size = 'default')\n\t{\treturn $this->ImageFileDirectory($size) . '/' . (int)$this->id .'.... | [
"0.7880579",
"0.745687",
"0.7379689",
"0.7373712",
"0.72637886",
"0.72454655",
"0.7103706",
"0.70652676",
"0.7060269",
"0.7024408",
"0.702333",
"0.69696647",
"0.69382596",
"0.6920701",
"0.690786",
"0.6754031",
"0.6744758",
"0.66881084",
"0.66576105",
"0.66439986",
"0.663571",... | 0.75453424 | 1 |
Make the paths for different sizes | Создайте пути для разных размеров | private function createSizeDirectories()
{
foreach (self::SIZES as $size => $sizes) {
Storage::makeDirectory('public/' . self::PATH . $size);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function createImageSizes()\n {\n $this->createSizeDirectories();\n\n // Image\n $image = Image::make($this->getPath('original'))->encode(self::EXT, 90);\n\n // Large\n $image->resize(self::SIZES['large']['width'], self::SIZES['large']['height'], function ($constraint) ... | [
"0.6728006",
"0.62277466",
"0.61977196",
"0.6042613",
"0.5916339",
"0.5815982",
"0.5795479",
"0.5735102",
"0.573065",
"0.5697461",
"0.56590736",
"0.5630438",
"0.5578921",
"0.5565444",
"0.5544388",
"0.5541741",
"0.5481829",
"0.54710144",
"0.54417497",
"0.5435088",
"0.54345137"... | 0.7138257 | 0 |
Extracts the first available item Return null if there are no items | Извлекает первый доступный элемент, возвращает null, если элементов нет | public function first()
{
$item = reset($this->items);
return $item ?: null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getFirst()\n {\n $first = reset($this->items);\n return $first !== false ? $first : null;\n }",
"public function first()\n {\n if ($this->fetch()->totalItems) {\n return $this->fetch()->items[0];\n }\n\n return null;\n }",
"public functi... | [
"0.76106536",
"0.75202805",
"0.7413485",
"0.7396272",
"0.7390677",
"0.7310774",
"0.73105913",
"0.7260318",
"0.7158318",
"0.6880267",
"0.68418735",
"0.6833137",
"0.6817038",
"0.6810719",
"0.6793982",
"0.6775496",
"0.67276686",
"0.6720521",
"0.66944784",
"0.66813976",
"0.667852... | 0.78268784 | 0 |
Add the given data at the given index of linked list. | Добавьте данные в заданный индекс связанного списка. | public function addAt(string $data, int $index): void
{
$count = $this->count;
if ($index > $count) {
throw new RuntimeException(sprintf(
'Data cannot be added to linked list index "%s" which has "%s" nodes.',
$index,
$count
))... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function addAtIndex($index, $val) {\n\t\tif ($index > $this->length) {\n\t\t} else if ($index == $this->length) {\n\t\t\t$this->addAtTail($val);\n\t\t} else if ($index < 0) {\n\t\t\t$this->addAtHead($val);\n\t\t} else {\n\t\t\t$q = $this->link;\n\t\t\t$p = $this->link->next;\n\t\t\t$i = 0;\n\t\t\twhile ($p->next &... | [
"0.70713013",
"0.6817654",
"0.66063446",
"0.6513411",
"0.64991534",
"0.63396573",
"0.6335847",
"0.616452",
"0.6090438",
"0.5920749",
"0.5909146",
"0.58708394",
"0.5807889",
"0.5804387",
"0.5775538",
"0.5775538",
"0.57629883",
"0.5761547",
"0.57472587",
"0.57466143",
"0.574041... | 0.79796714 | 0 |
Add the given data at the end of linked list. | Добавьте данные в конец связанного списка. | public function addLast(string $data): void
{
// New node
$newNode = new Node($data);
// If linked list is empty
if ($this->isEmpty()) {
// Set first node
$this->firstNode = $newNode;
} else {
// Set link from old last node to new last nod... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function addToBack($data){\n // add to head if empty\n if ($this->head == NULL) {\n $this->head = new node($data);\n // add object to end of list\n } else {\n $curr = $this->head;\n while ($curr->next != NULL) {\n $curr = $curr->next;\n if ($curr->next == ... | [
"0.7572776",
"0.7510909",
"0.7045585",
"0.6970518",
"0.6874907",
"0.67199886",
"0.65950865",
"0.6589362",
"0.65292245",
"0.65070426",
"0.6503594",
"0.6438791",
"0.63861305",
"0.63757586",
"0.6365969",
"0.6360373",
"0.6257623",
"0.6257623",
"0.6220747",
"0.62000823",
"0.617973... | 0.79067224 | 0 |
Remove node with given index of linked list. | Удалить узел с заданным индексом из связанного списка. | public function removeAt(int $index): void
{
$count = $this->count;
if ($index > $count - 1) {
throw new RuntimeException(sprintf(
'Node with index "%s" cannot be removed from linked list which has "%s" nodes.',
$index,
$count
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function remove($index)\n {\n $prev = null;\n $node = $this->head;\n\n if($index < 0){\n throw new \\LogicException(\"Index out of range: $index\");\n }\n\n for($i = 0; $i < $index && $node !== null; $i++){\n $prev = $node;\n $node = $no... | [
"0.77084136",
"0.7564076",
"0.7510192",
"0.7290734",
"0.7290734",
"0.7250377",
"0.7225157",
"0.7110584",
"0.69139963",
"0.6827777",
"0.67300457",
"0.65700656",
"0.6542714",
"0.65260446",
"0.65191656",
"0.65107137",
"0.6406956",
"0.63929015",
"0.6361767",
"0.6353597",
"0.63166... | 0.78221846 | 0 |
Remove first node of linked list. | Удалить первый узел списка связей. | public function removeFirst(): void
{
if ($this->isEmpty()) {
throw new RuntimeException('It is not possible remove first node from empty linked list.');
}
// Save to local variable and destroy first node
$firstNode = $this->firstNode;
$this->firstNode = null;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function deleteFirstNode() {\n\n $this->firstNode = $this->firstNode->next;\n $this->counter--;\n }",
"public function deleteLastNode() {\n\n if ($this->firstNode->next == null) {\n\n $this->firstNode = null;\n $this->counter--;\n } else {\n\n ... | [
"0.8015358",
"0.70046115",
"0.6955474",
"0.6789327",
"0.64152384",
"0.6375034",
"0.6307879",
"0.62946516",
"0.62896097",
"0.6131225",
"0.6104197",
"0.60772586",
"0.60600936",
"0.59440017",
"0.59322506",
"0.5898116",
"0.58897185",
"0.58702624",
"0.5864846",
"0.58344406",
"0.58... | 0.8314597 | 0 |
Remove last node of linked list. | Удалить последний узел из связанного списка. | public function removeLast(): void
{
if ($this->isEmpty()) {
throw new RuntimeException('It is not possible remove last node from empty linked list.');
}
// Destroy last node
$this->lastNode = null;
if ($this->isEmpty()) {
$this->firstNode = null;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function deleteLastNode() {\n\n if ($this->firstNode->next == null) {\n\n $this->firstNode = null;\n $this->counter--;\n } else {\n\n $previous = $this->firstNode;\n $current = $this->firstNode->next;\n\n while ($current->next != null) {\n... | [
"0.79999554",
"0.67121893",
"0.6643529",
"0.66140413",
"0.64299834",
"0.6182703",
"0.61790115",
"0.6082961",
"0.6020417",
"0.6008881",
"0.59825",
"0.58637255",
"0.58602995",
"0.5842045",
"0.5787531",
"0.5759474",
"0.5752997",
"0.57197356",
"0.5696285",
"0.5684415",
"0.5682658... | 0.8197436 | 0 |
Transforms a namespace to an array | Преобразует пространство имен в массив | public function toArray($namespace = null)
{
// If namespace is not set, get the default namespace
if ($namespace == null) {
$namespace = $this->_defaultNameSpace;
}
// Get the namespace
$ns = $this->_registry[$namespace]['data'];
$array = array();
foreach (get_object_vars( $n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function toArray($namespace = null)\r\n\t{\r\n\t\t// If namespace is not set, get the default namespace\r\n\t\tif ($namespace == null) {\r\n\t\t\t$namespace = $this->_defaultNameSpace;\r\n\t\t}\r\n\r\n\t\t// Get the namespace\r\n\t\t$ns = & $this->_registry[$namespace]['data'];\r\n\r\n\t\t$array = array();\r\n\t\t... | [
"0.7714645",
"0.7005352",
"0.6897015",
"0.6828961",
"0.676027",
"0.66680026",
"0.65812933",
"0.6538771",
"0.6462087",
"0.6401549",
"0.63848156",
"0.6348529",
"0.6316275",
"0.6316275",
"0.6316275",
"0.62849075",
"0.6270569",
"0.6221439",
"0.6221439",
"0.6221439",
"0.61974555",... | 0.74394006 | 1 |
Transforms a namespace to an object | Преобразует пространство имен в объект | public function toObject($namespace = null)
{
// If namespace is not set, get the default namespace
if ($namespace == null) {
$namespace = $this->_defaultNameSpace;
}
// Get the namespace
$ns = $this->_registry[$namespace]['data'];
return $ns;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function toObject($namespace = null)\r\n\t{\r\n\t\t// If namespace is not set, get the default namespace\r\n\t\tif ($namespace == null) {\r\n\t\t\t$namespace = $this->_defaultNameSpace;\r\n\t\t}\r\n\r\n\t\t// Get the namespace\r\n\t\t$ns = & $this->_registry[$namespace]['data'];\r\n\r\n\t\treturn $ns;\r\n\r\n\t}",... | [
"0.75711435",
"0.6313325",
"0.6299111",
"0.6299111",
"0.6299111",
"0.6299111",
"0.6299111",
"0.622082",
"0.62058306",
"0.62012756",
"0.6173785",
"0.6145897",
"0.611151",
"0.6109082",
"0.6097143",
"0.60254735",
"0.5955933",
"0.57012093",
"0.5697534",
"0.5681025",
"0.56664824",... | 0.7311622 | 1 |
Factory method for creating a reading element. | Фабричный метод для создания элемента чтения. | protected function new_reading()
{
return new JMDictReadingElement();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function newElement();",
"abstract protected function read();",
"abstract protected function read();",
"abstract protected function read();",
"function create_element( $name ){\n return new xNode( $name,XNODE_TYPE_ELEM, $this ); \n }",
"public static function factory()\n\t{\n\t\t/*\n\t\t * Teq... | [
"0.5836232",
"0.56532896",
"0.56532896",
"0.56532896",
"0.5602231",
"0.55801076",
"0.55612063",
"0.5489677",
"0.54336023",
"0.5401356",
"0.53767824",
"0.5350216",
"0.53387654",
"0.53387654",
"0.5312346",
"0.5304161",
"0.52978027",
"0.52964044",
"0.5291961",
"0.52696383",
"0.5... | 0.7164047 | 0 |
Factory method for creating a kanji element. | Фабричный метод для создания элемента канижи. | protected function new_kanji()
{
return new JMDictKanjiElement();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function kanji() {\n\t\t$this->filter('kanji');\n\t}",
"function ciniki_writingcatalog_maps($ciniki) {\n\n $maps = array();\n $maps['item'] = array(\n 'typecode'=>array(\n ''=>'unknown',\n '0'=>'unknown',\n '30'=>'book',\n '31'=>'shortstory',\n ... | [
"0.6609231",
"0.49886218",
"0.4935303",
"0.4864706",
"0.48574424",
"0.48574424",
"0.48487228",
"0.48413414",
"0.4657719",
"0.46440524",
"0.46231565",
"0.46126115",
"0.4612081",
"0.46069863",
"0.45844764",
"0.45775974",
"0.45522046",
"0.45462355",
"0.45314237",
"0.4526155",
"0... | 0.8328931 | 0 |
Creates a client for the given arguments. This method can be overridden in subclasses as needed. | Создает клиента для заданных аргументов. Этот метод может быть переопределен в подклассах по необходимости. | protected function createClient(array $args)
{
return new $args['client_class']($args);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function create(array $args = [])\n {\n static $required = [\n 'store',\n 'environment',\n 'api_provider',\n 'endpoint_provider',\n ];\n\n static $defaultArgs = [\n 'credentials' => [],\n 'scheme' => '... | [
"0.7466663",
"0.7390803",
"0.7102528",
"0.7005842",
"0.68918216",
"0.68238556",
"0.6800288",
"0.6794146",
"0.6538675",
"0.6525422",
"0.6508005",
"0.6505717",
"0.6505527",
"0.6491341",
"0.6478772",
"0.64333534",
"0.6408162",
"0.63717985",
"0.6306415",
"0.62681776",
"0.6224597"... | 0.76057744 | 0 |
Returns the cart total. | Возвращает общую стоимость корзины. | public function total()
{
return $this->cart_contents[ $this->cart_name ]['cart_total'];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getCartTotal()\n {\n $total = 0;\n foreach ($this->cartItems as $item) {\n $total += $item->getAmount();\n }\n return $total;\n }",
"public function total()\n {\n return $this->cart_contents['cart_total'];\n }",
"public function get_cart... | [
"0.88309443",
"0.8807955",
"0.8727991",
"0.8711747",
"0.87103444",
"0.8638253",
"0.82481617",
"0.8215614",
"0.81983477",
"0.8192304",
"0.81860197",
"0.81468105",
"0.8139706",
"0.8136431",
"0.8080457",
"0.80510736",
"0.80209416",
"0.80186045",
"0.79970706",
"0.7980289",
"0.796... | 0.8875874 | 0 |
Returns the cart contents. | Возвращает содержимое корзины. | public function contents()
{
// Get the cart contents.
//
$cart = $this->cart_contents[ $this->cart_name ];
// Remove these so they don't create a problem when showing the cart table.
//
unset($cart['total_items']);
unset($cart['cart_total']);
// Return the cart contents.
//
return $... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function contents()\n {\n return CartContents::collect(static::cart()->fresh()->contents);\n }",
"function contents()\n\t{\n\t\treturn $this->_cart_contents['items'];\n\t}",
"public function getCartContent()\n {\n $cartContent = $this->getCartModel()->content();\n return $c... | [
"0.8553091",
"0.8470064",
"0.841108",
"0.841108",
"0.84053326",
"0.81853104",
"0.80116177",
"0.7951375",
"0.7608718",
"0.75705624",
"0.74552464",
"0.7411101",
"0.7406797",
"0.7307238",
"0.7261854",
"0.7233571",
"0.7214329",
"0.71680105",
"0.71680105",
"0.70934814",
"0.7084043... | 0.8771198 | 0 |
Checks if an item has options. It returns 'true' if the rowid passed to this function correlates to an item that has options associated with it, otherwise returns 'false'. | Проверяет, имеет ли товар опции. Возвращает 'true', если rowid, переданный в эту функцию, соответствует товару, у которого есть связанные с ним опции, иначе возвращает 'false'. | public function has_options($rowid = null)
{
// Check if this product have options.
//
if ( ! isset($this->cart_contents[ $this->cart_name ][ $rowid ]['options']) or count($this->cart_contents[ $this->cart_name ][ $rowid ]['options']) === 0)
{
// We don't have options for this item.
//
return ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function hasOption();",
"public function hasOption($key);",
"function _item_in_cart($entry_id, $item_options = FALSE, $row_id = FALSE, $check_item_options = TRUE)\n\t{\n\t\t$this->_session_start();\n\n\t\t$items = $this->_get_items();\n\n\t\tif ($row_id !== FALSE && isset($items[$row_id]))\n\t\t{\n\t\t\... | [
"0.6800605",
"0.67320704",
"0.65432024",
"0.6503272",
"0.63940376",
"0.63940376",
"0.6333506",
"0.6313647",
"0.6289125",
"0.6282007",
"0.6274613",
"0.62738925",
"0.6271936",
"0.62466043",
"0.62394375",
"0.62384474",
"0.6228875",
"0.62030125",
"0.62019527",
"0.6196848",
"0.617... | 0.7804017 | 0 |
Returns an array of options, for a particular product row ID. | Возвращает массив вариантов для определенного идентификатора строки продукта. | public function product_options($rowid = null)
{
// Check if this product have options.
//
if ( ! $this->has_options($rowid))
{
// No options, return an empty array.
//
return array();
}
// Return this product options.
//
return $this->cart_contents[ $this->cart_name ][ $rowid ][... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function get_option_by_id_all($product_id)\n {\n\n return $this->db->from($this->_stock)\n ->where('product_id', $product_id)\n ->join($this->option->table() . \" A \", \"A.id = $this->_stock.option_id\")\n ->join($this->option->table() . \" B \", \"B.id = $this->_stock.o... | [
"0.6880997",
"0.67607695",
"0.65427965",
"0.6528778",
"0.6519883",
"0.6511004",
"0.6315502",
"0.62748325",
"0.6228501",
"0.6226408",
"0.61687803",
"0.6162693",
"0.6143921",
"0.6112737",
"0.60949445",
"0.6091967",
"0.6082529",
"0.6059203",
"0.6052321",
"0.6016377",
"0.60140365... | 0.7599353 | 0 |
Returns Zend_Search_Lucene instance for given subroot every subroot has it's own instance | Возвращает экземпляр Zend_Search_Lucene для заданного подкорня, каждый подкорень имеет свой собственный экземпляр | public static function getInstance(Kwf_Component_Data $subroot)
{
while ($subroot) {
if (Kwc_Abstract::getFlag($subroot->componentClass, 'subroot')) {
break;
}
$subroot = $subroot->parent;
}
if (!$subroot) $subroot = Kwf_Component_Data_Root... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function _initLucene() {\n\ttry {\n\t // load config\n\t $this->bootstrap('config');\n\n\t // get config\n\t $config = Knowledgeroot_Registry::get('config');\n\n\t try {\n\t\t// open lucene index\n\t\t$lucene = Zend_Search_Lucene::open($config->lucene->save_path);\n\t } catch (Zend_Sear... | [
"0.55061954",
"0.53702766",
"0.5304742",
"0.52196866",
"0.52154654",
"0.5176434",
"0.5167998",
"0.5166824",
"0.51657265",
"0.51421714",
"0.5084948",
"0.50761884",
"0.50166017",
"0.49945903",
"0.4993737",
"0.49213934",
"0.48415563",
"0.48242822",
"0.4822541",
"0.48121575",
"0.... | 0.7263097 | 0 |
Crea un nuevo modelo PrioridadTarea. | Создай новый модель PrioridadTarea. | public function actionCrear()
{
$model = new PrioridadTarea();
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['detalle', 'id' => $model->idPrioridadTarea]);
} else {
return $this->render('crear', [
'model' =>... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function trtarea_create()\n {\n\n //TODO you code here\n\t\t$this->load->model('district_model', null, true);\n\t\t$this->load->model('division_model', null, true); \t\n\t\t$this->load->model('area_model', null, true);\n\t\n\t\tif (isset($_POST['save']))\n\t\t{\n\t\t\tif ($insert_id = $this->saveT... | [
"0.6047909",
"0.60175437",
"0.59310234",
"0.5835964",
"0.58259857",
"0.5771132",
"0.576105",
"0.5755868",
"0.57168806",
"0.5678474",
"0.56456345",
"0.5622408",
"0.56019163",
"0.55501765",
"0.55470896",
"0.55455333",
"0.55407774",
"0.5520116",
"0.5511797",
"0.5458313",
"0.5450... | 0.72627914 | 0 |
/ params: $rel_path path of the image, relative to the site's root returns: associative array containing the keys: "color": html hex representation of the mean color "brightness" 0255 integer representation of the image's mean brightness basically it works like this: resample the image to a size of 1x1 pixel, so that t... | / params: $rel_path путь изображения, относительно корня сайта, возвращает: ассоциативный массив, содержащий ключи: "color": html-представление в формате шестнадцатеричного кода среднего цвета "brightness" 0255 целочисленное представление средней яркости изображения в основном это работает так: пересэмплируйте изображе... | function imageMeanColor($rel_path) {
global $docroot;
$impath = $docroot . $rel_path;
$image = imageCreateFromAny($impath);
list($width, $height) = getimagesize($impath);
$tmp_img = ImageCreateTrueColor(1,1);
ImageCopyResampled($tmp_img,$image,0,0,0,0,1,1,$width,$height);
$rgb = ImageColorAt($tmp_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function _get_image_color($im, $r, $g, $b) {\n\n $c = imagecolorexact($im, $r, $g, $b);\n\n if ($c != -1)\n return $c;\n\n $c = imagecolorallocate($im, $r, $g, $b);\n\n if ($c != -1)\n return $c;\n\n return imagecolorclosest($im, $r, $g, $b);\n }",
"fun... | [
"0.599479",
"0.5992528",
"0.5942956",
"0.5891563",
"0.57784736",
"0.57676184",
"0.57611865",
"0.5747022",
"0.5597607",
"0.55519325",
"0.55215794",
"0.549637",
"0.5485878",
"0.5480925",
"0.547564",
"0.54725766",
"0.5469894",
"0.5398446",
"0.5391531",
"0.53799665",
"0.5365435",... | 0.81209016 | 0 |
Check if First Letter is in array $vowels | Проверьте, находится ли первая буква в массиве $vowels | protected function isFirstInVowels($word)
{
$latin_word = $this->getArrayFromLatinWord($word);
$first_element = $this->getArrFirstLetterOfLatinWord($latin_word);
return in_array($first_element[0], $this->vowels);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract public function isVowel($word, $index);",
"private function isVowel($char)\n {\n return in_array(strtolower($char), self::$vowel);\n }",
"function in_array_insensetive($nedle,$haystack)\n{\n\treturn in_array(strtolower($needle),array_map('strtolower',$haystack));\n}",
"function is_chain... | [
"0.6685009",
"0.636366",
"0.6308498",
"0.62676716",
"0.6139225",
"0.61003196",
"0.6054081",
"0.5964238",
"0.5953456",
"0.5896216",
"0.5890642",
"0.58479",
"0.58409274",
"0.5822704",
"0.58186316",
"0.5815572",
"0.58079344",
"0.57829255",
"0.57469803",
"0.57341003",
"0.5687168"... | 0.7071427 | 0 |
Determine first phase of word is Consonant or Cluster | Определите первую фазу слова — согласный или группа согласных | protected function isFirstIsConsonantOrCluster($word)
{
$latin_word = $this->getArrayFromLatinWord($word);
if (count($this->getArrayFromLatinWord($word)) > 2) {
if (!in_array($latin_word[0], $this->vowels) && !in_array($latin_word[1], $this->vowels) && in_array($latin_word[2], $this->vo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function is_consonant( $word, $pos ){\n // Sanity checking $pos\n if ( abs($pos) > strlen($word) ) {\n if ( $pos < 0 ) {\n // Points \"too far back\" in the string. Set it to beginning.\n $pos = 0;\n } else {\n // Points \"too far for... | [
"0.632722",
"0.58893317",
"0.5600285",
"0.54505897",
"0.5361748",
"0.53586555",
"0.5193345",
"0.5038151",
"0.49807808",
"0.48125523",
"0.47904193",
"0.4778717",
"0.47571638",
"0.47564518",
"0.47456846",
"0.47074765",
"0.46514973",
"0.4631337",
"0.4619039",
"0.46116024",
"0.45... | 0.79805315 | 0 |
Determine first letter is Y or not | Определить, является ли первая буква Y или нет | protected function isFirstY($word)
{
$first_element = $this->getArrFirstLetterOfLatinWord(
$this->getArrayFromLatinWord(
$word
)
);
if (strtolower($first_element[0]) == 'y') {
return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getbool($str)\n{\n\t$c1 = strtoupper(substr($str, 0, 1));\n\t$c2 = strtoupper(substr($str, 1, 1));\n\tif ($c1 == 'Y' || $c1 == 'T' || $c1 == '1' || $c2 == 'N' || $c1 == 'A')\n\t\treturn 1;\n\treturn 0;\n}",
"public static function yn2tf($a_yn)\n\t{\n\t\tif(strtolower($a_yn) == \"y\")\n\t\t{\n\t\t\tretur... | [
"0.6462798",
"0.6338597",
"0.6027323",
"0.5888245",
"0.56753266",
"0.5578977",
"0.5567908",
"0.5534994",
"0.5523784",
"0.54916567",
"0.54546213",
"0.5398437",
"0.537488",
"0.5369887",
"0.53574955",
"0.53156656",
"0.5248382",
"0.524761",
"0.52406114",
"0.52391016",
"0.52347344... | 0.7162396 | 0 |
Determine word is contains Y or not | Определить, содержит ли слово Y или нет | protected function isContainsY($word)
{
$latin_word = $this->getArrayFromLatinWord($word);
if (count($this->getArrayFromLatinWord($word)) == 2 && $latin_word[1] == 'y') {
$suffix = $latin_word[0] . 'ay';
array_shift($latin_word);
$latin_word = implode('', $latin_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function containsWord($str, $word){\n\treturn !!preg_match('#\\\\b' . preg_quote($word, '#') . '\\\\b#i', $str);\n}",
"protected function isFirstY($word)\n {\n $first_element = $this->getArrFirstLetterOfLatinWord(\n $this->getArrayFromLatinWord(\n $word\n )\n ... | [
"0.63991773",
"0.6274501",
"0.6160698",
"0.60720336",
"0.59992266",
"0.59829533",
"0.59457296",
"0.59297067",
"0.58712304",
"0.5857863",
"0.5851435",
"0.58004314",
"0.5768476",
"0.57288396",
"0.5699529",
"0.56853384",
"0.5685154",
"0.5670127",
"0.5669659",
"0.5639016",
"0.563... | 0.7310507 | 0 |
Register all themes with activating them | Зарегистрировать все темы с активацией их | private function registerAllThemes($active_theme = null)
{
$directories = $this->app['files']->directories(config('cms.themes.paths'));
foreach ($directories as $directory) {
if(preg_match('/'.$active_theme.'/',$directory)) {
Appearances::registerPath($directory, true);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function activate_theme() {\n \n // Activate theme\n (new MidrubBaseAdminCollectionUserHelpers\\Themes)->activate();\n \n }",
"function activate_core_themes()\n{\n include_once(PHPWG_ROOT_PATH.'admin/include/themes.class.php');\n $themes = new themes();\n foreach ($themes... | [
"0.71521544",
"0.70318204",
"0.6673933",
"0.6640615",
"0.66394246",
"0.66029996",
"0.6547205",
"0.65251297",
"0.6515663",
"0.6432725",
"0.6431247",
"0.64055985",
"0.63847804",
"0.6381736",
"0.63790756",
"0.63773584",
"0.63731456",
"0.63690525",
"0.6360842",
"0.633835",
"0.631... | 0.7598052 | 0 |
Sets mail Plain text Body | Наборы электронной почты Текстовое тело | public function setBody($body){
$this->_mail->Body = $body;
$this->_mail->AltBody = '';
$this->_mail->IsHtml(false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function setMailBody() \n {\n // Building html-mail\n if ( $this->mailTextContentPersonal && $this->personalization ) \n {\n $plainText = new ezcMailText( $this->mailTextContentPersonal, $this->charset );\n } \n else \n {\n $plainText = new ezcMail... | [
"0.8097379",
"0.78846174",
"0.76360154",
"0.76169884",
"0.7595197",
"0.747418",
"0.74006903",
"0.7175785",
"0.7163024",
"0.713228",
"0.709707",
"0.709047",
"0.709047",
"0.7076703",
"0.7049094",
"0.70488477",
"0.7035497",
"0.7033428",
"0.70248795",
"0.69967896",
"0.6978508",
... | 0.7992079 | 1 |
Determine whether a 'term_order' field is present | Определите, присутствует ли поле 'term_order' | public function tableHasTermOrderField()
{
if (!is_null(self::$_tableHasTermOrder)) {
return self::$_tableHasTermOrder;
}
try {
self::$_tableHasTermOrder = $this->_getReadAdapter()
->fetchOne('SHOW COLUMNS FROM ' . $this->getMainTable() . ' WHERE Field = \'term_order\'')
!== false;
}
catch (... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function hasOrder()\r\n {\r\n return !empty($this->fields['Order']['value']);\r\n }",
"function hasOrder() {\n\t\treturn $this->_order !== null;\n\t}",
"public function hasTerm(){\r\n return $this->_has(1);\r\n }",
"public function isOrdered()\r\n\t{\r\n\t\tif ($this->ordered !== ... | [
"0.6938512",
"0.6267192",
"0.6235622",
"0.62037444",
"0.60186124",
"0.5869115",
"0.58380276",
"0.58215725",
"0.57941335",
"0.57880855",
"0.5774876",
"0.57607836",
"0.5740578",
"0.5712532",
"0.5701701",
"0.5697885",
"0.5687974",
"0.5685638",
"0.5682309",
"0.56706864",
"0.56647... | 0.78021985 | 0 |
Units_GetUnitByCode get unit by Name | Units_GetUnitByCode получает единицу по имени | function Units_GetUnitByCode($vCode, $vAllInfo = false)
{
return(Units_GetUnitByName(Units_GetNameByCode($vCode), $vAllInfo));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getUnit()\n {\n \treturn $this->get(['unit_code','unit_symbol']);\n }",
"public function getUnitName();",
"public function getUnitsOf(string $featureCode);",
"public function getUnitOf(string $className): Unit\n {\n return $this->units[$className];\n }",
"public functi... | [
"0.70069975",
"0.69446075",
"0.6647489",
"0.6592802",
"0.6512683",
"0.63970023",
"0.63970023",
"0.63681424",
"0.63337463",
"0.6250142",
"0.62349063",
"0.61735165",
"0.61597025",
"0.61597025",
"0.6075952",
"0.6067038",
"0.6043559",
"0.5782657",
"0.575548",
"0.5735797",
"0.5733... | 0.8292479 | 0 |
Units_GetAll get all units | Units_GetAll получает все единицы измерения | function Units_GetAll($vAllInfo = false)
{
if ($vAllInfo)
{
$vSQL = 'select * from units';
}
else
{
$vSQL = "select * from units where field in ('name','type','code','buyable','className','iconurl','market','cash','cost','subtype','growTime','coinYield','action','limitedEnd','requiredLevel','crop','sizeX','siz... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function get_all_units($params = array())\n {\n $this->db->order_by('unit_name', 'desc');\n if(isset($params) && !empty($params))\n {\n $this->db->limit($params['limit'], $params['offset']);\n }\n return $this->db->get('tbl_unit')->result_array();\n }",
"functi... | [
"0.7698332",
"0.76940584",
"0.7528187",
"0.746539",
"0.74345464",
"0.71901417",
"0.7129855",
"0.712592",
"0.6855366",
"0.68028647",
"0.67811847",
"0.67464316",
"0.6694531",
"0.666126",
"0.66591054",
"0.6656574",
"0.66551715",
"0.6649815",
"0.65884024",
"0.6581372",
"0.6561168... | 0.7751292 | 0 |
Units_GetByType get all units of type $vType | Units_GetByType получает все единицы типа $vType | function Units_GetByType($vType, $vAllInfo = false)
{
if ($vAllInfo)
{
$vSQL = 'select * from units where name in (select name from units where field="type" and content="' . $vType . '")';
}
else
{
$vSQL = "select * from units where field in ('name','type','code','buyable','class','iconurl','market','cash','co... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getUnitsForType($type);",
"static public function unitTypes(){\n $tmp = Steam_MeasurementSystem::getInstance();\n return $tmp->unitTypes;\n }",
"function getUnits($kind, $uid)\n{\n \treturn \\dal\\unit\\getUnits($kind, $uid);\n}",
"function Units_GetByField($vField, $vType, ... | [
"0.7739074",
"0.66070384",
"0.6543",
"0.6506052",
"0.63696206",
"0.61130166",
"0.60831445",
"0.59381413",
"0.5909027",
"0.59076774",
"0.575064",
"0.5681736",
"0.5655733",
"0.5604453",
"0.56002635",
"0.5597028",
"0.5574626",
"0.5574626",
"0.556618",
"0.55199015",
"0.54974",
... | 0.7840672 | 0 |
Units_GetByClass get all units of type $vType | Units_GetByClass получает все единицы типа $vType | function Units_GetByClass($vClass, $vAllInfo = false)
{
if ($vAllInfo)
{
$vSQL = 'select * from units where name in (select name from units where field="className" and content="' . $vClass . '")';
}
else
{
$vSQL = "select * from units where field in ('name','type','code','buyable','class','iconurl','market','c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getUnitsForType($type);",
"function Units_GetByType($vType, $vAllInfo = false)\n{\n\tif ($vAllInfo)\n\t{\n\t\t$vSQL = 'select * from units where name in (select name from units where field=\"type\" and content=\"' . $vType . '\")';\n\t}\n\telse\n\t{\n\t\t$vSQL = \"select * from units where field ... | [
"0.7059892",
"0.659642",
"0.62141323",
"0.61442274",
"0.59435654",
"0.5794101",
"0.5789185",
"0.5698698",
"0.566271",
"0.54908067",
"0.5423575",
"0.5402741",
"0.5358051",
"0.5316368",
"0.530263",
"0.5274898",
"0.5252853",
"0.5217043",
"0.5201021",
"0.51953804",
"0.514778",
... | 0.70633674 | 0 |
Crafts_GetByCode get all crafts of code $vCode | Crafts_GetByCode получает все крафты по коду $vCode | function Crafts_GetByCode($vCode)
{
$vSQL = "select * from crafting where name in (select name from crafting where field='id' and content='" . $vCode . "')";
$vResult = @$_SESSION['vDataDB']->query($vSQL);
while ($vRow = @$vResult->fetchArray(SQLITE3_ASSOC))
{
if (isset($vReturn[$vRow['field']])) {
$vReturn[$v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function Quests_GetByCode($vCode)\n{\n\t$vSQL = \"select * from quests where name in (select name from quests where field='id' and content='\" . $vCode . \"')\";\n\t$vResult = @$_SESSION['vDataDB']->query($vSQL);\n\twhile ($vRow = @$vResult->fetchArray(SQLITE3_ASSOC))\n\t{\n\t\tif (isset($vReturn[$vRow['field']]))... | [
"0.5808289",
"0.55889297",
"0.5380916",
"0.53076124",
"0.52356076",
"0.51551944",
"0.51136774",
"0.5041568",
"0.5041568",
"0.501496",
"0.4972714",
"0.49316314",
"0.49037185",
"0.477347",
"0.4728488",
"0.46645188",
"0.46524274",
"0.46376663",
"0.4624236",
"0.46099454",
"0.4597... | 0.7541058 | 0 |
Storage_GetByName get all storage of code $vName | Storage_GetByName получает все хранилища кода $vName | function Storage_GetByName($vName)
{
$vSQL = "select * from storage where name in (select name from storage where field='name' and content='" . $vName . "')";
$vResult = @$_SESSION['vDataDB']->query($vSQL);
while ($vRow = @$vResult->fetchArray(SQLITE3_ASSOC))
{
if (isset($vReturn[$vRow['field']])) {
$vReturn[$... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getStorage() ;",
"public function getStorage();",
"public function getStorage();",
"public function getStorage();",
"public function getStorage();",
"public function getStorage();",
"public static function getStorage() {}",
"public function getStorage() {}",
"public function getStorage() {... | [
"0.66182435",
"0.65908927",
"0.65908927",
"0.65908927",
"0.65908927",
"0.65908927",
"0.6447139",
"0.6362461",
"0.6361765",
"0.6361765",
"0.613066",
"0.6067533",
"0.59271395",
"0.5864352",
"0.58491683",
"0.58263034",
"0.58048093",
"0.57320684",
"0.571283",
"0.568832",
"0.56771... | 0.7816096 | 0 |
Quests_GetAll get all quests | Quests_GetAll получение всех квестов | function Quests_GetAll()
{
$vSQL = 'select * from quests';
$vResult = @$_SESSION['vDataDB']->query($vSQL);
while ($vRow = @$vResult->fetchArray(SQLITE3_ASSOC))
{
$vReturn[$vRow['name']][$vRow['field']] = $vRow['content'];
}
return($vReturn);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function all() : Questions;",
"public function getAllQuestions(){\n\t\t$query = $this->db->get('question');\n\t\treturn $query->result();\n\t}",
"function get_all_survey_questions(){\n global $db;\n $stmt = $db->prepare(\"SELECT * FROM survey_questions\");\n $stmt->execute();\n return $stmt-... | [
"0.6704389",
"0.66113037",
"0.6357142",
"0.6301573",
"0.6261651",
"0.62592566",
"0.6244783",
"0.62078065",
"0.61907595",
"0.61865634",
"0.61845464",
"0.61588836",
"0.611709",
"0.61162317",
"0.6111462",
"0.60845155",
"0.6080704",
"0.6073822",
"0.6069598",
"0.6064365",
"0.60587... | 0.77254695 | 0 |
Creates a new Kategorija model. If creation is successful, the browser will be redirected to the 'view' page. | Создает новый объект модели Kategorija. Если создание успешно, браузер будет перенаправлен на страницу просмотра. | public function actionCreate()
{
$model = new Kategorija();
if ($model->load(Yii::$app->request->post()) && $model->save()) {
Yii::$app->getSession()->setFlash('success', Yii::t('app', 'Kategorija je kreirana.'));
return $this->redirect(['create', 'id' => $model->katID]);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function actionCreate()\n {\n $model = new Kategori();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n Yii::$app->session->setFlash('success', 'Kategori Buku berhasil ditambahkan');\n return $this->redirect(['view', 'id' => $model->id]);\n ... | [
"0.83816445",
"0.7921566",
"0.7838714",
"0.7718355",
"0.7633045",
"0.75982475",
"0.7571439",
"0.7544579",
"0.75064725",
"0.74854636",
"0.748333",
"0.7467748",
"0.7464825",
"0.74392676",
"0.7429726",
"0.74208903",
"0.74208903",
"0.74208903",
"0.7399033",
"0.73924136",
"0.73781... | 0.8353612 | 1 |
Get Organization Status names array | Получить массив имен статусов организации | public static function getStatusArray()
{
return [
static::STATUS_DISABLED => Module::t('organization', 'STATUS_DISABLED'),
static::STATUS_ACTIVE => Module::t('organization', 'STATUS_ACTIVE'),
];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testgetStatusNames()\n {\n $this->assertEquals(Status::getStatusNames()[1], 'Draft');\n $this->assertEquals(Status::getStatusNames()[2], 'Submitted');\n $this->assertEquals(Status::getStatusNames()[3], 'Authorised');\n $this->assertEquals(Status::getStatusNames()[4], ... | [
"0.66668063",
"0.6640496",
"0.65331465",
"0.649368",
"0.6492959",
"0.64765644",
"0.6454387",
"0.644671",
"0.64304066",
"0.6426488",
"0.6417033",
"0.6375826",
"0.63597935",
"0.63423556",
"0.6339273",
"0.63329816",
"0.6276009",
"0.6259116",
"0.6256161",
"0.6256161",
"0.6240965"... | 0.7217468 | 0 |
Get Organization status name | Получить имя статуса организации | public function getStatusName()
{
return ArrayHelper::getValue(static::getStatusArray(), $this->status);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getStatusName() {\n\t\t$status = CalendarEvent::getStatus();\n\t\treturn $status[$this->getStatus()];\n\t}",
"public function getStatusName(): string\n {\n switch ($this->status) {\n case -1:\n return \"Rejected\";\n case 0:\n return \... | [
"0.7399071",
"0.73245025",
"0.71887696",
"0.71537614",
"0.712692",
"0.71184474",
"0.69705504",
"0.69384223",
"0.6907855",
"0.68915105",
"0.68506926",
"0.68500954",
"0.68500954",
"0.6848861",
"0.68476677",
"0.6826273",
"0.68204135",
"0.6816195",
"0.6805513",
"0.675601",
"0.674... | 0.7432776 | 0 |
Displays a single Missions model. | Показывает один модель Missions. | public function actionView($id)
{
$mission = Missions::findOne($id);
return $this->render('view', array('mission' => $mission));
// return $this->render('view', [
// 'model' => $this->findModel($id),
// ]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function index()\n {\n $missions = Mission::all();\n return view('mission.index', compact('missions'));\n }",
"public function show()\n {\n\n $Missions=Mission::all();\n $Organisations=Organisation::all();\n $user=Auth::user();\n $Missions=Mission::all();... | [
"0.7070849",
"0.69473004",
"0.6859908",
"0.6783377",
"0.668736",
"0.6651577",
"0.6603774",
"0.6565503",
"0.6548924",
"0.64352435",
"0.6399761",
"0.63937616",
"0.62277454",
"0.6204874",
"0.6181815",
"0.6139076",
"0.6139076",
"0.6139076",
"0.61205137",
"0.61175203",
"0.61175203... | 0.76342887 | 0 |
Creates a new Missions model. If creation is successful, the browser will be redirected to the 'view' page. | Создает новый объект Missions. Если создание успешно, браузер будет перенаправлен на страницу просмотра. | public function actionCreate()
{
$model = new Missions();
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->id]);
} else {
return $this->render('create', [
'model' => $model,
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function actionCreate()\n {\n $model = new VehicleManagement();\n $model->aliyeingiza = Yii::$app->user->identity->username;\n $model->muda = date('Y-m-d H:i:s');\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view',... | [
"0.70217514",
"0.698438",
"0.6876737",
"0.6851674",
"0.68001634",
"0.67756325",
"0.6771452",
"0.67700434",
"0.676512",
"0.67505145",
"0.67450917",
"0.67386794",
"0.6721619",
"0.6716512",
"0.6671333",
"0.6644459",
"0.66440547",
"0.6637867",
"0.66190284",
"0.66184086",
"0.66135... | 0.8884554 | 0 |
Finds the Missions model based on its primary key value. If the model is not found, a 404 HTTP exception will be thrown. | Находит модель Missions по значению первичного ключа. Если модель не найдена, будет выброшено исключение HTTP 404. | protected function findModel($id)
{
if (($model = Missions::findOne($id)) !== null) {
return $model;
} else {
throw new NotFoundHttpException('The requested page does not exist.');
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function findModel($id)\n\t{\n\t\tif (($model = Task::findOne($id)) !== null) {\n\t\t\treturn $model;\n\t\t} else {\n\t\t\tthrow new HttpException(404, 'The requested page does not exist.');\n\t\t}\n\t}",
"public function loadModel($id)\n\t{\n\t\t$model=Preadmission::model()->findByPk($id);\n\t\tif($mo... | [
"0.66555995",
"0.65655136",
"0.6479837",
"0.64576024",
"0.6399199",
"0.6365957",
"0.6365868",
"0.6347719",
"0.6341536",
"0.6298436",
"0.6291481",
"0.6286613",
"0.62559956",
"0.62495226",
"0.62402964",
"0.62170166",
"0.621627",
"0.621212",
"0.6210539",
"0.6196276",
"0.6193125"... | 0.7035241 | 0 |
gets the noAvatar image | получает изображение noAvatar | public static function noAvatar()
{
$appl = JFactory::getApplication();
$component = $appl->input->getCmd('component');
$config = ccommentConfig::getConfig($component);
$template = $config->get('template.template');
$jTemplate = $appl->getTemplate();
$templateMedia = JPATH_BASE . '/media/com_comme... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getAvatarImage() {\n \t$avatar = $this->getUid() . \".jpg\";\n \tif ( file_exists($this->getAvatarAbsPath() . \"/\" . $avatar) ) return $this->AVATAR_DIR.\"/\".$avatar;\n else return 'typo3conf/ext/wpj/Resources/Public/img/weimarpedia_platzhalter_logo.gif';\n }",
"function getEmpt... | [
"0.7535377",
"0.74965096",
"0.7325502",
"0.71429986",
"0.7119305",
"0.70921344",
"0.7070627",
"0.7054856",
"0.7007052",
"0.69694835",
"0.69595504",
"0.6958881",
"0.6957861",
"0.6950765",
"0.6950765",
"0.6921085",
"0.6914031",
"0.6905549",
"0.6899234",
"0.6885025",
"0.68798923... | 0.81701183 | 0 |
Checks if $link is a valid URL | Проверяет, является ли $link действительным URL | public function isValid($link) {
if ( !(isset($link[0]) && is_string($link) && strpos($link, 'http') === 0 && GeneralUtility::isValidUrl($link)) ) {
$this->addError('There was a problem with linkUri', 40750133704);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function is_valid_link($link)\n {\n // swiped from here: http://www.codezuzu.com/2015/03/how-to-validate-linkurl-in-php/\n $ch = curl_init($link);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_HEADER, true); // Include the headers\n ... | [
"0.811764",
"0.7895477",
"0.74336493",
"0.7315041",
"0.7305665",
"0.72269094",
"0.71866745",
"0.71478754",
"0.70995843",
"0.7086149",
"0.7077987",
"0.70605004",
"0.70532256",
"0.7018311",
"0.7013331",
"0.7006243",
"0.7000711",
"0.70001984",
"0.6967123",
"0.6961635",
"0.695900... | 0.86849225 | 0 |
Get the value of reg_date. | Получите значение reg_date. | public function getReg_date()
{
return $this->reg_date;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getRegDate()\n {\n return $this->reg_date;\n }",
"public function getRegDate()\n\t{\n\t\treturn $this->reg_date;\n\t}",
"public function getUser_Regdate()\n {\n return $this->user_regdate;\n }",
"public function getFieldRegisterDate()\n {\n return $this->fi... | [
"0.8022665",
"0.7988974",
"0.73533624",
"0.7055104",
"0.69662726",
"0.6868883",
"0.68580407",
"0.6820738",
"0.6618916",
"0.661826",
"0.65561175",
"0.64531714",
"0.63757133",
"0.6372249",
"0.6308915",
"0.6299319",
"0.6271917",
"0.6263802",
"0.6244699",
"0.62407535",
"0.6220744... | 0.8059761 | 0 |
anonimizeIp masquerade last digit of IP address. With bad ip argument return 0.0.0.0 Support IPv4, Ipv6 and IPv4 Compatibility. | anonimizeIp маскирует последнюю цифру IP-адреса. При передаче некорректного ip возвращается 0.0.0.0. Поддерживается IPv4, IPv6 и IPv4-совместимые адреса. | function anonimizeIp(string $ip) : string
{
if (isIPv4($ip)) {
return anonimizeIpv4($ip);
} elseif (isIPv4Compatibility($ip)) {
return anonimizeIpv4Compatibility($ip);
}
return anonimizeIpv6($ip);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected static function _anonymizeIp($ip) {\n $strlen = strlen($ip);\n if ( $strlen > 6 ) :\n $divider = (int)floor($strlen / 4) + 1;\n $ip = substr_replace($ip, '…', $divider, $strlen - (2 * $divider));\n endif;\n\n return $ip;\n }",
"function anonimizeIpv4(string $ip):string\n{\n if... | [
"0.7538132",
"0.74731237",
"0.7134026",
"0.705876",
"0.70529443",
"0.7049858",
"0.6985056",
"0.6877558",
"0.66881657",
"0.66743",
"0.66541",
"0.6643364",
"0.66031706",
"0.65627277",
"0.6498722",
"0.648385",
"0.64733464",
"0.64723516",
"0.64517474",
"0.64336747",
"0.64294046",... | 0.7838928 | 0 |
masquerade last digit of IP address. With bad ip argument return 0.0.0.0 | Маскировать последнюю цифру IP-адреса. Возвращать 0.0.0.0 при неправильном ip аргументе | function anonimizeIpv4(string $ip):string
{
if (isIPv4($ip)) {
return substr($ip, 0, strrpos($ip, ".") + 1) . '0';
}
return '0.0.0.0';
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function cleanIP($ip) {\r\n return preg_replace('~(^|[.:])0{1,2}(\\d)~','$1$2',$ip);\r\n }",
"function anonimizeIpv6(string $ip):string\n{\n if (strrpos($ip, \":\") > 0) {\n return substr($ip, 0, strrpos($ip, \":\") + 1) . '0';\n }\n return '0.0.0.0';\n}",
"function _reverse_i... | [
"0.73727363",
"0.69045293",
"0.6872364",
"0.6842937",
"0.68256783",
"0.6819117",
"0.67457676",
"0.6705287",
"0.6681553",
"0.6597325",
"0.6540084",
"0.64716583",
"0.64399546",
"0.6439004",
"0.6434028",
"0.64149415",
"0.64113456",
"0.6411018",
"0.6398337",
"0.63896435",
"0.6385... | 0.7153183 | 1 |
getHost Get the Internet host name corresponding to a given IP address | getHost Получает имя интернет-хоста, соответствующее заданному IP-адресу | function getHostEx($ip)
{
return gethostbyaddr($ip);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getHostname()\n\t{\n\t\t$ip = $this->getIpAddress();\n\t\t$host = gethostbyaddr($ip);\n\t\treturn $host;\n\t}",
"private function gethost( $ip )\n\t{\n\t\t//Make sure the input is not going to do anything unexpected\n\t\t//IPs must be in the form x.x.x.x with each x as a number\n\n\t\tif( preg_ma... | [
"0.75835353",
"0.750206",
"0.7375358",
"0.73210347",
"0.73210347",
"0.73210347",
"0.7199682",
"0.7199682",
"0.7199682",
"0.7199682",
"0.7199682",
"0.7199682",
"0.7199682",
"0.7199682",
"0.7199682",
"0.7199682",
"0.7199682",
"0.7199682",
"0.7199682",
"0.7199682",
"0.7199682",
... | 0.76850426 | 0 |
Returns the client IP addresses. In the returned array the most trusted IP address is first, and the least trusted one last. The "real" client IP address is the last one, but this is also the least trusted one. Trusted proxies are stripped if passed. Use this method carefully; you should use getClientIp() instead. | Возвращает IP-адреса клиента. В возвращаемом массиве сначала идет наиболее доверенный IP-адрес, а последним — наименее доверенный. "Правдивый" IP-адрес клиента — последний, но это также наименее доверенный. Доверенные прокси-серверы, если они переданы, удаляются. Используйте этот метод с осторожностью; лучше использова... | function getClientIps(array $server, array $trustedProxies = []) : array
{
if (empty($server)) {
return [''];
}
$clientIps = array();
$ip = $server['REMOTE_ADDR'];
if (!isFromTrustedProxy($trustedProxies, $ip)) {
return array($ip);
}
if (array_key_exists('FORWARDED', $server)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getClientIp()\n {\n $ip = $this->server->get('REMOTE_ADDR');\n\n if (!self::$trustProxy) {\n return $ip;\n }\n\n if (!self::$trustedHeaders[self::HEADER_CLIENT_IP] || !$this->headers->has(self::$trustedHeaders[self::HEADER_CLIENT_IP])) {\n return... | [
"0.82374287",
"0.7893105",
"0.78603244",
"0.73115474",
"0.6958128",
"0.69097567",
"0.69004786",
"0.6890746",
"0.6748509",
"0.67318374",
"0.67020684",
"0.6700292",
"0.6694586",
"0.6649395",
"0.6552976",
"0.65497804",
"0.65493196",
"0.6547168",
"0.65412486",
"0.6520425",
"0.651... | 0.79458004 | 1 |
Compares two IPv6 addresses. In case a subnet is given, it checks if it contains the request IP. | Сравнивает два IPv6-адреса. В случае указания подсети проверяет, содержится ли запрашиваемый IP-адрес в ней. | function checkIp6($requestIp, $ip) : bool
{
if (!((extension_loaded('sockets') && defined('AF_INET6')) || @inet_pton('::1'))) {
throw new \RuntimeException('Unable to check Ipv6. Check that PHP was not compiled with option "disable-ipv6".');
}
if (false !== strpos($ip, '/')) {
list($address,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function cmpIPv6DataProviderMatching() {}",
"public static function checkIp6($requestIp, $ip) {}",
"private static function checkIp6($requestIp, $ip)\r\n {\r\n if (!((extension_loaded('sockets') && defined('AF_INET6')) || @inet_pton('::1'))) {\r\n throw new \\RuntimeException... | [
"0.6987864",
"0.69856113",
"0.6925253",
"0.66301405",
"0.6571787",
"0.65443337",
"0.6543107",
"0.6474734",
"0.64418536",
"0.6378642",
"0.6366299",
"0.6251428",
"0.6251428",
"0.62127805",
"0.62059236",
"0.6183578",
"0.61319935",
"0.59922117",
"0.5984217",
"0.5983117",
"0.59636... | 0.7256021 | 0 |
Check if $ip is contained in $trustedProxies array. | Проверьте, содержится ли $ip в массиве $trustedProxies. | function isFromTrustedProxy(array $trustedProxies, $ip)
{
return !empty($trustedProxies) && checkIp($ip, $trustedProxies);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static function _checkIpAllowed()\n {\n $ipAllowed = false;\n\n if (Mage::getStoreConfig('dev/restrict/allow_ips') && Mage::getStoreConfig('buckaroo/buckaroo3extended_advanced/limit_by_ip'))\n {\n $allowedIp = explode(',', mage::getStoreConfig('dev/restrict/allow_ips'));\... | [
"0.6686304",
"0.66817045",
"0.6649753",
"0.6647452",
"0.66176367",
"0.6556792",
"0.655332",
"0.65287906",
"0.6524876",
"0.65178156",
"0.65095913",
"0.63962615",
"0.63892037",
"0.6296225",
"0.62898856",
"0.6286581",
"0.6241579",
"0.622788",
"0.621663",
"0.62118447",
"0.6200372... | 0.8307751 | 0 |
Convert an IPv4 address to IPv6 | Преобразование адреса IPv4 в IPv6 | function iPv4To6($ip)
{
if(isNullOrEmpty($ip)){
return '';
}
static $Mask = '::ffff:'; // This tells IPv6 it has an IPv4 address
$IPv6 = (strpos($ip, '::') === 0);
$IPv4 = (strpos($ip, '.') > 0);
if (!$IPv4 && !$IPv6) {
return false;
}
if ($IPv6 && $IPv4) {
// S... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function expandIPv6Notation($ip)\n{\n if (!iPv4To6($ip)) {\n return $ip;\n }\n $hex = unpack(\"H*hex\", inet_pton($ip));\n $ip = substr(preg_replace(\"/([A-f0-9]{4})/\", \"$1:\", $hex['hex']), 0, -1);\n return $ip;\n}",
"function ip2hex ($ip) {\n\t\tif (filter_var($ip, FILTER_VALIDATE_IP, F... | [
"0.7253605",
"0.67608315",
"0.67470074",
"0.66777277",
"0.6631157",
"0.64598155",
"0.6455496",
"0.6398096",
"0.6361286",
"0.6187016",
"0.61747956",
"0.61261535",
"0.6124681",
"0.61190546",
"0.609671",
"0.6062921",
"0.6050617",
"0.60449106",
"0.6041844",
"0.6026315",
"0.594028... | 0.76246476 | 0 |
Get Parent This field type is based on EntityType | Получить родителя. Тип этого поля основан на EntityType | public function getParent()
{
return 'entity';
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getParentType()\n\t{\n\t\treturn $this->_parentType;\n\t}",
"public function getParentType() : string\n {\n return $this->parentType;\n }",
"public function parentEntity();",
"public function getParentField()\r\n\t{\r\n\t\treturn $this->parentField;\r\n\t}",
"public function ge... | [
"0.72384286",
"0.695221",
"0.6924217",
"0.69008815",
"0.68063927",
"0.67479074",
"0.6738022",
"0.6728672",
"0.66585475",
"0.66564125",
"0.6545297",
"0.65173423",
"0.65106696",
"0.64827955",
"0.6432073",
"0.6427356",
"0.64234704",
"0.63716424",
"0.634737",
"0.63140976",
"0.626... | 0.75318795 | 0 |