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 |
|---|---|---|---|---|---|---|---|
Get the titles of all available survey question pools | Получить заголовки всех доступных пулов вопросов опроса | function &getQuestionpoolTitles($could_be_offline = FALSE, $showPath = FALSE)
{
include_once "./Modules/SurveyQuestionPool/classes/class.ilObjSurveyQuestionPool.php";
return ilObjSurveyQuestionPool::_getAvailableQuestionpools($use_object_id = TRUE, $could_be_offline, $showPath);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function titleQuery() {\n $titles = [];\n\n $groupContent = $this->groupContentStorage->loadMultiple($this->value);\n foreach ($groupContent as $content) {\n $titles[] = $content->label();\n }\n return $titles;\n }",
"public function getTitleList()\n {\n return $this->getAll... | [
"0.65743417",
"0.6205812",
"0.5900569",
"0.5836954",
"0.5836259",
"0.5793965",
"0.5779317",
"0.57228315",
"0.5652374",
"0.55881345",
"0.55739707",
"0.5547233",
"0.55324525",
"0.55057025",
"0.54962206",
"0.54817736",
"0.5478721",
"0.54536504",
"0.5451263",
"0.54329795",
"0.542... | 0.7534064 | 0 |
Moves a question up in the list of survey questions | Перемещает вопрос вверх в списке вопросов опроса | function moveUpQuestion($question_id)
{
$move_questions = array($question_id);
$pages =& $this->getSurveyPages();
$pageindex = -1;
foreach ($pages as $idx => $page)
{
if ($page[0]["question_id"] == $question_id)
{
$pageindex = $idx;
}
}
if ($pageindex > 0)
{
$this->moveQuestions($move_q... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function ipal_move_question_up($layout, $questionid) {\n return _ipal_move_question($layout, $questionid, -1);\n}",
"function ipal_move_question_down($layout, $questionid) {\n return _ipal_move_question($layout, $questionid, + 1);\n}",
"function moveItemUp()\r\n\t{\r\n\t\t$this->content_obj->moveItemUp()... | [
"0.75147176",
"0.7072281",
"0.6676009",
"0.65406096",
"0.6449846",
"0.6188967",
"0.599367",
"0.5942243",
"0.58477217",
"0.58259183",
"0.57867455",
"0.5775946",
"0.5588684",
"0.5578091",
"0.5547062",
"0.5474735",
"0.54560435",
"0.54468656",
"0.5445789",
"0.53893167",
"0.531988... | 0.76685023 | 0 |
Moves a questionblock up in the list of survey questions | Перемещает вопросблок вверх в списке вопросов опроса | function moveUpQuestionblock($questionblock_id)
{
$pages =& $this->getSurveyPages();
$move_questions = array();
$pageindex = -1;
foreach ($pages as $idx => $page)
{
if ($page[0]["questionblock_id"] == $questionblock_id)
{
foreach ($page as $pageidx => $question)
{
array_push($move_question... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function moveUpQuestion($question_id)\n\t{\n\t\t$move_questions = array($question_id);\n\t\t$pages =& $this->getSurveyPages();\n\t\t$pageindex = -1;\n\t\tforeach ($pages as $idx => $page)\n\t\t{\n\t\t\tif ($page[0][\"question_id\"] == $question_id)\n\t\t\t{\n\t\t\t\t$pageindex = $idx;\n\t\t\t}\n\t\t}\n\t\tif ($pag... | [
"0.742927",
"0.71027523",
"0.69884723",
"0.66863966",
"0.6611965",
"0.6556456",
"0.60613334",
"0.60523176",
"0.58192295",
"0.57727814",
"0.56940085",
"0.56110764",
"0.55243796",
"0.55202246",
"0.55148363",
"0.5507328",
"0.55057025",
"0.5454643",
"0.5397951",
"0.5396283",
"0.5... | 0.7643607 | 0 |
Moves a questionblock down in the list of survey questions | Перемещает вопрос блока вниз в списке вопросов опроса | function moveDownQuestionblock($questionblock_id)
{
$pages =& $this->getSurveyPages();
$move_questions = array();
$pageindex = -1;
foreach ($pages as $idx => $page)
{
if ($page[0]["questionblock_id"] == $questionblock_id)
{
foreach ($page as $pageidx => $question)
{
array_push($move_questi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function moveUpQuestionblock($questionblock_id)\n\t{\n\t\t$pages =& $this->getSurveyPages();\n\t\t$move_questions = array();\n\t\t$pageindex = -1;\n\t\tforeach ($pages as $idx => $page)\n\t\t{\n\t\t\tif ($page[0][\"questionblock_id\"] == $questionblock_id)\n\t\t\t{\n\t\t\t\tforeach ($page as $pageidx => $question)... | [
"0.720421",
"0.7062827",
"0.6867389",
"0.68327665",
"0.65457124",
"0.6430471",
"0.6065341",
"0.6018024",
"0.60106564",
"0.60042584",
"0.57333195",
"0.5699364",
"0.56878304",
"0.56110895",
"0.5443492",
"0.5420068",
"0.5396772",
"0.53746516",
"0.5374626",
"0.5346635",
"0.530805... | 0.7477163 | 0 |
Remove a question from the survey | Удалить вопрос из опроса | function removeQuestion($question_id)
{
include_once "./Modules/SurveyQuestionPool/classes/class.SurveyQuestion.php";
$question =& $this->_instanciateQuestion($question_id);
$question->delete($question_id);
$this->removeConstraintsConcerningQuestion($question_id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function ipal_remove_question($quiz, $questionid) {\n global $DB;\n\n $questionids = explode(',', $quiz->questions);\n $key = array_search($questionid, $questionids);\n if ($key === false) {\n return;\n }\n\n unset($questionids[$key]);\n $quiz->questions = implode(',', $questionids);\n ... | [
"0.732547",
"0.7144462",
"0.67921686",
"0.671079",
"0.66961396",
"0.6647993",
"0.6597144",
"0.6532178",
"0.6525053",
"0.65090114",
"0.6474149",
"0.6474149",
"0.6474149",
"0.64587915",
"0.6458567",
"0.641819",
"0.6414767",
"0.6404972",
"0.63994485",
"0.636623",
"0.6348659",
... | 0.7198431 | 1 |
Remove constraints concerning a question with a given question_id | Удалить ограничения, связанные с вопросом с заданным question_id | function removeConstraintsConcerningQuestion($question_id)
{
global $ilDB;
$result = $ilDB->queryF("SELECT constraint_fi FROM svy_qst_constraint WHERE question_fi = %s AND survey_fi = %s",
array('integer','integer'),
array($question_id, $this->getSurveyId())
);
if ($result->numRows() > 0)
{
$remove_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function deleteConstraints($question_id)\n\t{\n\t\tglobal $ilDB;\n\t\t$result = $ilDB->queryF(\"SELECT constraint_fi FROM svy_qst_constraint WHERE question_fi = %s AND survey_fi = %s\",\n\t\t\tarray('integer','integer'),\n\t\t\tarray($question_id, $this->getSurveyId())\n\t\t);\n\t\t$constraints = array();\n\t\twhi... | [
"0.78046775",
"0.67692536",
"0.6551546",
"0.6256549",
"0.60758674",
"0.59577733",
"0.5932652",
"0.58080566",
"0.5603048",
"0.5531449",
"0.5494026",
"0.53669024",
"0.53598547",
"0.5320286",
"0.53071296",
"0.5298825",
"0.5291809",
"0.52481395",
"0.51934636",
"0.51846385",
"0.51... | 0.8670779 | 0 |
Returns the question id's of all questions of a question block | Возвращает идентификаторы вопросов всех вопросов блока вопросов | function &getQuestionblockQuestionIds($questionblock_id)
{
global $ilDB;
$result = $ilDB->queryF("SELECT question_fi FROM svy_qblk_qst WHERE questionblock_fi = %s",
array("integer"),
array($questionblock_id)
);
$ids = array();
if ($result->numRows())
{
while ($data = $ilDB->fetchAssoc($result))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function &getQuestionblockQuestions($questionblock_id)\n\t{\n\t\tglobal $ilDB;\n\t\t$titles = array();\n\t\t$result = $ilDB->queryF(\"SELECT svy_question.title, svy_qblk_qst.question_fi, svy_qblk_qst.survey_fi FROM \".\n\t\t\t\"svy_qblk, svy_qblk_qst, svy_question WHERE svy_qblk.questionblock_id = svy_qblk_qst.que... | [
"0.74495643",
"0.660526",
"0.64386684",
"0.6243731",
"0.6138004",
"0.5902933",
"0.58422184",
"0.58057606",
"0.5746293",
"0.56963265",
"0.5694089",
"0.5655538",
"0.5608283",
"0.5489107",
"0.5458041",
"0.54401386",
"0.5422338",
"0.5419407",
"0.5407205",
"0.5402217",
"0.53504807... | 0.8004436 | 0 |
Returns the database row for a given question block | Возвращает строку базы данных для заданного блока вопросов | function getQuestionblock($questionblock_id)
{
global $ilDB;
$result = $ilDB->queryF("SELECT * FROM svy_qblk WHERE questionblock_id = %s",
array('integer'),
array($questionblock_id)
);
return $ilDB->fetchAssoc($result);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function _getQuestionblock($questionblock_id)\n\t{\n\t\tglobal $ilDB;\n\t\t$result = $ilDB->queryF(\"SELECT * FROM svy_qblk WHERE questionblock_id = %s\",\n\t\t\tarray('integer'),\n\t\t\tarray($questionblock_id)\n\t\t);\n\t\t$row = $ilDB->fetchAssoc($result);\n\t\treturn $row;\n\t}",
"function &getQuestionblockQ... | [
"0.75613815",
"0.59266764",
"0.58829737",
"0.58575773",
"0.57087487",
"0.5691344",
"0.5683966",
"0.5666679",
"0.5659089",
"0.5601667",
"0.55425185",
"0.553884",
"0.55361724",
"0.5531035",
"0.5467269",
"0.5431499",
"0.5424674",
"0.5387767",
"0.5387264",
"0.5378758",
"0.5368858... | 0.7278639 | 1 |
Returns the database row for a given question block | Возвращает строку базы данных для заданного блока вопросов | function _getQuestionblock($questionblock_id)
{
global $ilDB;
$result = $ilDB->queryF("SELECT * FROM svy_qblk WHERE questionblock_id = %s",
array('integer'),
array($questionblock_id)
);
$row = $ilDB->fetchAssoc($result);
return $row;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getQuestionblock($questionblock_id)\n\t{\n\t\tglobal $ilDB;\n\t\t$result = $ilDB->queryF(\"SELECT * FROM svy_qblk WHERE questionblock_id = %s\",\n\t\t\tarray('integer'),\n\t\t\tarray($questionblock_id)\n\t\t);\n\t\treturn $ilDB->fetchAssoc($result);\n\t}",
"function &getQuestionblockQuestions($questionb... | [
"0.72800034",
"0.59280366",
"0.5879325",
"0.58544934",
"0.57058764",
"0.5691048",
"0.5680256",
"0.5665899",
"0.5658975",
"0.5601366",
"0.55379295",
"0.553576",
"0.55320674",
"0.55276793",
"0.546271",
"0.54279304",
"0.54223394",
"0.53877115",
"0.5384596",
"0.53764355",
"0.5370... | 0.7563095 | 0 |
Deletes the constraints for a question | Удаляет ограничения для вопроса | function deleteConstraints($question_id)
{
global $ilDB;
$result = $ilDB->queryF("SELECT constraint_fi FROM svy_qst_constraint WHERE question_fi = %s AND survey_fi = %s",
array('integer','integer'),
array($question_id, $this->getSurveyId())
);
$constraints = array();
while ($row = $ilDB->fetchAssoc($re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function removeConstraintsConcerningQuestion($question_id)\n\t{\n\t\tglobal $ilDB;\n\t\t$result = $ilDB->queryF(\"SELECT constraint_fi FROM svy_qst_constraint WHERE question_fi = %s AND survey_fi = %s\",\n\t\t\tarray('integer','integer'),\n\t\t\tarray($question_id, $this->getSurveyId())\n\t\t);\n\t\tif ($result->n... | [
"0.7881212",
"0.67480516",
"0.62292206",
"0.6099111",
"0.6098317",
"0.59233725",
"0.5878233",
"0.5873267",
"0.58533317",
"0.5787125",
"0.5772609",
"0.57714754",
"0.575713",
"0.5745757",
"0.5728653",
"0.5721524",
"0.568195",
"0.563303",
"0.563303",
"0.563303",
"0.5614375",
"... | 0.8023022 | 0 |
Sets the obligatory states for questions in a survey from the questions form | Устанавливает обязательные состояния для вопросов опроса из формы вопросов | function setObligatoryStates($obligatory_questions)
{
global $ilDB;
$result = $ilDB->queryF("SELECT * FROM svy_svy_qst WHERE survey_fi = %s",
array('integer'),
array($this->getSurveyId())
);
if ($result->numRows())
{
while ($row = $ilDB->fetchAssoc($result))
{
if (!array_key_exists($row["ques... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function _set_fields()\n {\n @$this->form_data->survey_id = 0;\n $this->form_data->survey_title = '';\n $this->form_data->survey_description = '';\n $this->form_data->survey_status = 'open';\n $this->form_data->survey_anms = 'yes';\n $this->form_data->survey_exp... | [
"0.6337575",
"0.61228806",
"0.58547163",
"0.5735297",
"0.5735297",
"0.5635384",
"0.5628491",
"0.55577195",
"0.5529153",
"0.5384287",
"0.53805846",
"0.53805846",
"0.5334043",
"0.5316992",
"0.53063595",
"0.5304815",
"0.53028923",
"0.5271887",
"0.5271887",
"0.52575123",
"0.52502... | 0.7669189 | 0 |
Gets specific obligatory states of the survey | Получает конкретные обязательные состояния опроса | function &getObligatoryStates()
{
global $ilDB;
$obligatory_states = array();
$result = $ilDB->queryF("SELECT * FROM svy_qst_oblig WHERE survey_fi = %s",
array('integer'),
array($this->getSurveyId())
);
if ($result->numRows())
{
while ($row = $ilDB->fetchAssoc($result))
{
$obligatory_states... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function setObligatoryStates($obligatory_questions)\n\t{\n\t\tglobal $ilDB;\n\t\t$result = $ilDB->queryF(\"SELECT * FROM svy_svy_qst WHERE survey_fi = %s\",\n\t\t\tarray('integer'),\n\t\t\tarray($this->getSurveyId())\n\t\t);\n\t\tif ($result->numRows())\n\t\t{\n\t\t\twhile ($row = $ilDB->fetchAssoc($result))\n\t\t... | [
"0.6290752",
"0.58042216",
"0.5729389",
"0.5729389",
"0.5729389",
"0.55378246",
"0.553542",
"0.5507895",
"0.5455487",
"0.53993696",
"0.5362926",
"0.5317281",
"0.528784",
"0.5274955",
"0.5249336",
"0.52271587",
"0.5225755",
"0.5221843",
"0.5209202",
"0.5209202",
"0.5159135",
... | 0.7765785 | 0 |
Returns the survey pages in an array (a page contains one or more questions) | Возвращает страницы опроса в виде массива (страница содержит один или более вопросов) | function &getSurveyPages()
{
global $ilDB;
$obligatory_states =& $this->getObligatoryStates();
// get questionblocks
$all_questions = array();
$result = $ilDB->queryF("SELECT svy_question.*, svy_qtype.type_tag, svy_svy_qst.heading FROM " .
"svy_question, svy_qtype, svy_svy_qst WHERE svy_svy_qst.survey_fi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function ipal_get_questions(){ \r\n \r\n\tglobal $ipal;\r\n\tglobal $DB;\r\n\tglobal $CFG;\r\n\t$q='';\t\r\n\t$pagearray2=array();\r\n\t // is there an quiz associated with an ipal?\r\n//\t$ipal_quiz=$DB->get_record('ipal_quiz',array('ipal_id'=>$ipal->id));\r\n\t\r\n\t// get quiz and put it into an array\r\n\t$qui... | [
"0.6715821",
"0.634927",
"0.62863326",
"0.6253571",
"0.62053716",
"0.6192171",
"0.61818564",
"0.61721593",
"0.6106592",
"0.6055463",
"0.60480917",
"0.59566444",
"0.594176",
"0.59143597",
"0.59123755",
"0.5898344",
"0.58709574",
"0.5858872",
"0.5824961",
"0.5787953",
"0.576295... | 0.7121661 | 0 |
Returns the available question pools for the active user | Возвращает доступные наборы вопросов для активного пользователя | function &getAvailableQuestionpools($use_obj_id = false, $could_be_offline = false, $showPath = FALSE, $permission = "read")
{
include_once "./Modules/SurveyQuestionPool/classes/class.ilObjSurveyQuestionPool.php";
return ilObjSurveyQuestionPool::_getAvailableQuestionpools($use_obj_id, $could_be_offline, $showPath,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function &getQuestionpoolTitles($could_be_offline = FALSE, $showPath = FALSE) \n\t{\n\t\tinclude_once \"./Modules/SurveyQuestionPool/classes/class.ilObjSurveyQuestionPool.php\";\n\t\treturn ilObjSurveyQuestionPool::_getAvailableQuestionpools($use_object_id = TRUE, $could_be_offline, $showPath);\n\t}",
"public fu... | [
"0.64823866",
"0.6334974",
"0.61729574",
"0.57729745",
"0.5689585",
"0.5673255",
"0.56548464",
"0.5453457",
"0.5433869",
"0.5419453",
"0.5415845",
"0.5324766",
"0.53116727",
"0.5295904",
"0.5282456",
"0.52791405",
"0.5264242",
"0.5259273",
"0.52269673",
"0.51680255",
"0.51466... | 0.71549195 | 0 |
Returns all variables of a question | Возвращает все переменные вопроса | function &getVariables($question_id)
{
global $ilDB;
$result_array = array();
$result = $ilDB->queryF("SELECT svy_variable.*, svy_category.title FROM svy_variable LEFT JOIN ".
"svy_category ON svy_variable.category_fi = svy_category.category_id WHERE svy_variable.question_fi = %s ".
"ORDER BY svy_variab... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getVariables()\n {\n \treturn isset($this->all['variables']) ? $this->all['variables'] : array();\n }",
"protected function get_variables_for_view()\n\t{\n\t\t$ary = array();\n\t\tforeach (get_object_vars ($this->set) as $k => $v)\n\t\t\t$ary[$k] = $v;\n\t\treturn $ary;\n\t}",
"public ... | [
"0.7224944",
"0.69258636",
"0.6840276",
"0.6840276",
"0.6829594",
"0.67934245",
"0.67915314",
"0.67826504",
"0.6745642",
"0.67189676",
"0.67189676",
"0.67189676",
"0.67025876",
"0.66505307",
"0.66306925",
"0.6624924",
"0.6614208",
"0.6611479",
"0.65822893",
"0.65822893",
"0.6... | 0.7451109 | 0 |
Adds a constraint to a question | Добавляет ограничение к вопросу | public function addConstraintToQuestion($to_question_id, $constraint_id)
{
global $ilDB;
$next_id = $ilDB->nextId('svy_qst_constraint');
$affectedRows = $ilDB->manipulateF("INSERT INTO svy_qst_constraint (question_constraint_id, survey_fi, question_fi, ".
"constraint_fi) VALUES (%s, %s, %s, %s)",
array(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function addConstraint($constraint) {\n $this->constraint[] = $constraint;\n return $this;\n }",
"public function addConstraint(WorkflowConstraintInterface $constraint)\n {\n $this->constraints[] = $constraint;\n }",
"private function addQueryConstraint(\\TYPO3\\CMS\\Extbas... | [
"0.71513575",
"0.68696004",
"0.66308165",
"0.6623082",
"0.6490927",
"0.6467618",
"0.6433734",
"0.63226867",
"0.63222665",
"0.6304293",
"0.628926",
"0.623163",
"0.6112871",
"0.6079158",
"0.60358626",
"0.60358626",
"0.59731764",
"0.597036",
"0.5926024",
"0.58590287",
"0.5854491... | 0.7105923 | 1 |
Disinvites a user from a survey | Отписывает пользователя от опроса | public function disinviteUser($user_id)
{
global $ilDB;
$affectedRows = $ilDB->manipulateF("DELETE FROM svy_inv_usr WHERE survey_fi = %s AND user_fi = %s",
array('integer','integer'),
array($this->getSurveyId(), $user_id)
);
include_once './Services/User/classes/class.ilObjUser.php';
ilObjUser::_dro... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function disinvite($user) {\n\t\t$invitation = $this->event->getInvitation($user);\n\t\t$this->event->removeInvitation($invitation); // this should also automatically remove the invitation from the database\t\t\n\t\t$this->event->save();\n\t}",
"public function test_user_cant_decline_not_their_invites()\n... | [
"0.6958361",
"0.6199614",
"0.60990644",
"0.6021027",
"0.60147977",
"0.6003235",
"0.5991632",
"0.5945393",
"0.5889275",
"0.58515745",
"0.5833426",
"0.5778013",
"0.57663304",
"0.5746187",
"0.57067835",
"0.56786126",
"0.5671597",
"0.5662577",
"0.5651808",
"0.5616774",
"0.5606871... | 0.7105687 | 0 |
Returns a list of all invited users in a survey | Возвращает список всех приглашенных пользователей в опросе | function &getInvitedUsers()
{
global $ilDB;
$result_array = array();
$result = $ilDB->queryF("SELECT user_fi FROM svy_inv_usr WHERE survey_fi = %s",
array('integer'),
array($this->getSurveyId())
);
while ($row = $ilDB->fetchAssoc($result))
{
array_push($result_array, $row["user_fi"]);
}
ret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function get_invited_users( $subscription_id ){\n return pms_get_member_subscription_meta( $subscription_id, 'pms_gm_invited_emails' );\n }",
"public function getUserslistToInvite()\n\t{\n\t\t//get current login user session\n\t\t$results = array();\n\t\t$user = $this->Session->read('UserData.us... | [
"0.65762496",
"0.637841",
"0.6375574",
"0.624361",
"0.6211922",
"0.62026507",
"0.61637163",
"0.61040336",
"0.59692955",
"0.5915579",
"0.5905201",
"0.58193666",
"0.5797444",
"0.5784785",
"0.5780078",
"0.5774793",
"0.57690275",
"0.57168305",
"0.57062966",
"0.57038146",
"0.56960... | 0.78613234 | 0 |
Deletes the working data of a question in the database | Удаляет рабочие данные вопроса в базе данных | function deleteWorkingData($question_id, $active_id)
{
global $ilDB;
$affectedRows = $ilDB->manipulateF("DELETE FROM svy_answer WHERE question_fi = %s AND active_fi = %s",
array('integer','integer'),
array($question_id, $active_id)
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function deleteData()\n {\n DB::table($this->dbTable)\n ->where($this->where)\n ->delete();\n }",
"function editCleanUp($question_id)\r\n {\r\n \t\t$this->query('DELETE FROM questions WHERE id='.$question_id);\r\n\t\t$this->query('DELETE FROM responses WHERE qu... | [
"0.69567966",
"0.6898568",
"0.66847533",
"0.6651861",
"0.66191804",
"0.6539403",
"0.6509638",
"0.6497958",
"0.6489918",
"0.6462393",
"0.6458469",
"0.640661",
"0.63950545",
"0.63786817",
"0.63769126",
"0.6362017",
"0.6351692",
"0.6338108",
"0.6329177",
"0.632271",
"0.6321172",... | 0.72457767 | 0 |
Fills a survey randomly with data for a given user. | Заполняет опрос случайными данными для заданного пользователя. | function fillSurveyForUser($user_id = ANONYMOUS_USER_ID)
{
global $ilDB;
// create an anonymous key
$anonymous_id = $this->createNewAccessCode();
$this->saveUserAccessCode($user_id, $anonymous_id);
// create the survey_finished dataset and set the survey finished already
$active_id = $ilDB->nextId('svy_fin... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function fillQuestion($data)\r\n {\r\n\tfor( $i=0; $i<$data['count']; $i++ ){\r\n\t\t$data[$i]['Question'] = $this->findAll($conditions='id='.$data[$i]['SurveyQuestion']['question_id'], $fields=\"prompt, type\");\r\n\t\t$data[$i]['Question'] = $data[$i]['Question'][0]['Question'];\r\n\t\t$data[$i]['Question']['nu... | [
"0.6117004",
"0.5981043",
"0.5835476",
"0.570479",
"0.5660205",
"0.56394047",
"0.56210417",
"0.55576503",
"0.5463925",
"0.54251826",
"0.54230016",
"0.5416017",
"0.5406107",
"0.53853905",
"0.538141",
"0.52993417",
"0.52614343",
"0.52566254",
"0.5168657",
"0.51340044",
"0.51329... | 0.80236334 | 0 |
Checks if a user is allowed to take multiple survey | Проверяет, разрешено ли пользователю проходить опрос несколько раз | function isAllowedToTakeMultipleSurveys($userid = "")
{
// #7927: special users are deprecated
return false;
/*
$result = FALSE;
if ($this->getAnonymize())
{
if ($this->isAccessibleWithoutCode())
{
if (strlen($username) == 0)
{
global $ilUser;
$userid = $ilUser->getId();
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function acceptsMultipleAnswers() {\n\t\treturn ($this->getMultipleAnswer() == 1);\n\t}",
"public function isAllowMultiple()\n {\n return $this->allowMultiple ? true : false;\n }",
"public function getAllowsMultipleAnswers(): bool\n {\n return $this->allowsMultipleAnswers;\n }"... | [
"0.65196043",
"0.63791376",
"0.6346387",
"0.60389185",
"0.5952733",
"0.589998",
"0.58644927",
"0.58225065",
"0.5797057",
"0.57842803",
"0.57757056",
"0.5741318",
"0.569559",
"0.5667588",
"0.5665545",
"0.5597468",
"0.557101",
"0.55476344",
"0.5537596",
"0.5523697",
"0.54969805... | 0.70676714 | 0 |
Get the finished id's of all survey participants | Получить идентификаторы завершенных участников опроса | function &getSurveyFinishedIds()
{
global $ilDB, $ilLog;
$users = array();
$result = $ilDB->queryF("SELECT * FROM svy_finished WHERE survey_fi = %s",
array('integer'),
array($this->getSurveyId())
);
if ($result->numRows())
{
while ($row = $ilDB->fetchAssoc($result))
{
array_push($users, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function _getNrOfParticipants($survey_id)\n\t{\n\t\tglobal $ilDB;\n\t\t\n\t\t$result = $ilDB->queryF(\"SELECT finished_id FROM svy_finished WHERE survey_fi = %s\",\n\t\t\tarray('integer'),\n\t\t\tarray($survey_id)\n\t\t);\n\t\treturn $result->numRows();\n\t}",
"public function getResponsesId()\n\t{\n\t\t$prefix ... | [
"0.65759104",
"0.633437",
"0.62046564",
"0.59811234",
"0.5751627",
"0.57190806",
"0.5621342",
"0.56071985",
"0.5598874",
"0.5558601",
"0.5552382",
"0.5541523",
"0.553686",
"0.5524496",
"0.5504525",
"0.54820067",
"0.5441959",
"0.54348487",
"0.5422082",
"0.5410063",
"0.54030514... | 0.77039707 | 0 |
Returns the user information from an active_id (survey_finished.finished_id) | Возвращает информацию о пользователе из active_id (survey_finished.finished_id) | function getUserDataFromActiveId($active_id)
{
global $ilDB;
$surveySetting = new ilSetting("survey");
$use_anonymous_id = array_key_exists("use_anonymous_id", $_GET) ? $_GET["use_anonymous_id"] : $surveySetting->get("use_anonymous_id");
$result = $ilDB->queryF("SELECT * FROM svy_finished WHERE finished_id = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getActiveID($user_id, $anonymize_id, $appr_id)\n\t{\n\t\tglobal $ilDB;\n\n\t\t// see self::isSurveyStarted()\n\t\t\n\t\t// #15031 - should not matter if code was used by registered or anonymous (each code must be unique)\n\t\tif($anonymize_id)\n\t\t{\n\t\t\t$result = $ilDB->queryF(\"SELECT finished_id FRO... | [
"0.6257469",
"0.59168535",
"0.58916605",
"0.58847946",
"0.5879727",
"0.5860177",
"0.58238316",
"0.578886",
"0.57326496",
"0.57319146",
"0.57246745",
"0.56944853",
"0.56801003",
"0.5637042",
"0.56290275",
"0.5617939",
"0.5611024",
"0.56001365",
"0.55926645",
"0.5589806",
"0.55... | 0.73753065 | 0 |
Returns the number of participants for a survey | Возвращает количество участников опроса | function _getNrOfParticipants($survey_id)
{
global $ilDB;
$result = $ilDB->queryF("SELECT finished_id FROM svy_finished WHERE survey_fi = %s",
array('integer'),
array($survey_id)
);
return $result->numRows();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getAnswerCount();",
"public function getQuestionsCount() : int;",
"public function getNbParticipants()\n {\n return $this->nbParticipants;\n }",
"public function getCurrentQuestionCount();",
"public function countRespondents()\n {\n $result = $this->client->run('MATCH... | [
"0.7106288",
"0.6802367",
"0.65914136",
"0.65820074",
"0.6547102",
"0.65068424",
"0.6494498",
"0.6484496",
"0.64626884",
"0.6364279",
"0.63580644",
"0.63182724",
"0.6266135",
"0.6256406",
"0.6226868",
"0.6192228",
"0.6154281",
"0.6152744",
"0.61506253",
"0.6112515",
"0.611077... | 0.7613982 | 0 |
Creates an instance of a question with a given question id | Создает экземпляр вопроса с заданным идентификатором вопроса | function &_instanciateQuestion($question_id)
{
if ($question_id < 1) return FALSE;
include_once "./Modules/SurveyQuestionPool/classes/class.SurveyQuestion.php";
$question_type = SurveyQuestion::_getQuestionType($question_id);
if (strlen($question_type) == 0) return FALSE;
SurveyQuestion::_includeClass($ques... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function question($id)\n {\n return $this->create($id);\n }",
"public function createQuestionAction(int $id) : object\n {\n $page = $this->di->get(\"page\");\n $form = new CreateQuestionForm($this->di, $id);\n $form->check();\n\n $page->add(\"questions/crud/crea... | [
"0.7629338",
"0.71683115",
"0.6906799",
"0.6760966",
"0.6723291",
"0.6566401",
"0.653367",
"0.6386355",
"0.63219315",
"0.6259094",
"0.62467915",
"0.6246044",
"0.62237406",
"0.6208069",
"0.6206992",
"0.61948353",
"0.6160527",
"0.61558574",
"0.612326",
"0.61190206",
"0.61132467... | 0.76062125 | 1 |
Locates the import directory and the xml file in a directory with an unzipped import file | Находит каталог импорта и файл xml в каталоге с распакованным файлом импорта | function locateImportFiles($a_dir)
{
if (!is_dir($a_dir) || is_int(strpos($a_dir, "..")))
{
return;
}
$importDirectory = "";
$xmlFile = "";
$current_dir = opendir($a_dir);
$files = array();
while($entryname = readdir($current_dir))
{
$files[] = $entryname;
}
foreach($files as $file)
{
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function import($files) {\n\t\tforeach ($files as $file) {\n\t\t\t$dest_dir = $this->destDir($file);\n\t\t\t$src_path = JOURNALS_FILES . $file;\n\t\t\t$dest_path = DOWNLOAD_PATH . $this->destDir($file);\n\t\t\t$this->unzip($src_path, $dest_path);\n\t\t\t$res[] = $dest_path . \"/journals.xml\";\n\t\t}\n\t\treturn $... | [
"0.57650524",
"0.57103163",
"0.5626483",
"0.54553306",
"0.54436076",
"0.54125714",
"0.537808",
"0.51884687",
"0.5078346",
"0.4995721",
"0.49652877",
"0.4942878",
"0.4926776",
"0.49262822",
"0.49251845",
"0.49192584",
"0.48871225",
"0.48844695",
"0.48754483",
"0.48654085",
"0.... | 0.7055536 | 0 |
creates data directory for export files (data_dir/svy_data/svy_/export, depending on data directory that is set in ILIAS setup/ini) | создает каталог данных для файлов экспорта (data_dir/svy_data/svy_/export, в зависимости от каталога данных, заданного в настройках ILIAS/setup/ini) | function createExportDirectory()
{
include_once "./Services/Utilities/classes/class.ilUtil.php";
$svy_data_dir = ilUtil::getDataDir()."/svy_data";
ilUtil::makeDir($svy_data_dir);
if(!is_writable($svy_data_dir))
{
$this->ilias->raiseError("Survey Data Directory (".$svy_data_dir
.") not writeable.",$thi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function createImportDirectory()\n\t{\n\t\tinclude_once \"./Services/Utilities/classes/class.ilUtil.php\";\n\t\t$svy_data_dir = ilUtil::getDataDir().\"/svy_data\";\n\t\tilUtil::makeDir($svy_data_dir);\n\t\t\n\t\tif(!is_writable($svy_data_dir))\n\t\t{\n\t\t\t$this->ilias->raiseError(\"Survey Data Directory (\".$svy... | [
"0.71820086",
"0.68952996",
"0.6354988",
"0.6341787",
"0.62416124",
"0.59519356",
"0.5683535",
"0.5632927",
"0.55159247",
"0.5383979",
"0.52955055",
"0.52701",
"0.5244568",
"0.5193181",
"0.5189658",
"0.5170777",
"0.51675797",
"0.5120859",
"0.50967395",
"0.50492907",
"0.504670... | 0.76543677 | 0 |
get export directory of survey | получить каталог экспорта опроса | function getExportDirectory()
{
include_once "./Services/Utilities/classes/class.ilUtil.php";
$export_dir = ilUtil::getDataDir()."/svy_data"."/svy_".$this->getId()."/export";
return $export_dir;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getExportDirectory()\n\t{\n\t\t$export_dir = ilUtil::getDataDir().\"/usrf_data/export\";\n\n\t\treturn $export_dir;\n\t}",
"function getExportDirectory() {\n\n $upload_dir = wp_upload_dir();\n\n $path = $upload_dir['basedir'] . '/form_entry_exports';\n\n // Create the backups direct... | [
"0.7563055",
"0.7350768",
"0.72417456",
"0.68773174",
"0.6723243",
"0.65615475",
"0.6561453",
"0.6533583",
"0.64836156",
"0.6386059",
"0.6334734",
"0.62956005",
"0.6295257",
"0.6252005",
"0.62282467",
"0.6226128",
"0.6210208",
"0.61847746",
"0.61835176",
"0.616938",
"0.616460... | 0.8160188 | 0 |
creates data directory for import files (data_dir/svy_data/svy_/import, depending on data directory that is set in ILIAS setup/ini) | создает каталог данных для импорта файлов (data_dir/svy_data/svy_/import, в зависимости от каталога данных, заданного в настройках ILIAS/setup/ini) | function createImportDirectory()
{
include_once "./Services/Utilities/classes/class.ilUtil.php";
$svy_data_dir = ilUtil::getDataDir()."/svy_data";
ilUtil::makeDir($svy_data_dir);
if(!is_writable($svy_data_dir))
{
$this->ilias->raiseError("Survey Data Directory (".$svy_data_dir
.") not writeable.",$... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function createDataPaths() {\n foreach ($this->data_paths as $path) {\n if (!file_exists($this->root . $path)) {\n mkdir($this->root . $path);\n }\n }\n }",
"function createExportDirectory()\n\t{\n\t\tinclude_once \"./Services/Utilities/classes/class.ilUtil.p... | [
"0.661015",
"0.614429",
"0.57506263",
"0.572122",
"0.54660785",
"0.54467916",
"0.54372424",
"0.5290525",
"0.5286214",
"0.5264288",
"0.5234348",
"0.52172285",
"0.5210664",
"0.5180001",
"0.51475483",
"0.5122455",
"0.51067424",
"0.50994813",
"0.5098831",
"0.5071527",
"0.5042189"... | 0.80771524 | 0 |
get import directory of survey | получить каталог импорта опроса | function getImportDirectory()
{
include_once "./Services/Utilities/classes/class.ilUtil.php";
$import_dir = ilUtil::getDataDir()."/svy_data".
"/svy_".$this->getId()."/import";
if (!is_dir($import_dir))
{
ilUtil::makeDirParents($import_dir);
}
if(@is_dir($import_dir))
{
return $import_dir;
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static public function get_dir() {\n\t\treturn apply_filters( 'themeisle_site_import_uri', trailingslashit( get_template_directory_uri() ) . self::OBOARDING_PATH );\n\t}",
"public function getUploadDir()\n {\n return 'import/fichier/licencies';\n }",
"function dirPath() { return (\"../\"); }",
"... | [
"0.65910035",
"0.6490277",
"0.6426152",
"0.6362744",
"0.62728024",
"0.62516975",
"0.62449497",
"0.617874",
"0.6165781",
"0.61322993",
"0.6053908",
"0.60391194",
"0.60345554",
"0.60345554",
"0.598935",
"0.598935",
"0.5977004",
"0.5976128",
"0.5959898",
"0.59541905",
"0.5941614... | 0.7160903 | 0 |
Returns the number of generated survey codes for the survey | Возвращает количество сгенерированных кодов опроса для опроса | function getSurveyCodesCount()
{
global $ilDB;
$result = $ilDB->queryF("SELECT anonymous_id FROM svy_anonymous WHERE survey_fi = %s AND user_key IS NULL",
array('integer'),
array($this->getSurveyId())
);
return $result->numRows();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getAnswerCount();",
"public function getCurrentQuestionCount();",
"public function getQuestionsCount() : int;",
"function CountCorrectAns(){\n\t\n\t\t\t\tglobal $count;\n\t\t\t\twhile($correct){\n\t\t\t\t\t$count++;\n\t\t\t\t}\n\t\t\t\treturn $count;\n\t\t\t}",
"function getAnswerCount()\n\... | [
"0.6926682",
"0.63393015",
"0.6271888",
"0.6235425",
"0.60917884",
"0.5988449",
"0.59811383",
"0.59246165",
"0.5907298",
"0.58895636",
"0.58617824",
"0.5845342",
"0.5842909",
"0.5830281",
"0.58008724",
"0.5789762",
"0.5786591",
"0.5777894",
"0.5776545",
"0.57605547",
"0.57538... | 0.7916477 | 0 |
Deletes a given survey access code | Удаляет заданный код доступа к опросу | function deleteSurveyCode($survey_code)
{
global $ilDB;
if (strlen($survey_code) > 0)
{
$affectedRows = $ilDB->manipulateF("DELETE FROM svy_anonymous WHERE survey_fi = %s AND survey_key = %s",
array('integer', 'text'),
array($this->getSurveyId(), $survey_code)
);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function destroy(Access_Code $access_Code)\n {\n //\n }",
"public function delete_promocode(){\n\t\tif ($this->checkLogin('A') == ''){\n\t\t\tredirect(ADMIN_PATH);\n\t\t}else {\n\t\t\t$promocode_id = $this->uri->segment(4,0);\n\t\t\t$condition = array('id' => $promocode_id);\n\t\t\t$this->pro... | [
"0.6809143",
"0.65443575",
"0.61962664",
"0.61593133",
"0.61061937",
"0.6067653",
"0.6018491",
"0.5998886",
"0.59896755",
"0.59327453",
"0.5891552",
"0.5851584",
"0.58498985",
"0.58428633",
"0.58424604",
"0.58258533",
"0.57565844",
"0.57265663",
"0.5723714",
"0.5714792",
"0.5... | 0.76072896 | 0 |
Returns a survey access code that was saved for a registered user | Возвращает код доступа к опросу, который был сохранен для зарегистрированного пользователя | function getUserAccessCode($user_id)
{
global $ilDB;
$access_code = "";
$result = $ilDB->queryF("SELECT survey_key FROM svy_anonymous WHERE survey_fi = %s AND user_key = %s",
array('integer','text'),
array($this->getSurveyId(), md5($user_id))
);
if ($result->numRows())
{
$row = $ilDB->fetchAssoc($... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function saveUserAccessCode($user_id, $access_code)\n\t{\n\t\tglobal $ilDB;\n\t\t\n\t\t// not really sure what to do about ANONYMOUS_USER_ID\n\t\t\n\t\t$next_id = $ilDB->nextId('svy_anonymous');\n\t\t$affectedRows = $ilDB->manipulateF(\"INSERT INTO svy_anonymous (anonymous_id, survey_key, survey_fi, user_key, tsta... | [
"0.6434415",
"0.6176998",
"0.57541215",
"0.56501913",
"0.5640144",
"0.5596999",
"0.55414224",
"0.5520321",
"0.53998405",
"0.53998405",
"0.5351253",
"0.532095",
"0.53086966",
"0.52719206",
"0.5268595",
"0.5239394",
"0.5239394",
"0.5223659",
"0.5220092",
"0.52163416",
"0.521429... | 0.70388883 | 0 |
Saves a survey access code for a registered user to the database | Сохраняет код доступа к опросу для зарегистрированного пользователя в базу данных | function saveUserAccessCode($user_id, $access_code)
{
global $ilDB;
// not really sure what to do about ANONYMOUS_USER_ID
$next_id = $ilDB->nextId('svy_anonymous');
$affectedRows = $ilDB->manipulateF("INSERT INTO svy_anonymous (anonymous_id, survey_key, survey_fi, user_key, tstamp) ".
"VALUES (%s, %s,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function saveAction()\n {\n $user = Mage::getSingleton('admin/session')->getUser(); \n $post_data = $this->getRequest()->getPost();\n\n try {\n $survey = Mage::getModel('client/survey')->loadSurveyByEmail($user->getEmail());\n if ($survey->getId()) $post_data['i... | [
"0.6711799",
"0.5975437",
"0.59217894",
"0.58084315",
"0.57464164",
"0.5666164",
"0.5632636",
"0.5584012",
"0.5583575",
"0.550554",
"0.54844666",
"0.5476207",
"0.54748577",
"0.54748034",
"0.54588914",
"0.54475576",
"0.5420501",
"0.5398031",
"0.5381151",
"0.5378758",
"0.537309... | 0.7443843 | 0 |
Returns a new, unused survey access code | Возвращает новый, неиспользуемый код доступа к опросу | function createNewAccessCode()
{
// create a 5 character code
$codestring = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
mt_srand();
$code = "";
for ($i = 1; $i <=5; $i++)
{
$index = mt_rand(0, strlen($codestring)-1);
$code .= substr($codestring, $index, 1);
}
// verify it ag... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected static function createAccessCode($a_ass_id)\n\t{\n\t\tglobal $ilDB;\n\n\t\t$cp_id = self::lookupCertifiedProfessional($a_ass_id);\n\t\t$code = substr(ilUtil::randomhash(), 0, 6);\n\t\twhile (adnAssignment::codeUsed($cp_id, $code))\n\t\t{\n\t\t\t$code = substr(ilUtil::randomhash(), 0, 6);\n\t\t}\n\n\t\t$i... | [
"0.5538523",
"0.54378104",
"0.5339956",
"0.52731156",
"0.5238235",
"0.5195098",
"0.5176943",
"0.51492286",
"0.5143673",
"0.5136795",
"0.51088417",
"0.5106634",
"0.5049855",
"0.5029207",
"0.49380118",
"0.49199647",
"0.48945823",
"0.48816422",
"0.48778263",
"0.48743397",
"0.486... | 0.72000366 | 0 |
Convert a print output to XSLFO | Преобразование вывода печати в XSLFO | function processPrintoutput2FO($print_output)
{
global $ilLog;
if (extension_loaded("tidy"))
{
$config = array(
"indent" => false,
"output-xml" => true,
"numeric-entities" => true
);
$tidy = new tidy();
$tidy->parseString($print_output, $config, 'utf8');
$tidy->cleanRep... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function printXmlToStdout(){\n\t\tif(self::$xml)\n\t\t\techo xmlwriter_output_memory(self::$xml);\n\t}",
"private function _print_xml()\n\t{\n\t\n\t}",
"public function printXML()\n {\n @header('Content-type: text/xml');\n\n $dom = new DOMDocument();\n $dom->preserveWhiteSpace = false;\... | [
"0.6214776",
"0.59330314",
"0.57175887",
"0.5589538",
"0.553988",
"0.54900855",
"0.5452032",
"0.5452032",
"0.5452032",
"0.54512674",
"0.54512674",
"0.54500586",
"0.5440119",
"0.53912795",
"0.5291556",
"0.5174643",
"0.5159971",
"0.503058",
"0.4960448",
"0.49530137",
"0.4824958... | 0.77248365 | 0 |
Checks whether or not a question plugin with a given name is active | Проверяет, активен ли плагин вопроса с заданным именем | function isPluginActive($a_pname)
{
global $ilPluginAdmin;
if ($ilPluginAdmin->isActive(IL_COMP_MODULE, "SurveyQuestionPool", "svyq", $a_pname))
{
return TRUE;
}
else
{
return FALSE;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function validate($name) {\n\t\treturn file_exists(TH_PLUGINS.$name.'/plugin.php');\n\t}",
"function plugin_is_active() {\n\t\treturn class_exists( 'Marketpress' );\n\t}",
"abstract function is_plugin();",
"private function is_required_plugin_installed() {\n\t\trequire_once( ABSPATH . 'wp-admin... | [
"0.6994261",
"0.6841296",
"0.6797729",
"0.67614067",
"0.67600656",
"0.6749377",
"0.67284447",
"0.66833436",
"0.6674373",
"0.66321385",
"0.655363",
"0.64991814",
"0.6439421",
"0.6414147",
"0.6384623",
"0.6378078",
"0.6367552",
"0.6346158",
"0.63453746",
"0.63306105",
"0.624629... | 0.77032197 | 0 |
Sets the survey id | Устанавливает идентификатор опроса | public function setSurveyId($survey_id)
{
$this->survey_id = $survey_id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getSurveyId()\n\t{\n\t\treturn $this->survey_id;\n\t}",
"public function set_id($setid){\n $this->id = $setid;\n }",
"function SetId($value) { $this->id=$value; }",
"function setId($id) {\r\n $this->_id = $id;\r\n }",
"function set_id($id) {\n\t\t$this->id = $id;\n\t}",
"functi... | [
"0.7021759",
"0.6748963",
"0.6270328",
"0.60995823",
"0.6076206",
"0.6072761",
"0.60450727",
"0.60389477",
"0.6034578",
"0.602308",
"0.60211366",
"0.6014459",
"0.6008872",
"0.5994465",
"0.5985043",
"0.5976509",
"0.5976509",
"0.5971289",
"0.5952198",
"0.5936737",
"0.5921503",
... | 0.72491056 | 0 |
Get finished id for an appraisee and a rater | Получить идентификатор завершенного оценки для оцениваемого и оценщика | function getFinishedIdForAppraiseeIdAndRaterId($a_appr_id, $a_rat_id)
{
global $ilDB;
$set = $ilDB->query("SELECT finished_id, user_fi FROM svy_finished".
" WHERE survey_fi = ".$ilDB->quote($this->getSurveyId(), "integer").
" AND appr_id = ".$ilDB->quote($a_appr_id, "integer").
" AND user_fi = ".$ilDB-... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function generate_archieve_reconcillation_id() {\n $result = $this->db2->query(\"SELECT archieve_id FROM `gstr_2a_reconciliation_history_all` ORDER BY archieve_id DESC LIMIT 0,1\");\n if ($result->num_rows() > 0) {\n $data = $result->row();\n $archieve_id = $data->archiev... | [
"0.6034842",
"0.6028015",
"0.592773",
"0.5658867",
"0.560318",
"0.5600537",
"0.5598136",
"0.55688363",
"0.55508363",
"0.5535915",
"0.55335665",
"0.55306447",
"0.5515159",
"0.5421823",
"0.54217017",
"0.54217017",
"0.5402917",
"0.54004985",
"0.53715163",
"0.53653467",
"0.535517... | 0.7878513 | 0 |
Returns the user that is used to calculate and render the progress in the tree | Возвращает пользователя, который используется для расчета и отображения прогресса в дереве | protected function getTreeUser()
{
return $this->getReportingUser();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOwner()\n\t{\n\t\t$command='stat -c %U' . sprintf(' \"%s\"', $this->getFullPath());\n\t\t$user=$this->executeCommand($command);\n\t\treturn $user;\n }",
"public function getUser(): string {\n return $this->context->user;\n }",
"private function getCurrentUser()\n {\n // ... | [
"0.6358728",
"0.62904054",
"0.62105876",
"0.61914754",
"0.6145585",
"0.61324984",
"0.6084648",
"0.60811996",
"0.60758793",
"0.6019401",
"0.6019401",
"0.5968529",
"0.59658897",
"0.5963069",
"0.5956666",
"0.59563655",
"0.5933064",
"0.5921058",
"0.59018826",
"0.5895571",
"0.5894... | 0.73794365 | 0 |
The attribution metadata for this source reference. | Метаданные о правах на использование для этого источника. | public function getAttribution()
{
return $this->attribution;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getAttribution() \n {\n return $this->_attribution;\n }",
"public function get_attribution()\n {\n }",
"public function getMetaData();",
"public function getMetaData()\n {\n return $this->metadata;\n }",
"public function getMetadata();",
"public function g... | [
"0.72936976",
"0.71695805",
"0.66840726",
"0.6365214",
"0.6333959",
"0.6333959",
"0.6333959",
"0.62797874",
"0.62797874",
"0.62732995",
"0.626247",
"0.6200708",
"0.61211425",
"0.6103003",
"0.6103003",
"0.6056639",
"0.6018305",
"0.60028964",
"0.60021675",
"0.59578305",
"0.5957... | 0.7435759 | 0 |
The qualifiers associated with this source reference. | Квалификаторы, связанные с этим источником ссылки. | public function getQualifiers()
{
return $this->qualifiers;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getSrcQualifier() {\n return $this->srcQualifier;\n }",
"protected function getSubActionQualifiers()\n {\n $sourceQualifiers = $this->source ? $this->source->getStringQualifiers() : [];\n $sourceTransformation = $this->source ? $this->source->getTransformation() : null;\n ... | [
"0.6840164",
"0.62149405",
"0.6043494",
"0.5954648",
"0.57549524",
"0.55836374",
"0.5224615",
"0.49366456",
"0.4918287",
"0.491237",
"0.4891207",
"0.48860607",
"0.4870766",
"0.478804",
"0.47789568",
"0.47510988",
"0.47469836",
"0.47403923",
"0.47347435",
"0.47147945",
"0.4708... | 0.7615449 | 0 |
month must be nonnull, and between 1 and 12 | месяц должен быть не нулевым и находиться в диапазоне от 1 до 12 | private function validate_month($value)
{
return ($value == '' || $value > 12 || $value < 1) ? 0 : 1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function isValidMonth($month) {\n\t\t$input = file_get_contents('php://input');\n\t\t$_POST = json_decode($input, TRUE);\n\t\tif ($_POST['every_unit'] == 'Year') {\n\t\t\tif (empty($month) || !is_numeric($month) || $month < 1 || $month > 12) {\n\t\t\t\t$this->form_validation->set_message('isValidMonth', 'Th... | [
"0.74105084",
"0.73813313",
"0.67582345",
"0.67526424",
"0.66120327",
"0.6553738",
"0.64288527",
"0.63856345",
"0.6379256",
"0.6372042",
"0.6344793",
"0.6338817",
"0.6331252",
"0.6311929",
"0.628673",
"0.62839997",
"0.62462425",
"0.62365085",
"0.62245655",
"0.6221138",
"0.620... | 0.7434619 | 0 |
year must be nonnull, and between 2010 and 2021 | год должен быть не нулевым и находиться в диапазоне от 2010 до 2021 | private function validate_year($value)
{
return ($value == '' || $value > 12 || $value < 1) ? 0 : 1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function validateYear($year) {\n if (empty($year)) {\n exit(\"<h1>Please Provide Year.</h1>\");\n }\n if (!is_numeric($year) || strlen($year) != 4) {\n exit(\"<h1>Please Provide Valid Year.</h1>\");\n }\n }",
"public function is_year()\n {\n ... | [
"0.7501873",
"0.7347705",
"0.7144444",
"0.7116113",
"0.7082587",
"0.694735",
"0.6911246",
"0.68076587",
"0.6791426",
"0.6789036",
"0.6764261",
"0.67242163",
"0.67186284",
"0.66407436",
"0.66173935",
"0.6584991",
"0.65367067",
"0.65132064",
"0.650971",
"0.6497728",
"0.6448915"... | 0.74626637 | 1 |
Determine if image needs resizing. | Определите, требуется ли изменение размера изображения. | private function needsResizing(Image $image)
{
return $image->width() > $this->maxWidth || $image->height() > $this->maxHeight;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function checkImage()\n\t{\n\t\tif (!$this->imageResized) {\n\t\t\t$this->resize($this->width, $this->height);\n\t\t}\n\t}",
"public function images_done_resizing() {\r\n\t\treturn (int)$this->images_done === 1;\r\n\t}",
"public function hasImageWidth()\n {\n return $this->image_width !== nul... | [
"0.7325628",
"0.72167456",
"0.71899045",
"0.7029213",
"0.69956076",
"0.68875074",
"0.68694293",
"0.6830616",
"0.6621196",
"0.6555775",
"0.65295607",
"0.6526149",
"0.6515436",
"0.65104705",
"0.6509947",
"0.64898175",
"0.64841384",
"0.64685374",
"0.6406487",
"0.63992804",
"0.63... | 0.7597212 | 0 |
Sets object property for supplied method_type object | Устанавливает свойство объекта для указанного метода метод_type | private function setMethodType(\LewNelson\Namecheap\NamecheapMethodTypesInterface $object, $method_type)
{
$method_type = Utilities::convertCamelCaseToUnderscore($method_type);
$this->$method_type = $object;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected function setMethod();",
"public function setMethod($value) { $this->_method = $value; }",
"public function setMethod($method);",
"public function setMethod($method);",
"function setObjtype($objtype) {\n $this->objtype = $objtype;\n }",
"public function SetMethod ($method = NU... | [
"0.6512611",
"0.6458118",
"0.61746645",
"0.61746645",
"0.60321146",
"0.59769195",
"0.5934114",
"0.5901032",
"0.58191955",
"0.5806323",
"0.5782891",
"0.57785857",
"0.57784647",
"0.5725926",
"0.5694579",
"0.5666068",
"0.56530696",
"0.56388265",
"0.56351954",
"0.5622923",
"0.559... | 0.71373475 | 0 |
Run all worker instances. | Запустить все экземпляры рабочих. | public static function runAll()
{
static::checkSapiEnv();
static::init();
static::daemonize();
static::initWorkers();
static::installSignal();
static::saveMasterPid();
static::displayUI();
static::forkWorkers();
static::resetStd();
stat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function run()\n {\n $workers = Worker::factory()->count(7)->create();\n }",
"public function run()\n {\n $workerList = [\n \"Андрей\",\n \"Сергей\",\n \"Михаил\",\n \"Стас\",\n \"Артем\",\n \"Татьяна\",\n ... | [
"0.76064914",
"0.7161087",
"0.6960634",
"0.6868446",
"0.6694918",
"0.6642178",
"0.65178114",
"0.6493948",
"0.64603776",
"0.6445839",
"0.6411748",
"0.63739115",
"0.63141024",
"0.62988764",
"0.62928337",
"0.6283509",
"0.62760395",
"0.62691885",
"0.6248755",
"0.6241529",
"0.6235... | 0.7536842 | 1 |
TODO: Implement whereIn() method. | TODO: Реализовать метод whereIn(). | public function whereIn($column, $value)
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function whereIn($values);",
"public function whereIn($column, $values);",
"public function whereIn()\n {\n list($field, $value) = $this->extractQueryToFieldAndValue(func_get_args());\n $this->_conditions[self::WHEREIN][$field] = [self::OPERATORS['in'] => $value];\n return $this;... | [
"0.7733971",
"0.7192455",
"0.71874446",
"0.69354284",
"0.69113064",
"0.69108295",
"0.6751012",
"0.6737197",
"0.6686514",
"0.66743904",
"0.65578145",
"0.6418357",
"0.6376507",
"0.63685924",
"0.63111216",
"0.6194996",
"0.61801094",
"0.61729777",
"0.60847586",
"0.608329",
"0.608... | 0.7495021 | 1 |
TODO: Implement createMultiple() method. | TODO: Реализовать метод createMultiple(). | public function createMultiple(array $data)
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function test_create__multiple()\n {\n\n // Element\n $element = [\n 'attributes' => [\n 'type' => 'text',\n 'name' => 'my-text',\n 'id' => 'my-id'\n ],\n 'label' => 'My label'\n ];\n // Choic... | [
"0.70777655",
"0.66607034",
"0.6625474",
"0.6603756",
"0.6455487",
"0.63712376",
"0.6356951",
"0.63147205",
"0.6314702",
"0.6301033",
"0.6301033",
"0.6301033",
"0.6301033",
"0.6301033",
"0.6301033",
"0.6301033",
"0.6301033",
"0.6301033",
"0.6301033",
"0.6301033",
"0.6301033",... | 0.777264 | 0 |
this is a custom query scope that will be used inside the birthdays controller index method to find/search all birthdays. There is a problem with carbon datetime that causes the year to go missing if a month is searched so we are using this. | это пользовательский query scope, который будет использоваться внутри метода index контроллера birthdays для поиска всех дней рождения. Есть проблема с datetime carbon, из-за которой год исчезает, если ищется месяц, поэтому мы используем это. | public function scopeBirthdays($query)
{ // 1st parameter is the database field name and the second parameter is the current month (formatted using carbon)
return $query->whereMonth('birthday', now()->format('m'));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function scopePublished($query){\n $query->where('RDate','<=',Carbon::now()->format('Y-m-d'))->where('EXDate','>=',Carbon::now()->format('Y-m-d'));\n }",
"public function scopeMonth($query,$filters){\n if($month = $filters['month']){\n $query->whereMonth('created_at', Carbon::p... | [
"0.62848204",
"0.6150643",
"0.6142013",
"0.60641",
"0.6005736",
"0.5880554",
"0.5857754",
"0.58381796",
"0.58295476",
"0.5784877",
"0.5783939",
"0.5744948",
"0.5694011",
"0.5692158",
"0.5673491",
"0.5648356",
"0.56377035",
"0.5597963",
"0.559727",
"0.5588612",
"0.5522153",
... | 0.7435892 | 0 |
Gather user agent data. | Соберите данные о пользовательском агенте. | protected function gatherUserAgentData()
{
// User agent container
$userAgents = ['original' => null, 'nodes_meta' => null];
// Retrieve original user agent
$originalUserAgent = user_agent();
if (!empty($originalUserAgent)) {
$userAgents['original'] = [
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function user_agent() {\n static $result = null;\n if (!is_array($result)) {\n $ci = get_instance();\n $ci->load->library('user_agent');\n $agent = $ci->agent;\n $result['agent_string'] = $agent->agent_string();\n $result['platform'] = $agent->pl... | [
"0.6708272",
"0.66069305",
"0.6579718",
"0.63997126",
"0.63989145",
"0.6300457",
"0.62068605",
"0.6183935",
"0.609172",
"0.6047646",
"0.6012644",
"0.6004824",
"0.6000215",
"0.5981201",
"0.59771425",
"0.5965076",
"0.59342074",
"0.5916829",
"0.5892118",
"0.5874128",
"0.5840638"... | 0.7964871 | 0 |
Register an event listener to trigger on failed jobs from queues. | Зарегистрируйте обработчик событий для срабатывания при неудачных задачах из очередей. | protected function registerFailedJobsListener()
{
if (!in_array($this->app->environment(), config('nodes.bugsnag.notify_release_stages', []))) {
return;
}
if (!config('nodes.bugsnag.report_failed_jobs', true)) {
return;
}
Queue::failing(function (Job... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function failing($callback)\n {\n $this->app['events']->listen('custom.queue.failed', $callback);\n }",
"public function failing($callback)\n {\n $this->app['events']->listen(Events\\JobFailed::class, $callback);\n }",
"public function failing($callback)\n {\n $this->... | [
"0.69554096",
"0.6617831",
"0.6617831",
"0.5824383",
"0.5686169",
"0.56673723",
"0.56673723",
"0.55373496",
"0.5236322",
"0.5128657",
"0.5114447",
"0.5089709",
"0.50803906",
"0.5078969",
"0.50722075",
"0.50544",
"0.5012601",
"0.49669456",
"0.49516952",
"0.4901069",
"0.4895144... | 0.8041647 | 0 |
registerHandler we'll rebind the default Exception Handler to use our Bugsnag Handler so exceptions will be reported to Bugsnag. | registerHandler мы переопределим обработчик исключений по умолчанию, чтобы использовать наш обработчик Bugsnag, поэтому исключения будут отправляться в Bugsnag. | protected function registerHandler()
{
if (!in_array($this->app->environment(), config('nodes.bugsnag.notify_release_stages', []))) {
return;
}
if (!config('nodes.bugsnag.rebind_handler', true)) {
return;
}
$this->app->singleton('Illuminate\Contracts... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function registerExceptionHandler()\n\t{\n\t\tset_exception_handler(function($e){\n\t\t\treturn View::handleError($e->getMessage(), 500);\n\t\t});\n\t}",
"protected function registerExceptionHandlers()\n {\n // We register the framework exception handler...\n $this->container->bind(\n ... | [
"0.7122228",
"0.70543295",
"0.69273514",
"0.686459",
"0.68639123",
"0.65977246",
"0.6595322",
"0.65508413",
"0.65447867",
"0.6525875",
"0.6515792",
"0.6513559",
"0.6501556",
"0.6466589",
"0.6440367",
"0.642145",
"0.64095706",
"0.6404225",
"0.6227761",
"0.6204559",
"0.61988866... | 0.77660275 | 0 |
Get default file url | Получить URL файла по умолчанию | public function getDefaultFileUrl()
{
return $this->baseUrl.'/default_image.png';
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getUrl()\n {\n if (!$this->filename) {\n return null;\n }\n\n return $this->base_url . '/' . $this->filename;\n }",
"public function getFileUrl()\n {\n\n return get_bloginfo('url') . \"/\" . $this->getFileName();\n\n }",
"public function getFil... | [
"0.74343115",
"0.7353781",
"0.72325313",
"0.71754056",
"0.70734674",
"0.6938624",
"0.6914747",
"0.6911481",
"0.6827444",
"0.67132115",
"0.66992396",
"0.66643625",
"0.65948397",
"0.6569082",
"0.6566136",
"0.6525367",
"0.65250313",
"0.6514947",
"0.6514485",
"0.64838815",
"0.645... | 0.83693975 | 0 |
Gets list of watchers for a category. | Получает список наблюдателей для категории. | public static function getWatcherList($category) {
$adodb = adodbGetConnection();
$adodb->SetFetchMode(ADODB_FETCH_ASSOC);
$sql = 'SELECT * FROM '.TABLE_CATEGORY_WATCH.' WHERE categoryid=?';
$rs = $adodb->Execute($sql, Array($category->getId()));
if ( $rs === false ) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function watching()\n {\n return $this->hasMany(watching::class);\n }",
"public function all()\n\t{\n\t\treturn $this->watchlist->orderBy('created_at','desc')->get();\n\t}",
"public function watchers(){\n\n return $this->hasMany('App\\Watcher');\n }",
"public function getCategor... | [
"0.54338086",
"0.54285103",
"0.52182585",
"0.51749563",
"0.51534826",
"0.5136615",
"0.512477",
"0.50920874",
"0.5078673",
"0.5044089",
"0.4977112",
"0.4973489",
"0.49577263",
"0.495265",
"0.49508035",
"0.4942523",
"0.49350345",
"0.49132296",
"0.48890138",
"0.48879623",
"0.488... | 0.73874205 | 0 |
Checks if a user is watching a category | Проверяет, смотрит ли пользователь категорию | public static function isWatching($user, $category) {
$adodb = adodbGetConnection();
$sql = 'SELECT * FROM '.TABLE_CATEGORY_WATCH.' WHERE categoryid=? AND userid=?';
$rs = $adodb->Execute($sql, Array($category->getId(), $user->getId()));
$result = $rs !== false && !$rs->EOF;
$rs-... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function category() {\n if ($this->is_logged_in()){\n return true; //check if user had been logged in!!!\n }else{\n exit;\n }\n }",
"public function isWatching(): bool {\n $f3 = \\Base::instance();\n $watch = new Watched();\n\n ... | [
"0.6260988",
"0.62571096",
"0.6177837",
"0.6116819",
"0.5976005",
"0.59670824",
"0.5944458",
"0.5864672",
"0.5858774",
"0.5825024",
"0.58050007",
"0.5796772",
"0.5739628",
"0.57086855",
"0.5708132",
"0.57022846",
"0.5611773",
"0.55885553",
"0.5558433",
"0.55528027",
"0.553858... | 0.7593479 | 0 |
Returns database specific message provided to the constructor. | Возвращает специфическое для базы данных сообщение, предоставленное в конструкторе. | public function getDatabaseMessage()
{
return $this->databaseMessage;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract public function get_message();",
"public function getMessage() {}",
"public function getMessage() {}",
"public function getMessage() {}",
"public function get_message() { return $this->getMessage(); }",
"public function getMessage();",
"public function getMessage();",
"public function getMes... | [
"0.65168744",
"0.6279108",
"0.6279108",
"0.6279108",
"0.6231922",
"0.62175566",
"0.62175566",
"0.62175566",
"0.62175566",
"0.62175566",
"0.62175566",
"0.62175566",
"0.62175566",
"0.62175566",
"0.62175566",
"0.62175566",
"0.62175566",
"0.62175566",
"0.61753887",
"0.614337",
"0... | 0.7413875 | 0 |
Remove style.css in page outdatedbrowser | Удалите style.css на странице outdatedbrowser | function v2_mumm_css_alter(&$css) {
$path = drupal_get_path('theme', 'v2_mumm');
if ($_GET['q'] === 'outdated-browser') {
unset($css[$path . '/css/style.css']);
}
else {
unset($css[$path . '/css/unsupported-browsers.css']);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function webbusiness_reset_cache_custom_css() {\n\tdelete_transient('webbusiness_custom_css_preview');\n\twebbusiness_cache_custom_css_preview();\n}",
"function remove_default_admin_stylesheets() {\n \t// wp_deregister_style('wp-reset-editor-styles');\n }",
"function delete_stylesheet() {\n\t\t\t$css_file = $t... | [
"0.7121672",
"0.6820813",
"0.6767376",
"0.66542",
"0.6637675",
"0.65933967",
"0.6542895",
"0.64284766",
"0.63788235",
"0.63734704",
"0.63734704",
"0.6369779",
"0.63692594",
"0.63396305",
"0.63282734",
"0.63256955",
"0.63195795",
"0.6314363",
"0.63023406",
"0.62994653",
"0.629... | 0.7393213 | 0 |
/ hook menu tree new main menu | / hook меню дерево новый главное меню | function v2_mumm_menu_tree__menu_new_main_menu(&$variables) {
return '<ul>' . $variables['tree'] . '</ul>';
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected function getMenuTree();",
"public function add_menus()\n {\n }",
"protected function _menu()\n\t{\n\t\tif (ee()->view->disabled('ee_menu'))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tee()->view->cp_main_menu = ee()->menu->generate_menu();\n\t}",
"public function menu( )\n {\n\n ... | [
"0.7769254",
"0.7483676",
"0.7359278",
"0.7307369",
"0.72944605",
"0.72934026",
"0.7284114",
"0.72696567",
"0.7092574",
"0.70556545",
"0.70442617",
"0.7043374",
"0.7042811",
"0.70421255",
"0.70421255",
"0.70421255",
"0.70421255",
"0.70421255",
"0.70421255",
"0.7026042",
"0.69... | 0.7784215 | 0 |
/ hook menu tree menu doormat | / hook меню дерево меню порог | function v2_mumm_menu_tree__menu_doormat(&$variables) {
return $variables['tree'];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected function getMenuTree();",
"function v2_mumm_menu_link__menu_doormat(&$variables) {\n $element = $variables ['element'];\n $sub_menu = '';\n\n if ($element ['#below']) {\n $sub_menu = drupal_render($element ['#below']);\n }\n\n if ($element['#change_location']) {\n\n $output = '<a cl... | [
"0.75815296",
"0.693262",
"0.6785069",
"0.67822325",
"0.6747974",
"0.66673255",
"0.66452086",
"0.6637228",
"0.6637228",
"0.6637228",
"0.6637228",
"0.6637228",
"0.6637228",
"0.65968657",
"0.6546187",
"0.651056",
"0.65010273",
"0.6418793",
"0.64155686",
"0.63781244",
"0.6377988... | 0.8066589 | 0 |
/ hook menu link menu doormat | / hook меню ссылка меню пороговый ковер | function v2_mumm_menu_link__menu_doormat(&$variables) {
$element = $variables ['element'];
$sub_menu = '';
if ($element ['#below']) {
$sub_menu = drupal_render($element ['#below']);
}
if ($element['#change_location']) {
$output = '<a class="hidden-xs" data-trigger-toggle="change-location" title="' ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function Menu_Rendering($menu) {\r\n}",
"function adwr_menu_link($vars) {\n //gs\n $menu_class = str_replace(' ', '-', strtolower($vars['element']['#original_link']['link_title']));\n $vars['element']['#attributes']['class'][] = 'menu-li-' . $menu_class;\n if (isset($variables['element']['#localized_options'... | [
"0.696023",
"0.6719151",
"0.66533846",
"0.66533846",
"0.66533846",
"0.66533846",
"0.66533846",
"0.66533846",
"0.6568166",
"0.65402615",
"0.6533125",
"0.6504315",
"0.6470378",
"0.6465614",
"0.646409",
"0.6447996",
"0.64235765",
"0.64038825",
"0.63408864",
"0.6336132",
"0.63216... | 0.7640543 | 0 |
/ hook menu tree menu header | / hook меню дерево меню заголовок | function v2_mumm_menu_tree__menu_header(&$variables) {
return $variables['tree'];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function soho_menu_tree__header_menu($variables){\n return '<ul class=\"menu\" id=\"menu-main-menu\">' . $variables['tree'] . '</ul>';\n \n}",
"function soho_menu_tree__header_menu_below($variables){\n return '<ul class=\"sub-menu\">' . $variables['tree'] . '</ul>';\n}",
"abstract protected function getMenu... | [
"0.7531755",
"0.73295164",
"0.7316249",
"0.70729876",
"0.7012726",
"0.70084804",
"0.6994885",
"0.6941257",
"0.6916892",
"0.6880645",
"0.6880635",
"0.6880635",
"0.6866265",
"0.6832925",
"0.674405",
"0.6735178",
"0.6732258",
"0.6716877",
"0.66471803",
"0.6608329",
"0.65676475",... | 0.80148476 | 0 |
/ hook menu link menu header | / hook меню ссылка меню заголовок | function v2_mumm_menu_link__menu_header(&$variables) {
$element = $variables ['element'];
$sub_menu = '';
if ($element ['#below']) {
$sub_menu = drupal_render($element ['#below']);
}
if (in_array('search-btn', $element['#localized_options']['attributes']['class'])) {
$output = '<button id="search-... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function register_header_menu() {\r\n register_nav_menu('header-menu',__( 'Header Menu' ));\r\n}",
"protected function actionHeader() {\n Navigation::activateItem($this->navlink);\n $this->setTabNavigationIcon('black');\n $this->addSubNavigation(_('Lesen'), 'show');\n if (Utils\\hasP... | [
"0.71524006",
"0.70759934",
"0.70343477",
"0.6998449",
"0.6996317",
"0.69815576",
"0.68384844",
"0.67936015",
"0.678742",
"0.6768134",
"0.67609215",
"0.6731005",
"0.6699255",
"0.6692182",
"0.6667145",
"0.6650084",
"0.6630511",
"0.66275126",
"0.6611448",
"0.66073996",
"0.65861... | 0.7386077 | 0 |
Function to add a new customer to the database Returns customer id for appointment creation | Функция для добавления нового клиента в базу данных Возвращает идентификатор клиента для создания записи о приеме | public static function addCustomer() {
// We get appointment information then set up our validator
$info = Session::get('appointmentInfo');
$validator = Validator::make(
array(
'first_name' => $info['fname'],
'last_name' => $info['lname'],
'email' => $info['ema... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function add_customer($params){\n $this->company_db->insert('tbl_customer', $params);\n return $this->company_db->insert_id();\n }",
"function add_customer()\n\t{\n\t\t$table = \"customer\";\n\t\t$where = \"customer_email = '\".$this->input->post('user_email').\"'\";\n\t\t$items = \"customer_id\... | [
"0.7540544",
"0.7501426",
"0.7476336",
"0.7297128",
"0.7260823",
"0.7233852",
"0.7174463",
"0.71472234",
"0.7080077",
"0.70112634",
"0.68023676",
"0.6711746",
"0.6711415",
"0.6703683",
"0.6683012",
"0.6674407",
"0.66472894",
"0.66294324",
"0.66287255",
"0.6628496",
"0.6624735... | 0.799979 | 0 |
Show the official website's customer password modification page. | Показать страницу изменения пароля клиента на официальном сайте. | public function get_changepassword(){
if (Auth::check()){
$customer_id = Auth::user()->customer_id;
$this->layout->content = View::make('frontend.customers.changepassword')
->with('title', 'Change Password')
->with('customer', Customer::find($customer_id));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function display_account_password( ){\n\t\tif( $this->is_page_visible( \"password\" ) ){\n\t\t\tif( file_exists( WP_PLUGIN_DIR . '/wp-easycart-data/design/layout/' . get_option( 'ec_option_base_layout' ) . '/ec_account_password.php' ) )\t\n\t\t\t\tinclude( WP_PLUGIN_DIR . '/wp-easycart-data/design/layout/' ... | [
"0.7035958",
"0.69246453",
"0.6820135",
"0.6764243",
"0.670467",
"0.66100836",
"0.6597302",
"0.65646",
"0.65638286",
"0.6552018",
"0.6527928",
"0.65043706",
"0.6493847",
"0.6493477",
"0.64900535",
"0.6476638",
"0.6456349",
"0.64230424",
"0.64101946",
"0.63956374",
"0.6385962"... | 0.70057374 | 1 |
Validate and update the customer password. | Проверить и обновить пароль клиента. | public function put_updatepassword(){
$customer_id = Input::get('customer_id');
$customer = Customer::find($customer_id);
$validation = Customer::validate_changepassword();
if($validation->fails()) {
return Redirect::back()
->withErrors($validation);
}
else {
if (Hash::check(Input::get('cus... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function c_changepass(){\n\t\t\n\t\t$this->getC();\n\t\t$this->layout = false;\n\t\tif ($this->request->is('post')) {\n\t\t\t$customers = $this->Customers->get($this->request->session()->read('id'), [\n\t\t\t\t'contain' => []\n\t\t\t]);\n\t\t\t$pass = $this->request->data['data']['Customers']['oldpassword']... | [
"0.71529937",
"0.7088309",
"0.7068977",
"0.6989629",
"0.69753814",
"0.6903448",
"0.68893903",
"0.6887201",
"0.68864095",
"0.68816286",
"0.6829387",
"0.67919093",
"0.675894",
"0.6707644",
"0.66502804",
"0.66418254",
"0.6631461",
"0.66262984",
"0.66259164",
"0.6619807",
"0.6583... | 0.7194367 | 0 |
Setup validation rules hook. User defined rules override in this method | Установите валидационные правила hook. Пользовательские правила переопределяются в этом методе | public function setupValidatorRules()
{ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function setupRules()\n {\n // Validator::extend('rule', 'App\\Support\\Rules\\Rule@validate');\n // Validator::replacer('rule', 'App\\Support\\Rules\\Rule@message');\n }",
"abstract protected function setValidationRules(): array;",
"protected function setupValidation()\n {\n ... | [
"0.7873743",
"0.7539429",
"0.7488328",
"0.7474278",
"0.7397229",
"0.7386316",
"0.7314234",
"0.72395444",
"0.72065735",
"0.71552396",
"0.7146794",
"0.70905954",
"0.70653665",
"0.7038177",
"0.70157105",
"0.70144886",
"0.6987463",
"0.69813",
"0.6974042",
"0.6962235",
"0.695694",... | 0.7955413 | 0 |
Setup filter rules hook. User defined rules override in this method | Установить фильтр правил. Пользовательские правила переопределяются в этом методе | public function setupFilterRules()
{ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function beforeFilter() {\n }",
"protected function preValidate()\n {\n $this->setFilter( preg_quote($this->getFilter()) );\n }",
"public function addFilters()\n {\n }",
"public static function filter($rules)\n\t{ \n\t\tstatic::$filters[] = $rules;\n\t}",
"public function beforeFilter()\n... | [
"0.69546634",
"0.67810273",
"0.6774493",
"0.6758745",
"0.6717176",
"0.671316",
"0.670728",
"0.6663506",
"0.652919",
"0.65026444",
"0.64986396",
"0.6469668",
"0.6433312",
"0.64266247",
"0.64166725",
"0.6379295",
"0.6372237",
"0.6331557",
"0.63045144",
"0.63021225",
"0.6283267"... | 0.8648846 | 0 |
Setup default rules hook. User defined rules override in this method | Установка встроенных правил. Пользовательские правила переопределяются в этом методе | protected function setupDefaultsRules()
{ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function setupRules()\n {\n // Validator::extend('rule', 'App\\Support\\Rules\\Rule@validate');\n // Validator::replacer('rule', 'App\\Support\\Rules\\Rule@message');\n }",
"public function beforeRules(): void\n {\n }",
"public function setRules() {\n }",
"public function... | [
"0.78479826",
"0.76717967",
"0.7567336",
"0.74653274",
"0.72759455",
"0.7257625",
"0.7098612",
"0.7098612",
"0.7098612",
"0.7098612",
"0.7011071",
"0.6992647",
"0.6953926",
"0.6953926",
"0.6953926",
"0.6916104",
"0.6893561",
"0.6876817",
"0.6839362",
"0.68129206",
"0.67757434... | 0.78622955 | 0 |
Get cascade filter rules on add | Получить правила фильтра cascade при добавлении | public function getFilterCascadeRulesOnAdd()
{
if (!$this->filterCascadeRulesOnAdd) {
$this->setupFilterCascadeRules();
}
return $this->filterCascadeRulesOnAdd;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getFilterCascadeRulesOnUpdate()\n {\n if (!$this->filterCascadeRulesOnUpdate) {\n $this->setupFilterCascadeRules();\n }\n\n return $this->filterCascadeRulesOnUpdate;\n }",
"public function filters()\n {\n $filters = array(\n 'postOnly + d... | [
"0.7267701",
"0.60244393",
"0.60244393",
"0.59668934",
"0.5922865",
"0.5885551",
"0.5846449",
"0.5796171",
"0.5780541",
"0.5776938",
"0.57538325",
"0.574064",
"0.565488",
"0.56052756",
"0.55917126",
"0.558654",
"0.5560652",
"0.5535454",
"0.5533218",
"0.54929405",
"0.54794115"... | 0.82928276 | 0 |
Get cascade filter rules on update | Получить правила фильтрации в цепочке при обновлении | public function getFilterCascadeRulesOnUpdate()
{
if (!$this->filterCascadeRulesOnUpdate) {
$this->setupFilterCascadeRules();
}
return $this->filterCascadeRulesOnUpdate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getFilterCascadeRulesOnAdd()\n {\n if (!$this->filterCascadeRulesOnAdd) {\n $this->setupFilterCascadeRules();\n }\n\n return $this->filterCascadeRulesOnAdd;\n }",
"public function getRulesForUpdate()\r\n\t{\r\n\t \treturn $this->rules_for_update ? $this->rule... | [
"0.73526454",
"0.6507408",
"0.60507125",
"0.5797273",
"0.5797273",
"0.578298",
"0.57729775",
"0.5720857",
"0.57158077",
"0.56766295",
"0.56107473",
"0.5597074",
"0.5582021",
"0.5563095",
"0.554915",
"0.5543232",
"0.55427855",
"0.5517676",
"0.549633",
"0.5491389",
"0.5480864",... | 0.82461643 | 0 |
Gets the gift attribute value. | Получает значение атрибута gift. | public function getAttributeValue() {
return $this->attributeValue;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getValue() {\n return $this->attributes['value'];\n }",
"function getValue()\n {\n return $this->getAttribute(\"value\");\n }",
"public function getValue(string $attr)\n {\n $this->checkAttribute($attr);\n return $this->attributes[$attr];\n }",
"public fun... | [
"0.707214",
"0.6749503",
"0.66779745",
"0.66291416",
"0.6616211",
"0.65846014",
"0.65846014",
"0.65426826",
"0.6431293",
"0.64220107",
"0.63723105",
"0.6287378",
"0.62606466",
"0.6237991",
"0.6215489",
"0.6215489",
"0.6197989",
"0.61887074",
"0.61862296",
"0.61862296",
"0.618... | 0.71333665 | 0 |
Cleans the number and removes any spaces surrounding it. | Очищает число и удаляет все пробелы вокруг него. | protected function clean(string $number): string {
$number = preg_replace('#[^\d]#', '', $number);
return trim($number);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function cardNumberClean($number)\n {\n return preg_replace(\"/[^0-9]/\", \"\", $number);\n }",
"public function cleanNumber($value) {\n $data = trim($value);\n\n // Removes Unwanted Characters\n $data = filter_var($data, FILTER_SANITIZE_NUMBER_INT);\n\n // Sanitizes HTML Charact... | [
"0.73357236",
"0.73177266",
"0.6943687",
"0.6891283",
"0.669165",
"0.649616",
"0.64943045",
"0.6437673",
"0.640825",
"0.6396689",
"0.638609",
"0.637747",
"0.63772386",
"0.63426954",
"0.6330114",
"0.6267231",
"0.62286705",
"0.6221756",
"0.6169539",
"0.615727",
"0.61476725",
... | 0.74052095 | 0 |
Calculates the Luhn checksum of a personal no. | Вычисляет контрольную сумму Луна для личного номера. | public function luhnChecksum(string $number): int {
$number = $this->clean($number);
// Reverse the string
$number = strrev($number);
$total = 0;
// From the rightmost digit, which is the check digit,
// and moving left, double the value of every second digit.
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function getChecksum(): int\n {\n $this->generateChecksum(true);\n return ((($this->base) - ($this->luhnValue % $this->base)) % $this->base);\n }",
"public function calculateLuhn(string $partialNumber): int {\n $checkDigit = $this->luhnChecksum(intval($partialNumber) * 10);\n ... | [
"0.7103682",
"0.68381286",
"0.6740685",
"0.6577468",
"0.6355316",
"0.625983",
"0.619785",
"0.619401",
"0.6107352",
"0.607724",
"0.6034228",
"0.6034228",
"0.60248333",
"0.59134376",
"0.588082",
"0.5880558",
"0.5822288",
"0.5815708",
"0.5685192",
"0.56728697",
"0.56599736",
"... | 0.72316176 | 0 |
Verifica che la stringa $telefono contenga un numero di telefono valido. | Проверьте, содержит ли строка $telefono действительный номер телефона. | function checkPhoneNumber($telefono): bool {
return is_string($telefono) and preg_match("/^([+][0-9]{1,3})?[0-9]{4,13}$/", $telefono);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function comprobarTelefono($telefono){\r\n if(!preg_match(\"/^[0-9]{9}$/\", $telefono)){\r\n return false;\r\n }\r\n return true;\r\n}",
"private function checkNumero($tel)\n {\n $pattern = '/\\+\\d{2}+[0-9]{9,15}|[0-9]{9,15}/';\n if (!preg_match($pattern, $tel)){\n echo \"<br>ERRORE nel numero... | [
"0.7884953",
"0.7626425",
"0.7275663",
"0.6961081",
"0.69101065",
"0.6652029",
"0.6640723",
"0.65941364",
"0.6582804",
"0.656772",
"0.65542686",
"0.6552192",
"0.6525625",
"0.64793575",
"0.6436841",
"0.63547516",
"0.63547516",
"0.63456565",
"0.6339082",
"0.63307625",
"0.631981... | 0.7695608 | 1 |
/ | | | | | Check Maintainance Mode | | | | METHOD : _get_maintainance Is to check maintainance whether site offline or online | | | | | | | | Проверка режима обслуживания | | | | МЕТОД: _get_maintainance Проверяет, находится ли сайт в режиме обслуживания или онлайн | | | function _get_maintainance()
{
return $this->admin_setting_model->get_maintainance();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function inMaintenanceMode() {\n $settings = self::getSettings();\n return $settings->maintenance;\n }",
"public static function maintenance_mode()\n\t{\n\t\t$maintenance_mode = Config::get('site.maintenance_mode', FALSE);\n\t\t$message = Config::get('site.offline_message'... | [
"0.6238346",
"0.60999656",
"0.58208376",
"0.56865066",
"0.56841785",
"0.5644382",
"0.5626493",
"0.56097376",
"0.5579961",
"0.55650413",
"0.5546696",
"0.55393016",
"0.5526776",
"0.55167824",
"0.55153435",
"0.54988074",
"0.5497206",
"0.54932386",
"0.5485371",
"0.54719275",
"0.5... | 0.7365725 | 0 |
Check if there's only one page. | Проверьте, есть ли только одна страница. | public function hasOnlyOnePage(): bool
{
return $this->number_of_records <= $this->per_page;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function isFirstPage()\n {\n return $this->getPage() == 1;\n }",
"public function isFirstPage(): bool\n {\n return $this->current === 1;\n }",
"public function isOnepage()\r\n {\r\n if($this->_params['layout'] != 'onepage'){\r\n return false;\r\n }\r... | [
"0.7768475",
"0.7542049",
"0.74768126",
"0.73306036",
"0.7218736",
"0.71453303",
"0.713806",
"0.70983225",
"0.69714266",
"0.68039596",
"0.67506355",
"0.67506355",
"0.67407125",
"0.6708764",
"0.66515553",
"0.6627673",
"0.6610982",
"0.65441734",
"0.65403754",
"0.6339329",
"0.63... | 0.7684597 | 1 |
Set number of pages. | Установить количество страниц. | private function setNumberOfPages(): void
{
$this->number_of_pages = (int)ceil($this->number_of_records / $this->per_page);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function SetNumPages()\n\t\t{\n\t\t\t$this->_pricenumpages = ceil($this->GetNumProducts() / GetConfig('CategoryProductsPerPage'));\n\t\t}",
"function MyMod_Paging_NPages_Set()\n {\n if ($this->NumberOfItems>$this->NItemsPerPage)\n {\n $this->MyMod_Paging_N=intval($this->NumberO... | [
"0.8135322",
"0.79876363",
"0.75676495",
"0.7414022",
"0.73889637",
"0.7300218",
"0.724321",
"0.7106223",
"0.70268685",
"0.70162743",
"0.70079577",
"0.6910613",
"0.6894291",
"0.6875591",
"0.6835551",
"0.68248254",
"0.68202585",
"0.68021345",
"0.6797488",
"0.6754072",
"0.67535... | 0.87577003 | 0 |
Check if current page is the first one. | Проверьте, является ли текущая страница первой. | public function isFirstPage(): bool
{
return $this->current === 1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function isFirstPage()\n {\n return $this->getPage() == 1;\n }",
"public function currentIsFirstPage() {\n return $this->getCurPage() == self::FIRST_PAGE;\n }",
"public function isFirstPage()\n {\n return ($this->currentPage == 1) ? true : false;\n }",
"public funct... | [
"0.8596047",
"0.85819775",
"0.8262948",
"0.80356556",
"0.79444623",
"0.7847717",
"0.7741727",
"0.72756505",
"0.71827626",
"0.7005138",
"0.6859501",
"0.6842288",
"0.6789275",
"0.6776054",
"0.6708755",
"0.6687117",
"0.6680137",
"0.6602533",
"0.65884",
"0.6582312",
"0.6576167",
... | 0.87393767 | 0 |
Check if current page is the last one. | Проверьте, является ли текущая страница последней. | public function isLastPage(): bool
{
return $this->current === $this->number_of_pages;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function currentIsLastPage() {\n return $this->getCurPage() == $this->getTotalPage();\n }",
"public function isLastPage()\n {\n return ($this->currentPage == $this->lastPage) ? true : false;\n }",
"public function getIsLastPage(): bool\n {\n $pageCount = $this->getPageCo... | [
"0.8584557",
"0.8198797",
"0.8180836",
"0.752843",
"0.7439109",
"0.72987545",
"0.72507143",
"0.7162668",
"0.7096697",
"0.709211",
"0.7050119",
"0.6963756",
"0.696118",
"0.6878974",
"0.6871154",
"0.6853866",
"0.67071724",
"0.6698531",
"0.6671391",
"0.6668857",
"0.6630819",
"... | 0.86572033 | 0 |
Set query without page key. | Установить запрос без ключа страницы. | private function setQueryWithoutPageKey(): void
{
$this->query_without_page_key = array_filter(
$this->request->query(),
function ($key) {
return $key !== $this->key;
},
ARRAY_FILTER_USE_KEY
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function unsetQuery($key = null) {\n if (!isset($key)) {\n $this->query = array();\n }\n else {\n unset($this->query[$key]);\n }\n }",
"protected function resetQuery()\n {\n array_forget($this->query, ['start', 'end']);\n }",
"public static function ClearParamsQuery()... | [
"0.7006655",
"0.6761284",
"0.6729426",
"0.6503151",
"0.6465434",
"0.64021605",
"0.63543004",
"0.6346254",
"0.6323558",
"0.6236223",
"0.6208222",
"0.6201642",
"0.61909586",
"0.61877304",
"0.6186107",
"0.6160415",
"0.61580193",
"0.6142437",
"0.6126047",
"0.6112235",
"0.60993046... | 0.8650994 | 0 |
Get number of pages. | Получить количество страниц. | public function numberOfPages(): int
{
return $this->number_of_pages;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function numPages() {\n $links = $this->_document->links('self');\n return $links[0]->totalpages;\n }",
"public function getNumPages()\n {\n return $this->numPages;\n }",
"public function GetNumberOfPages()\n {\n // phpcs:enable PSR1.Methods.CamelCapsMethodName.No... | [
"0.8495226",
"0.8479094",
"0.8425463",
"0.84047025",
"0.83322746",
"0.8309503",
"0.83038586",
"0.82714987",
"0.82086515",
"0.81783915",
"0.81776327",
"0.81479245",
"0.8125502",
"0.8125502",
"0.81220376",
"0.81146467",
"0.8110958",
"0.8080202",
"0.8080143",
"0.8079583",
"0.807... | 0.85402673 | 0 |
Get first page url. | Получить URL первой страницы. | public function firstPageUrl(): string
{
if (empty($this->query_without_page_key)) {
return $this->request->url();
}
return $this->urlWithoutPageKey();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getFirstPageUrl();",
"public function FirstLink()\n {\n return HTTP::setGetVar(\n $this->getPaginationGetVar(),\n 0,\n ($this->request instanceof HTTPRequest) ? $this->request->getURL(true) : null\n );\n }",
"public function getNextPageUrl();... | [
"0.90956396",
"0.7799746",
"0.73800975",
"0.73800975",
"0.7362551",
"0.72856104",
"0.71029633",
"0.7072768",
"0.6959971",
"0.68630785",
"0.68602985",
"0.6762507",
"0.670057",
"0.670057",
"0.66962737",
"0.66838735",
"0.6677647",
"0.6676649",
"0.6674536",
"0.6674201",
"0.665746... | 0.85845864 | 1 |
Get url without page key in query string. | Получить url без ключа страницы в строке запроса. | private function urlWithoutPageKey(): string
{
$queryString = http_build_query($this->query_without_page_key);
return $this->request->url().$this->withQuestion($queryString);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected static function removeQueryString($url)\n {\n // echo $url;\n if($url)\n {\n $params = explode('&', $url, 2); // debug($params);\n if(strpos($params[0], '=') === false) // page/part1..\n {\n return rtrim($params[0], '... | [
"0.7090606",
"0.6995954",
"0.67764527",
"0.6759711",
"0.6753626",
"0.6649739",
"0.6611572",
"0.6541623",
"0.645811",
"0.64539504",
"0.64065635",
"0.6371664",
"0.63443226",
"0.63249034",
"0.63041484",
"0.62659466",
"0.624598",
"0.6226176",
"0.61957854",
"0.61759055",
"0.615483... | 0.8728065 | 0 |
Get last page url. | Получить URL последней страницы. | public function lastPageUrl(): string
{
if ($this->hasOnlyOnePage()) {
return $this->firstPageUrl();
}
return $this->url($this->number_of_pages);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getLastPageUrl();",
"public function LastLink()\n {\n return HTTP::setGetVar(\n $this->getPaginationGetVar(),\n ($this->TotalPages() - 1) * $this->getPageLength(),\n ($this->request instanceof HTTPRequest) ? $this->request->getURL(true) : null\n )... | [
"0.89650846",
"0.81219953",
"0.78468144",
"0.78108454",
"0.77936554",
"0.77296495",
"0.7661156",
"0.7618124",
"0.75265586",
"0.75265586",
"0.75265586",
"0.7518772",
"0.74826705",
"0.74536103",
"0.73818624",
"0.7379313",
"0.7342794",
"0.73300093",
"0.7272676",
"0.7166197",
"0.... | 0.8965862 | 0 |
Get property value $options defaults ```php $options = [ 'default' => null, Undefined property default value 'prefixes' => ['get'], Getter method prefixes 'read' => true, Read private/protected property? 'strict' => true, Thorw exception? ] ``` | Получить значение свойства $options по умолчанию ```php $options = [ 'default' => null, Не определенное значение свойства default 'prefixes' => ['get'], Префиксы метода getter 'read' => true, Читать приватное/защищенное свойство? 'strict' => true, Выбросить исключение? ] ``` | protected function getPropertyValue($name, array $options = null)
{
$o = [
'default' => null,
'prefixes' => ['get'],
'read' => true,
'strict' => true,
];
if ($options) {
$o = array_merge($o, $options);
}
fore... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function get() {\n\t\treturn $this->options->get( self::OPTION );\n\t}",
"public function get(string $property, $default = null);",
"public function getOption($key, $options = null, $default = null)\n {\n if (is_array($options) && array_key_exists($key, $options)) {\n $value = $opti... | [
"0.6290513",
"0.6246239",
"0.62453026",
"0.6201248",
"0.6171986",
"0.6043066",
"0.60303307",
"0.5947854",
"0.59450555",
"0.5932502",
"0.5909139",
"0.5891042",
"0.5799556",
"0.5790839",
"0.57783026",
"0.5772174",
"0.57714653",
"0.57714653",
"0.5740213",
"0.5734942",
"0.5732098... | 0.7028004 | 0 |
Sets the step date interval | Устанавливает интервал даты шага | public function setStep(DateInterval $step)
{
$this->step = $step;
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function set_step( $step ) {\r\n\t\t$this->step = absint( $step );\r\n\t}",
"private function set_date()\r\n\t{\r\n\t\tif ($this->month > 12)\r\n\t\t{\r\n\t\t\t$this->month=1;\r\n\t\t\t$this->year++;\r\n\t\t}\r\n\r\n\t\tif ($this->month < 1)\r\n\t\t{\r\n\t\t\t$this->month=12;\r\n\t\t\t$this->year--;\r\n\t... | [
"0.6010779",
"0.5561263",
"0.5468136",
"0.5421517",
"0.5341105",
"0.5297218",
"0.5192988",
"0.5121307",
"0.511941",
"0.5081661",
"0.5069746",
"0.5047741",
"0.50338405",
"0.49979624",
"0.49900252",
"0.49737242",
"0.49664295",
"0.49182853",
"0.49125102",
"0.49085096",
"0.490477... | 0.7086887 | 0 |
/ $data= array( array("table"=>"nama_tabel","join_key"=>"relasi","join_table"=>"tabel_tujuan") ); $key= array("NAMA_KOLOM"=>1,"NAMA_KOLOM2"=>2,"NAMA_KOLOM3"=>3); atau $key= "NAMA_KOLOM = 3 AND NAMA_KOLOM2 IS NULL"; $column= array("NAMA_KOLOM","NAMA_KOLOM2","NAMA_KOLOM3"); get_join_by($data,$key,TRUE,$column); | $data= array( array("table"=>"nama_tabel","join_key"=>"relasi","join_table"=>"tabel_tujuan") ); $key= array("NAMA_KOLOM"=>1,"NAMA_KOLOM2"=>2,"NAMA_KOLOM3"=>3); или $key= "NAMA_KOLOM = 3 AND NAMA_KOLOM2 IS NULL"; $column= array("NAMA_KOLOM","NAMA_KOLOM2","NAMA_KOLOM3"); get_join_by($data,$key,TRUE,$column); | function get_join_by($data,$key=FALSE,$single=FALSE,$column=FALSE){ //Zulmi Adi Rizki 23 Juli 2013
foreach($data as $row){
$this->db->join($row["join_table"],$row["table"].".".$row["join_key"]."=".$row["join_table"].".".$row["join_key"]);
}
if($key == TRUE){
if(!is_array($key)){
$this->db->where($key);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function get_joinFG($data,$key=FALSE,$column=FALSE){ //Zulmi Adi Rizki 23 Juli 2013\n\t\t\n\t\tif($key == TRUE){\n\t\t\tif(!is_array($key)){\n\t\t\t\t$this->db->where($key);\n\t\t\t} else {\n\t\t\t\t$key = array_map('htmlentities', $key);\n\t\t\t\t$this->db->where($key);\n\t\t\t}\n\t\t}\n\t\t$this->db->select($col... | [
"0.76936185",
"0.6991798",
"0.6797363",
"0.6471833",
"0.6466729",
"0.6320357",
"0.63119894",
"0.62896854",
"0.6259219",
"0.6227112",
"0.62262475",
"0.6217836",
"0.6213091",
"0.6178858",
"0.6177367",
"0.61771184",
"0.6169272",
"0.6165986",
"0.61404467",
"0.61325717",
"0.612688... | 0.7042637 | 1 |
Preinitialize the component Override to add your own functionality before init() is called. | Прединициализируйте компонент Override, чтобы добавить свою собственную функциональность до вызова init(). | public function preinit()
{
// Create our internal name
CPSHelperBase::createInternalName( $this );
// Attach our default Behavior
$this->attachBehavior( 'psWidget', 'pogostick.behaviors.CPSWidgetBehavior' );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function _beforeInit() {\n\t}",
"protected function __onInit()\n\t{\n\t}",
"public function _before_init(){}",
"protected function _init()\n\t{\n\t\tparent::_init();\n\t}",
"function preinit()\r\n {\r\n //Calls children's init recursively\r\n reset($this->comp... | [
"0.7850311",
"0.76944244",
"0.7545264",
"0.7376503",
"0.7369001",
"0.73128605",
"0.7289228",
"0.72209984",
"0.71679604",
"0.71679604",
"0.71679604",
"0.71679604",
"0.71679604",
"0.71679604",
"0.71679604",
"0.71604264",
"0.71487993",
"0.71487993",
"0.71487993",
"0.7140445",
"0... | 0.80016184 | 0 |
Set our internal name | Установите наш внутренний имя | public function setInternalName( $value ) { $this->_internalName = $value; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setChangeInternalName($value)\n {\n \t$this->_change_internal_name = $value;\n }",
"function set_name($name) {\n $this->name = $name;\n }",
"public function setName($name){\n $this->_name = $name;\n }",
"public function setName($x) { $this->name = $x; }",
"publi... | [
"0.76243013",
"0.7599606",
"0.7591902",
"0.75647026",
"0.74674624",
"0.74477863",
"0.7418687",
"0.7397802",
"0.7366392",
"0.73506135",
"0.735056",
"0.7350156",
"0.73472124",
"0.7339841",
"0.7339841",
"0.73123544",
"0.72999036",
"0.72973853",
"0.72733253",
"0.7265303",
"0.7265... | 0.8397474 | 0 |
Find the root nodes. | Найдите корневые узлы. | public function findRootNodes()
{
return $this->findNodes();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getRootNodes()\n {\n return $this->getNodes($this->qbFactory\n ->getRootNodeQueryBuilder()\n ->getQuery()\n ->getResult());\n }",
"public function getRootNodes()\r\n {\r\n $event = $this->getEventManager()->trigger(__FUNCTION__.'.pre', $this... | [
"0.7413678",
"0.7215652",
"0.6825739",
"0.678927",
"0.6756716",
"0.6717379",
"0.6585983",
"0.6530434",
"0.6471934",
"0.6431756",
"0.6428727",
"0.64194095",
"0.6362162",
"0.6362162",
"0.62602025",
"0.62602025",
"0.62602025",
"0.6232426",
"0.62176055",
"0.6159718",
"0.6077108",... | 0.86045337 | 0 |
Find the child nodes for the specified parent. | Найдите дочерние узлы для указанного родителя. | public function findChildNodes($parentId)
{
return $this->findNodes($parentId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getChildrenForParent( $parent )\n {\n $children = array();\n\n foreach($this->table as $row)\n {\n if( $row['parent_id'] === $parent->getId() )\n {\n $children[] = new MeshTestObject($row['child_id']);\n }\n }\n\n ... | [
"0.69057536",
"0.6637307",
"0.6291936",
"0.6244146",
"0.6217606",
"0.62033457",
"0.620266",
"0.6124207",
"0.6100156",
"0.6059858",
"0.60581124",
"0.6049861",
"0.60416824",
"0.5994122",
"0.5982492",
"0.5937207",
"0.5931451",
"0.5917235",
"0.58983564",
"0.58725494",
"0.58677316... | 0.7066556 | 0 |
Trim the beginning of the string. | Обрежьте начало строки. | public function trimBeginning() : Manipulator
{
return new static(ltrim($this->string));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function trimLeft() {\n $this->_value = ltrim($this->_value);\n $this->countLength();\n \n return $this;\n }",
"public static function stripStart($str, $prefix) {\n\t\t$prefixLen = strlen($prefix);\n\t\tif (substr($str, 0, $prefixLen) === $prefix) {\n\t\t\treturn substr($str... | [
"0.6840705",
"0.6552156",
"0.6338701",
"0.63241965",
"0.63215584",
"0.6310611",
"0.6277701",
"0.6235109",
"0.6232729",
"0.62254965",
"0.62079996",
"0.61852545",
"0.61425745",
"0.60965973",
"0.60947144",
"0.6006832",
"0.60049975",
"0.60022706",
"0.59646356",
"0.5962046",
"0.59... | 0.71485883 | 0 |
Get all available sections to edit an entry from. | Получить все доступные разделы для редактирования записи. | public function editEntries()
{
$commands = array();
$availableSections = craft()->sections->getEditableSections();
foreach ($availableSections as $section) {
$type = ucfirst(Craft::t(ucfirst($section->type)));
if ($section->type != SectionType::Single) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function getSections() {\n\t\t$sections = array();\n\t\tforeach (Craft::$app->getSections()->getEditableSections() as $section) {\n\t\t\t$sections[$section->id] =['value'=>$section->handle, 'label' =>Craft::t('site',$section->name)];\n\t\t}\n\t\treturn $sections;\n\t}",
"public function get_editentries()... | [
"0.70710534",
"0.67024505",
"0.6694338",
"0.65397346",
"0.6486654",
"0.6404617",
"0.6278737",
"0.62635916",
"0.61155605",
"0.61119574",
"0.60748684",
"0.6060183",
"0.60462064",
"0.5998744",
"0.59780484",
"0.59716433",
"0.595193",
"0.59500456",
"0.5907826",
"0.5883698",
"0.587... | 0.72687143 | 0 |
Deletes all items by GUID. | Удаляет все элементы по GUID. | public function delete_all_by_guid($guid) {
DB::delete($this->table_name())->where('guid', '=', $guid)->execute($this->_db);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function deleteItem($item);",
"function deleteItems($itemids) {\r\n $event = new mosEventCal_Event();\r\n\tforeach($itemids AS $itemid) {\r\n\t $event->delete($itemid);\t\r\n\t}\r\n}",
"protected function deleteUnusedItems(){\n $items=Item::where('serial_number','')->get();\n foreach($it... | [
"0.66276544",
"0.6525446",
"0.64539355",
"0.63511837",
"0.6294356",
"0.6249128",
"0.62412703",
"0.6234641",
"0.6195548",
"0.61903644",
"0.6164601",
"0.6154074",
"0.6093559",
"0.60732836",
"0.60433763",
"0.60363376",
"0.6009538",
"0.59650236",
"0.5956423",
"0.59504",
"0.59504"... | 0.74482954 | 0 |
Browser detection body_class() output | Тело обнаружения браузера output body_class() | function b4st_browser_body_class( $classes ) {
global $is_lynx, $is_gecko, $is_IE, $is_opera, $is_NS4, $is_safari, $is_chrome, $is_iphone;
if($is_lynx) $classes[] = 'lynx';
elseif($is_gecko) $classes[] = 'gecko';
elseif($is_opera) $classes[] = 'opera';
elseif($is_NS4) $classes[] = 'ns4';
elseif($is_safari) $cla... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function mv_browser_body_class($classes) {\n global $is_lynx, $is_gecko, $is_IE, $is_opera, $is_NS4, $is_safari, $is_chrome, $is_iphone;\n if($is_lynx) $classes[] = 'lynx';\n elseif($is_gecko) $classes[] = 'gecko';\n elseif($is_opera) $classes[] = 'opera';\n elseif($is_NS4) $clas... | [
"0.71311784",
"0.71311784",
"0.6946099",
"0.6939075",
"0.6746079",
"0.67195404",
"0.6499911",
"0.6432488",
"0.64076036",
"0.6371637",
"0.6344176",
"0.6226128",
"0.6217637",
"0.6212116",
"0.6186604",
"0.6167492",
"0.61512136",
"0.6142543",
"0.6117858",
"0.6103492",
"0.60667956... | 0.73553854 | 0 |
Returns all files used in the process | Возвращает все использованные в процессе файлы | public function getUsedFiles() {
$out = array();
foreach(get_included_files() as $i => $file) {
$out[] = array('number' => $i + 1, 'filename' => str_replace(SYS_ROOT, '', $file));
}
return $out;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getFiles(){\n\t\treturn $this->used_files;\n\t}",
"public function getFiles()\n\t{\n\t\tif ($this->_files === null) {\n\t\t\t$command = 'show --pretty=\"format:\" --name-only '.$this->hash;\n\t\t\tforeach(explode(\"\\n\",$this->repository->run($command)) as $line) {\n\t\t\t\t$this->_files[] = trim($line... | [
"0.7769253",
"0.7145854",
"0.6982976",
"0.68744123",
"0.6767271",
"0.6739473",
"0.6442083",
"0.6398703",
"0.63739383",
"0.63550895",
"0.6329022",
"0.63175434",
"0.63082886",
"0.63074803",
"0.62874305",
"0.62855357",
"0.62832844",
"0.62777245",
"0.62760264",
"0.6253774",
"0.62... | 0.78324294 | 0 |
Update update_list with custom new files | Обновите update_list с помощью пользовательских новых файлов | function get_custom_info(&$update_list, $file)
{
if (empty($this->update_info['custom']))
{
return;
}
if (isset($this->update_info['custom'][$file]))
{
foreach ($this->update_info['custom'][$file] as $_file)
{
$update_list[] = array('filename' => $_file, 'custom' => true, 'original' => $file);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function updateExtList() {}",
"protected function listUpdates() {}",
"protected function processChangedAndNewFiles() {}",
"function get_update_structure(&$update_list)\n\t{\n\t\tglobal $phpbb_root_path, $phpEx, $user;\n\n\t\tif ($update_list === false)\n\t\t{\n\t\t\t$update_list = array(\n\t\t\t\t'up_... | [
"0.7087956",
"0.6765918",
"0.6659528",
"0.64187455",
"0.6413169",
"0.6399661",
"0.61919594",
"0.6183279",
"0.60943896",
"0.60357326",
"0.60328853",
"0.59643143",
"0.59285355",
"0.588529",
"0.58421785",
"0.5771047",
"0.575679",
"0.57555854",
"0.57410365",
"0.5734584",
"0.57151... | 0.72702146 | 0 |
New class name by proxy | Новое имя класса через прокси | public static function newClassName(string $className): string
{
// Only proxy AOP class
if (!Aop::matchClass($className)) {
return $className;
}
// Is RPC proxy
if (strpos($className, '_IGNORE_') !== false) {
return $className;
}
$vi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getProxyClassName(): string\n {\n return sprintf('%s\\\\%s', $this->namespace, $this->proxyName);\n }",
"public static function getClassName(string $proxyClassName): string\n {\n [$className] = explode('_', $proxyClassName);\n return $className;\n }",
"public st... | [
"0.70558906",
"0.63929504",
"0.6298948",
"0.62856513",
"0.62307817",
"0.60100967",
"0.5977989",
"0.5936944",
"0.5936944",
"0.5936944",
"0.5936944",
"0.5923348",
"0.5858735",
"0.58358556",
"0.5828514",
"0.582308",
"0.5814249",
"0.5776495",
"0.5776495",
"0.57521826",
"0.5735954... | 0.71578187 | 0 |
Display custom number of products per page | Показать произвольное количество товаров на странице | function custom_number_of_products_per_page( $cols ) {
return intval( get_theme_mod( 'products_per_page', $cols ) );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function bt_new_loop_shop_per_page( $cols ) {\n // $cols contains the current number of products per page based on the value stored on Options -> Reading\n // Return the number of products you wanna show per page.\n $cols = 12;\n return $cols;\n}",
"function new_loop_shop_per_page( $c... | [
"0.7625246",
"0.74115396",
"0.7410521",
"0.73635554",
"0.7350388",
"0.7322162",
"0.7177582",
"0.7121004",
"0.71189564",
"0.69795394",
"0.6979245",
"0.6915687",
"0.6914684",
"0.6710526",
"0.6671812",
"0.6654175",
"0.65766996",
"0.6544335",
"0.6536036",
"0.653476",
"0.6451164",... | 0.74290925 | 1 |