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
Sets the category25 The label associated with Category 25
Устанавливает категорию25 Метка, связанная с категорией 25
public function setCategory25($val) { $this->_propDict["category25"] = $val; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCategory25()\n {\n if (array_key_exists(\"category25\", $this->_propDict)) {\n return $this->_propDict[\"category25\"];\n } else {\n return null;\n }\n }", "public function setCategory24($val)\n {\n $this->_propDict[\"category24\"] = $...
[ "0.6296843", "0.5955018", "0.56430537", "0.56048876", "0.54978126", "0.5479131", "0.54556274", "0.54486847", "0.54201156", "0.53824574", "0.5368778", "0.5350457", "0.5350457", "0.5350457", "0.5350457", "0.527997", "0.5277543", "0.5246657", "0.523589", "0.5233481", "0.52312475...
0.73894
0
Gets the category3 The label associated with Category 3
Получает категорию3 метку, связанную с категорией 3
public function getCategory3() { if (array_key_exists("category3", $this->_propDict)) { return $this->_propDict["category3"]; } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProductBiddingCategoryLevel3()\n {\n return isset($this->product_bidding_category_level3) ? $this->product_bidding_category_level3 : '';\n }", "public function getCategory1()\n {\n if (array_key_exists(\"category1\", $this->_propDict)) {\n return $this->_propD...
[ "0.6819717", "0.6470806", "0.64067525", "0.64067525", "0.64067525", "0.64067525", "0.6319309", "0.6315406", "0.63153726", "0.6269131", "0.62164897", "0.61972564", "0.6192151", "0.61891866", "0.61891866", "0.61891866", "0.6163597", "0.6087428", "0.60810643", "0.60329", "0.6018...
0.77362186
0
Sets the category3 The label associated with Category 3
Устанавливает категорию3 Метка, связанная с категорией 3
public function setCategory3($val) { $this->_propDict["category3"] = $val; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCategory3()\n {\n if (array_key_exists(\"category3\", $this->_propDict)) {\n return $this->_propDict[\"category3\"];\n } else {\n return null;\n }\n }", "function revcon_change_cat_object() {\n global $wp_taxonomies;\n $labels = &$wp_taxon...
[ "0.609768", "0.5729467", "0.5685852", "0.5596625", "0.54990226", "0.5374253", "0.5371978", "0.5371978", "0.5290716", "0.5285669", "0.52813786", "0.52587676", "0.5255705", "0.5229508", "0.5225928", "0.5216751", "0.5211766", "0.5208601", "0.5195851", "0.5193681", "0.51700056", ...
0.7096082
0
Gets the category4 The label associated with Category 4
Получает категорию4 метку, связанную с категорией 4
public function getCategory4() { if (array_key_exists("category4", $this->_propDict)) { return $this->_propDict["category4"]; } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProductBiddingCategoryLevel4()\n {\n return isset($this->product_bidding_category_level4) ? $this->product_bidding_category_level4 : '';\n }", "public function category() {\n\t\treturn static::get_thrive_advanced_label();\n\t}", "public function category() {\n\t\treturn static::...
[ "0.6861001", "0.63759714", "0.63759714", "0.63759714", "0.63759714", "0.62016124", "0.6116723", "0.611244", "0.6094115", "0.598602", "0.5928378", "0.58957106", "0.58884966", "0.5886513", "0.58606845", "0.58386636", "0.58194053", "0.5812987", "0.5810552", "0.57829857", "0.5770...
0.7698881
0
Sets the category4 The label associated with Category 4
Устанавливает категорию4 Метка, связанная с категорией 4
public function setCategory4($val) { $this->_propDict["category4"] = $val; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCategory4()\n {\n if (array_key_exists(\"category4\", $this->_propDict)) {\n return $this->_propDict[\"category4\"];\n } else {\n return null;\n }\n }", "public function setLabel( $value );", "function revcon_change_cat_object() {\n global ...
[ "0.59921587", "0.56355214", "0.5314623", "0.52604717", "0.52286613", "0.522205", "0.52116394", "0.52116394", "0.52116394", "0.52116394", "0.52116394", "0.5183083", "0.5138904", "0.5129747", "0.51255137", "0.506366", "0.5059445", "0.50238734", "0.5018091", "0.5011013", "0.4981...
0.7028181
0
Gets the category5 The label associated with Category 5
Получает категорию 5 метку, связанную с категорией 5
public function getCategory5() { if (array_key_exists("category5", $this->_propDict)) { return $this->_propDict["category5"]; } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProductBiddingCategoryLevel5()\n {\n return isset($this->product_bidding_category_level5) ? $this->product_bidding_category_level5 : '';\n }", "public function category() {\n\t\treturn static::get_thrive_advanced_label();\n\t}", "public function category() {\n\t\treturn static::...
[ "0.69800484", "0.65851307", "0.65851307", "0.65851307", "0.65851307", "0.64235884", "0.6321874", "0.6200734", "0.61281025", "0.6083553", "0.6061032", "0.6034949", "0.5936876", "0.591527", "0.5902586", "0.589757", "0.5874943", "0.5853389", "0.5842349", "0.58278096", "0.5819230...
0.7814603
0
Sets the category5 The label associated with Category 5
Устанавливает категорию5 Метка, связанная с категорией 5
public function setCategory5($val) { $this->_propDict["category5"] = $val; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCategory5()\n {\n if (array_key_exists(\"category5\", $this->_propDict)) {\n return $this->_propDict[\"category5\"];\n } else {\n return null;\n }\n }", "public function setLabel( $value );", "public function setProductBiddingCategoryLevel5($v...
[ "0.63526267", "0.5974488", "0.5966296", "0.5914575", "0.5708686", "0.56450325", "0.56221473", "0.5559123", "0.54856706", "0.545246", "0.542119", "0.53988504", "0.5393204", "0.5379793", "0.5366683", "0.53582674", "0.53456753", "0.5302303", "0.53018314", "0.5293034", "0.5293034...
0.7236196
0
Gets the category6 The label associated with Category 6
Получает категорию 6 метку, связанную с категорией 6
public function getCategory6() { if (array_key_exists("category6", $this->_propDict)) { return $this->_propDict["category6"]; } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCategory7()\n {\n if (array_key_exists(\"category7\", $this->_propDict)) {\n return $this->_propDict[\"category7\"];\n } else {\n return null;\n }\n }", "public function category() {\n\t\treturn static::get_thrive_advanced_label();\n\t}", "pub...
[ "0.67367065", "0.6597546", "0.6597546", "0.6597546", "0.6597546", "0.6409016", "0.63856757", "0.61919713", "0.61470044", "0.6132938", "0.6124015", "0.6116783", "0.6107839", "0.6107839", "0.61026293", "0.609086", "0.6089081", "0.6088365", "0.6088365", "0.6088365", "0.6077122",...
0.7825606
0
Sets the category6 The label associated with Category 6
Устанавливает категорию6 Метка, связанная с категорией 6
public function setCategory6($val) { $this->_propDict["category6"] = $val; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCategory6()\n {\n if (array_key_exists(\"category6\", $this->_propDict)) {\n return $this->_propDict[\"category6\"];\n } else {\n return null;\n }\n }", "public function setCategory7($val)\n {\n $this->_propDict[\"category7\"] = $val;\...
[ "0.63560957", "0.58822757", "0.5719113", "0.57026494", "0.5674717", "0.56320935", "0.5628224", "0.556307", "0.5557589", "0.5501266", "0.54449064", "0.53842664", "0.53395766", "0.53017974", "0.53017974", "0.52924246", "0.52585185", "0.5234761", "0.52051836", "0.5195581", "0.51...
0.7317778
0
Gets the category7 The label associated with Category 7
Получает категорию7 Метка, связанная с категорией 7
public function getCategory7() { if (array_key_exists("category7", $this->_propDict)) { return $this->_propDict["category7"]; } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCategory6()\n {\n if (array_key_exists(\"category6\", $this->_propDict)) {\n return $this->_propDict[\"category6\"];\n } else {\n return null;\n }\n }", "public function getCategory8()\n {\n if (array_key_exists(\"category8\", $this->_...
[ "0.6745623", "0.6681656", "0.6482752", "0.6294375", "0.6294375", "0.6294375", "0.6294375", "0.62214243", "0.6178131", "0.6094552", "0.6012696", "0.5975015", "0.5961302", "0.594848", "0.59202576", "0.5915317", "0.59122556", "0.59098357", "0.5898969", "0.58952147", "0.5891914",...
0.794943
0
Sets the category7 The label associated with Category 7
Устанавливает категорию7 Метка, связанная с категорией 7
public function setCategory7($val) { $this->_propDict["category7"] = $val; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCategory7()\n {\n if (array_key_exists(\"category7\", $this->_propDict)) {\n return $this->_propDict[\"category7\"];\n } else {\n return null;\n }\n }", "public function setCategory6($val)\n {\n $this->_propDict[\"category6\"] = $val;\...
[ "0.62508243", "0.59057283", "0.5570016", "0.5555114", "0.55509436", "0.5489109", "0.546738", "0.5453799", "0.54284614", "0.539109", "0.5350968", "0.5344565", "0.5269185", "0.52688146", "0.52552545", "0.52527815", "0.5235468", "0.52099156", "0.5194963", "0.51873726", "0.515928...
0.73167944
0
Gets the category8 The label associated with Category 8
Получает категорию 8 метку, связанную с категорией 8
public function getCategory8() { if (array_key_exists("category8", $this->_propDict)) { return $this->_propDict["category8"]; } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCategory9()\n {\n if (array_key_exists(\"category9\", $this->_propDict)) {\n return $this->_propDict[\"category9\"];\n } else {\n return null;\n }\n }", "public function category() {\n\t\treturn static::get_thrive_advanced_label();\n\t}", "pub...
[ "0.6709467", "0.6666712", "0.6666712", "0.6666712", "0.6666712", "0.6661278", "0.6642786", "0.6601044", "0.65414387", "0.64629614", "0.6385084", "0.6352442", "0.63476175", "0.63102776", "0.63027424", "0.6257988", "0.6252552", "0.62430054", "0.6232425", "0.6230947", "0.6226992...
0.80995286
0
Sets the category8 The label associated with Category 8
Устанавливает категорию8 Метка, связанная с категорией 8
public function setCategory8($val) { $this->_propDict["category8"] = $val; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCategory8()\n {\n if (array_key_exists(\"category8\", $this->_propDict)) {\n return $this->_propDict[\"category8\"];\n } else {\n return null;\n }\n }", "public function setLabel( $value );", "function setLabel($label) {\n\t\t\n\t\t$this->labe...
[ "0.6445858", "0.59196204", "0.5854601", "0.5732244", "0.5680052", "0.56682485", "0.56682485", "0.56682485", "0.56682485", "0.56682485", "0.56295043", "0.55574423", "0.5555591", "0.5555591", "0.5546904", "0.55362415", "0.5525785", "0.5494057", "0.5488032", "0.54750687", "0.542...
0.7344128
0
Gets the category9 The label associated with Category 9
Получает категорию9 Метка, связанная с категорией 9
public function getCategory9() { if (array_key_exists("category9", $this->_propDict)) { return $this->_propDict["category9"]; } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function category() {\n\t\treturn static::get_thrive_advanced_label();\n\t}", "public function category() {\n\t\treturn static::get_thrive_advanced_label();\n\t}", "public function category() {\n\t\treturn static::get_thrive_advanced_label();\n\t}", "public function category() {\n\t\treturn static::ge...
[ "0.69472146", "0.69472146", "0.69472146", "0.69472146", "0.67913306", "0.67295814", "0.65682656", "0.6491802", "0.6455117", "0.64305747", "0.63813066", "0.6377807", "0.6339196", "0.6334459", "0.632624", "0.63033587", "0.6274443", "0.6274443", "0.6264423", "0.6262867", "0.6257...
0.7703931
0
Sets the category9 The label associated with Category 9
Устанавливает категорию9 Метка, связанная с категорией 9
public function setCategory9($val) { $this->_propDict["category9"] = $val; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function revcon_change_cat_object() {\n global $wp_taxonomies;\n $labels = &$wp_taxonomies['category']->labels;\n $labels->name = 'Unidades';\n $labels->singular_name = 'Unidade';\n $labels->add_new = 'Add Unidade';\n $labels->add_new_item = 'Adicionar Unidade';\n $labels->edit_item = 'Editar ...
[ "0.6067101", "0.59994555", "0.58207345", "0.57140124", "0.5701885", "0.56824356", "0.5656041", "0.5585023", "0.5578596", "0.55579257", "0.55475116", "0.55398333", "0.5515503", "0.5506261", "0.5492142", "0.5476778", "0.5471248", "0.5471248", "0.5464938", "0.54419476", "0.54418...
0.71017957
0
Adds an array of tags of a deck to 'tags' table
Добавляет массив тегов колоды в таблицу 'tags'
public static function add($tags, $deckid, $con) { $result = select_from('tags', '*', "", $con); $count = $result->num_rows; for ($i = 0; $i < sizeof($tags); $i++) { $tagid = "tag_" . $count; $tagid = ensure_unique_id($tagid, "tags", "tagid", $con); $count++; // insert thi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addTags($tags);", "public function inserirTag(){\n $this->tag[] = $tag;\n }", "function addNewTags($tags) {\n $sql = \"\n INSERT IGNORE INTO tags (name)\n VALUES (:name)\n ;\";\n \n $pdo = $this->getConn();\n ...
[ "0.6560413", "0.6411756", "0.61432004", "0.6133265", "0.60726035", "0.59198016", "0.5914698", "0.5841772", "0.58338743", "0.5813078", "0.5805367", "0.58010226", "0.58010226", "0.58010226", "0.575733", "0.5736419", "0.5728176", "0.5695589", "0.5689112", "0.567991", "0.5677083"...
0.79532963
0
Given a tag in string, returns an array of deckids that has the tag
Дано имя тега в виде строки, возвращает массив deckids, которые имеют этот тег
public static function get_decks_with_tag($tag, $con) { $restrict_str = "WHERE `tag` = '$tag' ORDER BY `deckid`"; $result = select_from("tags", "*", $restrict_str, $con); $deckids = array(); while($row = mysqli_fetch_assoc($result)) { $deckids[] = $row['deckid']; } return $deckids; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findIdentifiersByTag(string $tag): array\n {\n return $this->redis->sMembers($this->getPrefixedIdentifier('tag:' . $tag));\n }", "public function findIdentifiersByTag($tag) {\n\t\treturn $this->databaseCache->findIdentifiersByTag($tag);\n\t}", "public function getByTag($tag)\n {...
[ "0.65077376", "0.60997796", "0.5601289", "0.5588241", "0.5549352", "0.5544227", "0.551337", "0.54718876", "0.5398245", "0.53068554", "0.5266538", "0.5255797", "0.52183986", "0.51488173", "0.51251936", "0.5110848", "0.50989133", "0.50950354", "0.50935966", "0.5091165", "0.5088...
0.75108963
0
If user has a ride print or created a ride no actions button
Если пользователь имеет билет на поезд или создал билет на поезд, кнопка действий не отображается
function printNeedRideButton($eventId) { //If user does not have a ride Print warning button 'Need Ride' //If user currently is listed as needs ride print danger 'No Longer Need Ride' button. //Get Username $userName = $_SERVER['WEBAUTH_USER']; $eventId = secureInput($eventId); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkForActions() {\n \n // Get User\n $user = wp_get_current_user();\n \n // Get Actions\n $actions = get_field($this->id, \"user_$user->ID\");\n \n // Check if user has actions\n if ($actions === null || $actions === false) $this->addDefaultActions($user->ID);\n \n ...
[ "0.58187747", "0.5793159", "0.5733395", "0.5593003", "0.5515022", "0.546947", "0.5442928", "0.54402477", "0.5422729", "0.5420371", "0.53937584", "0.5390945", "0.53893024", "0.5349064", "0.5344775", "0.53442377", "0.5322426", "0.53076506", "0.5301111", "0.5295692", "0.52659637...
0.703377
0
Retrieve the list of holdings
Получить список активов
public function getHoldings(): array { return $this->get("portfolio.holdings"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function holdings()\n {\n $key = 'holdings-'.$this->id;\n $data = $this->getSessionVar($key);\n\n if ($data != null) { return $data; }\n \n $sql = \"SELECT fc.fund_id, fc.client_id\n FROM funds_clients fc\n WHERE fc.client_id = {$this->id}\"...
[ "0.73246336", "0.69803655", "0.6860643", "0.6859848", "0.66140497", "0.64735323", "0.64389944", "0.6373568", "0.63722897", "0.6344174", "0.63281983", "0.6283969", "0.6257465", "0.6250871", "0.6213387", "0.6128073", "0.6106181", "0.6084529", "0.6080988", "0.6065585", "0.606548...
0.7450957
0
Retrieve OHLC for list of instruments.
Получить OHLC для списка инструментов.
public function getOHLC(array $instruments) { return $this->get("market.quote.ohlc", ["i" => $instruments]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function retrievePriceEodHistorical($symbol, $interval, $startDate, $loadNewData = true, $saveData = false, $verbose = false, $debug = false){\n switch ($symbol){\n case 'BRK.B':\n $lookupSymbol = 'BRK-B';\n break;\n default:\n // symbol okay\n $lookupSymbol = $...
[ "0.5960047", "0.557082", "0.5529177", "0.5504303", "0.53359205", "0.53338116", "0.5254631", "0.5167858", "0.5164729", "0.5160386", "0.51581496", "0.5104538", "0.51033264", "0.5093998", "0.5057878", "0.50414836", "0.50277245", "0.50174534", "0.50153464", "0.49878865", "0.49877...
0.7545319
0
Retrieve LTP for list of instruments.
Получить LTP для списка инструментов.
public function getLTP(array $instruments) { return $this->get("market.quote.ltp", ["i" => $instruments]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_lpr($id) {\n global $CFG;\n\n return get_record_sql(\n \"SELECT lpr.*\n FROM {$CFG->prefix}block_lpr AS lpr\n WHERE lpr.id={$id}\"\n );\n }", "public static function tincan_setup_lrs(){\n\t\t$version = get_config('report_tincan', 'lrsversion...
[ "0.51594776", "0.51309687", "0.5036991", "0.49916288", "0.49787173", "0.49401048", "0.49335095", "0.48994938", "0.48815823", "0.48809364", "0.48793748", "0.48735017", "0.48724627", "0.48679334", "0.48287913", "0.482542", "0.4820715", "0.47508577", "0.47310567", "0.47287005", ...
0.7790039
0
Get the list of MF holdings.
Получить список активов MF.
public function getMFHoldings(): array { return $this->get("mf.holdings"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function GetListing()\n\t {\n\t\t$aListing = array();\n\t\tforeach($this->aMessages as $index => $sName)\n\t\t{\n\t\t\t$aListing[] = array('msd_id' => $index, 'uidl' => basename($sName));\n\t\t}\n\t\treturn $aListing;\n\t }", "public function getFilms()\n {\n return $this->films;\n }", "public func...
[ "0.5874904", "0.5818353", "0.5809032", "0.57897884", "0.5786616", "0.5725094", "0.5670251", "0.5605245", "0.56027126", "0.5520224", "0.54610234", "0.54431546", "0.54261935", "0.5414833", "0.54134196", "0.5404013", "0.5402543", "0.5362551", "0.5353358", "0.53435427", "0.534181...
0.82764024
0
Place a GTT. Check [GTT documentation]( for details. $params = [ // GTT type, its either `$kite::GTT_TYPE_OCO` or `$kite::GTT_TYPE_SINGLE`. "trigger_type" => $kite::GTT_TYPE_OCO, // Tradingsymbol of the instrument (ex. RELIANCE, INFY). "tradingsymbol" => "SBIN", // Exchange in which instrument is listed (NSE, BSE, NFO,...
Разместите GTT. Детали см. в [документации GTT]( для справки. $params = [ // Тип GTT, он может быть либо `$kite::GTT_TYPE_OCO`, либо `$kite::GTT_TYPE_SINGLE`. "trigger_type" => $kite::GTT_TYPE_OCO, // Торговая символика инструмента (например, RELIANCE, INFY). "tradingsymbol" => "SBIN", // Биржа, на которой инструмент т...
public function placeGTT(array $params) { $payload = $this->getGTTPayload($params); return $this->post("gtt.place", [ "condition" => json_encode($payload["condition"]), "orders" => json_encode($payload["orders"]), "type" => $params["trigger_type"], ]); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function modifyGTT(int $triggerId, array $params)\n {\n $payload = $this->getGTTPayload($params);\n\n return $this->put(\"gtt.modify\", [\n \"condition\" => json_encode($payload[\"condition\"]),\n \"orders\" => json_encode($payload[\"orders\"]),\n \"type\" =...
[ "0.5652572", "0.5085294", "0.5071307", "0.49423453", "0.48854372", "0.47461683", "0.4743715", "0.4709814", "0.46800187", "0.4676172", "0.464782", "0.45899215", "0.45579898", "0.45522928", "0.45328733", "0.45256534", "0.45232075", "0.45215344", "0.45160836", "0.45125654", "0.4...
0.8236231
0
Sets the VLAN id, if there is one.
Устанавливает идентификатор VLAN, если он существует.
public function setVlanId ($id = null) { $this->vlan_guid = $id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getVlanId () {\n return $this->vlan_guid;\n }", "private function __get_vlan_id_from_vlanif($vlanif) {\n foreach ($this->config[\"vlans\"][\"vlan\"] as $id => $vlan) {\n if ($vlanif === $vlan[\"vlanif\"]) {\n return $id;\n }\n }\n }"...
[ "0.6679289", "0.56355625", "0.559443", "0.55811256", "0.54710144", "0.52805215", "0.51039064", "0.49848962", "0.49815488", "0.48308808", "0.48280078", "0.48280078", "0.48191258", "0.4795124", "0.47934124", "0.47883135", "0.47732538", "0.47634208", "0.47404885", "0.47140443", ...
0.7887768
0
Gets the VLAN id, if there is one.
Получает идентификатор VLAN, если он есть.
public function getVlanId () { return $this->vlan_guid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function __get_vlan_id_from_vlanif($vlanif) {\n foreach ($this->config[\"vlans\"][\"vlan\"] as $id => $vlan) {\n if ($vlanif === $vlan[\"vlanif\"]) {\n return $id;\n }\n }\n }", "public function vlan()\n {\n return $this->belongsTo('\\App\\V...
[ "0.7072501", "0.5933054", "0.59051824", "0.5814916", "0.57389593", "0.56334376", "0.5311027", "0.52374035", "0.52374035", "0.5234733", "0.52319133", "0.5222339", "0.5217644", "0.51916826", "0.5169185", "0.51407564", "0.50904983", "0.50864637", "0.5068566", "0.50338167", "0.50...
0.8179629
0
Retrieves all request parameters
Получает все параметры запроса
public function getAllParameters() { return array_merge($_GET, $_POST); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getParams()\n {\n foreach ($_REQUEST as $key=>$value) {\n return [$key => $value];\n }\n }", "public function getRequestParams()\n {\n return $this->request->request->all();\n }", "public function getAllRequestParams()\n {\n return array_mer...
[ "0.8153236", "0.8134449", "0.810289", "0.80874705", "0.79499245", "0.79367673", "0.79298234", "0.79147756", "0.78813475", "0.78748834", "0.7866748", "0.78471893", "0.78202295", "0.7798831", "0.7794722", "0.778407", "0.7779343", "0.777278", "0.7764865", "0.77416885", "0.774009...
0.82056123
0
Handle that new locales was added to the configuration, to init it
Обработка добавления новых локалей в конфигурацию, чтобы инициализировать их
protected function addLocales() { // @todo: add locales when locales configuration is updated }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function initLocales() {\n if (!isset($this->locales)) {\n $this->locales = $this->io->getLocales();\n }\n }", "public function setup_locale()\n {\n }", "protected function initializeL10nLocales() {}", "private function _setLocales() {\n i18n::setLocal...
[ "0.7717297", "0.74139476", "0.72744286", "0.69333124", "0.68839633", "0.68811977", "0.6848126", "0.6763208", "0.67599475", "0.67027587", "0.66980517", "0.6681457", "0.6668023", "0.66304505", "0.6594091", "0.65887254", "0.65828025", "0.6568657", "0.6532793", "0.65063524", "0.6...
0.7880877
0
Renders a node recursive or just a single instance
Отображает узел рекурсивно или просто один экземпляр
abstract public function renderNode(\TYPO3\CMS\Backend\Tree\TreeRepresentationNode $node, $recursive = true);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function recursive_render($id, $node)\n {\n }", "public function render(){\r\n\t\t$nodearr = $this->tree->getChildNodeArray(t3lib_div::GPVar('node'));\r\n\t\tprint(trim(json_encode($nodearr)));\r\n\t}", "public function render() {\n\t\tif (isset($this->variables['nodes'])) {\n\t\t\t$this->setConfi...
[ "0.74806213", "0.72161835", "0.7005718", "0.6813859", "0.67967993", "0.6596637", "0.6511166", "0.6464019", "0.64384174", "0.62185407", "0.6207505", "0.6149118", "0.6080335", "0.6077631", "0.60650283", "0.6050698", "0.60360706", "0.6003342", "0.6001635", "0.59816", "0.59571236...
0.73563725
1
Renders a node collection recursive or just a single instance
Отображает коллекцию узлов рекурсивно или просто отдельный экземпляр
abstract public function renderNodeCollection(\TYPO3\CMS\Backend\Tree\TreeNodeCollection $collection, $recursive = true);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function render(){\r\n\t\t$nodearr = $this->tree->getChildNodeArray(t3lib_div::GPVar('node'));\r\n\t\tprint(trim(json_encode($nodearr)));\r\n\t}", "public function recursive_render($id, $node)\n {\n }", "public function render() {\n\t\tif (isset($this->variables['nodes'])) {\n\t\t\t$this->setConfi...
[ "0.7034768", "0.70034933", "0.6974118", "0.67458004", "0.6686876", "0.6271294", "0.6267641", "0.6262184", "0.62517077", "0.61587256", "0.6137452", "0.6124567", "0.61037695", "0.6101547", "0.6096715", "0.59935105", "0.5978066", "0.59677327", "0.59396327", "0.59307486", "0.5922...
0.73162675
0
Test case for createBillingAccount Createbillingaccount.
Тест-кейс для создания счета на оплату Createbillingaccount.
public function testCreateBillingAccount() { // TODO: implement $this->markTestIncomplete('Not implemented'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testCreateBankAccount(){\n\t\t$parameters = PayUTestUtil::buildParametersBankAccount();\n\t\t$customer = PayUCustomers::create(PayUTestUtil::buildSubscriptionParametersCustomer());\n\t\t$parameters[PayUParameters::CUSTOMER_ID] = $customer->id;\n\t\t$response = PayUBankAccounts::create($parameters);...
[ "0.740524", "0.6850132", "0.6625468", "0.6583009", "0.6524392", "0.64890015", "0.64700186", "0.64562565", "0.6366139", "0.6351236", "0.63172877", "0.6250837", "0.62412393", "0.618078", "0.61790186", "0.61763775", "0.6147408", "0.6132399", "0.6128041", "0.6107933", "0.61029273...
0.8451143
0
Test case for hasPayment Haspayment.
Тестовый случай для hasPayment Haspayment.
public function testHasPayment() { // TODO: implement $this->markTestIncomplete('Not implemented'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function needs_payment()\n {\n }", "public function needs_payment()\n {\n }", "function hasActivePayment() ;", "public function hasPayments(): bool;", "public function hasPayment(PaymentInterface $payment): bool;", "public function validatePayment()\n {\n }", "publi...
[ "0.7451537", "0.74511546", "0.71558106", "0.70397615", "0.6966758", "0.68567705", "0.68567705", "0.6723877", "0.66920346", "0.6573287", "0.65470606", "0.65394104", "0.65158635", "0.6510842", "0.6510842", "0.6422989", "0.64091927", "0.6333707", "0.63188285", "0.63020706", "0.6...
0.84004223
0
Test case for listPaymentMethods Listpaymentmethods.
Тестовый случай для listPaymentMethods Listpaymentmethods.
public function testListPaymentMethods() { // TODO: implement $this->markTestIncomplete('Not implemented'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAListOfPaymentMethods()\n {\n // Arrange\n $customerId = $this->faker->uuid;\n\n // Act\n $paymentMethods = Ezypay::getPaymentMethods($customerId, false);\n\n // Assert\n $this->assertInternalType('array', $paymentMethods);\n $this->assertEqual...
[ "0.81924677", "0.8042956", "0.8042956", "0.7733692", "0.7613133", "0.75511885", "0.7541723", "0.7500697", "0.73768425", "0.72038454", "0.71616083", "0.7146564", "0.71222925", "0.70463526", "0.6932557", "0.6898419", "0.6718162", "0.6710597", "0.6689392", "0.66788495", "0.66741...
0.88184434
0
Test case for processPayment Processpayment.
Тестовый случай для процесса Payment Processpayment.
public function testProcessPayment() { // TODO: implement $this->markTestIncomplete('Not implemented'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function process_payment() {}", "abstract public function processPayment();", "public function processPayment(){\n var_dump('pay with paypal');\n }", "function processPayment() {\n\t\tself::setState(GopayHelper::PAID);\n\t\t\n\t}", "abstract function doPayment();", "public function testPaymentP...
[ "0.8758066", "0.8727217", "0.8208129", "0.77547073", "0.7741816", "0.7448095", "0.73214126", "0.7275362", "0.72040135", "0.72040135", "0.72015303", "0.72015303", "0.7199368", "0.71815354", "0.71815354", "0.71053725", "0.7054361", "0.70535725", "0.7051079", "0.7030317", "0.696...
0.89470476
0
Test case for reconcilePaymentMethod Reconcilepaymentmethod.
Тест-кейс для reconcilePaymentMethod Reconcilepaymentmethod.
public function testReconcilePaymentMethod() { // TODO: implement $this->markTestIncomplete('Not implemented'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testVerifyPaymentMethod()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testCrceOnlinePaymentGetRecurringCharges()\n {\n\n }", "public function testCrceOnlinePaymentGetRecurringOnlinePayments()\n {\n\n }", "publ...
[ "0.6310585", "0.62930185", "0.6285391", "0.61644876", "0.601582", "0.5847445", "0.58065504", "0.57963735", "0.577163", "0.5724851", "0.56431854", "0.5626996", "0.56130564", "0.5564675", "0.55138016", "0.55089206", "0.5501848", "0.5482281", "0.5467452", "0.5452261", "0.5451397...
0.8153671
0
Test case for removePaymentMethod Removepaymentmethod.
Тест-кейс для removePaymentMethod Removepaymentmethod.
public function testRemovePaymentMethod() { // TODO: implement $this->markTestIncomplete('Not implemented'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testUcpPaymentMethodDelete()\n {\n\n }", "public static function delete_payment_method_action()\n {\n }", "public function testVerifyPaymentMethod()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testDeac...
[ "0.7287486", "0.71671456", "0.6894814", "0.67771244", "0.6768865", "0.6667331", "0.6620133", "0.6564814", "0.6564814", "0.6558293", "0.6464555", "0.6463243", "0.6460443", "0.6450314", "0.64300287", "0.6420127", "0.63768655", "0.6368524", "0.63660616", "0.6342412", "0.6333962"...
0.8829067
0
Returns the error trace.
Возвращает трассировку ошибки.
final public static function getTrace() { $trace = self::$trace; // call hook Hook::call('Error.getTrace', array(&$trace)); return $trace; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBacktrace() {\n return $this->err_backtrace;\n }", "private function getTrace()\n {\n return (new DebugTransformer)->transform($this->exception);\n }", "public function getTrace()\n {\n return $this->get('trace');\n }", "public function getTrace();", "fin...
[ "0.7705066", "0.7418478", "0.72485566", "0.72302127", "0.7186782", "0.7175779", "0.714768", "0.7093663", "0.7092336", "0.70710695", "0.7003056", "0.6983097", "0.69207495", "0.68973386", "0.68856245", "0.6854234", "0.6820561", "0.6796512", "0.6781149", "0.67614084", "0.6743", ...
0.8203079
0
This method loads Add news form
Этот метод загружает форму добавления новости
public function addnews() { if (!$this->session->userdata('logged_in')) { redirect(base_url().'auth/login'); } $data['title']='Add news | NewsPaper'; $this->load->view('include/header', $data); $this->load->view('include/navbar'); $this->load->view('AddNewsForm'); $this->load->view('include/footer'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addAction() {\n if (!isset($this->request['submit'])) {\n $this->setValidatorRulesForNewsForm();\n\n $this->render('form', array(\n 'mode' => 'add'\n ));\n return;\n }\n\n $this->validateAndPersistNewsFormData('add', ne...
[ "0.74152875", "0.7074424", "0.70351905", "0.70204353", "0.7013551", "0.6971036", "0.6912042", "0.68251115", "0.6820773", "0.68094736", "0.6808479", "0.6773213", "0.67141145", "0.6703484", "0.66677666", "0.66655153", "0.66586584", "0.66549456", "0.66491413", "0.66144955", "0.6...
0.7189339
1
Get the BranchSwitcher instance
Получить экземпляр BranchSwitcher
function branchSwitcher() { return app(BranchSwitcher\BranchSwitcher::class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createBranch()\n {\n return new Branch();\n }", "public function getActivyBranch();", "public function getBranch()\n {\n return Branch::where('country_id', Auth::user()->country_id)->get();\n }", "public function getBranch()\n {\n return $this->_branch;\...
[ "0.6455879", "0.63923997", "0.63439465", "0.629485", "0.618761", "0.6115565", "0.60048056", "0.59963423", "0.5901184", "0.58962667", "0.5858124", "0.58174247", "0.57990086", "0.56964636", "0.56964636", "0.56935525", "0.5633054", "0.5526596", "0.5509503", "0.5500925", "0.54872...
0.78744316
0
Return an array with all the branches and the one currently active
Вернуть массив со всеми ветвями и той, которая в настоящее время активна
function getBranches() { $return = [ 'all' => [], 'current' => '', 'error' => false, ]; exec('git branch 2>&1', $output, $code); if ($code != 0) { $return['error'] = $output; } elseif (! $output) { $return['error'] = 'No existing br...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOnlyActiveBranch() {}", "abstract public function getBranches();", "public function getActivyBranch();", "public function GetBranch() {\n $result = [ ];\n\n $obj = $this;\n while ( !empty( $obj->parent ) ) {\n $result[] = clone $obj->parent;\...
[ "0.75149286", "0.735588", "0.724858", "0.6973414", "0.6948607", "0.6890673", "0.6846204", "0.67177016", "0.66530347", "0.66153204", "0.66136", "0.65597165", "0.6535102", "0.6533115", "0.6511147", "0.64928347", "0.6464102", "0.6444634", "0.63946503", "0.6390285", "0.630873", ...
0.7621084
0
Add hooks on graphql_init.
Добавить хуки на graphql_init.
public function init() { $this->add_query_validation_rules(); // New action "graphql_get_schema" as of WPGraphQL 0.0.26 (previously was // "graphql_generate_schema"). add_action( 'graphql_get_schema', array( $this, 'amend_where_args' ), 10, 0 ); add_filter( 'graphql_RootQuery_fields', array( $this, 'add_cost...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function init() {\n\n\t\t// Post Types\n\t\tadd_action( 'cptui_post_type_after_fieldsets', [ $this, 'add_graphql_post_type_settings' ], 10, 1 );\n\t\tadd_filter( 'cptui_before_update_post_type', [ $this, 'before_update_post_type' ], 10, 2 );\n\t\tadd_filter( 'cptui_pre_register_post_type', [ $this, 'add_gra...
[ "0.69276154", "0.66818005", "0.65121686", "0.6331826", "0.63233656", "0.61986107", "0.61979544", "0.61684334", "0.6166352", "0.6155656", "0.6144769", "0.6106177", "0.6104562", "0.6090592", "0.60296816", "0.6027217", "0.6015999", "0.6005847", "0.59998167", "0.59759486", "0.591...
0.73359305
0
Add baseline query validation rules to GraphQL.
Добавить правила проверки базового запроса в GraphQL.
public function add_query_validation_rules() { $depth_rule = new QueryDepth( $this->max_depth ); DocumentValidator::addRule( $depth_rule ); $complexity_rule = new QueryComplexity( $this->max_cost ); DocumentValidator::addRule( $complexity_rule ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rules()\n {\n return [\n 'query' => 'required',\n ];\n }", "public function testValidatesQueries(): void\n {\n $this->expectPassesCompleteValidation('\n query {\n catOrDog {\n ... on Cat {\n furColor\n ...
[ "0.6200464", "0.5899479", "0.54768074", "0.5449983", "0.54382575", "0.53810614", "0.5380843", "0.5376503", "0.53627664", "0.53351194", "0.53135055", "0.5303597", "0.52923435", "0.5263465", "0.5246419", "0.5244689", "0.5242682", "0.52291185", "0.5224997", "0.5224997", "0.52249...
0.7137797
0
Calculate the cost of a query argument. Knowngood queries carry no cost.
Вычислите стоимость аргумента запроса. Запросы, которые не содержат ошибок, не имеют стоимости.
private function calculate_query_arg_cost( $arg_name, $arg_value ) { switch ( $arg_name ) { // Pagination markers. case 'after': case 'before': return 0; // Pagination limts of 50 or less. case 'first': case 'last': return floor( intval( $arg_value ) / 51 ); // Getting a resource by ID....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function calculate_query_cost( $children_cost, $args ) {\n\t\t// If any query arg carries a cost of more than zero, return a prohibitive\n\t\t// cost.\n\t\tforeach ( $args as $name => $arg ) {\n\t\t\tif ( $this->calculate_query_arg_cost( $name, $arg ) > 0 ) {\n\t\t\t\treturn $this->max_cost * 100;\n\t\t\t}\...
[ "0.67034113", "0.6299899", "0.6299899", "0.6217927", "0.576785", "0.5709354", "0.56196594", "0.5571314", "0.55331147", "0.5475816", "0.54516786", "0.5440513", "0.53964204", "0.538995", "0.5373305", "0.5314589", "0.5303295", "0.52017057", "0.52017057", "0.51978403", "0.5181067...
0.7325324
0
Calculate the cost of a "where" argument. The where clause is extremely powerful and also therefore potentially exploitable to produce costly queries. Therefore, we want to carefully limit where arguments.
Вычислите стоимость аргумента "where". Условие where чрезвычайно мощно и, соответственно, потенциально может быть использовано для создания дорогостоящих запросов. Поэтому мы хотим внимательно ограничить аргументы where.
private function calculate_where_cost( $arg_names ) { // Remove allowed args from the array; we allow them to be combined with // other where args at no cost. $arg_names = array_values( array_diff( $arg_names, $this->allowed_where_args ) ); // No remaining query args, no problem. if ( 0 === count( $arg_names...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function calculate_query_arg_cost( $arg_name, $arg_value ) {\n\t\tswitch ( $arg_name ) {\n\t\t\t// Pagination markers.\n\t\t\tcase 'after':\n\t\t\tcase 'before':\n\t\t\t\treturn 0;\n\n\t\t\t// Pagination limts of 50 or less.\n\t\t\tcase 'first':\n\t\t\tcase 'last':\n\t\t\t\treturn floor( intval( $arg_value...
[ "0.6524369", "0.586606", "0.5602634", "0.55434036", "0.5404824", "0.53888", "0.5264783", "0.5246534", "0.5186223", "0.51807016", "0.51807016", "0.51377183", "0.51050097", "0.4961376", "0.4924272", "0.49090335", "0.48823926", "0.48637486", "0.48446995", "0.4843614", "0.4826242...
0.75924677
0
Transform local urls to local paths
Преобразование локальных URL в локальные пути
function post2ngg_filter_local_urls($url) { $pieces = parse_url($url); if ($pieces['host'] == $_SERVER['HTTP_HOST']) { $url = POST2NGG_PLUGIN_PATH . '../../..' . $pieces['path']; } return $url; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function sanitizeLocalUrlValidPathsDataProvider() {}", "function get_local_files($url_path, $local_path, $urls) {\n\t$local_files = array();\n\t$mapping_files = str_replace($url_path, $local_path, $urls);\n\n\t$length = count($mapping_files);\n\tfor ($i = 0; $i < $length; $i++) {\n\t\t$local_file = realpa...
[ "0.6802881", "0.665121", "0.6509281", "0.63409185", "0.6310707", "0.6295088", "0.6133356", "0.60662705", "0.6049356", "0.60189193", "0.6018819", "0.6002634", "0.59797835", "0.5971416", "0.59517026", "0.5912442", "0.58757895", "0.5870909", "0.58597165", "0.58597165", "0.585595...
0.7084848
0
Gets a single chat message
Получает один чат-сообщение
public function getMessage() { static::send('chat.getMessage', 'GET', ['msgId' => $this->getMessageId()]); if (!static::getSuccess()) { return false; } return $this->updateOutOfResponse(static::getResponse()->message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMesssageDetails () {\n $ch = request('ch');\n $id = request('id');\n\n return Chat::getChatDetails($ch, $id);\n }", "public function sendMessage () {\n Chat::addUpdate(request()->all());\n $ch = request('from');\n $id = request('to');\n retur...
[ "0.7314014", "0.7312034", "0.7242966", "0.7200369", "0.7200369", "0.7034865", "0.70037884", "0.70037884", "0.6897229", "0.6884891", "0.6871791", "0.6862536", "0.6834253", "0.68235445", "0.6816372", "0.67878264", "0.67868036", "0.67650867", "0.674862", "0.674297", "0.67165345"...
0.74137104
0
/ Function will add 2 hours to the numDeiceHours field for the date('z') numDoY & date('Y') numYear in the MySQL database for every PRECIPITATION_THRESHOLD multiple. This function is normally run by Vera's DeIce scene at the end of the deicing cycle. Calculate the number of hours to run the deice cables for the current...
Функция добавит 2 часа в поле numDeiceHours для даты('z') numDoY и даты('Y') numYear в базе данных MySQL для каждого кратного PRECIPITATION_THRESHOLD. Эта функция обычно запускается сценой Vera's DeIce в конце цикла оттаивания. Вычислить количество часов, в течение которых нужно включать кабели оттаивания, в зависимост...
function fnCalcDeiceHours() { /* Initialize local variables to use */ global $dbLink, $weather; $rs = null; $row = null; $recordedPrecip = 0; $precipDeviation = PRECIPITATION_DEVIATION; $precipThreshold = PRECIPITATION_THRESHOLD; $old_deiceHours = 0; $yest_deIceHours = 0; $yest...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fnIncrCompletedHrs( $hrsCompleted ) {\n\n global $dbLink;\n\n /* SQL to figure out how many hours we've got left to de-ice for as well as the SQL to update the Completion count */\n $updSQL = \"UPDATE vw_precipitation SET numComplDeIceHrs = :hrs, ts_updated = CURRENT_TIMESTAMP WHERE ((numDoy=:num...
[ "0.5936179", "0.5837525", "0.5366651", "0.5228876", "0.5016499", "0.49824446", "0.49588645", "0.48845577", "0.48701057", "0.4859008", "0.48560217", "0.48530003", "0.48379916", "0.4836175", "0.47925058", "0.4792437", "0.47813967", "0.47755402", "0.47660813", "0.47629905", "0.4...
0.70323485
0
ekurashi ajax get order notification
ekurashi ajax get order notification
public function getOrderNotification() { if($this->request->is('ajax')) { $tantouId = $this->getRequest()->getData('m_system_tantou_id'); $condition = ['OrderNotification.created >=' => date("Y-m-d", strtotime('-7 day'))]; $aryResult = $this->_getOrderNotification($tantou...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajaxOrderNotice(){\n //echo $order_amount;\n }", "public function notificationAction()\n {\n $helper = Mage::helper('klarna_kco');\n $checkoutHelper = Mage::helper('klarna_kco/checkout');\n\n if (!$this->getRequest()->isPost()) {\n return;\n ...
[ "0.7258073", "0.68760014", "0.6677239", "0.6640816", "0.65713716", "0.6517297", "0.6504255", "0.6487655", "0.64404607", "0.64333004", "0.64187", "0.6387254", "0.6353132", "0.63237214", "0.631394", "0.6294894", "0.6242087", "0.6233132", "0.6225085", "0.621627", "0.6191151", ...
0.7981297
0
Include all views files
Включить все файлы представлений
public function includeAllViews() { $this->includeView($this->listViews()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function includeViewDirectory() : void\n {\n if (!file_exists($this->viewDirectory) && defined('WP_DEBUG') && WP_DEBUG) {\n echo '<p class=\"uk-text-danger uk-text-bold uk-text-center\">File: ' . $this->viewDirectory . ' not found!</p>';\n return;\n }\n include...
[ "0.7306348", "0.70125455", "0.69523466", "0.6921566", "0.6868984", "0.6656718", "0.6656378", "0.6628456", "0.65638846", "0.6549592", "0.65243995", "0.65078974", "0.6489444", "0.6485255", "0.64560556", "0.64514095", "0.6432321", "0.6421711", "0.6403649", "0.63994116", "0.63852...
0.84190303
0
Removes the secret key for the given key id.
Удаляет секретный ключ для заданного идентификатора ключа.
public function removeSecretKey($keyId) { unset($this->secretKeys[$keyId]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete_ppp_secret($id){\n $input = array(\n 'command' => '/ppp/secret/remove',\n 'id' => $id\n );\n return $this->query($input);\n }", "public function deleteSecret(string $id): void\n {\n $uri = 'projects/secrets/{...
[ "0.6792304", "0.6659957", "0.6595511", "0.63670254", "0.6319625", "0.63189137", "0.62848204", "0.6281903", "0.62453234", "0.6220053", "0.6210515", "0.6204957", "0.620336", "0.61851424", "0.616613", "0.61534154", "0.61534154", "0.61534154", "0.61534154", "0.61534154", "0.61534...
0.75201404
0
Removes all stored secret keys.
Удаляет все сохраненные секретные ключи.
public function clear() { unset($this->secretKeys); $this->secretKeys = array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function destroy_keys() {\n\t\tdelete_option( self::KEYS_OPTION_PUBLIC_KEY );\n\t\tdelete_option( self::KEYS_OPTION_PRIVATE_KEY );\n\t}", "public static function destroy()\n {\n foreach (static::all() as $key => $value) {\n static::delete($key);\n }\n }", "public static...
[ "0.7149166", "0.67991346", "0.66356045", "0.6576999", "0.6491142", "0.6248578", "0.62233853", "0.62085855", "0.6185219", "0.6182664", "0.6177673", "0.6153746", "0.61286694", "0.60737836", "0.60642827", "0.606136", "0.60460943", "0.597062", "0.5968706", "0.594477", "0.5944039"...
0.77785194
0
Retrieve the maximum price.
Получить максимальную цену.
public function get_maximum_price() { if ( ! isset( $this->maximum_price ) ) { $this->maximum_price = give_get_meta( $this->ID, '_give_custom_amount_range_maximum', true, 999999.99 ); if ( ! $this->is_custom_price_mode() ) { $this->maximum_price = give_get_highest_price_option( $this->ID ); } } re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMaxPrice()\n {\n return $this->maxPrice;\n }", "public function getMaxPrice()\n {\n if (is_null($this->_maxPrice)) {\n $this->_prepareStatisticsData();\n }\n\n return $this->_maxPrice;\n }", "public function getMaxPriceThreshold()\n {\n ...
[ "0.8853935", "0.8259997", "0.7522565", "0.7489554", "0.74865353", "0.74328095", "0.74166137", "0.73879176", "0.7193174", "0.7171852", "0.70934844", "0.70752454", "0.70635355", "0.7034156", "0.7034156", "0.7034156", "0.7034156", "0.7034156", "0.7024672", "0.7024672", "0.699639...
0.84130734
1
Determine if single price mode is enabled or disabled
Определить, включен ли режим одной цены или отключен
public function is_single_price_mode() { $option = give_get_meta( $this->ID, '_give_price_option', true ); $ret = 0; if ( empty( $option ) || $option === 'set' ) { $ret = 1; } /** * Override the price mode for a donation when checking if is in single price mode. * * @since 1.0 * * @par...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isEnabledCondition(){\r\n return Mage::getStoreConfig('vendors/pricecomparison2/enable_condition');\r\n }", "public function getPriceModes();", "public function is_custom_price_mode() {\n\n\t\t$option = give_get_meta( $this->ID, '_give_custom_amount', true );\n\t\t$ret = 0;\n\n\t\t...
[ "0.7600436", "0.7206012", "0.7178999", "0.7101917", "0.69415206", "0.6873129", "0.66642493", "0.6646365", "0.66391397", "0.66236365", "0.66224635", "0.65829057", "0.6552662", "0.65347916", "0.6524485", "0.65190566", "0.6508183", "0.6496253", "0.64893395", "0.64710426", "0.644...
0.75176007
1
Determine if custom price mode is enabled or disabled
Определите, включен ли режим пользовательской цены или отключен
public function is_custom_price_mode() { $option = give_get_meta( $this->ID, '_give_custom_amount', true ); $ret = 0; if ( give_is_setting_enabled( $option ) ) { $ret = 1; } /** * Override the price mode for a donation when checking if is in custom price mode. * * @since 1.6 * * @param...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isEnabledCondition(){\r\n return Mage::getStoreConfig('vendors/pricecomparison2/enable_condition');\r\n }", "public function getPriceModes();", "public function getDefaultPriceMode();", "public function isPriceSliderEnabled()\n {\n if (!$this->isEnabled()) {\n r...
[ "0.79611766", "0.7302155", "0.7149008", "0.71332145", "0.7095091", "0.6972631", "0.6926773", "0.6911869", "0.67148966", "0.6591471", "0.65790874", "0.64942676", "0.64812225", "0.6477957", "0.64595324", "0.644835", "0.64191884", "0.6409838", "0.6398894", "0.6398575", "0.637703...
0.8195586
0
Has Variable Prices Determine if the donation form has variable prices enabled
Есть переменные цены Определяет, включены ли переменные цены в форму пожертвований
public function has_variable_prices() { $option = give_get_meta( $this->ID, '_give_price_option', true ); $ret = 0; if ( $option === 'multi' ) { $ret = 1; } /** * Filter: Override whether the donation form has variables prices. * * @param bool $ret Does donation form have variable pric...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function give_has_variable_prices( $form_id = 0 ) {\n\n\tif ( empty( $form_id ) ) {\n\t\treturn false;\n\t}\n\n\t$form = new Give_Donate_Form( $form_id );\n\n\treturn $form->has_variable_prices();\n}", "public function priceVaries()\n {\n return $this->price->amount() !== $this->product->price->amount(...
[ "0.7705673", "0.7620336", "0.69500285", "0.6949585", "0.681233", "0.6619342", "0.6586437", "0.6513971", "0.64512485", "0.642006", "0.63918966", "0.63723046", "0.627865", "0.6213762", "0.612851", "0.61271733", "0.611735", "0.60857916", "0.60821426", "0.6079894", "0.6078231", ...
0.8454166
0
Get form wrap Classes. Provides the classes for the donation form div wrapper and filters for customization.
Получить классы обертки форм. Предоставляет классы для обертки div формы донатов и фильтры для настройки.
public function get_form_wrap_classes( $args ) { $custom_class = array( 'give-form-wrap', ); if ( $this->is_close_donation_form() ) { $custom_class[] = 'give-form-closed'; } else { $display_option = ( isset( $args['display_style'] ) && ! empty( $args['display_style'] ) ) ? $args['display_style'] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_wrapper_class() {\n\t\t\t$classes = 'aiom-form-row aiom-form-row-radio-image aiom-field-list';\n\t\t\tif( $passed_classes = parent::get_wrapper_class() ) {\n\t\t\t\t$classes .= ' ' . $passed_classes;\n\t\t\t}\n\t\t\t\n\t\t\treturn $classes;\n\t\t}", "protected function get_html_wrapper_class(...
[ "0.695567", "0.6273106", "0.6220975", "0.61538106", "0.61192006", "0.6069446", "0.604132", "0.60260135", "0.5958223", "0.5874861", "0.58619255", "0.58449554", "0.5812378", "0.57788724", "0.5735683", "0.5728587", "0.5698755", "0.56920224", "0.56920224", "0.56803447", "0.564986...
0.7679569
0
Get if form type multi or not.
Проверить, является ли форма типа множественный или нет.
public function is_multi_type_donation_form() { $form_type = $this->get_type(); return ( 'multi' === $form_type ? true : false ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function is_allow_multi_on_form() {\n\t\treturn true;\n\t}", "public function isMultiple() {\n return $this instanceof MultiItemsFieldHandlerInterface;\n }", "public function getIsMultipleAttribute()\n {\n $fieldType = Arr::get($this->config, 'field_type');\n return in_array($fieldT...
[ "0.7700732", "0.6932107", "0.69080114", "0.68967944", "0.6719282", "0.67096514", "0.668065", "0.6631022", "0.6608092", "0.65905374", "0.65715295", "0.6524673", "0.6515376", "0.64820963", "0.6468845", "0.6364788", "0.63510484", "0.63452375", "0.6335812", "0.62744516", "0.62478...
0.78049415
0
Retrieve the total earnings for the form
Получить общую выручку для формы
public function get_earnings() { if ( ! isset( $this->earnings ) ) { if ( '' == give_get_meta( $this->ID, '_give_form_earnings', true ) ) { add_post_meta( $this->ID, '_give_form_earnings', 0 ); } $this->earnings = give_get_meta( $this->ID, '_give_form_earnings', true ); if ( $this->earnings < 0 ) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function total_earnings(){\n //for now return total earnings for example need to think more about this shit\n\n $array = [\n 'total_earnings' => '$1050.50'\n ];\n\n return $array;\n }", "public function getEarnedAmount() {\n\t\t\n\t\t// Total Earned Amount\n\t\t$d...
[ "0.6926437", "0.662311", "0.64855754", "0.6314209", "0.62602216", "0.62202", "0.6195519", "0.6195519", "0.615223", "0.6096555", "0.6079401", "0.604459", "0.6034634", "0.60271007", "0.60116935", "0.60116935", "0.5991718", "0.59896165", "0.59865224", "0.59650826", "0.59370184",...
0.724111
0
Increase the earnings by the given amount
Увеличьте прибыль на заданную сумму
public function increase_earnings( $amount = 0, $payment_id = 0 ) { $earnings = give_get_form_earnings_stats( $this->ID ); /** * Modify the earning amount when increasing. * * @since 2.1 * * @param float $amount Earning amount. * @param int $form_id Donation form ID. * @param int ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updated(Earning $earning)\n {\n if ($earning->status == 1 && $earning->wallet) {\n $wallet = $earning->wallet;\n $wallet->update([\n 'balance' => ($wallet->balance + $earning->amount)\n ]);\n }\n }", "public function increase_sto...
[ "0.7272585", "0.66761744", "0.6504383", "0.6462694", "0.6427258", "0.63586164", "0.6228088", "0.62008876", "0.617633", "0.61130095", "0.6068661", "0.60278153", "0.6013294", "0.5981663", "0.5947935", "0.59256685", "0.5912322", "0.59059274", "0.58972454", "0.5897086", "0.588624...
0.70218104
1
Decrease the earnings by the given amount
Уменьшите прибыль на указанную сумму
public function decrease_earnings( $amount, $payment_id = 0 ) { $earnings = give_get_form_earnings_stats( $this->ID ); if ( $earnings > 0 ) { /** * Modify the earning value when decreasing it. * * @since 2.1 * * @param float $amount Earning amount. * @param int $form_id Donati...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deductActual($amount)\r\n {\r\n $this->stock_bal = $this->stock_bal - $amount;\r\n\r\n $sql = 'UPDATE stock_accounts SET stock_bal = '.$this->stock_bal.' WHERE account_id = '.$this->account_no;\r\n DatabaseHandler::Execute($sql);\r\n \r\n //return $amount; or b...
[ "0.72440207", "0.6842786", "0.6812064", "0.6810733", "0.6810076", "0.6795668", "0.6533087", "0.6515759", "0.649512", "0.6460837", "0.6450879", "0.64094657", "0.6278267", "0.6256432", "0.6197491", "0.61390144", "0.61383045", "0.6135292", "0.611434", "0.6049931", "0.60423774", ...
0.71418536
1
Determine if donation form closed or not Form will be close if: a. form has fixed goal b. close form when goal achieved cmb2 setting is set to 'Yes' c. goal has been achieved
Определите, закрыта ли форма пожертвований или нет. Форма будет закрыта, если: a. форма имеет фиксированную цель b. форма закрывается при достижении цели, настройка cmb2 установлена в 'Yes' c. цель была достигнута
public function is_close_donation_form() { $is_closed = ( 'closed' === give_get_meta( $this->ID, '_give_form_status', true, 'open' ) ); // If manual upgrade not completed, proceed with backward compatible code. if ( ! give_has_upgrade_completed( 'v210_verify_form_status_upgrades' ) ) { // Check for backward ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function bc_210_is_close_donation_form() {\n\n\t\t$close_form = false;\n\t\t$is_goal_enabled = give_is_setting_enabled( give_get_meta( $this->ID, '_give_goal_option', true, 'disabled' ) );\n\n\t\t// Proceed, if the form goal is enabled.\n\t\tif ( $is_goal_enabled ) {\n\n\t\t\t$close_form_when_goal_ach...
[ "0.8357681", "0.5945651", "0.5783041", "0.5764851", "0.57569396", "0.5567045", "0.5542157", "0.549628", "0.5448003", "0.5407965", "0.5407965", "0.54065853", "0.5403771", "0.53842163", "0.53447783", "0.5324539", "0.53241104", "0.52898395", "0.52523786", "0.5246866", "0.5240782...
0.7529339
1
Backward Compatible function for is_close_donation_form()
Функция, совместимая с предыдущими версиями, для is_close_donation_form()
private function bc_210_is_close_donation_form() { $close_form = false; $is_goal_enabled = give_is_setting_enabled( give_get_meta( $this->ID, '_give_goal_option', true, 'disabled' ) ); // Proceed, if the form goal is enabled. if ( $is_goal_enabled ) { $close_form_when_goal_achieved = give_is_setting_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function is_close_donation_form() {\n\t\t$is_closed = ( 'closed' === give_get_meta( $this->ID, '_give_form_status', true, 'open' ) );\n\n\t\t// If manual upgrade not completed, proceed with backward compatible code.\n\t\tif ( ! give_has_upgrade_completed( 'v210_verify_form_status_upgrades' ) ) {\n\n\t\t\t//...
[ "0.7782703", "0.56789225", "0.56789225", "0.5618397", "0.55908424", "0.55854475", "0.55519384", "0.549421", "0.5459644", "0.545881", "0.54549503", "0.5443309", "0.5419533", "0.53301466", "0.531355", "0.5299504", "0.52987045", "0.52622867", "0.52429163", "0.5239834", "0.523536...
0.74711245
1
Get the sender profile associated with the message
Получить профиль отправителя, связанный с сообщением
public function senderProfile() { return $this->hasOne('App\Models\UserProfile', 'user_id', 'sender_id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSender()\n {\n return $this->messageModel->getSender();\n }", "public function getSender()\n {\n if (array_key_exists(\"sender\", $this->_propDict)) {\n return $this->_propDict[\"sender\"];\n } else {\n return null;\n }\n }", "pub...
[ "0.6997947", "0.6736427", "0.66120934", "0.65614146", "0.65519583", "0.6547367", "0.6547367", "0.6547367", "0.6547367", "0.6547367", "0.6547367", "0.6481654", "0.643041", "0.6426197", "0.637122", "0.63667786", "0.63503337", "0.6320836", "0.63010335", "0.6267793", "0.6260733",...
0.71921474
0
Retrieves the domain setting.
Получает настройку домена.
public function domain() { return $this->get('domain'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getDomain()\n {\n return self::$domain;\n }", "private function getDomain()\n\t{\n\t\treturn $this->domain;\n\t}", "public function get_domain()\n { \n return $this->domain;\n }", "public function getDomain()\n {\n return $this->DOMAIN;\n }", ...
[ "0.7691346", "0.76812017", "0.7677782", "0.76085514", "0.7534378", "0.74804914", "0.744178", "0.7426543", "0.74175376", "0.74058974", "0.7398632", "0.7398632", "0.7398632", "0.7398632", "0.7398632", "0.7398632", "0.7398632", "0.7398632", "0.7398632", "0.7398632", "0.7398632",...
0.7904305
0
Retrieves the CloudFront setting.
Получает настройки CloudFront.
public function cloudfront() { return $this->get('cloudfront', FALSE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function usesCloudFront()\n {\n return Manifest::current()['environments'][$this->argument('environment')]['cloudfront'] ?? true;\n }", "function siteorigin_setting( $setting ){\n\treturn SiteOrigin_Settings::single()->get( $setting );\n}", "public function getSetting() {}", "public fu...
[ "0.67546344", "0.66204375", "0.62043166", "0.620282", "0.6020753", "0.58566374", "0.5804078", "0.58032215", "0.5756305", "0.5727973", "0.57234216", "0.56599116", "0.56570065", "0.56181115", "0.5546976", "0.5532065", "0.5515543", "0.54990137", "0.54928327", "0.5480494", "0.546...
0.74646676
0
Retrieves the CloudFront keypair id setting.
Получает настройку идентификатора ключевой пары CloudFront.
public function cloudfront_keypair_id() { return $this->get('cloudfront_keypair_id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_access_key_id() {\n\t\tif ( defined( 'DBI_AWS_ACCESS_KEY_ID' ) ) {\n\t\t\treturn DBI_AWS_ACCESS_KEY_ID;\n\t\t} elseif ( defined( 'AWS_ACCESS_KEY_ID' ) ) {\n\t\t\treturn AWS_ACCESS_KEY_ID; // Deprecated\n\t\t}\n\n\t\treturn $this->get_setting( 'access_key_id' );\n\t}", "private function getIdFromKey(...
[ "0.6735189", "0.6408184", "0.6222092", "0.61004543", "0.60492283", "0.6015211", "0.59469956", "0.5938556", "0.590322", "0.59031177", "0.58706945", "0.5867589", "0.5856297", "0.5856297", "0.5856297", "0.5856297", "0.5856297", "0.5854228", "0.58515793", "0.58296996", "0.5815825...
0.86819565
0
Retrieves the CloudFront private key setting.
Получает настройку приватного ключа CloudFront.
public function cloudfront_private_key() { return $this->get('cloudfront_private_key'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cloudfront_keypair_id() {\n return $this->get('cloudfront_keypair_id');\n }", "public function getPrivkey()\n {\n return $this->getService()->getPrivateKey();\n }", "function get_private_server_key() {\n\t$keys = apply_filters( 'wo_server_keys', array(\n\t\t'public' => WOABSPA...
[ "0.69079745", "0.67163765", "0.66979456", "0.65617377", "0.65613407", "0.6555149", "0.6536376", "0.6521798", "0.65178186", "0.64294916", "0.63502324", "0.6314667", "0.6314667", "0.6314667", "0.631213", "0.6304263", "0.6303439", "0.62944126", "0.6220952", "0.6190261", "0.61649...
0.8366123
0
Retrieves the hostname setting.
Получает настройку имени хоста.
public function hostname() { return $this->get('hostname'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getHost()\n {\n return isset($this->settings['host']) ? $this->settings['host'] : 'localhost';\n }", "public function getHostName(){\n return $this->hostname;\n }", "public function getHost()\n {\n return $this->_getValue('Host');\n }", "public function ...
[ "0.78538215", "0.78168297", "0.7778527", "0.77390105", "0.7724429", "0.7687825", "0.7682465", "0.76626897", "0.7644169", "0.76251245", "0.7545569", "0.74872005", "0.74868447", "0.748684", "0.74859", "0.7463831", "0.74602276", "0.7439957", "0.7430687", "0.7416243", "0.7414369"...
0.818291
0
Retrieves the file URI scheme override setting.
Получает настройку переопределения схемы URI файла.
public function file_uri_scheme_override() { return $this->get('file_uri_scheme_override', FALSE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUriOverrideEnforceMode()\n {\n return $this->uri_override_enforce_mode;\n }", "public function get_default_scheme();", "public function scheme()\n {\n if (null === $this->scheme) {\n return parent::scheme();\n }\n return $this->scheme;\n }",...
[ "0.6652627", "0.6570829", "0.6298317", "0.6130507", "0.6130507", "0.612938", "0.6112186", "0.600938", "0.5964585", "0.59630716", "0.5943759", "0.5908462", "0.5906169", "0.59058994", "0.59058994", "0.59058994", "0.59058994", "0.59058994", "0.59058994", "0.59058994", "0.5868907...
0.8644526
0
Retrieves the migrate credentials setting.
Получает настройку учетных данных для миграции.
public function migrate_credentials() { return $this->get('migrate_credentials', TRUE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCredentials()\n {\n return $this->credentials;\n }", "public function getCredentials()\n {\n return $this->credentials;\n }", "public function getCredentials()\n {\n return $this->credentials;\n }", "public function getCredentials()\n {\n re...
[ "0.6618495", "0.6618495", "0.6618495", "0.6618495", "0.661841", "0.6617781", "0.65939116", "0.65468806", "0.65026516", "0.6494959", "0.64807653", "0.6366132", "0.6310474", "0.6305051", "0.62952214", "0.62929463", "0.6224052", "0.6195816", "0.6170417", "0.6163119", "0.6140404"...
0.8511912
0
Builds an array of options that can be used for the S3 client.
Создает массив вариантов, которые можно использовать для клиента S3.
public function clientOptions() { return array( 'bucket' => $this->bucket(), 'credentials' => $this->credentials(), 'region' => $this->region(), 'version' => $this->version(), 'endpoint' => $this->hostname(), ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getOptions()\n {\n return [\n 'bucket' => get_option('image_cop_bucket', 'image-cop'),\n 'upload_folder' => get_option('image_cop_upload_folder', 'upload'),\n 'compressed_folder' => get_option('image_cop_public_folder', 'compressed'),...
[ "0.69229335", "0.62725306", "0.6236081", "0.61753225", "0.61720294", "0.6079962", "0.5924051", "0.58814985", "0.58527714", "0.58472806", "0.5827126", "0.5786922", "0.57723933", "0.5730735", "0.5725385", "0.57161754", "0.5700597", "0.5665046", "0.56617457", "0.56389433", "0.56...
0.72208136
0
Whether explicit text is present.
Наличие явного текста.
public function hasExplicitText(): bool { return isset($this->_text); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasText(): bool;", "public function hasText();", "public function hasText()\n {\n return isset($this->text);\n }", "public function hasText(){\n return $this->_has(3);\n }", "public function hasText(){\n return $this->_has(2);\n }", "public functio...
[ "0.7770971", "0.77532613", "0.7646323", "0.749819", "0.74145573", "0.73052204", "0.7292448", "0.718036", "0.6922831", "0.6890415", "0.68803746", "0.68673134", "0.67306083", "0.6580311", "0.6554785", "0.64586514", "0.63825244", "0.63585955", "0.62770647", "0.62610173", "0.6199...
0.8801085
0
Whether notice reference is present.
Наличие ссылки на уведомление.
public function hasNoticeRef(): bool { return isset($this->_ref); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function is_notice( $key ) {\n\t\treturn ! empty( self::instance()->notices[ $key ] ) ? true : false;\n\t}", "public static function has_notice( $notice ) {\n\t\t$notice_state = self::get_notice_state();\n\t\treturn in_array( $notice, $notice_state, true );\n\t}", "public function noticeExists() ...
[ "0.7103041", "0.6968564", "0.6964678", "0.6796703", "0.67104244", "0.6602046", "0.6569105", "0.6463451", "0.63861924", "0.6335668", "0.63175845", "0.6300174", "0.6289475", "0.6283635", "0.62603194", "0.6252168", "0.6074926", "0.60560817", "0.60464495", "0.6041561", "0.6017034...
0.8519184
0
function that allow admin to reply message
функция, позволяющая админу ответить на сообщение
public function AdminReply($m_id){ if (isset($_POST['reply'])) { $message = $_POST['message']; $status = 'seen'; $sql = "UPDATE message SET admin_reply = '$message', status = '$status' WHERE id = '$m_id'"; $query = $this->conn->prepare($sql); $res = $query->execute(); if ($res) { return 'suc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function replyAction()\n\t{\n\n\t}", "public function replyAction()\n {\n /** Get user input */\n $message = $this->getRequest()->getParam('reply');\n $thread_id = $this->getRequest()->getParam('id');\n\n $ticket = Mage::getModel('tickets/post');\n $ticket->setThreadI...
[ "0.7509806", "0.7225367", "0.70861477", "0.7084886", "0.7072878", "0.7048623", "0.70306224", "0.6970295", "0.6937538", "0.68124956", "0.6761022", "0.6759642", "0.6701", "0.66268075", "0.66249245", "0.66193885", "0.66094625", "0.65799665", "0.6558371", "0.6528259", "0.6523815"...
0.75424397
0
funtion that allows users to send message to admin
функция, которая позволяет пользователям отправлять сообщение администратору
public function messageAdmin($member_id,$member_name) { if (isset($_POST['message'])) { $status = 'new'; $member_message = $_POST['member_message']; $Subject = $_POST['subject']; $sql = "INSERT INTO message(member_name, message_subject, member_message, status, member_id) VALUES (?,?,?,?,?)"; $q...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function adminSendMessage(Request $request){\n $user = User::findOrFail($request->to_id);\n }", "protected function sendMessageToAdmin(array $message)\n\t{\n\t\tforeach ($this->clients as $client)\n\t\t{\n\t\t\tif ($client->isLoggedIn() && $client->user->isAdmin())\n\t\t\t{\n\t\t\t\t$client->sen...
[ "0.72301596", "0.7011399", "0.69086987", "0.6894364", "0.6874168", "0.6871258", "0.67946416", "0.67880887", "0.6768221", "0.6766474", "0.6744095", "0.6709147", "0.6697499", "0.6686345", "0.6671534", "0.6665842", "0.66437954", "0.66234654", "0.6610431", "0.6582954", "0.6569744...
0.7070789
1
Get Followers by iterating over all Sections
Получить подписчиков, перебирая все разделы
public function getFollowers(){ $followers = array(); $sections = $this->getSections(); if($sections != null){ foreach($sections as $section){ $users = $section->getUsers(); if($users != null){ foreach($users as $user){ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFollowerIterator();", "public function getFollowers() {\r return $this->followers;\r }", "public function followers();", "public function getFollowers()\n {\n return $this->hasMany(Followers::class, ['partner_id' => 'id'])->inverseOf('partner');\n }", "function ...
[ "0.69579774", "0.6541678", "0.6370679", "0.6351596", "0.62419856", "0.61045456", "0.6091687", "0.607132", "0.60648626", "0.6021557", "0.5980717", "0.5976552", "0.59360063", "0.593451", "0.59199625", "0.5910629", "0.5894294", "0.5880689", "0.5878175", "0.58664113", "0.5865278"...
0.7748659
0
Create and checkout new branch
Создать и переключиться на новую ветку
public function createBranch() { $branchName = $this->getBranchName(); $result = $this->git->createBranch($branchName, true); return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createBranch($name)\n {\n $this->currentBranch = $this->currentBranch->create($name);\n $this->backend->saveBranch($this->currentBranch);\n }", "public function create_new_branch() {\n if (get_menu_permission('outlet_access') == false) {\n redirect(base_url('...
[ "0.727086", "0.71494144", "0.70903474", "0.70744157", "0.6716477", "0.6600963", "0.655453", "0.644864", "0.64390755", "0.63739896", "0.6370913", "0.6355938", "0.6353699", "0.63378555", "0.63105", "0.6310021", "0.63069767", "0.63048804", "0.6281731", "0.6227596", "0.6207351", ...
0.7687459
0
Get current branch name
Получить имя текущей ветки
public function getCurrentBranchName() { return $this->git->getCurrentBranchName(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function branchName()\n {\n return $this->branchName;\n }", "public function getBranchname()\n\t{\n\t\treturn $this->branchname;\n\t}", "private function getCurrentBranch()\n {\n if (! config('youdu.exception.show_git_branch', false)) {\n return '';\n }\n\n ...
[ "0.84951353", "0.819523", "0.81709313", "0.7933984", "0.7931143", "0.78864646", "0.7817832", "0.78110415", "0.77158207", "0.74598753", "0.73449785", "0.732871", "0.7124014", "0.71147007", "0.6999409", "0.69993097", "0.6904262", "0.6865223", "0.68523115", "0.6756025", "0.67538...
0.8950136
0
Get new branch name to check out
Получить новое имя ветки для проверки
protected function getBranchName() { return sprintf('update-composer-%s', date('Ymdhis')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function branchName()\n {\n return $this->branchName;\n }", "public function getBranchname()\n\t{\n\t\treturn $this->branchname;\n\t}", "public function getCurrentBranchName()\n {\n return $this->git->getCurrentBranchName();\n }", "public function branch(): string\n {\n ...
[ "0.7682671", "0.73352665", "0.71919614", "0.7089874", "0.70276845", "0.6953484", "0.681871", "0.6707114", "0.66968673", "0.6654943", "0.663887", "0.6615955", "0.6505617", "0.6444618", "0.6426432", "0.6415242", "0.641513", "0.6332333", "0.63159657", "0.6283173", "0.6234742", ...
0.7920248
0
Get git remote url If env `GIT_REMOTE_URL` is set, return that. Else, generate remote basicauth url with githubusername, token and repository
Получить URL удаленного репозитория Git. Если переменная окружения `GIT_REMOTE_URL` установлена, вернуть ее. В противном случае сгенерировать URL удаленного базового аутентификационного URL с githubusername, токеном и репозиторием.
protected function getRemoteUrl() { $env = getenv('GIT_REMOTE_URL'); if ($env) { return $env; } $user = getenv('GITHUB_USER'); $token = getenv('GITHUB_TOKEN'); $repo = getenv('GITHUB_REPOSITORY'); $remoteUrl = sprintf( 'https://%s:%s@g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getGitUrl()\n {\n return $this->gitUrl;\n }", "protected function getProjectFromRemote()\n {\n $process = new Process('git config --get remote.origin.url');\n $process->run();\n $remote_url = trim($process->getOutput());\n preg_match('#.*\\/(.*)\\.git$#...
[ "0.6251455", "0.6093048", "0.6032261", "0.59734935", "0.5846241", "0.57623297", "0.56959295", "0.56825536", "0.56453854", "0.56019086", "0.56010664", "0.54840666", "0.5450706", "0.54258394", "0.54115677", "0.5400161", "0.53896135", "0.53626895", "0.5330661", "0.5301209", "0.5...
0.7984654
0
Adds HTTP headers about the pagination to the response.
Добавляет HTTP-заголовки о пагинации в ответ.
protected function addPaginationHeaders(Pagination $pagination) { $links = []; foreach ($pagination->getLinks(true) as $rel => $url) { $links[] = "<$url>; rel=$rel"; } Craft::$app->getResponse()->getHeaders() ->set($this->totalCountHeader, $pagination->totalC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add_pagination_headers($request, $response, int $total, int $page, int $max_pages)\n {\n }", "public function add_headers( $response, $request, $total_items, $total_pages ) {\n\t\t$response->header( 'X-WP-Total', $total_items );\n\t\t$response->header( 'X-WP-TotalPages', $total_page...
[ "0.7754881", "0.68495077", "0.62675685", "0.62507826", "0.6154532", "0.6115039", "0.6082104", "0.5926145", "0.59011847", "0.5888062", "0.5860718", "0.5838677", "0.57958454", "0.5762371", "0.57576394", "0.57239205", "0.56552094", "0.56413424", "0.5599325", "0.5593565", "0.5593...
0.76319337
1
ACTION UTILITIES Checks whether this filter should transform the specified action data.
ACTION UTILITIES Проверяет, должен ли этот фильтр преобразовать указанные данные действия.
protected function shouldTransform($action, $data): bool { if ($this->matchData($data) && $this->matchCustom($action, $data)) { return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function canApply($data);", "public function supportsTransformation($data, string $to, array $context = []): bool;", "abstract public function passes($action = null);", "public function isValidAction( $action )\n {\n switch( $action ){\n case \"get_empty_data\":\n case \"get_in...
[ "0.60780513", "0.5925091", "0.582441", "0.57867557", "0.5785984", "0.56979114", "0.56940246", "0.563473", "0.5559874", "0.5557409", "0.54926825", "0.5491649", "0.54485404", "0.5447371", "0.54327893", "0.5408468", "0.5388242", "0.53746563", "0.5347662", "0.5340786", "0.5329891...
0.7666011
0
Get all parameters for the given job. This method must not be overridden.
Получить все параметры для заданной задачи. Этот метод не должен быть переопределен.
public function getJobParams(): array { return []; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getAll()\n {\n return self::$parameters;\n }", "public function getParamsListToInject() : array {\n return [\n 'jobs'\n ];\n }", "public function getAllParams() {\r\n return $this->params;\r\n }", "public function getAllParameters() {\n return ...
[ "0.6747737", "0.67167044", "0.66552085", "0.6654002", "0.6653057", "0.664714", "0.65791154", "0.65791154", "0.65791154", "0.65791154", "0.65791154", "0.65791154", "0.65791154", "0.65791154", "0.657615", "0.657615", "0.65641147", "0.650801", "0.6478407", "0.6478407", "0.647840...
0.73962164
0
/ This function has two parameters: $route and $callback. $route contains the route that we are attempting to match against the actual route, and $callback is the function that will be executed if the routes do indeed match. Notice that, at the start of the register function, we call for out Flow instance, using the st...
// Эта функция имеет два параметра: $route и $callback. $route содержит маршрут, который мы пытаемся сопоставить с фактическим маршрутом, а $callback — это функция, которая будет выполнена, если маршруты действительно совпадают. Обратите внимание, что в начале функции register мы вызываем наш Flow-объект, используя ста...
public static function register($route, $callback, $method) { if (!static::$route_found) { $flow = static::get_instance(); $url_parts = explode('/', trim($route, '/')); $matched = null; if (count($flow->route_segments) == count($url_parts)) { foreach ($url_parts as $key=>$part) { if (strpos($par...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function registerRoute();", "abstract protected function registerSingleRoute();", "abstract protected function registerRoutes();", "private static function addRoute(string $method, string $uri, callable|array $callback) {\n preg_match('/{.+}/', $uri,$matches);\n\n if (count($...
[ "0.70109236", "0.6768215", "0.6321632", "0.62844217", "0.62129056", "0.60827726", "0.60721123", "0.5949575", "0.5949575", "0.5949575", "0.59493035", "0.59493035", "0.59493035", "0.59493035", "0.59493035", "0.59493035", "0.59493035", "0.59493035", "0.59493035", "0.59493035", "...
0.7390968
0
Check to make sure taxonomy is registered to post_type
Проверьте, зарегистрирован ли токсикологический словарь для post_type
function check( $taxonomy, $object_type ) { global $wp_taxonomies; // Taxonomy already registered to post type if ( in_array( $object_type, $wp_taxonomies[ $taxonomy ]->object_type ) ) return true; $post_type_groups = array( 'job' => 'job_listing', 'company' => 'job_listing...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _tax_exists() {\n\t\tif (!is_taxonomy($this->tax_name)) {\n\t\t\tregister_taxonomy($this->tax_name, array('post','page'), array('hierarchical'=>FALSE, 'label'=> $this->tax_name, 'query_var'=>TRUE, 'rewrite'=>TRUE));\n\t\t}\n\t}", "public function is_taxonomy()\n {\n }", "function test_re...
[ "0.76906246", "0.7612587", "0.7402584", "0.7393238", "0.7389893", "0.73878545", "0.73412955", "0.73028755", "0.72454226", "0.71582246", "0.7097363", "0.70598954", "0.69869405", "0.6976341", "0.6966304", "0.6952481", "0.6914096", "0.6912602", "0.6904032", "0.690373", "0.687690...
0.7659322
1
Gets a mock of the session class
Получает мок сессионного класса
public function getMockSession(array $config = []) // @codingStandardsIgnoreEnd { return $this->getMockForAbstractClass('Session', [$config]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getMockOxSession()\n {\n return $this->getMockBuilder(Session::class)\n ->disableOriginalConstructor()\n ->disableOriginalClone()\n ->setMethods(['setVariable'])\n ->getMock();\n }", "public static functio...
[ "0.81998664", "0.6999038", "0.6991043", "0.6876809", "0.6830916", "0.6821631", "0.6779902", "0.6752011", "0.67322755", "0.672525", "0.67148906", "0.67088455", "0.6676716", "0.6659074", "0.665652", "0.6634489", "0.6632177", "0.66157675", "0.6587339", "0.6575649", "0.65720385",...
0.7446033
1
Check that the constructor will load a session if it's provided witha session id
Проверьте, что конструктор загрузит сессию, если ей передан идентификатор сессии
public function test_constructor_loads_session_with_session_id() { $config = []; $session_id = 'lolums'; // Don't auto-call constructor, we need to setup the mock first $session = $this->getMockBuilder('Session') ->disableOriginalConstructor() ->setMethods(['read']) ->getMockForAbstractClass(); $s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function __construct(){\n\t\tif(session_id() == \"\"){\n\t\t\tsession_start();\n\t\t\t$this->session_id = session_id(); \n\t\t\t\n\t\t}\n\t\t\n\t}", "public function __construct()\n {\n if (php_sapi_name() !== 'cli') {\n if (session_id() === '') {\n session_start();\n ...
[ "0.71852666", "0.7084736", "0.7037257", "0.7021882", "0.7021882", "0.6976758", "0.694872", "0.69397557", "0.6890588", "0.68867755", "0.6833163", "0.6829258", "0.6828599", "0.68156964", "0.67944896", "0.6787851", "0.67742646", "0.67540604", "0.67336065", "0.672246", "0.6692308...
0.74398685
0
Calling $session>bind() should allow you to bind a variable to a session variable
Вызов $session>bind() должен позволить вам привязать переменную к переменной сеанса
public function test_bind_actually_binds_variable() { $session = $this->getMockForAbstractClass('Session'); $var = 'asd'; $session->bind('our_var', $var); $var = 'foobar'; $this->assertSame('foobar', $session->get('our_var')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerSessionBindings()\n {\n $this->singleton('session', static function ($app) {\n return $app->loadComponent('session', 'Illuminate\\Session\\SessionServiceProvider');\n });\n\n $this->singleton('session.store', static function ($app) {\n return...
[ "0.642104", "0.6034617", "0.59786093", "0.5851893", "0.5758637", "0.5726098", "0.57032984", "0.57004017", "0.56989294", "0.56781715", "0.5612872", "0.5578546", "0.557693", "0.5575586", "0.5574778", "0.55407655", "0.55328655", "0.5530647", "0.5528476", "0.5493877", "0.54867405...
0.763782
0
Provides test data for test_get_returns_default_if_var_dnx()
Предоставляет тестовые данные для test_get_returns_default_if_var_dnx()
public function provider_get_returns_default_if_var_dnx() { return [ ['something_crazy', FALSE], ['a_true', TRUE], ['an_int', 158163158], ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_get_returns_default_if_var_dnx($var, $default)\n\t{\n\t\t$session = $this->getMockSession();\n\n\t\t$this->assertSame($default, $session->get($var, $default));\n\t}", "function testNoExistingDataDefaultValueExpectsDefaultUsed() {\n\t\t// arrange\n\t\t$field['meta_key'] = 'key';\n\t\t$field['...
[ "0.6729167", "0.6262611", "0.6195866", "0.6090123", "0.6042499", "0.6025758", "0.59348357", "0.5924697", "0.5923822", "0.5855712", "0.5845808", "0.58346206", "0.5814757", "0.5763693", "0.57048655", "0.5693208", "0.5691478", "0.56815016", "0.565559", "0.565332", "0.5646732", ...
0.79734504
0
Assuming the default route and default router, this action is dispatched via the following urls: / /job/ /job/delete
Предполагая маршрут по умолчанию и роутер по умолчанию, это действие отправляется через следующие URL-адреса: / /job/ /job/delete
public function deleteAction() { $objTranslate = Zend_Registry::get(PS_App_Zend_Translate); $objError = new Zend_Session_Namespace(PS_App_Error); $objSess = new Zend_Session_Namespace(PS_App_Auth); $objRequest = $this->getRequest(); $objMo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteJobsAction()\n {\n \t$ids_r = array_filter($this->getRequest()->getParam('ids_r'));\n \t\n \tforeach($ids_r as $job_id)\n \t{\n \t\t\\Extended\\job::deleteJob( $job_id);\n \t}\n \techo Zend_Json::encode(1);\n \tdie;\n }", "public function delete()\n {\n ...
[ "0.6872566", "0.67603415", "0.6751548", "0.6747477", "0.6747477", "0.6687151", "0.66836315", "0.66752374", "0.6643348", "0.6499391", "0.64394057", "0.6430224", "0.6413847", "0.6359706", "0.63487476", "0.6329663", "0.6318217", "0.6312277", "0.6304886", "0.63043576", "0.6300814...
0.7043351
0
Whether this selector would be invisible even if it didn't have bogus combinators.
Будет ли этот селектор невидимым даже в том случае, если он не будет содержать ложных комбинаторов.
public function isInvisibleOtherThanBogusCombinators(): bool { return $this->accept(new IsInvisibleVisitor(false)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasSelector(){\n return $this->_has(1);\n }", "public function isDisplayed(): bool\n {\n return (\n $this->socHelper->getSelectorValue() === SOCHelper::SELECTOR_NOT_SET &&\n $this->apiConfigHelper->getActiveMode() === ApiConfigHelper::LIVE_MODE_KEY\n ...
[ "0.6405563", "0.6190292", "0.61869884", "0.6136529", "0.6134336", "0.5988453", "0.5960903", "0.5952452", "0.5952452", "0.5952452", "0.59471095", "0.59259325", "0.59182686", "0.5849522", "0.5849522", "0.58081335", "0.5802948", "0.5787552", "0.5755604", "0.5755604", "0.5735097"...
0.75384665
0
Whether this selector is bogus other than having a leading combinator.
Насколько этот селектор является неправдоподобным, кроме наличия ведущего комбинатора.
public function isBogusOtherThanLeadingCombinator(): bool { return $this->accept(new IsBogusVisitor(false)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isInvisibleOtherThanBogusCombinators(): bool\n {\n return $this->accept(new IsInvisibleVisitor(false));\n }", "public function isBogus(): bool\n {\n return $this->accept(new IsBogusVisitor(true));\n }", "public function hasSelector(){\n return $this->_has(1);\n ...
[ "0.61471796", "0.59250975", "0.5759002", "0.5674265", "0.5624718", "0.5604156", "0.56005365", "0.5498546", "0.54690975", "0.5453361", "0.5423074", "0.53958666", "0.5394356", "0.53924495", "0.53884745", "0.5336156", "0.532859", "0.5288819", "0.52857643", "0.52745545", "0.52681...
0.71890354
0
crawl a category for its consultations
проскрепать категорию для её консультаций
public static function crawlCategory ($category, $url) { #print "CATEGORY: $category\n"; $html = file_get_contents($url); $html = self::getCityContent($html,''); $xml = simplexml_load_string($html); $div = $xml->xpath('//div[@id="cityott-content"]'); $div = simplexml_load_string($div[0]->asXML()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function crawlConsultations() {\n $html = file_get_contents(\"http://ottawa.ca/en/city-hall/public-consultations\");\n $html = strip_tags($html,\"<a>\");\n $matches = array();\n preg_match_all(\"/<a[^h]+href=\\\"([^\\\"]+)\\\"[^>t]+title=\\\"([^\\\"]+)\\\"[^<]+<\\/a>/\",$html,$matches);\n...
[ "0.73210704", "0.6874999", "0.6785556", "0.6699983", "0.665508", "0.66251737", "0.64947367", "0.6376161", "0.6354352", "0.6110994", "0.6079868", "0.6079178", "0.603258", "0.6010554", "0.5959993", "0.5959993", "0.5907499", "0.5901591", "0.5868839", "0.5861131", "0.58578527", ...
0.70759684
1
Sets the sub api key.
Устанавливает подключенный ключ API.
public function setSubApiKey($subApiKey) { $this->header[] = static::SUB_API_KEY_HEADER . ': ' . $subApiKey; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setAPIKey($key) {\n $this->api_key = $key; \n }", "public function set_api_key($key)\n {\n $this->api_key = $key;\n }", "static function setKey( $api_key ) {\n self::$global_api_key = $api_key;\n }", "public function set_api_key( $api_key ) {\n\t\t$this->api_key = $api_key;\n\t}...
[ "0.7651567", "0.75266147", "0.7434225", "0.73812926", "0.73794353", "0.7280878", "0.72629136", "0.7243061", "0.7201483", "0.7196727", "0.7173339", "0.7121178", "0.7110556", "0.70986176", "0.70291626", "0.7024277", "0.6956605", "0.6956605", "0.6870135", "0.6840109", "0.677117"...
0.7727308
0
User Management FUNC_CU Create users panel
Управление пользователями FUNC_CU Панель создания пользователей
public function create_user(){ //Capture current URL $this->session->set_userdata('last_admin_url',current_url()); //Set page title $this->data['title'] = "Add a New User"; //Set fields $this->data['fields'] = $this->data['user_form']; //Load user management panel $this->load->admin_view('us...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function newUser ( ) {\r\n \r\n /** crida a la preparació la vista de la fitxa del usuari */\r\n $this->viewUser ( );\r\n\r\n }", "public function actionUserManagementCreate(){\n\t\t$model = Yii::app()->user->um->createBlankUser();\n\n\t\tif(isset($_POST[CrugeUtil::config()->postN...
[ "0.734623", "0.7061016", "0.70603585", "0.7037722", "0.7019227", "0.699691", "0.6969056", "0.6967144", "0.694957", "0.690025", "0.6867444", "0.68458074", "0.6817217", "0.68101686", "0.68007344", "0.67979145", "0.6784129", "0.6780713", "0.67765856", "0.67633295", "0.6754103", ...
0.7470717
0
Webcomic Settings FUNC_WS Webcomic settings panel
Webcomic Settings FUNC_WS Панель настроек Webcomic
public function webcomic_settings(){ //Please note that settings are loaded in constructor so no need to specifically load them! //Capture current URL $this->session->set_userdata('last_admin_url',current_url()); //Set page title $this->data['title'] = "Webcomic Settings"; //Set fields $this->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function settings_page() {\n\t\t\t\t\t\n\t\t\tslp_pvw_plugin_framework::pvw_plugin_settings();\n\t\t\n\t\t}", "public function Gawe_Setting ()\n {\n $cal = new Gawe_Setting();\n //send the webclass\n $webClass = __CLASS__;\n\n //run the crud utility\n ...
[ "0.75585026", "0.74439013", "0.7401227", "0.7261749", "0.72325593", "0.70612824", "0.70034033", "0.70025456", "0.7001588", "0.69863385", "0.69568866", "0.69517606", "0.69414866", "0.6938431", "0.6930836", "0.6930083", "0.69229627", "0.69040775", "0.6827036", "0.68235207", "0....
0.8280653
0
FUNC_US Validate settings details and update settings (AJAX)
FUNC_US Проверка деталей настроек и обновление настроек (AJAX)
public function update_settings(){ //Check for AJAX request - kill if false if($this->validation->is_ajax_request() == FALSE){ echo "Error: access forbidden"; return FALSE; } //Load settings model $this->load->model('Settings_model','Settings'); //DEBUG //print_r($this->input->post());die; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function a2020_import_settings(){\n\t\t\n\t\tif (defined('DOING_AJAX') && DOING_AJAX && check_ajax_referer('admin2020-settings-security-nonce', 'security') > 0) {\n\t\t\t\n\t\t\t$new_options = $this->utils->clean_ajax_input($_POST['settings']); \n\t\t\t\n\t\t\tif(is_array($new_options)){\n\t\t\t\tupdate_opt...
[ "0.72634995", "0.72383034", "0.7135271", "0.70609194", "0.70228285", "0.69750667", "0.6973099", "0.6968915", "0.69630796", "0.6949682", "0.69253176", "0.68147206", "0.68092203", "0.6791226", "0.6774815", "0.6760157", "0.674453", "0.6729836", "0.6698076", "0.6692074", "0.66804...
0.7470698
0
FUNC_UP_SIDE Set whether the user's sidebar is opened or closed (AJAX)
FUNC_UP_SIDE Установить, открыта ли панель пользователя или закрыта (AJAX)
public function update_sidebar($direction){ //Check for AJAX request - kill if false if($this->validation->is_ajax_request() == FALSE){ echo "Error: access forbidden"; return FALSE; } //Validate the sidebar if(!$this->validation->in_valid_range($direction,$range = array('OPEN','CLOSED'))){ $dir...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function sidebar()\n\t{\n\t\tif (!$this->ion_auth->logged_in())\n\t\t{\n\t\t\t// redirect them to the login page\n\t\t\tredirect('admin/login', 'refresh');\n\t\t}\n\t\telse if (!$this->ion_auth->is_admin()) \n\t\t{\n\t\t\t// redirect them to the home page because they must be an administrator to view this\...
[ "0.73549986", "0.7046817", "0.70084125", "0.63993436", "0.63962656", "0.63927466", "0.6307866", "0.62795573", "0.6223632", "0.61607844", "0.6085419", "0.6081001", "0.60424036", "0.6033249", "0.6007386", "0.5987864", "0.5966435", "0.59583515", "0.59533244", "0.5948967", "0.594...
0.7061653
1
Webcomic Appearance FUNC_WA Webcomic appearance panel
Webcomic Appearance FUNC_WA Панель появления веб-комикса
public function webcomic_appearance(){ //Load settings and templating model $this->load->model('Settings_model','Settings'); $this->load->model('Template_model','Templates'); //Capture current URL $this->session->set_userdata('last_admin_url',current_url()); //Set page title $this->data['title'] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function appearanceAction()\n {\n $this->page = 'appearance';\n return $this->overviewAction();\n }", "function add_theme_caps(){\n}", "protected static function appearance()\r\n\t{\r\n\t\t// Set default size for Form\r\n\t\tConfig::set('hybrid::form.fieldset', array(\r\n\t\t\t'selec...
[ "0.68474287", "0.68360823", "0.6388505", "0.6337711", "0.63060325", "0.62702155", "0.6132059", "0.6062699", "0.6022586", "0.60199946", "0.5989264", "0.59867096", "0.59867096", "0.59210664", "0.5912689", "0.5910131", "0.5901885", "0.58988667", "0.5895204", "0.58719", "0.586219...
0.7077713
0
Webcomic Banners FUNC_WBANN Webcomic banner management panel
Webcomic Banners FUNC_WBANN Панель управления баннерами вебкомиксов
public function webcomic_banners(){ //Capture current URL $this->session->set_userdata('last_admin_url',current_url()); //Set page title $this->data['title'] = "Webcomic Banners"; //Load settings panel $this->load->admin_view('panels/admin_webcomic_banners',$this->data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Banner (){\r\n\t}", "public function doBannerAction()\n {\n $this->_helper->viewRenderer->setNoRender(true);\n $this->_helper->getHelper('layout')->disableLayout(); \n \n $page = '';\n $chkFilter = '';\n $searchKey = '';\n $urlStr = '';\n \n ...
[ "0.6931597", "0.6898261", "0.6722588", "0.6652148", "0.66423106", "0.66390705", "0.6632228", "0.6607885", "0.6578879", "0.6511619", "0.65089107", "0.64690715", "0.6437635", "0.64071673", "0.6392358", "0.6347407", "0.63040495", "0.62808055", "0.62720096", "0.62404054", "0.6177...
0.80275935
0
FUNC_WBANNTABLE Table view for the banners page
FUNC_WBANNTABLE Просмотр таблицы для страницы баннеров
public function webcomic_banners_table(){ //Load models $this->load->model('Banners_model','Banners'); //Get the banners (if any) $this->data['banners'] = $this->Banners->fetch_banners(); //Load banners table echo $this->load->view('admin/panels/admin_webcomic_banners_table',$this->data,TRUE); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function generateTable($results,$table_title){\n\n //$dir = variable_get('fossee_site_banner_banner_directory', \"not found\");\n //$dir = \"http://localhost/fossee/fossee_drupal/sites/default/files/site_banners/edited\";\n $dir = $this->banner_url;\n //$path = site_banners_path(); // ...
[ "0.6836448", "0.66163194", "0.64979", "0.63868135", "0.637847", "0.6321876", "0.6314392", "0.62804306", "0.62145495", "0.61773676", "0.6170701", "0.6155879", "0.61443007", "0.60687983", "0.6051734", "0.6041908", "0.6001318", "0.60005033", "0.59941745", "0.59896123", "0.597326...
0.7749987
0