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
ManyToOne (inverse side) Get fkFiscalizacaoTipoFiscalizacao
ManyToOne (обратная сторона) Получить fkFiscalizacaoTipoFiscalizacao
public function getFkFiscalizacaoTipoFiscalizacao() { return $this->fkFiscalizacaoTipoFiscalizacao; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFkFiscalizacaoNaturezaFiscalizacao()\n {\n return $this->fkFiscalizacaoNaturezaFiscalizacao;\n }", "public function getFkCalendarioFeriado()\n {\n return $this->fkCalendarioFeriado;\n }", "public function getFkFiscalizacaoPenalidade()\n {\n return $this->f...
[ "0.6946122", "0.6720253", "0.6673659", "0.6637959", "0.658694", "0.6582485", "0.649261", "0.6472541", "0.6390326", "0.6327514", "0.6327514", "0.6327514", "0.6279799", "0.6251425", "0.62126315", "0.6195901", "0.617911", "0.6174377", "0.61237746", "0.61237746", "0.61237746", ...
0.75386626
0
ManyToOne (inverse side) Get fkFiscalizacaoNaturezaFiscalizacao
ManyToOne (обратная сторона) Получить fkFiscalizacaoNaturezaFiscalizacao
public function getFkFiscalizacaoNaturezaFiscalizacao() { return $this->fkFiscalizacaoNaturezaFiscalizacao; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFkFiscalizacaoPenalidade()\n {\n return $this->fkFiscalizacaoPenalidade;\n }", "public function getFkFiscalizacaoNotificacaoFiscalizacao()\n {\n return $this->fkFiscalizacaoNotificacaoFiscalizacao;\n }", "public function getFkCalendarioFeriado()\n {\n retu...
[ "0.68262905", "0.681217", "0.66039515", "0.6572003", "0.6531028", "0.6522555", "0.6497812", "0.64841515", "0.64810026", "0.64045495", "0.6355618", "0.6330082", "0.63197815", "0.6297377", "0.6278264", "0.62761366", "0.627095", "0.62541753", "0.62456065", "0.623892", "0.6200264...
0.7714077
0
OneToOne (inverse side) Get fkFiscalizacaoInicioFiscalizacao
Один к одному (обратная сторона) Получить fkFiscalizacaoInicioFiscalizacao
public function getFkFiscalizacaoInicioFiscalizacao() { return $this->fkFiscalizacaoInicioFiscalizacao; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fiscales(){\n return $this->hasOne(Fiscal::class);\n }", "public function getFkCalendarioFeriado()\n {\n return $this->fkCalendarioFeriado;\n }", "public function getIdFiscalEntity()\n {\n return $this->idFiscalEntity;\n }", "public function getFkFiscalizac...
[ "0.6862922", "0.6670953", "0.6618602", "0.66169924", "0.66148144", "0.6589967", "0.6546044", "0.6525286", "0.6459446", "0.64180076", "0.6404977", "0.6396162", "0.6371172", "0.6332418", "0.628705", "0.628705", "0.628705", "0.628705", "0.62677383", "0.62534595", "0.618023", "...
0.7429134
0
OneToOne (inverse side) Get fkFiscalizacaoProcessoFiscalCancelado
Один к одному (обратная сторона) Получить fkFiscalizacaoProcessoFiscalCancelado
public function getFkFiscalizacaoProcessoFiscalCancelado() { return $this->fkFiscalizacaoProcessoFiscalCancelado; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFkFiscalizacaoProcessoFiscalEmpresa()\n {\n return $this->fkFiscalizacaoProcessoFiscalEmpresa;\n }", "public function getFkFiscalizacaoProcessoFiscalCreditos()\n {\n return $this->fkFiscalizacaoProcessoFiscalCreditos;\n }", "public function getFkFiscalizacaoFiscalPr...
[ "0.7348943", "0.7041774", "0.6999799", "0.6780296", "0.6624147", "0.6573948", "0.64907885", "0.6365317", "0.6342279", "0.62187696", "0.6218626", "0.62018234", "0.6181388", "0.6165895", "0.6164214", "0.61326706", "0.6129989", "0.6095554", "0.6083951", "0.6080658", "0.6069814",...
0.79983926
0
OneToOne (inverse side) Get fkFiscalizacaoProcessoFiscalEmpresa
Один на один (обратная сторона) Получить fkFiscalizacaoProcessoFiscalEmpresa
public function getFkFiscalizacaoProcessoFiscalEmpresa() { return $this->fkFiscalizacaoProcessoFiscalEmpresa; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFkFiscalizacaoProcessoFiscalCancelado()\n {\n return $this->fkFiscalizacaoProcessoFiscalCancelado;\n }", "public function getFkFiscalizacaoPenalidadeBaixaProcesso()\n {\n return $this->fkFiscalizacaoPenalidadeBaixaProcesso;\n }", "public function getFkFiscalizacaoFi...
[ "0.7083592", "0.69392014", "0.6928345", "0.68857205", "0.67919827", "0.6552812", "0.6417878", "0.63724375", "0.6341294", "0.62845856", "0.62722355", "0.6259368", "0.6126978", "0.6100744", "0.60655695", "0.60565007", "0.60456574", "0.6020803", "0.6014568", "0.5993536", "0.5980...
0.78943765
0
OneToOne (inverse side) Get fkFiscalizacaoTerminoFiscalizacao
Один на один (обратная сторона) Получить fkFiscalizacaoTerminoFiscalizacao
public function getFkFiscalizacaoTerminoFiscalizacao() { return $this->fkFiscalizacaoTerminoFiscalizacao; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFkFiscalizacaoProcessoFiscalCancelado()\n {\n return $this->fkFiscalizacaoProcessoFiscalCancelado;\n }", "public function fiscales(){\n return $this->hasOne(Fiscal::class);\n }", "public function getFkFiscalizacaoProcessoFiscalEmpresa()\n {\n return $this->fk...
[ "0.6503369", "0.6461105", "0.6383931", "0.6311459", "0.6137813", "0.6122363", "0.61033535", "0.609519", "0.60948676", "0.60050666", "0.60031855", "0.59945697", "0.5984768", "0.59565914", "0.5926578", "0.5924197", "0.59180135", "0.59075934", "0.58966446", "0.5867084", "0.58670...
0.77930856
0
OneToOne (inverse side) Get fkFiscalizacaoNotificacaoFiscalizacao
Один к одному (обратная сторона) Получить fkFiscalizacaoNotificacaoFiscalizacao
public function getFkFiscalizacaoNotificacaoFiscalizacao() { return $this->fkFiscalizacaoNotificacaoFiscalizacao; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fiscales(){\n return $this->hasOne(Fiscal::class);\n }", "public function getFkFiscalizacaoNaturezaFiscalizacao()\n {\n return $this->fkFiscalizacaoNaturezaFiscalizacao;\n }", "public function getFkFiscalizacaoInicioFiscalizacao()\n {\n return $this->fkFiscaliza...
[ "0.67549884", "0.6749527", "0.65810275", "0.6566777", "0.6554285", "0.64905345", "0.6431443", "0.6416501", "0.640848", "0.63936615", "0.6341818", "0.6325712", "0.6319368", "0.630982", "0.6309084", "0.6164362", "0.61191726", "0.6115765", "0.61070836", "0.6102071", "0.6102071",...
0.73825294
0
Get indices from ElasticSearch
Получить индексы из ElasticSearch
public function getIndices() { $indices = Elastic::getIndices(); return \Response::json($indices); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function esIndex()\n {\n if ($this->isEmpty()) {\n return null;\n }\n\n $all = $this->all();\n $params = [];\n\n foreach ($all as $item) {\n $params['body'][] = [\n 'index' => [\n '_id' => $item->getEsId(),\n ...
[ "0.73687375", "0.71380484", "0.68392193", "0.68229264", "0.6807259", "0.6742971", "0.66381246", "0.6607734", "0.6518083", "0.6487899", "0.64688593", "0.640168", "0.6365053", "0.63289595", "0.6328462", "0.6328462", "0.6328462", "0.63282645", "0.63282645", "0.6327435", "0.63274...
0.7977085
0
Gets a single segment by ID.
Получает один сегмент по ID.
public function getSegment($id, array $options = []) { return $this->client->get('segments/' . $id, $options); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function get_segment($id){\n\t\t$start_marker = \"#zazzle_acc_start \".$id;\n\t\t$end_marker = \"#zazzle_acc_end \".$id.\"\\n\";\n\t\t\n\t\t$start = strpos(self::$FDATA, $start_marker);\n\t\t$end = strpos(self::$FDATA, $end_marker);\n\t\t\n\t\t//echo \"--Start: \".$start.\"<br>\";\n\t\t//echo \"--End: \".$e...
[ "0.65454346", "0.65086186", "0.64319074", "0.6429404", "0.6427187", "0.62273604", "0.6208759", "0.620787", "0.61927205", "0.61927205", "0.61927205", "0.61927205", "0.61927205", "0.61927205", "0.61927205", "0.61927205", "0.61927205", "0.61927205", "0.61927205", "0.61927205", "...
0.7472249
0
Filter the query on the key_bonus column Example usage: $query>filterByKeyBonus(1234); // WHERE key_bonus = 1234 $query>filterByKeyBonus(array(12, 34)); // WHERE key_bonus IN (12, 34) $query>filterByKeyBonus(array('min' => 12)); // WHERE key_bonus > 12
Фильтрация запроса по столбцу key_bonus Пример использования: $query>filterByKeyBonus(1234); // WHERE key_bonus = 1234 $query>filterByKeyBonus(array(12, 34)); // WHERE key_bonus IN (12, 34) $query>filterByKeyBonus(array('min' => 12)); // WHERE key_bonus > 12
public function filterByKeyBonus($keyBonus = null, $comparison = null) { if (is_array($keyBonus)) { $useMinMax = false; if (isset($keyBonus['min'])) { $this->addUsingAlias(AliGmbonusTableMap::COL_KEY_BONUS, $keyBonus['min'], Criteria::GREATER_EQUAL); $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(AliGmbonusTableMap::COL_ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(AliSmbonusTableMap::COL_AID, $key, Criteria::EQUAL);\n }", "public funct...
[ "0.58423", "0.5618401", "0.5616004", "0.5599372", "0.5581797", "0.5301333", "0.5269595", "0.513702", "0.5109328", "0.5099398", "0.5091015", "0.5083532", "0.50645524", "0.5014312", "0.50100684", "0.49926403", "0.49906403", "0.4979194", "0.49436235", "0.4943292", "0.49149826", ...
0.7293868
0
Filter the query on the autoship column Example usage: $query>filterByAutoship(1234); // WHERE autoship = 1234 $query>filterByAutoship(array(12, 34)); // WHERE autoship IN (12, 34) $query>filterByAutoship(array('min' => 12)); // WHERE autoship > 12
Фильтрация запроса по столбцу autoship Пример использования: $query>filterByAutoship(1234); // WHERE autoship = 1234 $query>filterByAutoship(array(12, 34)); // WHERE autoship IN (12, 34) $query>filterByAutoship(array('min' => 12)); // WHERE autoship > 12
public function filterByAutoship($autoship = null, $comparison = null) { if (is_array($autoship)) { $useMinMax = false; if (isset($autoship['min'])) { $this->addUsingAlias(AliGmbonusTableMap::COL_AUTOSHIP, $autoship['min'], Criteria::GREATER_EQUAL); $u...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByBeatoship($beatoship = null, $comparison = null)\n {\n if (is_array($beatoship)) {\n $useMinMax = false;\n if (isset($beatoship['min'])) {\n $this->addUsingAlias(AliGmbonusTableMap::COL_BEATOSHIP, $beatoship['min'], Criteria::GREATER_EQUAL);\n ...
[ "0.59794873", "0.5173655", "0.46903974", "0.46039635", "0.45500582", "0.44836888", "0.4479456", "0.4450386", "0.44359377", "0.43967956", "0.43717122", "0.43510863", "0.43196332", "0.43061578", "0.4295178", "0.4292698", "0.428759", "0.42824113", "0.4278451", "0.42680398", "0.4...
0.7151171
0
Push element x onto stack.
Поместить элемент x в стек.
function push($x) { $this->items[] = $x; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function push($element)\n {\n array_unshift($this->stack,$element);\n }", "function push($x) {\n return array_push($this->queue,$x);\n }", "function push($val) \n {\n $this->stack[$this->count] = $val;\n $this->count++;\n }", "public function push($item) {\n ...
[ "0.7220746", "0.7155216", "0.69401896", "0.6771847", "0.65854746", "0.65132225", "0.64284843", "0.63736635", "0.6312975", "0.6196068", "0.61597115", "0.61597115", "0.6141566", "0.5979958", "0.5935869", "0.5835014", "0.58091635", "0.58091635", "0.5797292", "0.57322687", "0.573...
0.7599604
0
Recursively search the given archive to find the .mmdb file.
Рекурсивно ищите заданный архив, чтобы найти файл .mmdb.
protected function findDatabaseFile($archive) { foreach ($archive as $file) { if ($file->isDir()) { return $this->findDatabaseFile(new PharData($file->getPathName())); } if (pathinfo($file, PATHINFO_EXTENSION) === 'mmdb') { return $file; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getArchiveMetaData()\n {\n $dbDir = 'blog'; // we have all blog-related flat-file-db's in 'flatdb' sub-dir 'blog'\n $dbConnection = $this->dbConnect('_blogmaster', $dbDir); // connect to _blogmaster.yel database - it holds META data for all available blog databases\n $blogAr...
[ "0.5209966", "0.502728", "0.49967703", "0.49908155", "0.49504867", "0.48820868", "0.48631316", "0.48303396", "0.48286328", "0.48142353", "0.47970632", "0.47170419", "0.4652031", "0.46454892", "0.46343103", "0.45626473", "0.45474932", "0.45419484", "0.45370874", "0.45178303", ...
0.71824145
0
Return a unique list of all classes used in this bean's interfaces
Вернуть уникальный список всех классов, используемых в интерфейсах этого бина
public function classSet() { $set= new HashSet(); for ($i= 0; $i < $this->interfaces->length; $i++) { $set->addAll($this->interfaces[$i]->classSet()); } return $set->toArray(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUsedClasses(): array\n {\n return [$this->getBeanClassName()];\n }", "public function getInterfaces() {}", "public function getInterfaceList()\n {\n $this->getData();\n return array_keys($this->interfaces);\n }", "public function getInterfaces() {\n ...
[ "0.73465145", "0.71177924", "0.69723195", "0.6887683", "0.6881319", "0.68810606", "0.68674004", "0.68674004", "0.68674004", "0.6770247", "0.6764475", "0.67390233", "0.6703653", "0.666299", "0.6629903", "0.6567629", "0.656708", "0.65540856", "0.6525363", "0.6502236", "0.649671...
0.74805033
0
Get a list of all the matches in the DB. Maybe later filter them by "active" or whatever. return array array(array(match_id, match_name, created, last_updated, game_id))
Получите список всех матчей в БД. Возможно, позже отфильтруйте их по "активным" или чему-то еще. вернуть массив массив(array(match_id, match_name, created, last_updated, game_id))
public function doGetMatches() { $this->mlog->debug('['. __METHOD__ .']'); $resp = new Response(); $matches = MatchQuery::create()->find(); $resp->data = array(); foreach ($matches as $match) { $resp->data[] = $match->__toArray(); } return $resp->__toArray(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function played_matches() \n\t{\n\t\t$fecha=$this->weekStartEnd(mdate(\"%Y-%m-%d\",time()));\n\t\t$query=$this->db->query('SELECT mh . * , ma.aid, ma.aname, c.id, c.name\n\t\t\t\t\t\t FROM (SELECT m . * , t.id hid, t.name AS hname\n\t\t\t\t\t\t FROM matches AS m, matches_teams AS mt, te...
[ "0.73585546", "0.7353363", "0.7334249", "0.7317648", "0.72116184", "0.717402", "0.71106493", "0.7109912", "0.70956427", "0.6995956", "0.6855059", "0.68084806", "0.6754103", "0.6716456", "0.6713741", "0.6690113", "0.6674598", "0.65986866", "0.65703124", "0.65155137", "0.648410...
0.7481427
0
Generates the display label for this class, showing its full place on the tree.
Генерирует метку отображения для этого класса, показывающую его полное положение в дереве.
public function getDisplayLabel() { $build = []; foreach ($this->parentWalker() as $location) { $build[] = $location->getLabel(); } return implode(' - ', array_reverse($build)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDisplayLabel();", "function label() {\n return \"<label>\".$this->label.\": </label>\";\n }", "private function renderLabel(): string\n {\n $str = '';\n if ($this->label) {\n $str .= '<label for=\"'.$this->getId().'\" '.$this->renderCssClass().'>'.$this-...
[ "0.7394724", "0.7217345", "0.69826436", "0.6960303", "0.6931137", "0.6926013", "0.69191366", "0.68674994", "0.6779823", "0.6779823", "0.67764217", "0.67764217", "0.6758585", "0.6736942", "0.6736942", "0.6735844", "0.67320865", "0.67303425", "0.6726637", "0.6695124", "0.669364...
0.72186255
1
Should return parsed input based on given input
Должен возвращать разобранный ввод на основе заданного ввода
public function parse(string $input);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getParsedInput();", "abstract public function parseInput(array $input): array;", "public function parse($input) {\n\t//--\n\treturn (array) $this->loadWithSource((array)$this->loadFromString((string)$input));\n\t//--\n}", "abstract public function parse();", "abstract public function parse(...
[ "0.76594555", "0.67867756", "0.6675209", "0.66197354", "0.66197354", "0.66197354", "0.66197354", "0.6365496", "0.6254894", "0.6092403", "0.6092403", "0.6092403", "0.60775876", "0.60435367", "0.6035745", "0.60121036", "0.60039276", "0.58700514", "0.5816138", "0.5811136", "0.57...
0.7176959
1
Function to load Domain from client.
Функция для загрузки домена из клиента.
public function loadDomainFromClient($clientObject) { try { $request = PdoFactory::$pdo->prepare("SELECT id, name, server_dns, manage_dns, created_on, modified_on, deleted_on FROM llx_domaines WHERE client_id = :client_id"); if ($request->execute(array(':client_id' => $clientObject->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function loadDomainFromDomainId($domainId, $clientObject)\n {\n try {\n $request = PdoFactory::$pdo->prepare(\"SELECT name, server_dns, manage_dns, created_on, modified_on, deleted_on FROM llx_domaines WHERE id = :id\");\n if ($request->execute(array(':id' => $domainId))) {\n...
[ "0.6281116", "0.62738895", "0.6216936", "0.6181199", "0.61632234", "0.6096414", "0.60638577", "0.6053436", "0.6019421", "0.59454066", "0.5904346", "0.5871791", "0.58683103", "0.5824735", "0.5726069", "0.56835407", "0.5593987", "0.5534302", "0.5508392", "0.54972035", "0.549129...
0.70011765
0
Shows an error message and outputs the SOAP result if passed
Показывает сообщение об ошибке и выводит результат SOAP, если передан
public function showError($result = null) { if (Configure::read() > 0) { if ($this->error) { trigger_error('<span style = "color:Red;text-align:left"><b>SOAP Error:</b> <pre>' . print_r($this->error) . '</pre></span>', E_USER_WARNING); } if ($result) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function throwXmlError($message){\r\n\tXmlFlow::__print_xml_header();\r\n\techo XmlFlow::xml_encode(array('status' => XmlFlow::$STATUS_NOK, 'response' => \"\", 'msg' => $message));\r\n\texit;\r\n }", "public function showError();", "function Error($error)\n {\n \t$override = 0;\n \t\n \t//------...
[ "0.6430678", "0.620294", "0.6080042", "0.6050997", "0.5945203", "0.59281665", "0.5921008", "0.59122914", "0.5907308", "0.58937216", "0.588363", "0.5870673", "0.5868759", "0.5866665", "0.58220947", "0.58189964", "0.580923", "0.5798409", "0.57956105", "0.57939726", "0.5788367",...
0.7006986
0
Utility function for exposing SOQL configured in the database config file
Полезная функция для отображения SOQL, настроенной в файле конфигурации базы данных
public function getConfigSOQL() { return $this->config['SOQL']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract function getSQL();", "function getQuerySettings() ;", "public function sql(): string;", "public function getSQL();", "function createQuery() ;", "public function getQuerySettings() {}", "public static function query();", "public function getQueryBuilder(): SQLQueryBuilder;", "public functi...
[ "0.5937102", "0.5791959", "0.56639606", "0.56571233", "0.56322455", "0.5632086", "0.5602776", "0.5557846", "0.5548455", "0.5548455", "0.5548077", "0.5540504", "0.55323267", "0.5501067", "0.5482015", "0.5460659", "0.54285103", "0.54272616", "0.5419592", "0.54025203", "0.539221...
0.7218845
0
Some helper functions to fetch "Closed Captions" for a YouTube video Normally these are only available to the video creator... But there's always a way!
Некоторые вспомогательные функции для получения "закрытых субтитров" для видео YouTube Обычно эти субтитры доступны только создателю видео... Но всегда есть способ!
function getClosedCaptionsForVideo($videoId) { $baseUrl = getBaseClosedCaptionsUrl($videoId); // find available languages. options vary widely from // video to video, and sometimes garbage is returned. // tracks are returned in order we think is best - // try first, if its garbage, try 2nd, etc. $availableTrac...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getClosedCaptionText($baseUrl, array $track) {\n\t$captionsUrl = $baseUrl.\"&type=track&lang={$track['lang']}&name=\".urlencode($track['name']).\"&kind={$track['kind']}&fmt=1\";\n\n\tif (!$responseText = file_get_contents($captionsUrl)) {\n\t\tdie('Failed to load youtube TTS captions track url '.$captions...
[ "0.72078526", "0.6999792", "0.6263095", "0.6022112", "0.602156", "0.6020421", "0.5926266", "0.5873581", "0.57853353", "0.5783772", "0.57767147", "0.572616", "0.5709265", "0.56902194", "0.5680378", "0.5674156", "0.5632718", "0.56099594", "0.5581493", "0.5566849", "0.55493814",...
0.77949035
0
Given a base URL, queries for available tracks and returns them in a sorted array ("scored" from highest to lowest based on things like `default_language` etc)
Данному базовому URL выполняется запрос доступных треков и возвращаются они в отсортированном массиве ("оцененные" от наибольшего к наименьшему в зависимости от параметров, таких как `default_language` и т.д.)
function getAvailableTracks($baseUrl) { $tracks = []; // "request list" command $listUrl = $baseUrl.'&type=list&tlangs=1&fmts=1&vssids=1&asrs=1'; if (!$responseText = file_get_contents($listUrl)) { die('Failed to load youtube TTS list url '.$listUrl); } if (!$responseXml = simplexml_load_string($responseText)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getTopTracks()\r\n {\r\n Application::$app->checkSpotifyToken();\r\n $curl = curl_init();\r\n\r\n curl_setopt_array($curl, array(\r\n CURLOPT_URL => 'https://api.spotify.com/v1/me/top/tracks',\r\n CURLOPT_RETURNTRANSFER => true,\r\n CURLOP...
[ "0.6277673", "0.62769395", "0.59940493", "0.59292847", "0.5920183", "0.5751342", "0.571736", "0.5688462", "0.56221455", "0.5580634", "0.5547009", "0.55049276", "0.55049276", "0.5478429", "0.5444006", "0.54052144", "0.5387861", "0.5387861", "0.5368396", "0.5363987", "0.5337773...
0.7541087
0
Determine the required process type based on given message and the message handler which will receive the message.
Определите требуемый тип процесса на основе заданного сообщения и обработчика сообщений, который будет получать сообщение.
private function determineProcessType(Message $message, MessageHandler $messageHandler) { if ($messageHandler->canHandleMessage($message)) { if ($message->processingMetadata()->shouldCollectionBeSplitIntoChunks()) { $processType = ProcessType::parallelChunk(); } else ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function process(Message $message);", "function getType(){\n\t\t\treturn $this->message_type;\n\t\t}", "public function getProcessType(): ?string;", "abstract protected function process($user, $message);", "public function getProcessTypes() {\n return array(\n 'media_seller',\n 'ad_netw...
[ "0.61089313", "0.5480287", "0.54243207", "0.5404978", "0.54045504", "0.5383813", "0.5381393", "0.5277895", "0.52654153", "0.52494854", "0.50721514", "0.5068563", "0.50202066", "0.49960256", "0.49773896", "0.48988003", "0.48891455", "0.47722355", "0.47436607", "0.47314364", "0...
0.8090273
0
Display All Featured Products
Показать все выделенные товары
public function getAllFeaturedProducts() { $products = Product::/* where('category_id', $id)-> */where('is_featured', 1)->get(); return view('frontend.pages.featuredproduct', compact('products')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function displayAllProducts()\n {\n return $this->paginate(['category', 'subcategory', 'brand', 'reviews'], false, 12);\n }", "public function all_products()\n\t{\n\t\t$data['product_list']=$this->tbl_product->get_all_product();\n\t\t$data['page']='All Products';\n\t\t$view = 'Admin/collectio...
[ "0.7664722", "0.75141066", "0.73253775", "0.7284367", "0.7264954", "0.72261405", "0.71481156", "0.714003", "0.71374005", "0.71008086", "0.71003526", "0.70721865", "0.6986292", "0.69706595", "0.69684905", "0.69618416", "0.6954479", "0.69150144", "0.6913047", "0.6904949", "0.68...
0.8020677
0
Get token lifetime from social config.
Получить срок жизни токена из социальной конфигурации.
protected function getTokenLifetime() { $socialConfig = $this->app['config']->get('social'); if ($socialConfig === null) { return 20; } return $socialConfig['token_lifetime']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function tokenExpiresIn()\n {\n return $this->token['expires_in'] ?? null;\n }", "public function token_expires()\n {\n return $this->token_expires;\n }", "public function getTokenExpiry()\n {\n return $this->tokenExpiry;\n }", "public function getTokenExpiry()\n...
[ "0.66691834", "0.64969194", "0.64665", "0.64665", "0.6374012", "0.63566214", "0.6338444", "0.6271266", "0.6228239", "0.62166584", "0.6053828", "0.6040686", "0.6001128", "0.5999238", "0.597271", "0.58888435", "0.58633196", "0.5801932", "0.5794411", "0.5762931", "0.5736861", ...
0.87953055
0
Create the batch table. This is part of the Drupal 5.x to 6.x migration.
Создайте таблицу батча. Это часть миграции из Drupal 5.x в 6.x.
function update_create_batch_table() { // If batch table exists, update is not necessary if (db_table_exists('batch')) { return; } $schema['batch'] = array( 'fields' => array( 'bid' => array('type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE), 'token' => array('type' => '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n Sp_batch::insert([\n \t\t'batch'=>'1',\n ]);\n\n Sp_batch::insert([\n \t\t'batch'=>'2',\n ]);\n\n Sp_batch::insert([\n \t\t'batch'=>'3',\n ]);\n\n Sp_batch::insert([\n \t\t'batch'=>'4',\n ]);\n\n Sp_batch::ins...
[ "0.65557045", "0.6434309", "0.63851297", "0.6323112", "0.6315453", "0.6314803", "0.61227", "0.60725987", "0.6066455", "0.60398316", "0.6012954", "0.60081315", "0.5983651", "0.59804875", "0.59781015", "0.5969523", "0.59506816", "0.59261453", "0.59142613", "0.5909932", "0.59041...
0.79295397
1
Check update requirements and report any errors.
Проверьте требования к обновлению и сообщите об любых ошибках.
function update_check_requirements() { // Check the system module requirements only. $requirements = module_invoke('system', 'requirements', 'update'); $severity = drupal_requirements_severity($requirements); // If there are issues, report them. if ($severity != REQUIREMENT_OK) { foreach ($requirements a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function update_check_requirements() {\n // Check the system module requirements only.\n $requirements = module_invoke('system', 'requirements', 'update');\n $severity = drupal_requirements_severity($requirements);\n\n // If there are issues, report them.\n if ($severity != REQUIREMENT_OK) {\n foreach ($re...
[ "0.7716457", "0.74524647", "0.7224032", "0.7141018", "0.71254724", "0.70835876", "0.698", "0.6899483", "0.6890733", "0.6872375", "0.6828613", "0.68030185", "0.6752192", "0.6711693", "0.6690469", "0.6615432", "0.6594755", "0.65864134", "0.6513106", "0.64997745", "0.6478054", ...
0.7485894
1
Completely delete the attempt corresponding to this usage. This includes deleting the usage.
Полностью удалите попытку, соответствующую этому использованию. Это включает в себя удаление самого использования.
public function delete_attempt(\question_usage_by_activity $quba) { // Do nothing here. Use by subclasses. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function deleteAttempt()\n {\n Attempt::where('ip', $this->ip)\n ->whereDate('created_at', date('Y-m-d'))\n ->delete();\n }", "public function delete()\n {\n $sql = \"DELETE FROM \" . TB_USAGE . \" WHERE mix_id = {$this->db->sqltext($this->mix_id)}\";\n $this->db->exec($sq...
[ "0.73444915", "0.6792067", "0.6602304", "0.6558064", "0.64302206", "0.6327403", "0.6219992", "0.61800194", "0.6160723", "0.615219", "0.615219", "0.61520463", "0.61494815", "0.6081792", "0.6065744", "0.6035222", "0.6024655", "0.60172284", "0.6006406", "0.6005466", "0.6003591",...
0.73603934
0
Valida que si existe un valor bajo la clave $name en $parameters sea de tipo numerico. En caso de no existir retorna false, si existe y no es numerico levante una exception, retorna true en otro caso
Проверяет, существует ли значение под ключом $name в $parameters и является ли оно числовым. В случае отсутствия значения возвращает false, если значение существует, но не является числовым, выбрасывает исключение, возвращает true в противном случае.
public static function integer($name, $parameters) { if (array_key_exists($name, $parameters) && strlen($parameters[$name]) > 0){ if (is_numeric($parameters[$name])){ return true; }else{ throw new IllegalArgumentException("The parameter '".$name."' must be of type integer", 1); } }else{ return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function _list($name, $parameters)\n\t{\n\t\tif (array_key_exists($name, $parameters) && !empty($parameters[$name])){\n\t\t\tif (preg_match('/[0-9\\,]+/si', $parameters[$name])){\n\t\t\t\treturn true;\n\t\t\t}else{\n\t\t\t\tthrow new IllegalArgumentException(\"The parameter '\".$name.\"' must be of t...
[ "0.6552692", "0.62966126", "0.62945485", "0.6107445", "0.58964616", "0.5880316", "0.5818672", "0.571594", "0.56661105", "0.5656383", "0.5656383", "0.56479156", "0.5647696", "0.5565897", "0.554993", "0.5539782", "0.550739", "0.54941213", "0.5478289", "0.5474833", "0.54665333",...
0.7961316
0
Valida que si existe un valor bajo la clave $name en $parameters sea de tipo fecha. En caso de no existir retorna false, si existe y no es fecha levante una exception, retorna true en otro caso
Проверяет, существует ли значение под ключом $name в $parameters и является ли оно датой. В случае отсутствия значения возвращает false, если значение существует, но не является датой, выбрасывает исключение, возвращает true в противном случае.
public static function date($name, $parameters) { if (array_key_exists($name, $parameters) && !empty($parameters[$name])){ if (preg_match('/[0-9]{4}-[0-9]{2}-[0-9]{2}/si', $parameters[$name])){ return true; }else{ throw new IllegalArgumentException("The parameter '".$name."' must be of type date: YYYY-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function check(string $key, array $data = [], array $parameters = []): bool\n {\n if (!array_key_exists($key, $data) || $data[$key] instanceof DateTimeInterface) {\n return true;\n }\n\n if ((!is_string($data[$key]) && !is_numeric($data[$key])) || strtotime($data[$key]) ==...
[ "0.6660233", "0.6031918", "0.5881677", "0.58806133", "0.58126134", "0.5728599", "0.56950355", "0.5679025", "0.56186455", "0.55869305", "0.5537514", "0.55127937", "0.54711294", "0.54648095", "0.5433393", "0.5433393", "0.5422718", "0.54098225", "0.5401383", "0.5398362", "0.5364...
0.81550395
0
noop the mars_video_meta action hook
noop the mars_video_meta action hook
function mars_video_meta() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ssep_force_hide_meta() {\n\tglobal $post, $ss_blog;\n\n\t$hide_meta = ssep_hide_meta( $post->ID );\n\n\tif ( $hide_meta ) {\n\t\tremove_action( 'shoestrap_entry_meta', array( $ss_blog, 'meta_custom_render' ) );\n\t\tadd_filter( 'shoestrap_the_tags', '__return_null' );\n\t\tadd_filter( 'shoestrap_the_cats'...
[ "0.5866897", "0.5685471", "0.56163067", "0.55174536", "0.54233617", "0.5391866", "0.5321356", "0.5312081", "0.52936906", "0.5289662", "0.52594227", "0.52549475", "0.52428055", "0.5233055", "0.5200672", "0.5175589", "0.5170557", "0.5168839", "0.51635873", "0.5156714", "0.51437...
0.7233702
0
turn off features in video post editor
отключить функции в редакторе видеопоста
function disable_video_post_editor() { remove_post_type_support( 'video', 'comments' ); remove_post_type_support( 'video', 'editor' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fuxt_disable_editor_fullscreen_default() {\n\t$script = \"window.onload = function() { const isFullscreenMode = wp.data.select( 'core/edit-post' ).isFeatureActive( 'fullscreenMode' ); if ( isFullscreenMode ) { wp.data.dispatch( 'core/edit-post' ).toggleFeature( 'fullscreenMode' ); } }\";\n\twp_add_inline_...
[ "0.67045474", "0.64904773", "0.63791853", "0.6370379", "0.6363033", "0.6341983", "0.6320161", "0.6307895", "0.6295546", "0.62582946", "0.6230516", "0.6228814", "0.6186844", "0.61686283", "0.6131018", "0.6008964", "0.5916306", "0.590506", "0.58929807", "0.58898365", "0.5888709...
0.7474578
0
Builds the MindTouch page ID string from the page's full path.
Создает строку идентификатора страницы MindTouch на основе полного пути страницы.
public function buildPageIdFromPathAndTitle($path) { // MiondTouch uses double slashes to escape slashes in page titles. $double_slash_pos = strrpos($path, '//'); if ($double_slash_pos !== false) { // A double-slash was found. Find the slash before it. $path_title_start = substr($path, 0, $double_slash_pos)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function buildPageId($title, $path = '') {\n\t\t// The MindTouch API requires page IDs to be URL encoded twice.\n\t\t// Replace any slashes in the title first.\n\t\t$title = $this->escapeSlashesPageId($title);\n\n\t\tif (!empty($path)) {\n\t\t\t$path = rtrim($path, '/');\n\t\t\t$title = $path . '/' . $title...
[ "0.6929938", "0.66589284", "0.66589284", "0.6387146", "0.6053982", "0.6030415", "0.5979035", "0.5935771", "0.5905157", "0.5905157", "0.5905157", "0.5904666", "0.582846", "0.5811408", "0.58044213", "0.5803642", "0.57420886", "0.57420886", "0.5629684", "0.5627382", "0.5511036",...
0.70378196
0
Deletes the given context ID.
Удаляет указанный идентификатор контекста.
public function contextsDelete($context_id) { // Build the MindTouch API URL to get the contexts. $url = "contexts"; if (!empty($context_id)) { $url .= '/' . $context_id; } // Get output from API. $output = $this->delete($url); return $output; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function destroy($id)\n\t{\n\t\t$this->context->find($id)->delete();\n\n\t\treturn Redirect::route('contexts.index');\n\t}", "function deleteContext($id)\n {\n \n $this->db->where('Id', $id);\n $this->db->delete('contextdetails');\n\n \n return $this->db->affected_row...
[ "0.73220307", "0.7155656", "0.656913", "0.64127964", "0.6399414", "0.6368315", "0.6355425", "0.63148075", "0.6292391", "0.6290878", "0.6270224", "0.6270224", "0.62154293", "0.62101996", "0.61954516", "0.61954516", "0.61954516", "0.61954516", "0.61954516", "0.61954516", "0.619...
0.72363234
1
Builds the drafts API URL. Supports both string and integer page IDs.
Строит URL API черновиков. Поддерживает как строковые, так и целочисленные идентификаторы страниц.
private function draftsUrl($page_id = '') { $url = "drafts"; if (!empty($page_id)) { $url .= '/'; if (is_string($page_id)) { $url .= '='; } $url .= $page_id; } return $url; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _build_url() {\n\n $params = array_filter([\n 'name' => $this->_names,\n 'country_id' => $this->_country_id,\n 'language_id' => $this->_language_id,\n ], function($v) {\n if (!is_array($v)) {\n return strlen(trim($v)) > 0;\...
[ "0.5876645", "0.5485763", "0.5427736", "0.54196566", "0.5413107", "0.5365293", "0.5341986", "0.529497", "0.525903", "0.5256685", "0.5170748", "0.5151478", "0.51331097", "0.51284343", "0.51040983", "0.51035285", "0.50962234", "0.5068652", "0.50615007", "0.50141186", "0.4992679...
0.73015016
0
Retrieves a draft page's contents.
Получает содержимое черновика страницы.
public function draftsContentsGet($page_id, $options = array()) { // Build the MindTouch API URL to get a page's contents. $url = $this->draftsUrl($page_id) . "/contents?" . http_build_query($options); // Get output from API. $output = $this->get($url); // Parse the output. $output = $this->parseOutput($o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function draftsGet($page_id = '') {\n\t\t$url = $this->draftsUrl($page_id);\n\n\t\t$output = $this->get($url);\n\t\treturn $this->parseOutput($output);\n\t}", "public function draftPage()\n\t{\n\t\treturn $this->hasOne(Page::class, 'revision_id')->where('version', Page::STATE_DRAFT);\n\t}", "public func...
[ "0.7481382", "0.67791927", "0.67604244", "0.6450128", "0.6343174", "0.6316899", "0.62413836", "0.6239832", "0.6239832", "0.62157875", "0.6208232", "0.62026256", "0.6201667", "0.6196239", "0.6195341", "0.6191568", "0.6182", "0.6162057", "0.6161684", "0.6161684", "0.6161684", ...
0.7635914
0
Returns information on the draft. When $page_id is empty, returns a list of all pages with drafts.
Возвращает информацию о черновике. При пустом $page_id возвращает список всех страниц с черновиками.
public function draftsGet($page_id = '') { $url = $this->draftsUrl($page_id); $output = $this->get($url); return $this->parseOutput($output); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function draftPage()\n\t{\n\t\treturn $this->hasOne(Page::class, 'revision_id')->where('version', Page::STATE_DRAFT);\n\t}", "public function draftsPublish($page_id) {\n\t\t// Build the MindTouch API URL to publish a draft.\n\t\t$url = $this->draftsUrl($page_id) . \"/publish\";\n\n\t\t// Get output from A...
[ "0.69765997", "0.6876132", "0.68541104", "0.66598094", "0.6499302", "0.64816433", "0.6303415", "0.61833984", "0.61160976", "0.6085461", "0.6068688", "0.6020471", "0.59946746", "0.59646016", "0.5958372", "0.5862745", "0.5759313", "0.56534255", "0.5631635", "0.5623356", "0.5618...
0.83046836
0
Checks to see if the page has a draft exist.
Проверяет, существует ли черновик страницы.
public function draftsExists($page_id) { // Build the MindTouch API URL to check a draft's existence. $url = $this->draftsUrl($page_id); // Get output from API. $output = $this->get($url); // Parse the output. $output = $this->parseOutput($output); if ((string) $output['state'] === 'active' || (str...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function isDrafted()\n\t{\n\t\t$app = Factory::getApplication();\n\t\t$template = $app->getTemplate(true);\n\t\t$templateId = 0;\n\n\t\tif ($app->isClient('site'))\n\t\t{\n\t\t\t$templateId = $template->id;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif ($app->input->get('option') === 'com_ajax' && $app->input->g...
[ "0.74948496", "0.732192", "0.7281486", "0.7227755", "0.7217296", "0.7217296", "0.7217296", "0.7059534", "0.69549966", "0.68249035", "0.68048537", "0.6729085", "0.6718008", "0.6694933", "0.6691534", "0.6557941", "0.6499904", "0.6364258", "0.6242234", "0.62272966", "0.6186869",...
0.814345
0
Publish a draft to the live page.
Опубликовать черновик на странице в режиме работы.
public function draftsPublish($page_id) { // Build the MindTouch API URL to publish a draft. $url = $this->draftsUrl($page_id) . "/publish"; // Get output from API. $output = $this->post($url, ''); // Parse the output. $output = $this->parseOutput($output); return $output; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function doPublish() {\n\t\t// remove fields on the live table which could have been orphaned.\n\t\t$live = Versioned::get_by_stage(\"EditableFormField\", \"Live\", \"\\\"EditableFormField\\\".\\\"ParentID\\\" = $this->ID\");\n\n\t\tif($live) {\n\t\t\tforeach($live as $field) {\n\t\t\t\t$field->doDeleteFrom...
[ "0.7070119", "0.7039848", "0.7023417", "0.69253874", "0.64529246", "0.6314332", "0.62758213", "0.62014127", "0.62014127", "0.61598134", "0.60948545", "0.6077477", "0.6069962", "0.6014603", "0.599864", "0.5993605", "0.59916824", "0.59402424", "0.59335744", "0.5928271", "0.5927...
0.7121004
0
Unpublish the page, and create a draft of it.
Снять с публикации страницу и создать черновик этой страницы.
public function draftsUnpublish($page_id) { // Build the MindTouch API URL to unpublish a draft. $url = $this->draftsUrl($page_id) . "/unpublish"; // Get output from API. $output = $this->post($url, ''); // Parse the output. $output = $this->parseOutput($output); return $output; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function unpublish(Post $p)\n {\n if ($p->status === 'published') {\n $p->status = 'draft';\n $p->save();\n }\n\n return $p;\n }", "public function deleteContentAndCopyDraftPage() {}", "public function doUnpublish() {\n\t\tif($this->Fields()) {\n\t\t\tfor...
[ "0.67891127", "0.6728468", "0.6656942", "0.6627704", "0.65573686", "0.65313613", "0.6316248", "0.6278062", "0.6257891", "0.62287253", "0.61924523", "0.6134596", "0.6121946", "0.61116046", "0.6100057", "0.6086279", "0.6079792", "0.60669005", "0.60633546", "0.6054832", "0.60509...
0.7231613
0
Escapes slashes in the MindTouch page ID.
Экранирует слэши в идентификаторе страницы MindTouch.
public function escapeSlashesPageId($page_id) { $page_id = str_replace('/', '//', $page_id); return $page_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function jn_htmlInUrl_page_slash( $string, $type ) {\r\n\t\tglobal $wp_rewrite;\r\n\t\tif ( in_array( $type, $this->selected_post_type ) ) {\r\n\t\t\tif ( $wp_rewrite->using_permalinks() && true === $wp_rewrite->use_trailing_slashes && 'page' === $type ) {\r\n\t\t\t\t$string = untrailingslashit( $string );\r\n\t\t...
[ "0.5774345", "0.5695904", "0.54545426", "0.54464406", "0.543483", "0.541656", "0.5383499", "0.5369288", "0.5351855", "0.53085214", "0.52782214", "0.52775156", "0.524023", "0.52067953", "0.51704973", "0.5156095", "0.50751585", "0.5067374", "0.50622284", "0.5050518", "0.5019309...
0.77610177
0
Returns list of groups. When group ID is supplied, only that group's information is returned.
Возвращает список групп. При указании идентификатора группы возвращается информация только о этой группе.
public function groupsGet($group_id = '') { $url = 'groups'; if (!empty($group_id)) { $url .= '/'; if (is_string($group_id)) { $url .= '='; $group_id = urlencode(urlencode($group_id)); } $url .= $group_id; } $output = $this->get($url); return $this->parseOutput($output); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function groups_get($id=0)\n {\n $sutil = new CILServiceUtil();\n $result = $sutil->getGroupInfo($id);\n $this->response($result);\n\n }", "public function listGroups()\n {\n\t\t$data = $this->call(array(), \"GET\", \"groups.json\");\n\t\t$data = $data->{'groups'};\n\t\t$grou...
[ "0.7916774", "0.7837089", "0.78263706", "0.750232", "0.74499846", "0.74499846", "0.7445099", "0.7367189", "0.7350667", "0.72827965", "0.7239992", "0.7224224", "0.7216184", "0.72081333", "0.71895045", "0.7149718", "0.7148932", "0.71457577", "0.7126801", "0.71226484", "0.711169...
0.7878093
1
Retrieves a page's contents.
Получает содержимое страницы.
public function pageContentsGet($page_id, $options = array()) { // Build the MindTouch API URL to get a page's contents. $url = $this->pageUrl($page_id) . "/contents?" . http_build_query($options); // Get output from API. $output = $this->get($url); // Parse the output. $output = $this->parseOutput($outpu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function content($page = 1)\n {\n return file_get_contents($this->endpoint() . '&Pagina=' . $page);\n }", "function load_page($page){\r\n\t\treturn file_get_contents($page);\r\n\t}", "public function get_page();", "public function getPage();", "protected function getContents()\n {\n...
[ "0.7463518", "0.7148417", "0.6908829", "0.68958265", "0.6890026", "0.68752915", "0.68364847", "0.6828052", "0.6828052", "0.6828052", "0.6828052", "0.68277013", "0.6775387", "0.6775387", "0.6775387", "0.6775387", "0.6775387", "0.6744206", "0.67324615", "0.6678241", "0.6668547"...
0.7313501
1
Retrieves a page's properties.
Получает свойства страницы.
public function pagePropertiesGet($page_id, $property = '') { // Build the MindTouch API URL to get a page's properties. $url = $this->pageUrl($page_id) . "/properties"; if (!empty($property)) { $url .= '/' . $property; } // Get output from API. $output = $this->get($url); // Parse the output. if (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function draftPropertiesGet($page_id, $property = '') {\n\t\t// Build the MindTouch API URL to get a page's properties.\n\t\t$url = $this->draftsUrl($page_id) . \"/properties\";\n\t\tif (!empty($property)) {\n\t\t\t$url .= '/' . $property;\n\t\t}\n\n\t\t// Get output from API.\n\t\t$output = $this->get($url...
[ "0.6886989", "0.681933", "0.681933", "0.681933", "0.68192375", "0.6816383", "0.6816383", "0.6816383", "0.6816383", "0.66261387", "0.662491", "0.6605259", "0.65611726", "0.65588325", "0.6433145", "0.6317373", "0.6313194", "0.6285548", "0.62317735", "0.62192416", "0.61633706", ...
0.7446918
0
Gets a page's tags.
Получает теги страницы.
public function pageTagsGet($page_id) { // Build the MindTouch API URL to get a page's tags. $url = $this->pageUrl($page_id) . "/tags"; // Get output from API. $output = $this->get($url); // Parse the output. $output = $this->parseOutput($output); return $output; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTags();", "public function getTags();", "public function getTags();", "public function getTags();", "public function getTags();", "public function getTags() {}", "public function get_tags()\r\n\t{\r\n\t\t$xml = $this->call(PicasaAPI::$QUERY_URLS['picasa'] . \"?kind=tag\");\r\n\t\tret...
[ "0.71794933", "0.71794933", "0.71794933", "0.71794933", "0.71794933", "0.71720666", "0.68519723", "0.68493336", "0.67894834", "0.6729883", "0.6603282", "0.6603282", "0.6591275", "0.6570798", "0.6569065", "0.64752805", "0.6447588", "0.6439319", "0.6421414", "0.6406135", "0.640...
0.78133917
0
Set the tags for the given page ID.
Установите теги для заданного идентификатора страницы.
public function pageTagsSet($page_id, $tags) { // Build the MindTouch API URL to update the page's tags. $url = $this->pageUrl($page_id) . "/tags"; // Make sure &amp; replacement comes before the others. $xml_escape = array( '&' => '&amp;', '"' => '&quot;', "'" => '&apos;', '<' => '&lt;', '>' =>...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set_with_tags($id, $data, $lifetime = NULL, array $tags = NULL);", "function set_book_tags( $id, $tags, $append = false ) {\r\n\treturn wp_set_post_tags($id, $tags, $append);\r\n}", "function setTagId($tagId)\n {\n $this->tagId = $tagId;\n }", "protected function setTags()\n {...
[ "0.6351072", "0.62887776", "0.6226015", "0.6192837", "0.6136657", "0.60522544", "0.6038892", "0.601793", "0.60067856", "0.5969364", "0.58340025", "0.58105314", "0.57812464", "0.57775617", "0.57289976", "0.5638332", "0.5621009", "0.55837476", "0.55424553", "0.55314356", "0.551...
0.71070874
0
Returns a list of all the pages on the MindTouch instance.
Возвращает список всех страниц на экземпляре MindTouch.
public function pages() { // Build the MindTouch API URL to fetch the pages. $url = "pages"; // Get output from API. $output = $this->get($url); // Parse the output. $output = $this->parseOutput($output); return $output; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPages();", "public function getPages() {}", "public function getAllPages()\n {\n // Get a list of all viewable pages\n $home = Page::getByID(1);\n $homeStr = $home->getCollectionPath();\n\n $pl = new PageList();\n $pl->filterByPath($homeStr, TRUE);\n ...
[ "0.7686118", "0.7641017", "0.72907615", "0.72386533", "0.72125834", "0.7203151", "0.7203151", "0.7203151", "0.71357995", "0.71357995", "0.71263874", "0.70394456", "0.7018689", "0.70132816", "0.7012937", "0.69968945", "0.6969756", "0.69648784", "0.69390744", "0.6862505", "0.68...
0.79969645
0
Retrieves the error message from the API error XML.
Извлекает сообщение об ошибке из XML-файла ошибки API.
public function parseErrorMessage($error_xml) { $error_message = (string) $error_xml->title . ' (' . (string) $error_xml->status . '): ' . (string) $error_xml->message; return $error_message; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getErrorMessage()\n {\n return $this->singleValue('//i:errorMessage');\n }", "function display_xml_error($error, $xml)\n {\n $return = $xml[$error->line - 1] . \"\\n\";\n $return .= str_repeat('-', $error->column) . \"^\\n\";\n switch ($error->...
[ "0.6994137", "0.66923624", "0.6691239", "0.66071635", "0.6567516", "0.65398824", "0.65304714", "0.6526919", "0.65090495", "0.64962053", "0.6468726", "0.6460151", "0.64357066", "0.64357066", "0.6411239", "0.6397274", "0.6397274", "0.6397274", "0.6391822", "0.63517404", "0.6347...
0.71665883
0
Sets the credentials to use to access the API.
Устанавливает учетные данные, которые будут использоваться для доступа к API.
public function setApiCredentials($credentials) { $secure = (isset($credentials['secure'])) ? $credentials['secure'] : true; $this->api_url = $secure ? 'https://' : 'http://'; $this->api_url .= $credentials['api_domain'] . '/@api/deki/'; $this->api_username = (!empty($credentials['api_username'])) ? $credentia...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setApiCredentials($credentials)\n {\n // Setting Default PayPal Mode If not set\n $this->setApiEnvironment($credentials);\n\n // Set API configuration for the PayPal provider\n $this->setApiProviderConfiguration($credentials);\n\n // Set default currency.\n ...
[ "0.75171113", "0.7409771", "0.73061967", "0.7219394", "0.7047139", "0.69240737", "0.6839915", "0.66441256", "0.66344696", "0.6611788", "0.6598393", "0.65459645", "0.6498637", "0.64326257", "0.6391132", "0.6315333", "0.6312784", "0.62563336", "0.6254209", "0.6177145", "0.61416...
0.74731886
1
Builds the users API URL. Supports both string and integer user IDs.
Создает URL-адрес API для пользователя. Поддерживает как строковые, так и целочисленные идентификаторы пользователей.
private function usersUrl($user_id = '') { $url = "users"; if (!empty($user_id)) { $url .= '/'; if (is_string($user_id) && $user_id !== 'current') { $url .= '='; $user_id = urlencode(urlencode($user_id)); } $url .= $user_id; } return $url; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _build_url() {\n\n $params = array_filter([\n 'name' => $this->_names,\n 'country_id' => $this->_country_id,\n 'language_id' => $this->_language_id,\n ], function($v) {\n if (!is_array($v)) {\n return strlen(trim($v)) > 0;\...
[ "0.6544069", "0.62423277", "0.58315635", "0.58093697", "0.57375944", "0.56878036", "0.5596975", "0.55869937", "0.55674297", "0.551314", "0.5471601", "0.5465741", "0.542031", "0.54195017", "0.5357647", "0.5343692", "0.5324092", "0.5318733", "0.5314094", "0.5312728", "0.5310371...
0.72430104
0
Retrieves a user's properties.
Получает свойства пользователя.
public function usersPropertiesGet($user_id, $property = '') { $url = $this->usersUrl($user_id) . '/properties'; if (!empty($property)) { $url .= '/' . $property; } // Get output from API. $output = $this->get($url); // Parse the output. if (empty($property)) { $output = $this->parseOutput($output...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_user()\r\n {\r\n return $this->get_default_property(self :: PROPERTY_USER);\r\n }", "function get_user()\r\n {\r\n return $this->get_default_property(self :: PROPERTY_USER);\r\n }", "abstract function getUserProfileProperty($user, $property_name);", "public function get...
[ "0.6923029", "0.6923029", "0.6871356", "0.6763621", "0.6763621", "0.6763621", "0.6763621", "0.6679763", "0.66788375", "0.66788375", "0.66788375", "0.64385384", "0.64330137", "0.6425434", "0.6412912", "0.636259", "0.634842", "0.6326409", "0.6317337", "0.6314494", "0.6262219", ...
0.74741614
0
Function that return the values of an argument in an table from the table using JOIN and a Foreign key
Функция, возвращающая значения аргумента из таблицы с использованием JOIN и идентификатора внешнего ключа
function getJoinFK($col,$tab1,$tab2,$key1,$key2){ $array=array(); $conn=connectDB(); $query="SELECT $tab2.$col FROM $tab1 JOIN $tab2 ON $tab1.$key1 = $tab2.$key2"; foreach ($conn->query($query)as $row){ array_push($array,$row[$col]); } return $array; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function crossJoin($table);", "function getJoin($table,$col,$join){\n $array=array();\n $conn=connectDB();\n $query=\"SELECT $table.$col FROM $join\";\n foreach ($conn->query($query)as $row){\n array_push($array,$row[$col]);\n }\n return $array;\n }"...
[ "0.60498214", "0.60223925", "0.58524656", "0.57634115", "0.57209903", "0.57145554", "0.5683651", "0.5677522", "0.56641746", "0.5629954", "0.56169343", "0.5613874", "0.560118", "0.5573403", "0.5548468", "0.5544167", "0.55183953", "0.54766065", "0.5438259", "0.54361534", "0.542...
0.71261686
0
Function that update a value in an a table following conditions, example of use : update("color","name='testmodif'","id=18")
Функция, которая обновляет значение в таблице в соответствии с условиями, пример использования: update("color","name='testmodif'","id=18")
function update($table,$modify,$condition){ $conn=connectDB(); $query="UPDATE $table SET $modify WHERE $condition"; //$table=table to modify, $modify=column to modify in database with the value, $condition=contition for modifying the database $conn->query($query); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fn_update($table, $param, $condition) {\r\n foreach ($param as $key => $value) {\r\n $this->query(\"update $table set $key = $value where $condition\");\r\n }\r\n }", "function adv_update($table, array $data, array $where);", "function updateTable(): void\n{\n $sql = '\n...
[ "0.757055", "0.74084926", "0.7314172", "0.72520334", "0.7246593", "0.71907395", "0.703541", "0.694751", "0.693894", "0.69350356", "0.6933407", "0.6911712", "0.69065034", "0.6888103", "0.68850875", "0.68762726", "0.6847363", "0.68194693", "0.6818076", "0.67658025", "0.67561066...
0.74936247
1
Get the First Promoter API Key
Получите первый API-ключ Promoter
public static function getApiKey() { if (static::$key) { return static::$key; } if ($key = getenv('FIRST_PROMOTER_KEY')) { return $key; } return config('services.first_promoter.key'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function key(){\n\t\t$api_key = '42b85431eba6a84d17266021e817d2a6';\n\t\treturn $api_key;\n\t}", "function get_user_api_key() {\n $currentUser = current_user();\n if ($currentUser) {\n $db = get_db();\n $res = $db->getTable('Key')->findBy(array('user_id' => $currentUser->id));\n if (sizeof($res) > 0) ...
[ "0.71134204", "0.71111274", "0.67025113", "0.6701976", "0.66983384", "0.6687039", "0.66299456", "0.6620966", "0.6610533", "0.6593231", "0.658845", "0.65602523", "0.65437293", "0.65212727", "0.65191585", "0.6490083", "0.6483797", "0.6478329", "0.6470361", "0.64674026", "0.6447...
0.7444892
0
display button bar. Only show buttons requested in $btns
Показать панель кнопок. Отображать только кнопки, указанные в $btns
function displayButtons($btns) // ------------------------------------- { echo '<div class="btnBar navigation" id="btnLine">'; // member level overrides initState if ( $_SESSION["MEMBER_LEVEL"] >=4 ) $disabledFlag = ""; else $disabledFlag="disabled"; foreach ($btns as $btn => $caption) { switc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function listButtons() {\n\t}", "public function addsButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "pr...
[ "0.669765", "0.66676", "0.66334575", "0.66334575", "0.66334575", "0.66334575", "0.66328", "0.66328", "0.66328", "0.66328", "0.66328", "0.66314423", "0.66314423", "0.66314423", "0.66314423", "0.66314423", "0.66314423", "0.66314423", "0.66314423", "0.6508142", "0.6507523", "0...
0.7030262
0
Grade the given 'response'. This implementation assumes a modified behaviour that will accept a third array element in its response, containing data to be cached and served up again in the response on subsequent calls. It will still work with an unmodified behaviour but will be very inefficient as multiple regradings w...
Оцените данный 'response'. Эта реализация предполагает измененное поведение, которое будет принимать третий элемент массива в ответе, содержащий данные для кэширования и последующего предоставления в ответ при следующих вызовах. Она все равно будет работать с неизмененным поведением, но будет крайне неэффективной, так ...
public function grade_response(array $response) { if (empty($response['_testresults'])) { // debugging('Running ProgramCode tests'); $code = $response['answer']; $testResults = $this->run_tests($code, $this->testcases); $this->clean(&$testResults); // Truncate if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function grade_response(array $response)\n {\n try\n {\n\n //process the user's response\n $grades = $this->process_response($response);\n\n //and return the earned grade\n return array($grades['fraction'], question_state::graded_state_for_fraction($grades['fraction']))...
[ "0.71466005", "0.5770065", "0.56377584", "0.5591557", "0.55500096", "0.5410019", "0.5303887", "0.5271886", "0.522625", "0.5207858", "0.5070823", "0.5063495", "0.50154394", "0.49446598", "0.4931817", "0.48749262", "0.4868785", "0.4844714", "0.483825", "0.48364025", "0.48241022...
0.7125768
1
Count the number of errors in the given array of test results. TODO figure out how to eliminate either this one or the identical version in renderer.php.
Посчитайте количество ошибок в данном массиве результатов тестирования. TODO разберитесь, как устранить либо этот вариант, либо идентичный в renderer.php.
private function count_errors($testResults) { $errors = 0; foreach ($testResults as $tr) { if (!$tr->isCorrect) { $errors++; } } return $errors; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getErrorCount();", "public function count() {\n return count($this->_errors);\n }", "public function errorCount()\n\t{\n\t\treturn count($this->errors);\n\t}", "public function count()\r\n {\r\n return count($this->errors);\r\n }", "public function count()\r\n {\r\n ...
[ "0.69433165", "0.6733814", "0.6730376", "0.6728807", "0.6728807", "0.666349", "0.666003", "0.6652946", "0.65537053", "0.65406275", "0.65262383", "0.65015155", "0.64912266", "0.64736634", "0.63735", "0.6310627", "0.61446595", "0.6131367", "0.6131367", "0.6067219", "0.60598594"...
0.82010674
0
SHORTCODE: Testimonial List. This shortcode will output the template file from the templates/folder. > [rsm_testimonial_list] //display all
КОРОТКИЙ КОД: Список отзывов. Этот короткий код выводит шаблон из папки templates. > [rsm_testimonial_list] //отображает все
function rsm_sc_testimonial_list($atts) { ob_start(); rsm_get_template( 'rsm-testimonial-list.php' ); return ob_get_clean(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function gymchamps_testimonials_list() { ?>\n\n <!-- --- hello from queries.php --- -->\n <ul class=\"testimonials-list\">\n\n <?php \n // method for querying the data from \"Testimonials\" post type in gym_post_types.php in Plugins folder\n $args = array(\n // if 'posts_type' = queried from b...
[ "0.7486545", "0.73439044", "0.6954732", "0.693924", "0.67569786", "0.6666455", "0.66635424", "0.6585647", "0.6574096", "0.6560709", "0.6558675", "0.653649", "0.6500174", "0.6410998", "0.63940936", "0.63883674", "0.6369666", "0.6326944", "0.6326086", "0.6278623", "0.625244", ...
0.8113474
0
Test it rejects emails with domains that ARE blacklisted by append
Тестируйте его, он отбрасывает электронные адреса с доменами, которые находятся в черном списке
public function test_rejects_blacklisted_by_append() { Config::set('validation.email.blacklist.source', null); Config::set('validation.email.blacklist.append', "reject.me"); $rules = ['email' => 'email|blacklist']; $input = ['email' => 'rejectme@reject.me']; $passes = Validator::make($input, $rul...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_allows_not_blacklisted_by_append()\n {\n \tConfig::set('validation.email.blacklist.source', null);\n \tConfig::set('validation.email.blacklist.append', \"notinsource.com|otherappend.com\");\n\n\t\t$rules = ['email' => 'email|blacklist'];\n\n\t\t$input = ['email' => 'rejectme@letmein.c...
[ "0.7764704", "0.75759864", "0.73675156", "0.68469757", "0.66635376", "0.62345684", "0.60594594", "0.6054361", "0.59961414", "0.59795713", "0.59177876", "0.5870633", "0.5868312", "0.5868017", "0.5821652", "0.5797297", "0.57490784", "0.5736554", "0.5736061", "0.57022333", "0.57...
0.7796159
0
Test it rejects emails with domains that ARE blacklisted by append of multi items
Тестируйте его, он отвергает электронные адреса с доменами, которые в черном списке, при добавлении нескольких элементов
public function test_rejects_blacklisted_by_append_multi() { Config::set('validation.email.blacklist.source', null); Config::set('validation.email.blacklist.append', "reject.me|rejecthisother.com"); $rules = ['email' => 'email|blacklist']; $input = ['email' => 'rejectme@rejecthisother.com']; $pas...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_rejects_blacklisted_by_append()\n {\n \tConfig::set('validation.email.blacklist.source', null);\n \tConfig::set('validation.email.blacklist.append', \"reject.me\");\n\n\t\t$rules = ['email' => 'email|blacklist'];\n\n\t\t$input = ['email' => 'rejectme@reject.me'];\n\n\t\t$passes = Vali...
[ "0.72655076", "0.72475576", "0.67121977", "0.6362075", "0.6302532", "0.61167175", "0.6091548", "0.6084486", "0.60818046", "0.58700514", "0.58608353", "0.5836859", "0.5737298", "0.5679049", "0.56442076", "0.5561082", "0.5554072", "0.551387", "0.54749686", "0.5440887", "0.54366...
0.7770087
0
Test it rejects emails with domains that ARE blacklisted AnY CaSe TyPeD
Проверьте, что он отбрасывает электронные адреса с доменами, которые находятся в черном списке, при любом регистре ввода
public function test_rejects_blacklisted_by_append_lowercase() { Config::set('validation.email.blacklist.source', null); Config::set('validation.email.blacklist.append', "rejectthisother.com"); $rules = ['email' => 'email|blacklist']; $input = ['email' => 'rejectme@REJECTthisOTHER.CoM']; $passes ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testRejectBlacklistedHostThoughNotTrue()\r\n {\r\n $this->config->set('URI.HostBlacklist', 'example.com');\r\n $this->assertFiltering('http://example.comcast.com', false);\r\n }", "public function test_rejects_blacklisted_by_source()\n {\n \tConfig::set('validation.email...
[ "0.72269744", "0.69207364", "0.6889817", "0.68283594", "0.67528033", "0.674782", "0.64372563", "0.6408514", "0.6403754", "0.62419534", "0.60785115", "0.6067875", "0.6042742", "0.59819174", "0.5945338", "0.5944544", "0.5884493", "0.58826", "0.5881613", "0.5877375", "0.5849991"...
0.703329
1
Test it allows emails with domains that are NOT blacklisted by append
Тест позволяет электронные почты с доменами, которые НЕ находятся в черном списке при добавлении
public function test_allows_not_blacklisted_by_append() { Config::set('validation.email.blacklist.source', null); Config::set('validation.email.blacklist.append', "notinsource.com|otherappend.com"); $rules = ['email' => 'email|blacklist']; $input = ['email' => 'rejectme@letmein.com']; $passes = V...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_rejects_blacklisted_by_append()\n {\n \tConfig::set('validation.email.blacklist.source', null);\n \tConfig::set('validation.email.blacklist.append', \"reject.me\");\n\n\t\t$rules = ['email' => 'email|blacklist'];\n\n\t\t$input = ['email' => 'rejectme@reject.me'];\n\n\t\t$passes = Vali...
[ "0.74857605", "0.7308968", "0.72065", "0.68171936", "0.67582166", "0.6103209", "0.60969615", "0.6089432", "0.6087046", "0.6073521", "0.6047198", "0.5998041", "0.5952988", "0.5916624", "0.5901076", "0.5852628", "0.58421004", "0.58299005", "0.581399", "0.5778542", "0.5727379", ...
0.76710314
0
Get valid Paymorrow module settings used for saving and retrieving.
Получить действующие настройки модуля Paymorrow, используемые для сохранения и получения.
public function getValidSettings() { return $this->_aValidPaymorrowSettings; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPaymorrowSettings()\n {\n return oxNew( 'OxpsPaymorrowSettings' );\n }", "public function settings()\n {\n // Process any module settings you asked for.\n $apiKey = $this->getSanitizer()->getString('apiKey');\n $owmApiKey = $this->getSanitizer()->getString(...
[ "0.7307411", "0.6523857", "0.60304165", "0.5916545", "0.5872308", "0.5744267", "0.5726611", "0.5719371", "0.5716024", "0.57061416", "0.56838095", "0.56784976", "0.56504124", "0.5643594", "0.563969", "0.5638139", "0.56347775", "0.5618484", "0.5564717", "0.5554962", "0.5554062"...
0.8008405
0
Get end point URL setting for test mode.
Получить настройку URL конечной точки для режима тестирования.
public function getTestEndPointURL() { return $this->getSetting( 'EndpointUrlTest' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEndPointURL()\n {\n return $this->isSandboxMode() ? $this->getTestEndPointURL() : $this->getProductionEndPointURL();\n }", "protected function getEndpoint()\n {\n return $this->getTestMode() ? $this->testEndpoint : $this->liveEndpoint;\n }", "public static function ...
[ "0.7479861", "0.7125328", "0.6989018", "0.6983934", "0.69470274", "0.69243145", "0.6760842", "0.67300165", "0.6580872", "0.6540702", "0.6529043", "0.6494081", "0.649093", "0.6474866", "0.64422303", "0.634788", "0.6328645", "0.6325174", "0.63005304", "0.6284867", "0.62755615",...
0.81710434
0
Get a signature compiled of OXID shop: Oxid + Version + Paymorrow module version
Получите подпись, составленную из OXID магазина: Oxid + Версия + версия модуля Paymorrow
public function getMpiSignature() { /** @var $oPmModule oxModule|OxpsPaymorrowModule */ $oPmModule = oxRegistry::get( 'OxpsPaymorrowModule' ); return sprintf( 'Oxid-%s_%s', $this->getConfig()->getVersion(), // Shop Version $oPmModule->getPaymorrowModuleV...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function signature()\n {\n return 'Vero: ' . \\Vero\\Version::VERSION;\n }", "private function getSignature(): string {\r\n return base64_encode(hash_hmac(\"sha1\", $this->buildSigningBase(), $this->buildSigningKey(), true));\r\n }", "public function getSignature();", "public fu...
[ "0.63023376", "0.6054325", "0.59688324", "0.5833392", "0.58101386", "0.5800246", "0.5768739", "0.5731127", "0.57303274", "0.5706139", "0.5694899", "0.5688538", "0.5661456", "0.5580712", "0.55764306", "0.55670285", "0.5551696", "0.5551696", "0.5533012", "0.5533012", "0.5527329...
0.7429559
0
Get Merchant Id which must be set in OXID Backend. It verifies if it is Test or Live mode to return corresponding value.
Получить Merchant Id, который должен быть задан в OXID Backend. Проверяет, является ли это режимом тестирования или живого режима, чтобы вернуть соответствующее значение.
public function getMerchantId() { return $this->isSandboxMode() ? $this->getSetting( 'MerchantIdTest' ) : $this->getSetting( 'MerchantId' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getMerchantID()\n\t{\n\t\t$sandbox = $this->params->get('sandbox',0);\n\t\tif($sandbox) {\n\t\t\treturn $this->params->get('sandbox_merchant','');\n\t\t} else {\n\t\t\treturn $this->params->get('merchant','');\n\t\t}\n\t}", "protected function getMerchantId()\r\n {\r\n return $this->pr...
[ "0.77611715", "0.76094335", "0.7575058", "0.74530447", "0.7432233", "0.7384981", "0.7384687", "0.73573005", "0.7070449", "0.696876", "0.65773976", "0.644898", "0.6364245", "0.6330354", "0.6276037", "0.60310185", "0.59807456", "0.5956013", "0.5913792", "0.58986574", "0.5851792...
0.80232644
0
Get Paymorrow resource path used for JavaScript / CSS inclusion It verifies if it is Test or Live mode to return corresponding value.
Получить путь ресурса Paymorrow, используемый для включения JavaScript / CSS. Проверяет, является ли это режимом тестирования или живого режима, чтобы вернуть соответствующее значение.
public function getPaymorrowResourcePath() { return $this->isSandboxMode() ? $this->getSetting( 'ResourcePathTest' ) : $this->getSetting( 'ResourcePath' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getComponentsPath(): string\n {\n return resource_path('js/Components');\n }", "public function getAssetPath()\n {\n return WEB_PUBLIC_THEME . '/' . $this->directory;\n }", "public function getResourcePath();", "public function getJsPath();", "public function ge...
[ "0.62158674", "0.6207682", "0.61978716", "0.6155464", "0.61121154", "0.61117274", "0.6103172", "0.61004376", "0.61002654", "0.6094633", "0.6085594", "0.6080801", "0.6064491", "0.6036922", "0.6026436", "0.60132086", "0.6012047", "0.59768116", "0.5910615", "0.59102017", "0.5885...
0.77820086
0
Get Paymorrow operation mode. It verifies if it is Test or Live mode to return corresponding value.
Получить режим работы Paymorrow. Проверяет, является ли это режимом тестирования или живого режима, чтобы вернуть соответствующее значение.
public function getPaymorrowOperationMode() { return $this->isSandboxMode() ? $this->getSetting( 'OperationModeTest' ) : $this->getSetting( 'OperationMode' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_mode() {\n return edd_get_option( 'edd_commissions_payout_schedule_mode', '' );\n }", "protected function getMode() {\n\t\treturn $this->mode;\n\t}", "public function getMode() {\n return $this->mode;\n }", "public function getMode() {\n return $this->mode;\n ...
[ "0.6663116", "0.6158625", "0.6156316", "0.6156316", "0.61264515", "0.61264515", "0.61264515", "0.61264515", "0.61264515", "0.61264515", "0.61264515", "0.6119481", "0.61014783", "0.6095737", "0.60666966", "0.60663664", "0.60663664", "0.60663664", "0.60663664", "0.60460263", "0...
0.8861314
0
Check if logging is enabled in module settings.
Проверьте, включено ли логирование в настройках модуля.
public function isLoggingEnabled() { return (bool) $this->getSetting( 'LoggingEnabled' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isLoggingEnabled()\n {\n return $this->getConfigValue(self::XML_PATH . 'logging/enable') ? true : false;\n }", "public function logging_enabled() {\n\n\t\t$this->logging_enabled = ( 'yes' === get_option( 'wc_avatax_debug' ) );\n\n\t\t/**\n\t\t * Filter whether debug logging is enable...
[ "0.7676045", "0.7465037", "0.7318757", "0.7259891", "0.713226", "0.70824325", "0.69658643", "0.68014467", "0.6754694", "0.66872", "0.66700125", "0.64273745", "0.6422475", "0.6289732", "0.6253512", "0.6194404", "0.61724395", "0.60757506", "0.6071676", "0.60478", "0.60227495", ...
0.7808368
0
/ Handles creating category
Обрабатывает создание категории
function ccategories_create() { lusers_require("categories/create"); $post_data = linput_post(); $post_data = linput_post_checkbox($post_data, "content"); $content = $post_data["content"]; if (hform_validate(array("name", "link", "parentid"))) { $cat_created = mcategories_create($post_data); if ($c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createCategory();", "public function create()\n {\n if ($this->request->getPost()) {\n $data = [\n 'name' => $this->request->getPost('category_name'),\n 'parent_id' => ($this->request->getPost('parent_category')) ? $this->request->getPost('par...
[ "0.8785811", "0.8069884", "0.7733543", "0.7677861", "0.7677707", "0.7633967", "0.76122975", "0.75441223", "0.7529972", "0.752711", "0.7520648", "0.7496959", "0.74755937", "0.74685454", "0.7458394", "0.74207646", "0.7409552", "0.737144", "0.73616785", "0.73446894", "0.7334076"...
0.80947495
1
/ Handles reordering categories
Обрабатывает перестановку категорий
function ccategories_order() { lusers_require("categories/order"); $post_data = linput_post(); $order = $post_data["order"]; $order = split("\|", $order); for ($i = 0; $i < count($order); $i++) { lcrud_update(lconf_get("lang") . "_categories", array("id" => $order[$i]), array("orderid" => $i)); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function categoriesOrder( $uid, $inc, $option ) {\n\tglobal $mainframe;\n $database = &JFactory::getDBO();\n\t$row = new jlist_cats( $database );\n\t$row->load( $uid );\n $row->move( $inc );\n\t$mainframe->redirect( \"index.php?option=com_jdownloads&task=categories.list\" );\n}", "function cms_reOrder() {\r\...
[ "0.7155691", "0.6983956", "0.6852775", "0.64494187", "0.639102", "0.63862157", "0.6327268", "0.6321422", "0.6208086", "0.6139801", "0.61384773", "0.6095829", "0.6077617", "0.6063033", "0.6058779", "0.60578877", "0.60522306", "0.59673935", "0.5950038", "0.5881756", "0.5876473"...
0.73157036
0
Check if a specific observer is already attached
Проверить, прикреплен ли конкретный наблюдатель
function attached(&$observer) { return isset($this->observers[$observer->getHashCode()]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isAttached(ftpClientObserver $observer) {\r\n\t\tif ( isset($this->_listeners[$observer->getId()]) ) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public function hasObservers() : bool\n {\n\n return 0 < $this->countObservers();\n\n }", "public function...
[ "0.73635083", "0.66728073", "0.6585797", "0.6452018", "0.587713", "0.5854778", "0.5723439", "0.5723439", "0.5723439", "0.5723377", "0.5723377", "0.5723377", "0.571004", "0.56953555", "0.56886494", "0.5599331", "0.5599331", "0.55902386", "0.5567136", "0.554653", "0.550553", ...
0.7900529
0
Whether this user is a chair Currently this is the same as being an administrator but we may want to change that.
Является ли этот пользователь председателем. В настоящее время это то же самое, что и быть администратором, но мы можем захотеть изменить это.
public function isChair(){ return $this->is_admin; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIsUserAttribute()\n {\n return $this->attributes['user_type'] == '3';\n }", "public function getIsAdminAttribute()\n {\n return $this->attributes['user_type'] == '1';\n }", "public function authorize()\n // can access chef member who is 'logined' and 'chefprofile...
[ "0.6754003", "0.6626951", "0.6440698", "0.6422975", "0.6393849", "0.63179183", "0.63114536", "0.6300088", "0.62915295", "0.627904", "0.6275789", "0.62674886", "0.62674886", "0.6251996", "0.624256", "0.62364936", "0.6229254", "0.622383", "0.62209696", "0.6189085", "0.61756194"...
0.8116506
0
function to check the ACL for the given task
функция для проверки ACL для заданной задачи
public function checkACL($task , $act = "", $applet = "") { $query = "SELECT `access` FROM `jmtfw_acl` WHERE `task`='{$task}'"; if ($act != "") { $query .= " AND `act`='{$act}'"; } if ($applet != "") { $query .= " AND `applet`='1' AND `appletname`='{$applet}'"; } else { $query .= " ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isAuthorized($task = '') {\n\n\t\t$controllerName = KenedoController::getControllerNameFromClass(get_class($this));\n\n\t\tif (strpos($controllerName, 'admin') === 0) {\n\n\t\t\t$asset = $this->component.'.core.manage';\n\t\t\t$authorized = KenedoPlatform::p()->isAuthorized($asset, NULL, 20);\n\n\t...
[ "0.6865956", "0.6568166", "0.6500485", "0.6476009", "0.63246846", "0.6272618", "0.62388885", "0.62388885", "0.62388885", "0.6238047", "0.6238047", "0.6237508", "0.6237508", "0.6237508", "0.61972946", "0.619132", "0.6101042", "0.60507613", "0.6037444", "0.6018984", "0.5987124"...
0.75825214
0
Show the form for creating a new hrCompanyDesignation.
Показать форму для создания нового hrCompanyDesignation.
public function create() { return view('company.hr_company_designations.create'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createCompany() {\n\t\t\t\t\t$addForm = new h2o('views/addCompany.html');\n\t\t\t\t\techo $addForm->render();\n\t\t\t\t}", "public function create()\n {\n return view('v1.colorpro.admin.create_company');\n }", "public function create()\n {\n return view('company.companycreate' )...
[ "0.7536848", "0.73231864", "0.7190431", "0.71715474", "0.7143746", "0.7130957", "0.7116383", "0.706693", "0.7061483", "0.6960975", "0.6960975", "0.6960975", "0.6960975", "0.6960975", "0.6960975", "0.6960975", "0.6960975", "0.6960975", "0.6960975", "0.6960975", "0.6960782", ...
0.77600545
0
Store a newly created hrCompanyDesignation in storage.
Храните только что созданную hrCompanyDesignation в хранилище.
public function store(CreatehrCompanyDesignationRequest $request) { $input = $request->all(); $input['company_id'] = Auth::guard('company')->user()->companyUser()->first()->company_id; $hrCompanyDesignation = $this->hrCompanyDesignationRepository->create($input); /* Flash::success...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store(CompanyRequest $request)\n {\n $this->checkPermission('create-company');\n \n // dd($request->all(), $request->image);\n $section = $this->section;\n if( $request->hasFile('image') ){\n $getimageName = time().rand(1000,9999).'.'.$request->image...
[ "0.6211159", "0.59495884", "0.5929166", "0.58570576", "0.5840397", "0.58298224", "0.5717274", "0.5686675", "0.56727886", "0.56123054", "0.5574714", "0.55535066", "0.55535066", "0.5553051", "0.5551129", "0.55430114", "0.55428547", "0.55388117", "0.55377674", "0.5536489", "0.55...
0.73716974
0
Construct object and verify that the object is instance of DiceHand class
Создайте объект и проверьте, что объект является экземпляром класса DiceHand
public function testCreateObject() { $dice = new DiceHand(); $this->assertInstanceOf("Joki20\Http\Controllers\DiceHand\DiceHand", $dice); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testCreateTheClass()\n {\n $controller = new DiceHand();\n $controller->roll();\n $controller->getLastRoll();\n $controller->getSum();\n $this->assertInstanceOf(\"\\App\\Dice\\DiceHand\", $controller);\n }", "public function testCreateObjectComputerDiceHan...
[ "0.6957493", "0.6799992", "0.6736226", "0.6497553", "0.63603085", "0.6330001", "0.6206982", "0.6095788", "0.6043133", "0.60398746", "0.59060323", "0.5870563", "0.58661807", "0.5859056", "0.5833101", "0.57254624", "0.57049704", "0.5665101", "0.5656955", "0.563587", "0.563587",...
0.7456459
0
end deleteEntry() function getJoinOnLinkID Returns the join field for navbarlink_id.
end deleteEntry() function getJoinOnLinkID Возвращает поле соединения для navbarlink_id.
function getJoinOnLinkID() { return $this->getJoinOnFieldX( 'navbarlink_id' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function linkId() \n \t{\n \t\treturn $this->linkId;\n \t}", "function getJoinOnEventID()\n { \n return $this->getJoinOnFieldX('event_id');\n }", "private function getJoin() {\n return $this->join;\n }", "private function getJoinLink(): string\n {\n return Config::get(...
[ "0.606475", "0.6059591", "0.6056798", "0.60049623", "0.5918495", "0.586072", "0.58097494", "0.58097494", "0.58097494", "0.57879376", "0.5651238", "0.5636805", "0.55780697", "0.55462104", "0.54472744", "0.53678095", "0.53678095", "0.5335187", "0.5318382", "0.52777946", "0.5276...
0.81642765
1
function setGroupID Set's the navbargroup_id value.
Функция setGroupID задает значение navbargroup_id.
function setGroupID( $groupID ) { $this->setValueByFieldName( 'navbargroup_id', $groupID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set_group_id($groupid) {\n $this->groupid = (int)$groupid;\n }", "public function set_group_id($groupid) {\n $this->groupids = array($groupid);\n $this->allownogroup = false;\n }", "function setLinkGroupID( $value )\n {\n if ( $this->State_ == \"Dirty\" )\n ...
[ "0.7251906", "0.7080997", "0.70749605", "0.69557834", "0.6932803", "0.68477297", "0.6710581", "0.6687518", "0.6611798", "0.6503932", "0.6451081", "0.64496887", "0.6345916", "0.62086296", "0.6151235", "0.6141613", "0.6116356", "0.5976195", "0.59527415", "0.5948344", "0.5948344...
0.862547
0
Ensure a channel name is valid based on our spec.
Убедитесь, что имя канала соответствует нашим спецификациям.
private function validate_channel($channel) { if (!preg_match('/\A[-a-zA-Z0-9_=@,.;]+\z/', $channel)) { throw new SocketIoException('Invalid channel name ' . $channel); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function validateName($name, $site)\n {\n return ChannelRepository::validateName($name, $site);\n }", "function get_valid_channel($chan) {\r\n\t\tif (!$chan) return null;\r\n\t\tif (mb_check_encoding($chan, 'ASCII')) {\r\n\t\t\treturn $chan;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private f...
[ "0.6402569", "0.6243418", "0.6195266", "0.59066814", "0.5839824", "0.58343977", "0.57813007", "0.57780135", "0.57591355", "0.5710569", "0.5626008", "0.5606801", "0.5566059", "0.55456907", "0.5543972", "0.5537904", "0.55206615", "0.5509403", "0.5506753", "0.54847556", "0.54677...
0.76668864
0
Devuelve un array con todos los mapas que ya estan terminados
Возвращает массив со всеми завершенными картами
public static function getMapasTerminados() { $mapas = array(); $app = App::getSingleton(); $conn = $app->conexionBd(); $query = sprintf("SELECT * FROM mapas WHERE terminadoCreado = 1"); $rs = $conn->query($query); if($rs && $rs->num_rows > 0){ while($fila = $rs->fetch_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getmaps(){\n //Some maps to test\n $map0=array(\n array(\"#\",\"#\",\"#\",\"#\"));\n\n $map1=array(\n array(\"#\"),\n array(\"#\"),\n array(\"#\"),\n array(\"#\"),\n array(\"#\"));\n\n $map2=array(\n array(\"#\",\"#\"),\n ...
[ "0.5928165", "0.5899267", "0.587478", "0.58657926", "0.57678896", "0.5679319", "0.56546056", "0.56275177", "0.55337876", "0.5525998", "0.55230457", "0.5514865", "0.55132097", "0.5480399", "0.54154515", "0.54080313", "0.54052114", "0.5372657", "0.5341559", "0.533107", "0.53273...
0.7475088
0
Devuelve un array de los mapas comprados por un usuario $idUser que ya estan terminados
Возвращает массив покупок карт пользователем $idUser, которые уже завершены
public static function getMapasCompradosTerminados($idUser) { $app = App::getSingleton(); $conn = $app->conexionBd(); $query = sprintf("SELECT * FROM mapas m INNER JOIN comprados c ON m.id = idObjeto WHERE c.tipo = 'mapa' and terminadoCreado = 1 and c.idUsuario = %s",$conn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function buscarUsuario($idUser){\n\t\t\t\n\t\t\t$this->load->database();\n\t\t\t\n\t\t\t$query = $this->db->query(\"SELECT * FROM user WHERE id_user = $idUser\");\n\t\t\t\n\t\t\t\t $dados = array();\n\t\t\t\t \tforeach($query->result() as $linha)\n\t\t\t\t \t{\n\t\t\t\t \t\t$dados['id_user'] = $linh...
[ "0.6607722", "0.6296945", "0.62258035", "0.61876494", "0.61644167", "0.61282426", "0.61160684", "0.6088788", "0.59965545", "0.59558076", "0.5894512", "0.58943474", "0.58886516", "0.5823708", "0.58200634", "0.5814341", "0.58008605", "0.5795163", "0.5771442", "0.57681316", "0.5...
0.76314557
0
Insert a new Author.
Вставить нового Автора.
function insertAuthor(&$author) { $this->update( 'INSERT INTO authors (submission_id, first_name, middle_name, last_name, country, email, url, primary_contact, seq) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', array( $author->getSubmissionId(), $author->getFirstName(), $author->getMiddleName() ....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store_new_author()\n {\n $author = $this->dispatch( new StoreAuthor( $this->authorDataFormat ) );\n $this->assertTrue( $author->exists() );\n }", "public function addAuthor($author) {\n\t\t$this->_initDbConnection();\n\t\t\n\t\t$stm = $this->_prepareStatement('author', 'add');...
[ "0.6923708", "0.67956793", "0.6794468", "0.6650124", "0.6285146", "0.62781227", "0.62761647", "0.6271661", "0.6264866", "0.626009", "0.6235617", "0.62253404", "0.62129384", "0.6185801", "0.61518645", "0.6140096", "0.6109234", "0.6091261", "0.60803354", "0.60652155", "0.602750...
0.7635469
0
Delete authors by submission.
Удалить авторов по подаче.
function deleteAuthorsByArticle($submissionId) { $authors =& $this->getAuthorsBySubmissionId($submissionId); foreach ($authors as $author) { $this->deleteAuthor($author); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function delete($author) {\r\n $CI = &get_instance();\r\n $userlogin = getUserLogin();\r\n //collect all cascaded to-be-deleted-id's: none\r\n //check rights\r\n //check, all through the cascade, whether you can read AND edit that object\r\n if (!$userlogin->hasRights('pub...
[ "0.7309288", "0.6827137", "0.6494546", "0.64695877", "0.64345837", "0.6398291", "0.6235562", "0.62023515", "0.6197747", "0.6125621", "0.6025354", "0.5982198", "0.59399706", "0.5908525", "0.58888346", "0.58622944", "0.58580375", "0.5783355", "0.57687527", "0.57335764", "0.5719...
0.7346412
0
Gets singular name based on model
Получает единственное имя на основе модели
public function getSingularName() { return str_singular(lcfirst(ucwords($this->getClass()))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSingularName();", "public function getSingularModelName()\n {\n\n return strtolower(class_basename($this->model));\n }", "public function getModelSingular()\n {\n return strtolower($this->getModelSimpleName());\n }", "public function getSingularName()\n {\n ...
[ "0.8479051", "0.839943", "0.82891095", "0.8199783", "0.8199783", "0.81500816", "0.8042641", "0.79734075", "0.7570529", "0.7517108", "0.7517108", "0.74938744", "0.7491363", "0.74737877", "0.7280234", "0.71963805", "0.71963805", "0.7148758", "0.7106906", "0.7083623", "0.7080718...
0.85325265
1
Shows all departments along with the highest salary within each department.
Показывает все отделы вместе с самой высокой зарплатой в каждом отделе.
public function highestSalaries() { $report = new HighestSalaryPerDepartment(); $result = $report->generate(); return response()->json($result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function listHighestSalary(): \\Illuminate\\Http\\JsonResponse\n {\n try {\n return new \\Illuminate\\Http\\JsonResponse([\n 'status' => 200,\n 'departments' => \\App\\Models\\Department::listWithHighestSalaryFilter(),\n ], 200);\n ...
[ "0.7203474", "0.61011523", "0.5981021", "0.5943376", "0.5898899", "0.5848086", "0.5843348", "0.5827058", "0.5817208", "0.5809038", "0.5806489", "0.57928175", "0.5786844", "0.5784998", "0.5774392", "0.5769695", "0.5768139", "0.57425374", "0.57393014", "0.57393014", "0.57393014...
0.7219408
0
testing trusted shops. excellence Ts. functionality depends on order price
тестирование доверенных магазинов. исключительность Ts. функциональность зависит от цены заказа
public function testTsExcellence() { $testConfig = $this->getTestConfig(); if ($testConfig->isSubShop()) { $this->markTestSkipped('Test is not for subshops'); } //setupping ts $this->loginAdminTs(); $this->type("aShopID_TrustedShops[0]", $this->getLoginDa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testTsSeagel()\n {\n $testConfig = $this->getTestConfig();\n if ($testConfig->isSubShop()) {\n $this->markTestSkipped('Test is not for subshops');\n }\n\n //trusted shops setup in admin\n $this->loginAdminTs();\n $this->assertElementPresent(\"...
[ "0.70041513", "0.628364", "0.60442215", "0.6028845", "0.59485996", "0.59361327", "0.5920514", "0.59127", "0.5902634", "0.5894906", "0.5892256", "0.5873797", "0.58736676", "0.58476675", "0.579105", "0.575214", "0.57500625", "0.57216847", "0.5711717", "0.5654128", "0.5642558", ...
0.7020173
0
Funcion para enlazar pagina donde tendremos una accion y esta nos permitira obtener la vista deseada
Функция для связывания страницы, где будет действие, и это позволит получить нужное представление
public function enlazarPagina() { //Se obtiene la accion por medio de paso de variable y entonces se incluye la vista segun sea la accion if(isset($_GET['action'])) { $enlace = $_GET['action']; } else { $enlace = 'inicio'; } $respuesta = Informacion::enlazador($enlace); include($re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Pagina() {\r\n extract($GLOBALS);\r\n\r\n if ($w_menu == '') {\r\n $sql = new db_getLinkData; $RS = $sql->getInstanceOf($dbms, $w_cliente, $SG);\r\n $w_modulo = f($RS,'sq_modulo');\r\n $sql = new db_getMenuData; $RS_Menu = $sql->getInstanceOf($dbms,f($RS,'sq_menu'));\r\n } else {\r\n $sql =...
[ "0.67567307", "0.6676741", "0.66138405", "0.64573395", "0.64007825", "0.63984954", "0.63725585", "0.6353859", "0.6313489", "0.6277716", "0.625485", "0.62428635", "0.6239027", "0.623683", "0.6227686", "0.62274075", "0.6218916", "0.6217656", "0.6204442", "0.61982906", "0.619619...
0.8052775
0
Set migration path of selected module
Установить путь миграции выбранного модуля
protected function setMigrationPath($module) { if (!isset($this->migrationPaths[$module]) || !isset($this->migrationPaths[$module]['path'])) { throw new \Exception("Undefinied module or wrong path format."); } $this->migrationPath = $this->migrationPaths[$module]['path'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function migrations_path();", "protected function getMigrationPath($module)\n {\n return moduly()->getModulePath($module) . config('moduly.modules.folders.migrations');\n }", "protected function getMigrationPath()\n {\n return APP_PATH.'database'.DIRECTORY_SEPARATOR.'migrations';\...
[ "0.65149486", "0.64915794", "0.6281851", "0.6191639", "0.6179569", "0.61528486", "0.6122859", "0.6087586", "0.58863014", "0.5867778", "0.58115923", "0.5802748", "0.5788898", "0.5780748", "0.57796454", "0.57710135", "0.57127166", "0.5681491", "0.5668328", "0.564786", "0.563659...
0.7486868
0
Generate hash for current migration path
Сгенерировать хэш для текущего пути миграции
protected function hashPath() { return md5($this->migrationPath); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_path_hashed()\n\t\t{\n\t\t\treturn $this->get_path_hashed_dir().'/'.$this->get_path_hashed_name();\n\t\t}", "protected function calculatePathHash() {\n\t\t$this->pathHash = md5($this->path);\n\t}", "public function hash()\n {\n return $this->adapter->md5File($this->path);\n }",...
[ "0.69765836", "0.695178", "0.6688306", "0.6480811", "0.6440948", "0.64070004", "0.64070004", "0.63957745", "0.63957745", "0.63957745", "0.63957745", "0.636103", "0.6338258", "0.6331624", "0.63164294", "0.6314475", "0.62950337", "0.6236889", "0.62125367", "0.61916596", "0.6180...
0.8791147
0
Returns the dialog sessionStatus.
Возвращает статус сеанса диалога.
public function getSessionStatus() { return $this->m_sessionStatus; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function status()\n {\n return $this->doRequest('GET', 'check-connection-session', []);\n }", "public function getStatus(){\n $this->client->request('GET','/session/status');\n $status_message = $this->getJsonResponse();\n return $status_message;\n }", "public functi...
[ "0.6755714", "0.6629469", "0.64300543", "0.62765044", "0.6237474", "0.6164996", "0.60500365", "0.586023", "0.584592", "0.5806106", "0.5741029", "0.57281387", "0.57225794", "0.57084", "0.56746006", "0.56622976", "0.56453973", "0.56259495", "0.55980355", "0.5590447", "0.5587566...
0.75481623
0
Sets the dialog sessionStatus.
Устанавливает состояние диалога sessionStatus.
public function setSessionStatus($sessionStatus) { $this->m_sessionStatus = (int) $sessionStatus; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setSession(){\n if( $this->status === True ){\n $_SESSION['username'] = $this->username;\n $_SESSION['userlvl'] = $this->userlevel;\n $_SESSION['status'] = True;\n }else{\n $_SESSION['status'] = False;\n ...
[ "0.65591705", "0.59168744", "0.580946", "0.56641936", "0.5563331", "0.5529312", "0.5510274", "0.5510274", "0.5510274", "0.5510274", "0.5482481", "0.5472963", "0.54629326", "0.5416987", "0.54108334", "0.5389961", "0.53894174", "0.53737813", "0.53421664", "0.5300179", "0.529477...
0.70714647
0
Returns the modifier object.
Возвращает объект модификатора.
public function getModifierObject() { return $this->m_modifierObject; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getModifier()\n {\n return $this->modifier;\n }", "public function getModifier()\n {\n return $this->modifier;\n }", "public function getModifier()\n {\n return $this->modifier;\n }", "public function getModifier()\n {\n return $this->modifier;...
[ "0.7844944", "0.7844944", "0.7844944", "0.7844944", "0.65239847", "0.64102787", "0.6308154", "0.62657195", "0.61182296", "0.61169535", "0.61151177", "0.58153194", "0.57600176", "0.5730735", "0.55372363", "0.5500272", "0.5499557", "0.5429789", "0.5402081", "0.5402081", "0.5402...
0.86761206
0
Window options like the show effect etc. These options can be controlled by setting the special theme attribute 'dialog_window_options'. This attribute should contain a JavaScript object with the window options.
Опции окна, такие как эффект отображения и т.д. Эти опции можно управлять, установив специальный тематический атрибут 'dialog_window_options'. Этот атрибут должен содержать JavaScript-объект с опциями окна.
protected function getWindowOptions() { if (atkTheme::getInstance()->getAttribute('dialog_window_options', null) != null) return atkTheme::getInstance()->getAttribute('dialog_window_options'); else return '{}'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getWindowOptions()\r\n {\r\n $out = array();\r\n\r\n if (strlen($this->getChatHelper()->getWindowTitle()) > 0) {\r\n $out[] = \"\\$zopim.livechat.window.setTitle('\" . $this->jsQuoteEscape($this->getChatHelper()->getWindowTitle()) . \"')\";\r\n }\r\n if (st...
[ "0.68224084", "0.6032953", "0.59222394", "0.5597523", "0.5431269", "0.5303481", "0.5186674", "0.5164579", "0.51285607", "0.5128137", "0.5082583", "0.5064074", "0.5061662", "0.5024518", "0.501967", "0.5012225", "0.50048435", "0.4990241", "0.49746257", "0.4972169", "0.496528", ...
0.7713631
0
Returns JavaScript code to close the current ATK dialog.
Возвращает JavaScript-код для закрытия текущего диалога ATK.
public static function getCloseCall() { return 'ATK.Dialog.getCurrent().close();'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function closeWindow();", "public function closeWindow() {}", "public function formClose()\n {\n return $this->renderHtmlForm('CloseStub');\n }", "public function Close()\n {\n $this->CallJqUiMethod(\"close\");\n }", "public function close($value) {\n if (is_string($...
[ "0.6521162", "0.6513273", "0.6484126", "0.6367591", "0.614633", "0.614633", "0.6096971", "0.60674", "0.5935159", "0.5865009", "0.5865009", "0.578482", "0.57268304", "0.5696891", "0.5676671", "0.56630105", "0.56608003", "0.565294", "0.5588341", "0.55820495", "0.5578487", "0....
0.7787027
0
Get html of specified project's page.
Получить html страницы указанного проекта.
public function getPageHtml(Project $project, $name) { if ( ! $name) $name = 'index'; $projectPath = $this->getProjectPath($project); $name = Str::contains($name, '.html') ? $name : "$name.html"; $pagePath = "$projectPath/$name"; //if "index.html" does not exist, load firs...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHTML ( $page ) {\r\n $filename = \"../\" . $page . \".html\";\r\n\t\treturn file_get_contents ($filename);\r\n\t}", "public function get_page();", "function getPage($url){\n //use curl since we need to set a cookie\n $c = curl_init($url);\n curl_setopt($c, CURLOPT...
[ "0.7186726", "0.63824695", "0.62528825", "0.6185687", "0.61198807", "0.610967", "0.61089927", "0.6098824", "0.606182", "0.60383636", "0.60383636", "0.6030314", "0.6022234", "0.6021164", "0.5994181", "0.5918912", "0.58822346", "0.5874171", "0.58561474", "0.5852356", "0.5843015...
0.7260968
0
Add specified custom element css to the project.
Добавить указанный пользовательский элемент CSS в проект.
private function addCustomElementCss($projectPath, $customElementCss) { $path = "$projectPath/css/custom_elements.css"; try { $contents = $this->storage->get($path); } catch (FileNotFoundException $e) { $contents = ''; } //if this custom element css ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ft_hook_add_css() {}", "private function addCSS()\n {\n Filters::add('head', array($this, 'renderRevisionsCSS'));\n }", "function do_add_css(){\n\t\tglobal $jcf_included_assets;\n\t\t\n\t\tif( !empty($jcf_included_assets['styles'][get_class($this)]) )\n\t\t\treturn false;\n\t\t\n\t\tif( method_ex...
[ "0.68694884", "0.656519", "0.6559231", "0.6545687", "0.6507627", "0.63637835", "0.6275967", "0.6256419", "0.6256419", "0.62550735", "0.62541646", "0.62541646", "0.62541646", "0.62541646", "0.62541646", "0.62502956", "0.624257", "0.61855996", "0.6180068", "0.6175365", "0.61428...
0.72362965
0
Gets additional button class. Default is btnprimary.
Получает дополнительный класс кнопки. По умолчанию btnprimary.
public function getBtnClass() { return $this->btnClass; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _getButtonClass() {\n $classes = array();\n // Apply the button template\n $classes[] = $this->_getTemplateClass();\n // Position the button\n $classes[] = \"cloudiq-callme-position-\" . strtolower($this->_getFromConfig(\"button_position\"));\n return im...
[ "0.68703926", "0.64733166", "0.6217936", "0.6058086", "0.58048177", "0.57550883", "0.5751691", "0.57075965", "0.56367934", "0.5636093", "0.5616331", "0.56152356", "0.5607726", "0.5472727", "0.54441065", "0.5421978", "0.5412093", "0.5355465", "0.5317169", "0.52865326", "0.5280...
0.8022444
0
Creates a new Escaparate model. If creation is successful, the browser will be redirected to the 'view' page.
Создает новый модель Escaparate. Если создание успешно, браузер будет перенаправлен на страницу 'view'.
public function actionCreate() { $model = new Escaparate(); if ($model->load(Yii::$app->request->post()) && $model->save()) { return $this->redirect(['view', 'id' => $model->idNTC_Escaparate]); } else { return $this->render('create', [ 'model' => $mod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionCreate()\n {\n $model = new SasaranEs4();\n\n if ($model->load(Yii::$app->request->post())) {\n if ($model->save()){\n flash('success','Data Sasaran Eselon IV Berhasil Disimpan');\n return $this->redirect(['index']);\n }\n ...
[ "0.7339425", "0.6847229", "0.6816692", "0.6792754", "0.6716179", "0.6667782", "0.6657481", "0.66428393", "0.6635953", "0.66286135", "0.6618843", "0.6611539", "0.6609049", "0.66043925", "0.6593241", "0.659244", "0.6569723", "0.6558021", "0.6553181", "0.655046", "0.6539965", ...
0.84163535
0
Return the imap server.
Вернуть сервер imap.
public function getImapServer() { return $this->_session->getImapServer(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function get_server()\n\t{\n\t\treturn $this->m_server;\n\t}", "public function server()\r\n {\r\n return $this->server;\r\n }", "public function GetServer()\n {\n // phpcs:enable PSR1.Methods.CamelCapsMethodName.NotCamelCaps\n return $this->_my_server;\n }", "public ...
[ "0.719667", "0.71445215", "0.6969363", "0.6961559", "0.69523156", "0.6946168", "0.6946168", "0.68985784", "0.6873436", "0.67554337", "0.6645843", "0.66115946", "0.65760195", "0.6545468", "0.6528358", "0.6527075", "0.6454282", "0.64130497", "0.64102536", "0.6383386", "0.626407...
0.8039145
0