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
A duplicate of _drush_is_url() so this will work on 5.x
Дубликат _drush_is_url(), чтобы это работало в версии 5.x
function _drush_patchfile_is_url($url) { return parse_url($url, PHP_URL_SCHEME) !== NULL; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isDynamicUrl();", "function ts_fab_is_url( $string ) {\n\tif ( substr( $string, 0, 4 ) === 'http' ) {\n\t\treturn true;\n\t}\n\n\treturn false;\n}", "public function isUrl()\n {\n return filter_var($this->_value, FILTER_VALIDATE_URL);\n }", "public function isUri();", "function...
[ "0.7079474", "0.69728386", "0.68704957", "0.68679136", "0.6762373", "0.6717353", "0.66761035", "0.663998", "0.6584322", "0.65192837", "0.6515634", "0.6478177", "0.6474598", "0.64458287", "0.64400715", "0.6439094", "0.64242536", "0.6423767", "0.6409222", "0.6408295", "0.639816...
0.7566509
0
Copied from DrushMakeProject::applyPatches(). Sections commented out are code responsible for checksum verification and writing PATCHES.txt files.
Скопировано из DrushMakeProject::applyPatches(). Откомментированные разделы содержат код, отвечающий за проверку контрольных сумм и запись файлов PATCHES.txt.
function _drush_patchfile_project_apply_patches($project_name, array $patches, $project_directory) { if (empty($patches)) { return TRUE; } $patches_txt = ''; $local_patches = array(); foreach ($patches as $patch) { try { $patched = DrushPatchFileGit::applyPatch($project_directory, $patch); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function drush_patchfile_patch_apply_all() {\n $projects = drush_patchfile_get_patched_projects();\n\n if (empty($projects)) {\n return drush_print(dt('No patches found.'));\n }\n\n foreach ($projects as $project_name => $project_info) {\n drush_patchfile_patch_project($project_name);\n }\n}", "functi...
[ "0.69874215", "0.5981805", "0.5897451", "0.58078796", "0.57987845", "0.5709415", "0.54543686", "0.54254806", "0.5412665", "0.5355874", "0.53177994", "0.52555496", "0.52399623", "0.51953906", "0.5161988", "0.5147495", "0.5127121", "0.5103688", "0.5074511", "0.49746346", "0.492...
0.73434377
0
Import template Get builder content from target page and converts it to Muffin Builder items
Импортировать шаблон Получить содержимое строителя из целевой страницы и преобразовать его в элементы Muffin Builder
public function builder_template() { // function verifies the AJAX request, to prevent any processing of requests which are passed in by third-party sites or systems check_ajax_referer( 'mfn-builder-nonce', 'mfn-builder-nonce' ); $id = intval($_POST['mfn-items-import-template'], 10); if (! $id) { exit; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getImportContent() {\n $this->loadTemplatePart('content-import');\n }", "public static function importTpl()\n {\n extract(FeedPage::$var);\n?>\n<?php include(\"tpl/import.tpl.php\"); ?>\n<?php\n }", "public function prepareImportContent();", "public function getGatherco...
[ "0.6806864", "0.63028145", "0.62561166", "0.608718", "0.60393065", "0.5962312", "0.59119004", "0.5893618", "0.5840647", "0.5840647", "0.5807958", "0.5730544", "0.5726646", "0.5690901", "0.5686966", "0.5676501", "0.5670818", "0.565942", "0.56482816", "0.56306535", "0.5624592",...
0.7199012
0
returns whether it has next page
возвращает, имеет ли она следующую страницу
public function has_nextpage() { return $this->nextpage() <= $this->totalpages() ? true : false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function has_next()\n\t{\n\t\treturn $this->get_cur_page() < $this->get_total_pages();\n\t}", "private function isNextPage() {\n return isset($this->pages[$this->currentPageNumber + 1]);\n }", "public function has_next_page()\n {\n }", "public function has_next_page() {\n\t\t\t...
[ "0.8936941", "0.8740597", "0.8739033", "0.8659773", "0.85825634", "0.8365309", "0.82957286", "0.8043568", "0.7978716", "0.79753345", "0.79245144", "0.79003304", "0.788209", "0.77962065", "0.77620554", "0.76963216", "0.7647076", "0.7642188", "0.7606938", "0.7410506", "0.740236...
0.87610185
1
List all the issuers, ordered by the sortorder field
Перечислить всех эмитентов, отсортированных по полю sortorder
public static function get_all_issuers() { return issuer::get_records([], 'sortorder'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIssuers();", "public function get_issuers() {\n\t\treturn $this->issuers;\n\t}", "public function index()\n {\n $AvanceSorties = JWTAuth::parseToken()->toUser()->sorties;\n return AvanceSortieResource::collection($AvanceSorties);\n }", "public function indexAction(Reque...
[ "0.67265135", "0.58891827", "0.5805432", "0.5574922", "0.5477972", "0.5341889", "0.53256994", "0.52857286", "0.52702355", "0.5270006", "0.526756", "0.5202099", "0.5198508", "0.5186142", "0.5175083", "0.5137424", "0.51049024", "0.5069766", "0.5067677", "0.50318766", "0.5022783...
0.71883506
0
Get a single issuer by id.
Получить одного издавателя по идентификатору.
public static function get_issuer($id) { return new issuer($id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function delete_issuer($id) {\n require_capability('moodle/site:config', context_system::instance());\n $issuer = new issuer($id);\n\n $systemaccount = self::get_system_account($issuer);\n if ($systemaccount) {\n $systemaccount->delete();\n }\n $en...
[ "0.6483643", "0.64105964", "0.6097951", "0.6072843", "0.602036", "0.602036", "0.5994377", "0.5994377", "0.58962476", "0.58051234", "0.5783672", "0.5781801", "0.5690028", "0.5680398", "0.5680398", "0.5674758", "0.56687576", "0.56380725", "0.5627562", "0.5623325", "0.5623325", ...
0.8329329
0
Get a single endpoint by id.
Получить один конечный пункт по идентификатору.
public static function get_endpoint($id) { return new endpoint($id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getById(int $id): ?Endpoint\n {\n // Get a reference to the type of Endpoint calling this function.\n $class = get_called_class();\n\n // Instantiate an AnnotationReader for this class AND check for the important parameters.\n $annotations = new AnnotationReade...
[ "0.7533021", "0.7271988", "0.6952903", "0.6823099", "0.66871196", "0.66090316", "0.6579993", "0.65045995", "0.65045995", "0.65045995", "0.65045995", "0.65045995", "0.65045995", "0.65045995", "0.65045995", "0.65045995", "0.65045995", "0.65045995", "0.65045995", "0.65045995", "...
0.7812458
0
Get a single user field mapping by id.
Получить отображение одного поля пользователя по идентификатору.
public static function get_user_field_mapping($id) { return new user_field_mapping($id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFieldById($id)\n {\n foreach ($this->fields as $field) {\n if ($field->getId() == $id) {\n return $field;\n }\n }\n\n return null;\n }", "function auth_getUserInfo($id)\n {\n $auth = _cfg('auth');\n $table = db_ta...
[ "0.6860493", "0.68421006", "0.6798183", "0.67311925", "0.6681268", "0.6639144", "0.66272396", "0.6621364", "0.6595702", "0.6572542", "0.65391326", "0.65036273", "0.6493278", "0.641477", "0.640219", "0.6374397", "0.6371932", "0.63706744", "0.63445", "0.6304223", "0.6297516", ...
0.7919918
0
Get the full list of system scopes required by an oauth issuer. This includes the list required for login as well as any scopes injected by the oauth2_system_scopes callback in plugins.
Получите полный список системных областей, требуемых oauth-провайдером. Это включает список, необходимый для входа, а также любые области, введенные обратным вызовом oauth2_system_scopes в плагинах.
public static function get_system_scopes_for_issuer($issuer) { $scopes = $issuer->get('loginscopesoffline'); $pluginsfunction = get_plugins_with_function('oauth2_system_scopes', 'lib.php'); foreach ($pluginsfunction as $plugintype => $plugins) { foreach ($plugins as $pluginfunction)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSystemSupportedScopes()\n\t{\n\t\treturn array(\n\t\t\tself::SCOPE_READ,\n\t\t\tself::SCOPE_POST,\n\t\t\tself::SCOPE_MANAGE_ACCOUNT_SETTINGS,\n\t\t\tself::SCOPE_PARTICIPATE_IN_CONVERSATIONS,\n\t\t\tself::SCOPE_MANAGE_SYSTEM,\n\t\t);\n\t}", "public function getOauthScopes()\n {\n retu...
[ "0.74298537", "0.6855731", "0.6593679", "0.65320975", "0.65320975", "0.65320975", "0.65100867", "0.64720017", "0.63859195", "0.63779825", "0.63192344", "0.62607306", "0.62607306", "0.6252101", "0.6235816", "0.62285346", "0.62285346", "0.62285346", "0.6199616", "0.6173351", "0...
0.7891325
0
If the discovery endpoint exists for this issuer, try and determine the list of valid endpoints.
Если для этого издателя существует конечная точка открытия, попытайтесь определить список допустимых конечных точек.
protected static function discover_endpoints($issuer) { $curl = new curl(); if (empty($issuer->get('baseurl'))) { return 0; } $url = $issuer->get_endpoint_url('discovery'); if (!$url) { $url = $issuer->get('baseurl') . '/.well-known/openid-configuration'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function checkIfEndpointsSet()\n {\n if(empty($this->apiEndpoint)) {\n $this->apiEndpoint = $this->baseApiEndpoint . '/' . $this->apiVersionEndpoint;\n }\n\n if(empty($this->tokenEndpoint)) {\n $this->tokenEndpoint = $this->baseApiEndpoint . '/' . $this->apiOau...
[ "0.580309", "0.5382767", "0.5245888", "0.51940024", "0.50912225", "0.49499622", "0.48805022", "0.48627156", "0.48180574", "0.48127663", "0.47029683", "0.4659502", "0.464146", "0.46377733", "0.463374", "0.46196198", "0.46093374", "0.46074477", "0.45881742", "0.4587935", "0.454...
0.70461136
0
Disable an identity issuer. Requires moodle/site:config capability at the system context.
Отключить идентификатор издателя. Требуется право moodle/site:config в контексте системы.
public static function disable_issuer($id) { require_capability('moodle/site:config', context_system::instance()); $issuer = new issuer($id); $issuer->set('enabled', 0); return $issuer->update(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function disableCredential($id): void;", "public function setIssuer(?SslCertificateEntity $value): void {\n $this->getBackingStore()->set('issuer', $value);\n }", "public function setCertificateIssuer(?string $value): void {\n $this->getBackingStore()->set('certificateIssuer', $value);\...
[ "0.5761219", "0.53684014", "0.5291934", "0.5235677", "0.5202139", "0.51788914", "0.51788914", "0.51788914", "0.5177563", "0.5141182", "0.51155066", "0.50796884", "0.5051984", "0.5032175", "0.5028517", "0.5028269", "0.5003167", "0.5003167", "0.5002678", "0.49841598", "0.498367...
0.7040459
0
Delete an endpoint. Requires moodle/site:config capability at the system context.
Удалить конечную точку. Требуется право moodle/site:config в контексте системы.
public static function delete_endpoint($id) { require_capability('moodle/site:config', context_system::instance()); $endpoint = new endpoint($id); // Will throw exceptions on validation failures. return $endpoint->delete(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function drush_pm_signup_signup_endpoint_delete($name) {\n $endpoint = SignupEndpoint::loadByName($name);\n if ($endpoint !== FALSE) {\n $endpoint->delete();\n drush_log(dt(\"Signup endpoint @name deleted\", array('@name' => $name)), 'ok');\n }\n else {\n drush_set_error(dt(\"Signup endpoint @name doe...
[ "0.70786315", "0.64216954", "0.61732394", "0.6097921", "0.6097921", "0.5979872", "0.5880338", "0.58753383", "0.5831278", "0.5827518", "0.5770944", "0.5765975", "0.5762882", "0.5707514", "0.5701074", "0.5700709", "0.5700391", "0.5700391", "0.5699383", "0.5651228", "0.56475884"...
0.76349413
0
Delete a user_field_mapping. Requires moodle/site:config capability at the system context.
Удалить пользовательское отображение полей. Требуется право moodle/site:config в контексте системы.
public static function delete_user_field_mapping($id) { require_capability('moodle/site:config', context_system::instance()); $userfieldmapping = new user_field_mapping($id); // Will throw exceptions on validation failures. return $userfieldmapping->delete(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function delete_profile_field()\n {\n if ( ! Session::access('can_admin_members'))\n {\n return Cp::unauthorizedAccess();\n }\n\n if ( ! $m_field_id = Request::input('m_field_id'))\n {\n return false;\n }\n\n $query = DB::table('member_field...
[ "0.57936317", "0.5790631", "0.5781794", "0.57738096", "0.57554454", "0.5499838", "0.5497293", "0.5369598", "0.5332829", "0.5266061", "0.5258298", "0.52084625", "0.5202027", "0.5185627", "0.5174215", "0.5174215", "0.5169487", "0.51654077", "0.51572347", "0.51487297", "0.514684...
0.74968606
0
This will essentially use the status code and message to output header information and echo the content.
Это в основном будет использовать код состояния и сообщение для вывода информации о заголовке и отражения содержимого.
public function outputStatus() { if ($this->responseStatus instanceof ResponseStatus) { header(sprintf('HTTP/1.1 %d %s', $this->responseStatus->httpStatusCode, $this->responseStatus->httpStatusMessage)); } echo $this->body; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function output() {\n if (isset($this->status)) {\n $this->send_header(sprintf('HTTP/1.1 %d %s',\n $this->status, $this->reason),\n TRUE,\n $this->status);\n }\n\n foreach ($this->headers as $k => $v) {\n $this->send...
[ "0.78145516", "0.7292516", "0.7207643", "0.7168273", "0.675135", "0.65833575", "0.6572499", "0.65226984", "0.6488864", "0.64624965", "0.6448867", "0.64432067", "0.64404213", "0.64139885", "0.63922143", "0.6370337", "0.6360767", "0.63475734", "0.6346635", "0.6313648", "0.63011...
0.788989
0
Get the closest opening hours interval for the given time (including it or in the past).
Получить ближайший интервал рабочих часов для заданного времени (включая его самое или в прошлом).
public function getClosestPreviousOpeningHoursInterval(Time $time): TimeIntervalInterface|null;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getClosestNextOpeningHoursInterval(Time $time): TimeIntervalInterface|null;", "public function getNextOpeningHoursInterval(Time $time): TimeIntervalInterface|null;", "public function getPreviousOpeningHoursInterval(Time $time): TimeIntervalInterface|null;", "public function hourRange($opening...
[ "0.8041251", "0.7648226", "0.75989366", "0.61816406", "0.61129093", "0.5975208", "0.57735664", "0.56999856", "0.55135566", "0.54543054", "0.5447628", "0.542377", "0.54020905", "0.5350079", "0.53176343", "0.5296439", "0.5214074", "0.51508766", "0.5098515", "0.50766253", "0.501...
0.8180773
0
Get the closest opening hours interval for the given time (including it or in the future).
Получить ближайший интервал времени работы, включающий заданное время (или в будущем).
public function getClosestNextOpeningHoursInterval(Time $time): TimeIntervalInterface|null;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getClosestPreviousOpeningHoursInterval(Time $time): TimeIntervalInterface|null;", "public function getNextOpeningHoursInterval(Time $time): TimeIntervalInterface|null;", "public function getPreviousOpeningHoursInterval(Time $time): TimeIntervalInterface|null;", "public function hourRange($ope...
[ "0.81727225", "0.77120346", "0.7592347", "0.6200631", "0.61570805", "0.5988872", "0.57456636", "0.57345957", "0.549196", "0.544931", "0.54123855", "0.53997535", "0.5370095", "0.53557044", "0.53135663", "0.5299365", "0.52578425", "0.515213", "0.51100826", "0.5068169", "0.50435...
0.8094944
1
Get the previous opening hours interval excluding current (if inside of given time).
Получите предыдущий интервал времени открытия, исключая текущий (если он находится в заданном времени).
public function getPreviousOpeningHoursInterval(Time $time): TimeIntervalInterface|null;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getClosestPreviousOpeningHoursInterval(Time $time): TimeIntervalInterface|null;", "public function getNextOpeningHoursInterval(Time $time): TimeIntervalInterface|null;", "public function getClosestNextOpeningHoursInterval(Time $time): TimeIntervalInterface|null;", "public function overtimeHou...
[ "0.7656917", "0.69562614", "0.6545991", "0.6233849", "0.60100156", "0.5830501", "0.56682587", "0.55836886", "0.5578347", "0.55209386", "0.54640305", "0.5459369", "0.53997934", "0.5398458", "0.53521657", "0.52578866", "0.5250634", "0.5238816", "0.5188785", "0.5163214", "0.5112...
0.80791575
0
Get the next opening hours interval excluding current (if inside of given time).
Получить следующий интервал времени работы, исключая текущий (если текущее время находится внутри заданного времени).
public function getNextOpeningHoursInterval(Time $time): TimeIntervalInterface|null;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getClosestNextOpeningHoursInterval(Time $time): TimeIntervalInterface|null;", "public function getPreviousOpeningHoursInterval(Time $time): TimeIntervalInterface|null;", "public function getClosestPreviousOpeningHoursInterval(Time $time): TimeIntervalInterface|null;", "public function overtim...
[ "0.77816015", "0.74055237", "0.73198545", "0.6483816", "0.61628187", "0.5909107", "0.56007546", "0.55857664", "0.5582857", "0.5558235", "0.5511487", "0.54717577", "0.54329884", "0.5355739", "0.5341884", "0.53409964", "0.5255984", "0.5233398", "0.5213296", "0.5175442", "0.5149...
0.80998784
0
Checks if the given time is within opening hours of the day.
Проверяет, находится ли заданное время в пределах времени работы дня.
public function isWithinOpeningHours(Time $time): bool;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isOnTime($time)\n {\n \t$timeFormats = array('H', 'H:i', 'H:i:s');\n \t$format = isset($timeFormats[substr_count($time, ':')])\n ? $timeFormats[substr_count($time, ':')]\n : 'H:i:s';\n\n \treturn $this->get($format) == $time;\n }", "pri...
[ "0.71271604", "0.6885664", "0.6703159", "0.6552634", "0.6502552", "0.6347869", "0.6343221", "0.6304156", "0.6293782", "0.616461", "0.6159683", "0.61354905", "0.61160904", "0.60459757", "0.6036238", "0.6003387", "0.59917015", "0.59673744", "0.59266484", "0.59013534", "0.588744...
0.89948785
0
Returns a new area chart
Возвращает новый график площади
public function newAreaChart() { return $this->newChart('area'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newAreaRangeChart()\n {\n return $this->newChart('arearange');\n }", "public function newAreaSplineChart()\n {\n return $this->newChart('areaspline');\n }", "public function newAreaSplineRangeChart()\n {\n return $this->newChart('areasplinerange');\n }", ...
[ "0.8154423", "0.7840667", "0.77089006", "0.648089", "0.6467391", "0.61730945", "0.6156492", "0.60821915", "0.6068354", "0.60452205", "0.60452205", "0.60452205", "0.59871125", "0.59557676", "0.5931673", "0.58471096", "0.577716", "0.57642686", "0.575783", "0.57313865", "0.56623...
0.8866945
0
Returns a new area range chart
Возвращает новый график диапазона площадей
public function newAreaRangeChart() { return $this->newChart('arearange'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newAreaSplineRangeChart()\n {\n return $this->newChart('areasplinerange');\n }", "public function newAreaChart()\n {\n return $this->newChart('area');\n }", "public function newAreaSplineChart()\n {\n return $this->newChart('areaspline');\n }", "function...
[ "0.84548676", "0.7829387", "0.70213926", "0.63520026", "0.6334961", "0.62698156", "0.5894122", "0.58170533", "0.57730114", "0.574312", "0.5736435", "0.57180905", "0.5716369", "0.5716369", "0.5716369", "0.5684923", "0.5684776", "0.5566271", "0.5562419", "0.55599433", "0.555914...
0.8761612
0
Returns a new area spline chart
Возвращает новый график площади с плоскими линиями
public function newAreaSplineChart() { return $this->newChart('areaspline'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newAreaSplineRangeChart()\n {\n return $this->newChart('areasplinerange');\n }", "public function newAreaChart()\n {\n return $this->newChart('area');\n }", "public function newAreaRangeChart()\n {\n return $this->newChart('arearange');\n }", "public fun...
[ "0.8043077", "0.74373716", "0.7010235", "0.66553384", "0.5561898", "0.55221957", "0.5220506", "0.51519763", "0.5105435", "0.5062421", "0.49743935", "0.49621156", "0.49290696", "0.48709852", "0.48631403", "0.4855865", "0.48458317", "0.48453322", "0.48335645", "0.483137", "0.48...
0.85991055
0
Returns a new area spline range chart
Возвращает новый график диапазона сплайновой области
public function newAreaSplineRangeChart() { return $this->newChart('areasplinerange'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newAreaRangeChart()\n {\n return $this->newChart('arearange');\n }", "public function newAreaSplineChart()\n {\n return $this->newChart('areaspline');\n }", "public function newAreaChart()\n {\n return $this->newChart('area');\n }", "public function newS...
[ "0.7802836", "0.7767248", "0.6939156", "0.5821508", "0.5817462", "0.5758054", "0.531323", "0.5289051", "0.52822584", "0.5201237", "0.5184788", "0.5115673", "0.5089992", "0.5080566", "0.5066675", "0.5035382", "0.5020258", "0.49548918", "0.49111918", "0.49031466", "0.48752707",...
0.86611325
0
Returns a new bar chart
Возвращает новый график в виде столбчатой диаграммы
public function newBarChart() { return $this->newChart('bar'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct()\n {\n parent::__construct(ChartTypes::BAR);\n }", "public function CreateBarChart($data,$category, $value, $color, $title)\n {\n try {\n if(!is_array($data))\n throw new CustomException();\n\n echo \"<html>\n ...
[ "0.6755801", "0.67103714", "0.66254824", "0.64004683", "0.62871826", "0.6257461", "0.6229731", "0.61090654", "0.610658", "0.6071651", "0.60671383", "0.6015982", "0.5973168", "0.5951094", "0.59393644", "0.5934757", "0.58869195", "0.58757716", "0.58076835", "0.58000195", "0.572...
0.86755943
0
Returns a new column chart
Возвращает новый столбчатый график
public function newColumnChart() { return $this->newChart('column'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newColumnRangeChart()\n {\n return $this->newChart('columnrange');\n }", "private function createColumnChart( $dataTable, $chartID, $chartTitle, $chartLimit = 0 )\n {\n //This is where we create the chart and add the data to it.\n $chart = Lava::ColumnChart($chartID,...
[ "0.76961195", "0.6291404", "0.6290504", "0.61414254", "0.6128554", "0.6014452", "0.59839207", "0.59839207", "0.59839207", "0.59839207", "0.59839207", "0.59839207", "0.59839207", "0.59314376", "0.5840359", "0.580701", "0.57016367", "0.5687982", "0.56771696", "0.5671089", "0.56...
0.85850686
0
Returns a new column range chart
Возвращает новый столбчатый график диапазона столбцов
public function newColumnRangeChart() { return $this->newChart('columnrange'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newColumnChart()\n {\n return $this->newChart('column');\n }", "function excelColumnRange($lower, $upper) {\n\t\t$arr_range = array();\n\t\t++$upper;\n\t\tfor ($value = $lower; $value !== $upper; ++$value) {\n\t\t\t//echo $value.\" : \";\n\t\t\tarray_push($arr_range, $value);\n\t\t}\...
[ "0.6382173", "0.6129176", "0.6123313", "0.6077041", "0.5952657", "0.5741079", "0.5587098", "0.5496991", "0.5493381", "0.5454912", "0.5449889", "0.54454064", "0.54024476", "0.535501", "0.53449404", "0.53385746", "0.5334244", "0.53219944", "0.5283292", "0.5278826", "0.5274142",...
0.86576945
0
Returns a new line chart
Возвращает новый линейный график
public function newLineChart() { return $this->newChart('line'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newSplineChart()\n {\n return $this->newChart('spline');\n }", "public function newAreaSplineChart()\n {\n return $this->newChart('areaspline');\n }", "public function newAreaSplineRangeChart()\n {\n return $this->newChart('areasplinerange');\n }", "publ...
[ "0.6826279", "0.6500853", "0.6198573", "0.611935", "0.6105557", "0.60082924", "0.59367007", "0.5927602", "0.59129906", "0.5865264", "0.58084196", "0.5791251", "0.576458", "0.57168883", "0.57137305", "0.5658438", "0.56564057", "0.565072", "0.56404227", "0.5611734", "0.5564631"...
0.81634784
0
Returns a new pie chart
Возвращает новый круговой график
public function newPieChart() { return $this->newChart('pie'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function piechart($data, $label, $width, $img_file)\n{\n\n// true = show label, false = don't show label.\n$show_label = true;\n\n// true = show percentage, false = don't show percentage.\n$show_percent = true;\n\n// true = show text, false = don't show text.\n$show_text = true;\n\n// true = show parts, false = do...
[ "0.6458951", "0.64490557", "0.64420336", "0.64034814", "0.6319692", "0.63001484", "0.62948257", "0.6294761", "0.6263875", "0.62517333", "0.6180297", "0.6165994", "0.6136655", "0.6101303", "0.6081626", "0.60715854", "0.6017972", "0.60126066", "0.6005755", "0.5997458", "0.59855...
0.851877
0
Returns a new scatter chart
Возвращает новый график разброса
public function newScatterChart() { return $this->newChart('scatter'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getURL() {\n\n\t\t// this chart type is pretty dependent on having some data present to do much at all\n\t\tif (count($this->data) == 0) throw new Exception(\"No data present for scatter chart.\");\n\t\t\n\t\t// if either axis labels are absent then automatically generate them from the data\n\t\tif...
[ "0.63261056", "0.60889363", "0.583738", "0.5757608", "0.56911695", "0.56804544", "0.55682904", "0.55459297", "0.5447524", "0.54295003", "0.54056555", "0.5281039", "0.5228217", "0.52171344", "0.5195532", "0.5160532", "0.51590407", "0.51430684", "0.51180184", "0.51180184", "0.5...
0.84489673
0
Returns a new spline chart
Возвращает новый сплайн-график
public function newSplineChart() { return $this->newChart('spline'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newAreaSplineChart()\n {\n return $this->newChart('areaspline');\n }", "public function newAreaSplineRangeChart()\n {\n return $this->newChart('areasplinerange');\n }", "public function newScatterChart()\n {\n return $this->newChart('scatter');\n }", "pu...
[ "0.73171544", "0.6523523", "0.6239987", "0.59531", "0.5796406", "0.5490027", "0.5410526", "0.52575237", "0.49552855", "0.48978296", "0.48811713", "0.48655444", "0.48290932", "0.4827789", "0.481717", "0.48086986", "0.47745478", "0.47745237", "0.4773264", "0.47648022", "0.47632...
0.8848083
0
Returns a new chart, optionally setting the type property.
Возвращает новый график, необязательно устанавливая свойство типа.
public function newChart($type = null) { if(null === $type) { return Chart::create(); } return Chart::create() ->newChart() ->setType($type) ->getParent(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setChartType($type)\n\t{\n\t\tif (!in_array($type, array(self::LineChart, self::SplineChart))) {\n\t\t\tthrow new \\InvalidArgumentException(sprintf('Invalid chart type \"%s\"', $type));\n\t\t}\n\n\t\t$this->_chartType = $type;\n\n\t\treturn $this;\n\t}", "public function newPieChart()\n {\n ...
[ "0.71604866", "0.62037057", "0.60650754", "0.5963905", "0.59066606", "0.5826433", "0.5719891", "0.5666594", "0.55691326", "0.54747915", "0.5464078", "0.54262155", "0.54262155", "0.54194707", "0.54173803", "0.53880835", "0.53359485", "0.5299138", "0.52774787", "0.5264614", "0....
0.79709226
0
Returns a new response of type application/json with the merged option defined using option providers services.
Возвращает новый ответ типа application/json с объединенной опцией, определенной с использованием служб поставщиков опций.
public function getOptions() { $response = new Response(); $options = null === $this->optionsProvider ? array() : $this->optionsProvider->getOptions(); $response->setStatusCode(200); $response->setContent(empty($options) ? '{ }' : json_encode($options)); $response->headers->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function options()\n {\n $this->response->setStatusCode(200);\n $this->response->getHeaders()->addHeaderLine('Allow', implode($this->availableMethods));\n $this->response->getHeaders()->addHeaderLine('Content-Type', 'application/json');\n $data = array(\n 'api' ...
[ "0.65639085", "0.60225195", "0.59949625", "0.58334637", "0.57861257", "0.5749141", "0.5749141", "0.57104045", "0.5615455", "0.5591966", "0.5583218", "0.557547", "0.55706686", "0.5490943", "0.5411494", "0.5401347", "0.5379799", "0.53716785", "0.53594565", "0.5357873", "0.53138...
0.7019539
0
Set Default Pax Price
Установить стандартную цену проезда
public function setDefaultPaxPrice() { if (!$this->additionalprice) { $this->additionalprice = $this->transport ? 25 : $this->price; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setPrice($price, $taxPercentage = 25)\n {\n $this->taxPercentage = $taxPercentage;\n $this->taxA = $price / 100 * 100;\n $this->price = $price;\n }", "protected function priceUsedDefault()\n {\n $scope = (int)$this->scopeConfig->getValue(\n \\Magento\\Store\\Mo...
[ "0.6406064", "0.6358402", "0.62373775", "0.61359066", "0.61203474", "0.6055779", "0.602054", "0.5903829", "0.58900845", "0.58699644", "0.5850456", "0.5841023", "0.5839004", "0.5826379", "0.5817743", "0.57957745", "0.57873446", "0.5784988", "0.578437", "0.5758524", "0.575365",...
0.7780334
0
Get comments from file
Получить комментарии из файла
function get_file_comments_for_data($file) { $comments = array_filter( token_get_all(file_get_contents($file)), function($entry) { return $entry[0] == T_DOC_COMMENT; } ); // Return the comments in a string $comments_string = array_shift($comments); return $comments_string; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getFileComment()\n {\n $comments = array();\n array_push($comments, 'File for class ' . $this->getPackagedName());\n array_push($comments, '@package ' . Generator::getPackageName());\n if (count($this->getDocSubPackages())) {\n array_push($comments, '@subp...
[ "0.7366484", "0.67794997", "0.67661005", "0.672355", "0.64176637", "0.63482505", "0.634322", "0.63094455", "0.6298735", "0.6197754", "0.61921006", "0.61921006", "0.61921006", "0.61921006", "0.61921006", "0.61921006", "0.61441076", "0.6086137", "0.60731393", "0.60387856", "0.5...
0.79890615
0
Filter the query on the stamnaamcode column Example usage: $query>filterByStamnaamcode(1234); // WHERE stamnaamcode = 1234 $query>filterByStamnaamcode(array(12, 34)); // WHERE stamnaamcode IN (12, 34) $query>filterByStamnaamcode(array('min' => 12)); // WHERE stamnaamcode >= 12 $query>filterByStamnaamcode(array('max' =>...
Фильтрация запроса по столбцу stamnaamcode Пример использования: $query>filterByStamnaamcode(1234); // WHERE stamnaamcode = 1234 $query>filterByStamnaamcode(array(12, 34)); // WHERE stamnaamcode IN (12, 34) $query>filterByStamnaamcode(array('min' => 12)); // WHERE stamnaamcode >= 12 $query>filterByStamnaamcode(array('m...
public function filterByStamnaamcode($stamnaamcode = null, $comparison = null) { if (is_array($stamnaamcode)) { $useMinMax = false; if (isset($stamnaamcode['min'])) { $this->addUsingAlias(GsGeneriekeNamenPeer::STAMNAAMCODE, $stamnaamcode['min'], Criteria::GREATER_EQUA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByCode($code = null, $comparison = null)\n {\n if (is_array($code)) {\n $useMinMax = false;\n if (isset($code['min'])) {\n $this->addUsingAlias(UserTableMap::COL_CODE, $code['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n ...
[ "0.56644505", "0.52154356", "0.5186587", "0.51570123", "0.5143821", "0.5142133", "0.51175797", "0.5106271", "0.50736773", "0.50670373", "0.5044217", "0.5029679", "0.50037885", "0.49827856", "0.49803445", "0.49425802", "0.49368215", "0.49261725", "0.49237657", "0.49234167", "0...
0.7075576
0
Transform one PaperConfig object into a Array
Преобразовать один объект PaperConfig в массив
static function PaperConfigToArray($PaperConfig = null) { if ($PaperConfig === null) { return null; } else { $PaperArray = array(); $PaperArray['id'] = $PaperConfig->getId();...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function toArray()\n {\n \n return $this->getConfig();\n }", "public function getConfigArray() {}", "public function toArray(): array\n {\n $config = [];\n\n if ($this->config->has('key')) {\n $config['key'] = $this->getKey();\n } else {\n ...
[ "0.70427334", "0.68573153", "0.6746433", "0.670679", "0.6642666", "0.66262716", "0.6581695", "0.6567332", "0.64754283", "0.62073755", "0.616889", "0.61508024", "0.6132977", "0.6073503", "0.60618323", "0.60618323", "0.60616183", "0.60616183", "0.60616183", "0.60616183", "0.606...
0.7138818
0
Transform one Array object into a PaperConfig Object
Преобразовать один объект Array в объект PaperConfig
static function ArrayToPaperConfig($array = array()) { if ($array === null) { return null; } $PaperConfig = new PaperConfig($array['id'], $array['baptismCertX'], ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function PaperConfigToArray($PaperConfig = null)\r\n {\r\n if ($PaperConfig === null)\r\n {\r\n return null;\r\n }\r\n else\r\n {\r\n $PaperArray = array();\r\n\r\n $PaperArray['id'] ...
[ "0.6675603", "0.60167515", "0.57796323", "0.57640046", "0.5691358", "0.5619534", "0.5597822", "0.55675364", "0.5473765", "0.5456686", "0.54407555", "0.5426997", "0.53459764", "0.53375524", "0.5336445", "0.5238224", "0.5236002", "0.5231432", "0.52244294", "0.51636744", "0.5124...
0.7831738
0
Transform one Array object into a Message Object
Преобразовать один объект Array в объект Message
static function ArrayToMessage($array = array()) { if ($array === null) { return null; } $Message = new Message($array['id'], $array['contest'], $array['idUserFrom...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function toMessage(): array;", "public function getMessagefromArray($array){\n\t\tunset($array[0]);\n\t\treturn implode(' ', $array);\n\t}", "function projectmessages_to_soap($at_arr) {\n\tfor ($i=0; $i<count($at_arr); $i++) {\n\t\tif ($at_arr[$i]->isError()) {\n\t\t\t//skip if error\n\t\t} else {\n\t\t...
[ "0.6850963", "0.6604224", "0.63107204", "0.6289673", "0.6167903", "0.61204016", "0.60201484", "0.59383416", "0.5935168", "0.5931114", "0.59013766", "0.58258045", "0.5803847", "0.5731343", "0.5698491", "0.5697352", "0.5684807", "0.5676445", "0.5675495", "0.56473666", "0.563063...
0.74713457
0
Recover the last ID from the database of user
Восстановите последний ID из базы данных пользователя
static function getLastID() { $tableUser = DatabaseManager::getNameTable('TABLE_USER'); $query = "SELECT MAX(id) AS Max FROM $tableUser"; return DatabaseManager::singleFetchAssoc($query)["Max"]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function lastId();", "public function getLastId();", "public function getLastId();", "public static function getLastUserId()\n {\n $lastId = DB::table('users')\n ->select('id')\n ->orderBy('id','desc')\n ->limit(1)\n ->get();\n return $lastId;\n }", "function get_...
[ "0.8240246", "0.82169586", "0.82169586", "0.8191531", "0.80511886", "0.79282826", "0.78166336", "0.78156096", "0.77455395", "0.7726065", "0.764733", "0.76227874", "0.76227874", "0.76227874", "0.7619415", "0.760195", "0.7592318", "0.7592318", "0.7592318", "0.75900376", "0.7583...
0.83169925
0
Recover the last ID from the database of paper config
Восстановите последний ID из базы данных конфигурации бумаги
static function getLastIDPaperConfig() { $tablePaperConfig = DatabaseManager::getNameTable('TABLE_PAPER_CONFIG'); $query = "SELECT MAX(id) AS Max FROM $tablePaperConfig"; return DatabaseManager::singleFetchAssoc($query)["Max"]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_last_id()\n {\n // TODO: Implement get_last_id() method.\n }", "public static function get_last_id(){\r\n\t\treturn self::$last_id;\r\n\t}", "public function getLastId()\n {\n return $this->wallpaperMapper->getMaxId();\n }", "public function lastId();", "protected fun...
[ "0.73992723", "0.72787166", "0.7238443", "0.7216445", "0.7158743", "0.7157593", "0.7130474", "0.7130474", "0.70782465", "0.7066448", "0.70208657", "0.7011234", "0.6985777", "0.697796", "0.6972133", "0.69698334", "0.69570714", "0.6956784", "0.69560796", "0.6933753", "0.6933034...
0.8270238
0
Delete one PaperConfig from the database
Удалить один PaperConfig из базы данных
static function removePaperConfig($PaperConfig = null) { if ($PaperConfig === null) { return false; } else { $tablePaperConfig = DatabaseManager::getNameTable('TABLE_PAPER_CONFIG'); $id ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function deleteConfiguration(){\n Configuration::deleteByName($this->name.'_settings');\n }", "public function deleteConfig() {\n\t\tif(!$this->_configId) throw new Exception(lang('error_126'));\n\t\tif(!$this->db->query(\"DELETE FROM \"._WE_CREDITSYS_.\" WHERE config_id = ?\", array($this->_...
[ "0.69503236", "0.6896836", "0.6678915", "0.65612227", "0.65072536", "0.6428786", "0.6298503", "0.6274497", "0.6242371", "0.6219398", "0.6093108", "0.6082363", "0.6054992", "0.60367686", "0.6008991", "0.5954464", "0.59137404", "0.5892222", "0.5832687", "0.583073", "0.5820319",...
0.72197825
0
Update one PaperConfig in the database
Обновить один PaperConfig в базе данных
static function updatePaperConfig($PaperConfig = null) { if ($PaperConfig === null) { return false; } $tablePaperConfig = DatabaseManager::getNameTable('TABLE_PAPER_CONFIG'); $id = $PaperConfig->getId(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update_config($data,$id){\n\n $this->db->where('id', $id);\n $this->db->update('configuration', $data);\n\n }", "public function updateFromConfig()\n {\n // Begin transation\n $this->pdo->beginTransaction();\n\n // Update tables\n foreach ($this->sc...
[ "0.64609206", "0.625572", "0.6027684", "0.60084355", "0.59250206", "0.58564705", "0.5802285", "0.57736635", "0.5730811", "0.5713334", "0.5699021", "0.56646174", "0.56563526", "0.5650467", "0.5614694", "0.55990833", "0.5598348", "0.55732", "0.55514395", "0.554665", "0.5528199"...
0.7164309
0
Get the last page $_SESSION
Получить последнюю страницу $_SESSION
static function getLastPage() { return $_SESSION["last_page"]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getLastPageAddress()\n {\n return $_SESSION[self::LAST_PAGE_SESSION_NAME];\n }", "static public function getLastPage() {\n\t\treturn self::$last_page;\n\t}", "function set_last_page_url() {\r\n $page_root = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];\t\r\n i...
[ "0.74946356", "0.7155798", "0.70961016", "0.6877903", "0.68343794", "0.68194085", "0.6726679", "0.67156917", "0.6639646", "0.663616", "0.663616", "0.663616", "0.6627319", "0.657928", "0.6572056", "0.6535426", "0.6469598", "0.6468026", "0.6439093", "0.64118105", "0.64031106", ...
0.86851335
0
Get the current page $_SESSION
Получить текущую страницу $_SESSION
static function getCurrentPage() { return $_SESSION["curr_page"]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_session() {\n return $_SESSION['login'];\n }", "function getSession() {\n\t\treturn $this->getParam(self::PARAM_REQUEST_SESSION);\n\t}", "static public function getCurrentSession() {\n\t\t$result = '';\n\t\t\n\t\t$f = 'sessions/' . session_id() . '.txt';\t\n\t\n\t\tif (file_exists...
[ "0.70486647", "0.7013569", "0.7005131", "0.68901813", "0.6738916", "0.6738916", "0.6738916", "0.6724723", "0.65594316", "0.65433115", "0.65425277", "0.6541659", "0.65059894", "0.65053964", "0.64842325", "0.6441577", "0.6414082", "0.6394989", "0.6394709", "0.6388559", "0.63678...
0.7920004
0
Get the last query $_SESSION
Получить последний запрос $_SESSION
static function getLastQuery() { return $_SESSION["last_query"]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function viewCurrentSession(){\n\t\t\t$query = $this->connection()->prepare(\"SELECT MAX(name) as nam FROM sessionz\");\n\t\t\t$query->execute();\n\t\t\treturn $query->fetch();\n\t\t}", "static function getLastPage()\r\n {\r\n return $_SESSION[\"last_page\"];\r\n }", "function l...
[ "0.70889854", "0.683695", "0.68248", "0.67782986", "0.6688434", "0.66572034", "0.66496104", "0.6631247", "0.65912193", "0.6476129", "0.64679337", "0.6448293", "0.6407965", "0.64057815", "0.6356267", "0.63551164", "0.6309137", "0.62855476", "0.62408316", "0.6138714", "0.613232...
0.85115504
0
Change the last query on the database
Измените последний запрос к базе данных
static function setLastQuery($newQuery = "") { $_SESSION["last_query"] = $newQuery; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLastQuery(): Query;", "protected function resetLastQuery(): void\n {\n $this->lastQuery = null;\n }", "function lastQuery() {\n\t\treturn $this->lastQuery;\n\t}", "function last_query()\n\t{\n\t\treturn $this->db->last_query();\n\t}", "public function getLastQuery(){\n\t\tre...
[ "0.7124778", "0.7122812", "0.70131516", "0.68923724", "0.68890953", "0.68534476", "0.6806545", "0.67463595", "0.668182", "0.66597795", "0.6646851", "0.662492", "0.6588843", "0.65798354", "0.6572789", "0.65353936", "0.6456406", "0.642399", "0.6379888", "0.6299144", "0.62630606...
0.72675425
0
Obtem todos os grupo_area existentes na base de dados
Получает все существующие группу_area в базе данных
public function devolveTodosGruposAreas() { $this->load->database(); $queryResult = $this->db->select('Area.id as AreaID , Area.nome, Grupo.id as GrupoID, Grupo.tipo,') ->from('Grupo_Area') ->join('Area', 'Grupo_Area.area = Area.id') ->join('Grupo', 'Grupo_Area.grupo = Grupo.id') ->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_duo_areas() {\n \t\n }", "public static function obtenerAreas()\n {\n $consulta = \"SELECT * FROM areas\";\n try {\n // Preparar sentencia\n $comando = Database::getInstance()->getDb()->prepare($consulta);\n // Ejecutar sentencia preparada\n ...
[ "0.6261754", "0.5885938", "0.5655572", "0.5568126", "0.54514813", "0.5384329", "0.5366233", "0.53351605", "0.5333036", "0.53214365", "0.531993", "0.5307391", "0.5285341", "0.5283164", "0.528044", "0.526075", "0.5247423", "0.5204046", "0.5167545", "0.51514035", "0.51510334", ...
0.7125856
0
Alogrithm divied half of array Input : array of data, number of divied Output : data divided for number of section quarter or Half or One third return data divided
Алгоритм делит массив на половину массива Вход: массив данных, число делений Выход: данные, разделенные на число секций четверть или половина или одна третья возвращаются данные, разделенные
protected function divied($array,$n) { $data_divided = count($array) - count($array) % $n ; return $data_divided ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function array_divide($array)\n {\n return Arr::divide($array);\n }", "function array_divide($array)\n {\n return Arr::divide($array);\n }", "protected function division($array)\n {\n $all_data = [];\n \n foreach($array as $data){\n\n array_push($all...
[ "0.6459697", "0.6459697", "0.6260207", "0.6066869", "0.6010541", "0.5877655", "0.56885904", "0.55638677", "0.54760355", "0.53357476", "0.529925", "0.5245329", "0.52021784", "0.5193179", "0.51681525", "0.51294696", "0.51126754", "0.51126754", "0.51126754", "0.51126754", "0.511...
0.73407596
0
Calculates the real width of the pad
Вычисляет реальную ширину платинки
protected function calculatePadRealSize() { // initialize internal write buffer $this->internalWriteBuffer = array(); $this->internalWriteEnabled = true; if (null === $this->pad) { // creates a dummy pad if none has been created $this->pad = ncurses_newpad(1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getWidth();", "public function getWidth();", "public function getWidth();", "public function getWidth();", "function getWidth();", "public function getWidth() {}", "public function getWidth() {}", "public function getWidth() {}", "public function getWidth() {}", "public function g...
[ "0.7134846", "0.7134846", "0.7134846", "0.7134846", "0.6884598", "0.68820274", "0.68820274", "0.68820274", "0.68820274", "0.68820274", "0.68820274", "0.68820274", "0.68788964", "0.6791553", "0.6697229", "0.6695955", "0.6575805", "0.6479476", "0.6476451", "0.6418398", "0.64080...
0.74057174
0
Creates the ncurses pad. If the pad already exists, it is deleted and recreated.
Создает ncurses pad. Если pad уже существует, он удаляется и пересоздается.
protected function createPad() { if (null !== $this->pad) { ncurses_delwin($this->pad); } elseif (null === $this->padRealWidth) { $this->calculatePadRealSize(); } $globalWidth = null; $globalHeight = null; ncurses_getmaxyx(STDSCR, $global...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create_group_pad($epgroupid, $padname, $text = null) {\n return 'g.' . random_string(20).'$'.$padname;\n }", "public static function pad()\n {\n return new CropMode(CropMode::PAD);\n }", "public static function fillPad()\n {\n return new CropMode(CropMode::FILL_...
[ "0.5765179", "0.5713109", "0.57107466", "0.5021399", "0.49525678", "0.4871943", "0.48487118", "0.48240513", "0.47968546", "0.4795615", "0.47877628", "0.47781926", "0.47781926", "0.47781926", "0.47781926", "0.47252163", "0.47222877", "0.46947247", "0.46930996", "0.46831745", "...
0.80528593
0
Prints a text. The text may contain color tags like ">" where "4" is the color number as declared by the VarDumpNcurses::COLOR_ constants.
Выводит текст. Текст может содержать цветовые метки вида ">" где "4" — это номер цвета, объявленный константами VarDumpNcurses::COLOR_.
protected function printText($text) { // search for color tags $matches = array(); $pattern = "#<<[0-9]+>>#"; preg_match_all($pattern, $text, $matches); $matches = $matches[0]; $text = preg_split($pattern, $text); $text = array_filter($te...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function colorPrint($color, $text) {\n print $color . $text . self::WHITE . \"\\n\";\n }", "protected function printRawText($text, $color = VarDumpNcurses::COLOR_DEFAULT)\n {\n if ($this->internalWriteEnabled) {\n return $this->printRawTextInternal($text);\n }\n\n ...
[ "0.7580388", "0.6834364", "0.6671104", "0.65505826", "0.6289695", "0.6251879", "0.62289494", "0.62093824", "0.6139605", "0.61349446", "0.6051673", "0.6030393", "0.60020876", "0.59672004", "0.59555674", "0.5921839", "0.5900086", "0.5895767", "0.5866283", "0.58600146", "0.58123...
0.7800986
0
Redirect to referer if it exists, else redirect to index
Перенаправить на referer, если он существует, иначе перенаправить на индекс
public function redirect_to_referrer() { if ( isset($_SERVER['HTTP_REFERER']) ) header("Location: " . $_SERVER["HTTP_REFERER"]); else header("Location: " . root_url('', true)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _returnToReferer() {\n\n return $this->redirect(\n $this->referer(\n array(\n 'action' => 'admin_index'\n )));\n }", "public function redirectReferer()\n\t{\n\t\t$referer = Request::server('HTTP_REFERER');\n\t\treturn Redire...
[ "0.72874814", "0.71902096", "0.7096532", "0.7022333", "0.68272054", "0.6766353", "0.6721869", "0.6718561", "0.6674357", "0.6635986", "0.6588902", "0.65342116", "0.65260804", "0.6483732", "0.64610946", "0.6413193", "0.6372667", "0.6372667", "0.6372667", "0.6364662", "0.6354409...
0.73241466
0
Maybe change cart item display price Used when rightpress_product_price_cart_item_product_display_price is not called
Возможно, изменить цену отображения товара в корзине. Используется, когда не вызывается rightpress_product_price_cart_item_product_display_price
public function maybe_change_cart_item_display_price_no_changes($display_price, $cart_item, $cart_item_key) { // Check if product is subscription product if (subscriptio_is_subscription_product($cart_item['data'])) { // Format cart item display price $display_price = RP_SUB...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cart_item_price( $item_price = \"\", $cart_item = \"\", $cart_item_key = \"\" ) {\n\n\t\tif ( ! isset( $cart_item['tmcartepo'] ) ) {\n\t\t\treturn $item_price;\n\t\t}\n\n\t\t// Get price to display\n\t\t$price = THEMECOMPLETE_EPO_CART()->get_price_for_cart( FALSE, $cart_item, \"\", NULL, 0, 1 );\n\...
[ "0.72087425", "0.7083272", "0.70241153", "0.6951309", "0.6699837", "0.6683595", "0.6615144", "0.6585093", "0.6552115", "0.6540725", "0.6503262", "0.64908165", "0.6475714", "0.6397124", "0.6370125", "0.6365556", "0.6237844", "0.6169555", "0.6108753", "0.60434836", "0.60369897"...
0.7522262
0
Run test loadPrimaryByRule method
Запустить тест метода loadPrimaryByRule
public function testLoadPrimaryByRule() { $this->resourceMock->expects($this->once())->method('loadPrimaryByRule'); $this->assertEquals($this->couponModel, $this->couponModel->loadPrimaryByRule(1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function loadDefaultTestConfigurationAndReturnRuleId()\n {\n /**\n * We assign the coupon to the loaded cart\n *\n * @var CartInterface $cart\n * @var ProductInterface $product\n * @var CartLineInterface $cartLine\n * @var CouponInterface $cou...
[ "0.5790565", "0.578769", "0.5641003", "0.5640967", "0.5519576", "0.551836", "0.54750735", "0.54750735", "0.54750735", "0.5374923", "0.5361582", "0.5290037", "0.5260147", "0.5252957", "0.52380353", "0.5198001", "0.51815397", "0.514029", "0.5105712", "0.5103458", "0.5052126", ...
0.75177044
0
Functions singkronisasi_login login proses sebelum akses api klola
Функции синхронизации входа в процесс перед доступом к API klola
public function singkronisasi_login(){ $url = env("KLOLA_BASE_URL")."/api/auth/login"; $header = array(); $param_body = [ "email"=> env("KLOLA_LOGIN_USER"), "password"=> env("KLOLA_LOGIN_PASSWORD") ]; $result_curl = Utils::curl_post($url, $header, $param_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function login(){\n \n }", "public function loginprofesor_post() //INICIAR SESION = http://localhost/foxweb/Api/login\n {\n $matricula = $this->post('matricula');\n $password = $this->post('password');\n $type = $this->post('type');\n\n $datauser = $this->ApiModel...
[ "0.7970268", "0.79132515", "0.7906512", "0.77850384", "0.77850384", "0.7588946", "0.7450161", "0.74237216", "0.7371879", "0.7363406", "0.7360389", "0.7360389", "0.7360389", "0.7355327", "0.7355327", "0.734231", "0.73275566", "0.73235214", "0.7311049", "0.73030674", "0.7301773...
0.84051776
0
getSellerField is used to show the field for assign seller.
getSellerField используется для отображения поля назначения продавца.
public function getSellerField() { $sellerId = $this->getProductSeller(); return [ 'arguments' => [ 'data' => [ 'config' => [ 'label' => __('Select Seller'), 'componentType' => Field::NAME, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSeller()\n {\n return $this->seller;\n }", "public function getSellerName()\n {\n return $this->seller_name;\n }", "public function getSellerId()\n {\n return $this->_fields['SellerId']['FieldValue'];\n }", "public function getSellerID()\n {\n ...
[ "0.7540638", "0.74049795", "0.73899233", "0.7200435", "0.717843", "0.70006645", "0.69049895", "0.6824583", "0.6802581", "0.6736094", "0.6670088", "0.6595666", "0.6559354", "0.6518493", "0.64865565", "0.64767253", "0.64597094", "0.64403164", "0.6411934", "0.64100546", "0.63756...
0.82016855
0
checkFieldStatus is used to check the allowed product to seller
checkFieldStatus используется для проверки разрешенного продукта для продавца
public function checkFieldStatus() { $helper = $this->helper; $product = $this->coreRegistry->registry('product'); $productType = $product->getTypeId(); $allowedsProducts = explode(',', $helper->getAllowedProductType()); if (in_array($productType, $allowedsProducts)) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function woffice_tf_check() {\n\t\t\n\t\t/* We get the data from the OPTIONS */\n\t\t$tf_username = fw_get_db_ext_settings_option('woffice-updater', 'tf_username');\n\t\t$tf_purchasecode = fw_get_db_ext_settings_option('woffice-updater', 'tf_purchasecode');\n\t\t\n\t\tif (empty($tf_username) || empty($tf_pu...
[ "0.5923097", "0.59217805", "0.58897173", "0.5855063", "0.5764778", "0.57465243", "0.569915", "0.56804687", "0.56017464", "0.5597931", "0.55881315", "0.55775243", "0.55747813", "0.5570874", "0.5568703", "0.5555661", "0.5531605", "0.55231124", "0.5516519", "0.5514866", "0.55081...
0.76207197
0
getProductSeller is used to get the seller id by the product id
getProductSeller используется для получения идентификатора продавца по идентификатору продукта
public function getProductSeller() { $product = $this->coreRegistry->registry('product'); $productId = $product->getId(); $sellerId = $this->helper->getSellerIdByProductId($productId); return $sellerId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSellerId()\n {\n return $this->seller_id;\n }", "public function getSellerId()\n {\n return $this->driver->seller_id;\n }", "public function getSellerID()\n {\n return $this->sellerID;\n }", "public function getSellerId()\n {\n return $this-...
[ "0.820623", "0.8093059", "0.7937116", "0.7862149", "0.7813438", "0.7790917", "0.7706028", "0.7467133", "0.7423315", "0.7170769", "0.708783", "0.70166194", "0.69180024", "0.68143356", "0.67619115", "0.67545134", "0.67510337", "0.67291003", "0.671609", "0.6678912", "0.6607211",...
0.8489004
0
/$kapitaal = 100000; $rentevoet = 0.08; $periode = 10; $result = array();
$kapitaal = 100000; $rentevoet = 0.08; $periode = 10; $result = array();
function berekening(){ static $kapitaal = 100000; $rentevoet = 0.08; $periode = 10; static $result = array(); static $jaren = 1; if ($jaren <= $periode) { $rente = floor($kapitaal*$rentevoet); $kapitaal = $kapitaal + $rente; $result[ ] = 'Na '.$jaren.' jaar heeft Hans '.$kapitaal.'€ op zijn rekeni...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getbanyak($field,$val1,$val2,$val3){\n $query = \"select * from tabungan\";\n $i=0;\n $nilai=array();\n $result=mysql_query($query) or die(mysql_error());\n while($list=mysql_fetch_array($result)){\n $x=$list[$field];\n $idtab=$list['id_tab'];\n \n i...
[ "0.6557578", "0.6505015", "0.64430475", "0.6340882", "0.6298914", "0.6251449", "0.6245165", "0.6243785", "0.6241973", "0.62210923", "0.6201785", "0.61938745", "0.61826617", "0.61605245", "0.6160087", "0.6158723", "0.61471653", "0.61162597", "0.6092631", "0.60712206", "0.60371...
0.7593251
0
Show the form for creating a new resource. When hiting the login route
Показать форму для создания нового ресурса. При обращении к маршруту входа
public function create() { return View::make('login.login'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n //Display Admin Login Form\n return view('admin.user.register');\n }", "public function formLogin() {\n $this->view->addForm();\n }", "public function create()\n\t{\n\t\treturn View::make('login');\n\t}", "public function create()\n {\n ret...
[ "0.7307053", "0.72973", "0.7260784", "0.7242048", "0.7199049", "0.7196289", "0.7196233", "0.71753496", "0.7163193", "0.7133614", "0.7133431", "0.7098135", "0.7097677", "0.70937264", "0.70667", "0.70667", "0.70667", "0.70667", "0.70667", "0.70667", "0.70667", "0.7064749", ...
0.73256725
0
/ this method returns a list of all date answer
// этот метод возвращает список всех дат ответа
public static function answerDate($array){ $tmp_array = []; foreach($array as $a){ $tmp_array[] = $a->getAnswer(); } return $tmp_array; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDateList()\n {\n $return = array();\n \n for (\n $i = strtotime($this->from_date); \n $i <= strtotime($this->to_date); \n $i = strtotime('+ 1 day', $i)\n )\n {\n $date = date('Y-m-d', $i);\n $weekday = date('w', $i);\n $weekend = (in_array($weekday, ...
[ "0.69869995", "0.6888402", "0.6771994", "0.66522926", "0.6626405", "0.65893126", "0.65710425", "0.65674055", "0.6531998", "0.6502062", "0.64992404", "0.64883095", "0.6456828", "0.64328194", "0.6423776", "0.6404495", "0.63985515", "0.6372208", "0.63519216", "0.6311024", "0.630...
0.7031192
0
/Two arrays are called similar if one can be obtained from another by swapping at most one pair of elements in one of the arrays. Given two arrays a and b, check whether they are similar.
Два массива называются похожими, если один можно получить из другого обменом не более одной пары элементов в одном из массивов. Даны два массива a и b, проверьте, являются ли они похожими.
function areSimilar($a, $b) { if($a==$b) return true; if(sizeof($a)!=sizeof($b)||array_sum($a)!=array_sum($b)) return false; $index1 = 0; $index2 = 0; $diff = 0; foreach($a as $key=>$var){ if($var!=$b[$key]){ $diff++; if($diff==1) $index1 = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function arraysAreSimilar($a, $b) {\n // if the indexes don't match, return immediately\n if (count(array_diff($a, $b)) > 0) {\n return false;\n }\n // we have identical indexes, and no unequal values\n return true;\n }", "function arrays_are_similar($a, $b) {\n\tif (count(array_...
[ "0.73448336", "0.7227234", "0.6926111", "0.6594275", "0.65652883", "0.625162", "0.62023306", "0.6147936", "0.6142801", "0.61145157", "0.61068493", "0.6047538", "0.604588", "0.59957874", "0.5938015", "0.59292006", "0.58523536", "0.5834444", "0.5829524", "0.5813079", "0.5790579...
0.730968
1
return a Matrix constructed from an SQL table with table_name name, if table is retrieved, and optionally composed of only cols columns.
вернуть матрицу, построенную из SQL-таблицы с именем table_name, если таблица получена, и необязательно состоящую только из колонок cols.
function table_to_matrix($table_name, ...$cols){ //Construct query string from input $c = ""; if (count($cols) == 0){ $c = "*"; } else { foreach ($cols as $col){ $c = $c.$col.", "; } $c = substr($c, 0, -2); } $query = sprintf("SELECT %s FROM %s", $c, $table_name); //Cache data from SQL database. //$d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract function get_columns($table);", "public function columns($table_name);", "public abstract function getColumns($table);", "public function tblQuery($sql) {\n if(count($this->arrErrors)) return;\n $arr = $this->arrQuery($sql);\n if(!is_array($arr)) return;\n if(!coun...
[ "0.5681763", "0.56622994", "0.5535584", "0.5487283", "0.54293686", "0.5427482", "0.53630817", "0.5327139", "0.5248301", "0.51870966", "0.5181272", "0.5138208", "0.5126539", "0.5120611", "0.5120153", "0.5081783", "0.5071847", "0.5071421", "0.5063264", "0.5059173", "0.5055708",...
0.7601124
0
Custom clean the cache of com_projectfork and projectfork modules
Чистка кэша модулей com_projectfork и projectfork
protected function cleanCache() { parent::cleanCache('com_projectfork'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function cleanCache()\n {\n parent::cleanCache('com_projectfork');\n }", "public function cleanComponentCache() {\r\n\t\t$cache =& JFactory::getCache('com_hwdphotoshare');\r\n\t\t$cache->clean('com_hwdphotoshare');\r\n }", "function cleanComponentCache() {\r\n\t\t$cache = & JFactory::...
[ "0.8493359", "0.7192995", "0.6858384", "0.6713889", "0.6655684", "0.66112787", "0.6578742", "0.6494086", "0.6461564", "0.64246553", "0.6396521", "0.6377774", "0.6377487", "0.63720334", "0.63700175", "0.63629735", "0.63535345", "0.63363814", "0.6274574", "0.6259603", "0.622259...
0.8373114
1
Return post share URL
Вернуть URL-адрес для поделки поста
function bimber_get_share_url( $post = 0 ) { $post = get_post( $post ); if ( bimber_shares_use_shortlinks() ) { $url = wp_get_shortlink( $post ); } else { $url = get_permalink( $post ); } return $url; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getShareUrl($post)\n {\n $postUrl = get_permalink($post);\n $postTitle = get_the_title($post);\n $twitterUrl = sprintf('https://twitter.com/intent/tweet?text=%2$s&url=%1$s', $postUrl, $postTitle);\n\n return $twitterUrl;\n }", "public function GetShareServiceUrl(...
[ "0.7656391", "0.72936136", "0.7265815", "0.7201054", "0.7192089", "0.71538633", "0.71023357", "0.6970383", "0.696774", "0.69671905", "0.6958968", "0.6916191", "0.68178046", "0.67954713", "0.6778204", "0.67088383", "0.6629755", "0.66276705", "0.6592361", "0.658923", "0.6534757...
0.8133001
0
Check whether the Microshare are enabled
Проверьте, включены ли Microshare
function bimber_microshares_enabled() { if ( ! bimber_shares_enabled() ) { return false; } $positions = bimber_get_theme_option( 'shares', 'positions' ); // Option not set, use legacy. if ( false === $positions ) { $theme_options = get_option( bimber_get_theme_id() ); $legacy_value = ! empty( $theme_optio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getSharingEnabled();", "function the_champ_social_sharing_enabled(){\r\n\tglobal $theChampSharingOptions;\r\n\tif(isset($theChampSharingOptions['enable']) && $theChampSharingOptions['enable'] == 1){\r\n\t\treturn true;\r\n\t}else{\r\n\t\treturn false;\r\n\t}\r\n}", "public function isEnabledInSystem()...
[ "0.6901804", "0.6865337", "0.66915596", "0.6669128", "0.66235805", "0.6562903", "0.65043527", "0.6466898", "0.6408655", "0.6401728", "0.6388206", "0.6329991", "0.63118416", "0.63100666", "0.62715054", "0.62649864", "0.62531734", "0.6251449", "0.6243834", "0.6236998", "0.62346...
0.71055585
0
Performs sync operation Queries Salesforce based on the configured SOQL. For each Salesforce Object returned, a new SyncObject is configured and the appropriate sync operation is performed.
Выполняет синхронизацию, запрашивая Salesforce на основе настроенной SOQL. Для каждого возвращаемого Salesforce объекта настраивается новый SyncObject и выполняется соответствующая операция синхронизации.
public function syncContacts() { // Pulls the SOQL from database.php config $sforce = $this->getDataSource(); $SOQL = $sforce->getConfigSOQL(); $done = false; $queryResult = $this->query($SOQL); $syncResults = array( 'create' => array(), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function performSyncOperation() {\n switch ($this->syncOperation) {\n case 'create':\n // Sets up the data array\n $data['LdapObject'] = $this->stagingData;\n $dn = 'uid' . '=' . $this->stagingData['uid'] . ',' . $this->LdapObject->getLdapContex...
[ "0.6659182", "0.62705904", "0.5833334", "0.57480454", "0.55460185", "0.5484059", "0.54778564", "0.5408504", "0.5390284", "0.5378504", "0.5206505", "0.5192529", "0.5192529", "0.5169923", "0.51275957", "0.51189154", "0.50992316", "0.5094164", "0.5066902", "0.5050422", "0.504613...
0.7030898
0
Batched query of Salesforce data Provided for basic data retrival, given some SOQL. This method will efficiently retrieve data from Salesforce (in batches) and returns a complete array of the recordset. If further operations are being made on each record, it will not be efficient to simply use the output of this method...
Пакетный запрос данных Salesforce. Предназначен для базовой загрузки данных, при наличии некоторого SOQL. Этот метод эффективно извлекает данные из Salesforce (в пакетах) и возвращает полный массив набора записей. Если над каждым записью предполагаются дальнейшие операции, просто использование выходных данных этого мет...
public function queryBatch($SOQL = NULL) { $resultSet = array(); $done = false; $queryResult = $this->query($SOQL); if ($queryResult->size > 0) { while (!$done) { foreach ($queryResult->records as $record) { $sObject = new SObject($record...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getAllSalesforceQueryRecordsAsync( $query ) {\n return salesforceAPIGetAsync( 'query/', array('q' => $query) )->then(\n function( $response ) {\n $records = $response->records;\n return getNextRecordsAsync( $response, $records );\n }\n );\n}", "function getSFInf...
[ "0.63851094", "0.628441", "0.60665894", "0.60338223", "0.5924776", "0.5873688", "0.5839238", "0.5806914", "0.5786306", "0.57560176", "0.5751357", "0.5737926", "0.5728493", "0.5666016", "0.56474954", "0.5635645", "0.55672616", "0.55649763", "0.5539908", "0.55378735", "0.551873...
0.754256
0
Scrape data from a web page.
Собирать данные с веб-страницы.
abstract public function scrape();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getDataByScrapeUrl()\n {\n return file_get_contents($this->url);\n }", "function scrape() \n {\n\t\t$index = $this->curl_index();\n\t\t$check = preg_match('/id\\=\\\"\\_\\_VIEWSTATE\\\"\\svalue\\=\\\"([^\"]*)\"/', $index, $match); \n\t\tif ($check)\n\t\t{\n\t\t\t$vs = $mat...
[ "0.6638168", "0.6512786", "0.6405079", "0.62996686", "0.61782664", "0.61454713", "0.6005765", "0.59309596", "0.59210306", "0.59178394", "0.5910885", "0.5859976", "0.58251953", "0.58194584", "0.57951546", "0.5780179", "0.57340765", "0.5731614", "0.57294416", "0.5670864", "0.56...
0.7366613
0
Get the document provider of the scraper.
Получите провайдера документа скрапера.
public function getDocumentProvider() { return $this->documentProvider; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocument() {\n\t\treturn phpQuery::getDocument($this->getDocumentID());\n\t}", "public function getDocument() {\n\t\treturn phpQuery::getDocument($this->getDocumentID());\n\t}", "public function getDocument() {}", "public function getDocument() {}", "public function getDocument() {}", ...
[ "0.65729463", "0.65729463", "0.6531017", "0.6531017", "0.6531017", "0.6531017", "0.65308976", "0.65308976", "0.65308976", "0.65308976", "0.65308976", "0.65308976", "0.65308976", "0.65308976", "0.65308976", "0.65308976", "0.6446767", "0.6406166", "0.6382245", "0.63685054", "0....
0.8404488
0
Create a new DomCrawler.
Создайте новый DomCrawler.
public function newCrawler() { return new Crawler; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function create(): CrawlerInterface;", "public function getCrawler($html) {\n\t\treturn new Crawler($html);\t\n\t}", "public function getCrawler()\r\n {\r\n if ($this->crawler == null) {\r\n $url = $this->request->getUrl();\r\n $html = file_get_contents($url);\r\n\...
[ "0.76130754", "0.71481335", "0.6688118", "0.6639895", "0.6621899", "0.6347099", "0.6223398", "0.61975086", "0.5930975", "0.5915694", "0.58955646", "0.58494145", "0.57566464", "0.571572", "0.5653111", "0.5546625", "0.54879916", "0.54838467", "0.54664695", "0.5419067", "0.53623...
0.775954
0
Class Constructor Simply calls the one function to return all Translated strings.
Класс Конструктор просто вызывает одну функцию, чтобы вернуть все переведенные строки.
public function __construct() { $this->trans_strings(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract function getTranslations();", "public function __construct()\n\t{\n\t\tt('lang')->load('site/deposit_sms');\n\t}", "public function getTranslations()\n {\n }", "function __construct() {\n\t\t$this->addTranslation(__FILE__);\n\t}", "public function __construct() {\n\t\t$this...
[ "0.6898003", "0.6668584", "0.66576517", "0.65780663", "0.6520997", "0.6516837", "0.6442008", "0.6442008", "0.6440144", "0.6428125", "0.6409458", "0.6320527", "0.61945474", "0.6190774", "0.6178726", "0.61389023", "0.6122072", "0.61088973", "0.6075853", "0.6057872", "0.60191387...
0.79004544
0
Time tracker activity form submit handler.
Обработчик отправки формы активности трекера времени.
function time_tracker_activity_table_form_submit($form, &$form_state) { // If we're adding a new one if ($form_state['values']['add_new_activity']['new_activity_name']) { $entity = new stdClass(); $entity->name = $form_state['values']['add_new_activity']['new_activity_name']; if (isset($form_state['val...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function _report_form_submit()\n\t{\n\t\t$incident = Event::$data;\n\n\t\tif ($_POST)\n\t\t{\n\t\t\t$action_item = ORM::factory('actionable')\n\t\t\t\t->where('incident_id', $incident->id)\n\t\t\t\t->find();\n\t\t\t$action_item->incident_id = $incident->id;\n\t\t\t$action_item->actionable = isset($_POST['ac...
[ "0.67273456", "0.6705339", "0.6297483", "0.6249597", "0.6180286", "0.60951734", "0.6087919", "0.60217595", "0.6004826", "0.59828526", "0.59633327", "0.59569216", "0.5944297", "0.59335446", "0.58915836", "0.58893675", "0.58806723", "0.578074", "0.57683986", "0.57394385", "0.57...
0.72919124
0
Returns the vatamount from a amount including vat. Example: $numberIncluding = 100, $vatPercentage = 25, result = 20 $vatPercentage must be between 0 and 100.
Возвращает сумму налога на добавленную стоимость из суммы, включающей налог на добавленную стоимость. Пример: $numberIncluding = 100, $vatPercentage = 25, результат = 20. $vatPercentage должна быть в диапазоне от 0 до 100.
public static function amount( $numberIncluding, $vatPercentage ) { return $numberIncluding * static::getVatAsFloat( $vatPercentage ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getVatAmount()\r\n {\r\n $amount = $this->getAmount();\r\n $vat = $this->getVatPercentage();\r\n $vatAmount = ($amount / 100) * $vat;\r\n\r\n return $this->vatAmount;\r\n }", "public static function include( $numberExcluding, $vatPercentage ) {\n\t\treturn $numbe...
[ "0.72821903", "0.7273007", "0.7147504", "0.71136105", "0.7113264", "0.6948952", "0.6613604", "0.65894526", "0.64669037", "0.59351295", "0.5912391", "0.5902488", "0.59000623", "0.5833908", "0.5771528", "0.57593244", "0.5734653", "0.5705109", "0.56441474", "0.56304604", "0.5614...
0.8145992
0
Show the form for creating a tour.
Показать форму для создания тура.
public function create() { return view('admin.tours.create'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n $categories = $this->getCategories();\n $cities = $this->getCity();\n $singerBands = $this->getSingerBands();\n\n return view('admin::tour.create',compact('categories','cities','singerBands'));\n }", "public function create()\n {\n return...
[ "0.7207705", "0.7114205", "0.70437676", "0.6914275", "0.6892721", "0.6847653", "0.68008673", "0.6796614", "0.67625505", "0.6745474", "0.673521", "0.66752785", "0.6650486", "0.6647286", "0.6626812", "0.66081256", "0.66080195", "0.6607712", "0.6602709", "0.6595458", "0.65937746...
0.7176099
1
Show the form for editing the specified tour.
Показать форму для редактирования указанного тура.
public function edit(Tour $tour) { return view('admin.tours.edit', [ 'tour' => $tour ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Tourism $tourism)\n {\n //\n }", "public function edit($id)\n {\n $tour = Tour::find($id);\n $categories = $this->getCategories();\n $cities = $this->getCity();\n $singerBands = $this->getSingerBands();\n $viewUpdate = [\n 'tour' ...
[ "0.73134166", "0.72230667", "0.71732455", "0.7127333", "0.70831543", "0.70711195", "0.6999567", "0.6960581", "0.68472713", "0.6838667", "0.6836581", "0.6819459", "0.6726445", "0.6722777", "0.66588163", "0.6657797", "0.6652974", "0.6652836", "0.6651556", "0.66468465", "0.66281...
0.7295217
1
receiveAuth No need to receive auth, as we do not request it.
receiveAuth Нет необходимости получать авторизацию, так как мы ее не запрашиваем.
public function receiveAuth(array $authReply) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function _handleAuthRequest(Zend_Controller_Request_Abstract $request);", "function authGet() { }", "public function requestAuth()\n {\n return null;\n }", "public function doAuthentication();", "protected function sendAuthRequest() : void\n {\n $message = \"PASSW...
[ "0.62253946", "0.6199866", "0.6130517", "0.603891", "0.5995652", "0.5947922", "0.57753426", "0.5758345", "0.57439864", "0.5729712", "0.5729712", "0.57071674", "0.5702255", "0.56890935", "0.5641617", "0.5632582", "0.5621601", "0.56184", "0.5612126", "0.5607881", "0.55628383", ...
0.7148186
0
isCreated Use the eid if its value is set and nonzero, this event has been made. return bool Has this event been created
isCreated Используйте eid, если его значение задано и не равно нулю, чтобы определить, был ли создан этот событие. return bool Был ли создан этот событие
public function isCreated() { return (bool) $this->eid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function created() {\n\t\treturn $this->_isCreated;\n\t}", "function isCreated() \n {\n // CODE\n $isCreated = $this->getValueByFieldName( 'statevar_isCreated' );\n return ( (int) $isCreated == 1 );\n }", "public function isCreated() {\r\n\r\n\t\tself::errorReset();\r\n\t\t$t...
[ "0.75339997", "0.7451405", "0.7269462", "0.71446717", "0.7016972", "0.69893336", "0.6746808", "0.65153754", "0.647986", "0.64647835", "0.62846005", "0.6255163", "0.61843264", "0.6158481", "0.6123969", "0.6060225", "0.6055723", "0.60279113", "0.5963631", "0.5963631", "0.591521...
0.8645578
0
get a list of all used fixture files
получить список всех использованных файлов фикстур
public function getFixtureFiles() { $files = array(); foreach ($this->fixtureSettings as $eachFixtureFile => $eachDatabaseConnection) { $files[] = $eachFixtureFile; } return $files; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getFixtures()\n {\n return array(\n // __DIR__ . '/../../Resources/fixtures/majora_entitys.yml',\n );\n }", "protected function getFixtures()\n {\n return array(\n __DIR__ . '/card.yml',\n );\n }", "public function provideTestLoad...
[ "0.6886409", "0.6752257", "0.6697206", "0.66746175", "0.66364914", "0.66235733", "0.6603496", "0.6560118", "0.6515458", "0.64852595", "0.6447671", "0.6436535", "0.6395411", "0.63867664", "0.6384127", "0.63801706", "0.6376813", "0.63741404", "0.6323211", "0.62686366", "0.62647...
0.7764893
0
get a list of all used fixture files and their database connections
получить список всех использованных файлов фикстур и их соединений с базой данных
public function getFixtureFilesWithConnection() { return $this->fixtureSettings; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFixtureFiles()\n {\n $files = array();\n\n foreach ($this->fixtureSettings as $eachFixtureFile => $eachDatabaseConnection)\n {\n \t$files[] = $eachFixtureFile;\n }\n\n return $files;\n }", "public function get_dbs()\n\t{\n\t\treturn $this->driver_query('db_list');\n\t}", ...
[ "0.6970495", "0.6272722", "0.61816174", "0.6085706", "0.6080724", "0.6054718", "0.59993356", "0.5905104", "0.59024185", "0.5836608", "0.5819243", "0.5808448", "0.5776024", "0.5768402", "0.57449204", "0.57255757", "0.5688095", "0.56771064", "0.5673804", "0.56581086", "0.564957...
0.7036251
0
cleanup after the wspNopaste tests removes wspNopasteComment and wspNopasteEntry database entries
очистка после тестов wspNopaste удаляет записи wspNopasteComment и wspNopasteEntry из базы данных
public function cleanup() { $data = $this->getData('all', 'wsp-nopaste'); if (!empty($data)) { if (isset($data['wspNopasteComment'])) { foreach ($data['wspNopasteComment'] as $identifier => $eachNopasteComment) { $commentId = null; if (preg_match('/[a-zA-Z]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cleanUp();", "public function cleanUp();", "public function cleanUp();", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function...
[ "0.65175956", "0.65175956", "0.65175956", "0.64106977", "0.64106977", "0.64106977", "0.64106977", "0.64106977", "0.64106977", "0.64106977", "0.6408893", "0.6408893", "0.6408893", "0.6408893", "0.6408893", "0.6408893", "0.6408893", "0.6408893", "0.6408893", "0.6408893", "0.640...
0.81953716
0
Checks if the user has a Role by its name.
Проверяет, имеет ли пользователь роль по её имени.
public function hasRole($name);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasRole($name)\n {\n foreach ($this->roles as $role)\n {\n if ($role->name == $name) return true;\n }\n return false;\n }", "public function userHasRole($role_name){\n foreach($this->roles as $role){\n if(Str::lower($role_name) == Str...
[ "0.7946275", "0.780453", "0.76439", "0.76213247", "0.7562303", "0.7516756", "0.7456674", "0.7453329", "0.74520135", "0.74462", "0.7342411", "0.7297038", "0.722974", "0.71985215", "0.71714133", "0.7161645", "0.7133892", "0.7131406", "0.71209115", "0.7102652", "0.7069756", "0...
0.8221643
0
Returns the edit token for the current user
Возвращает токен редактирования для текущего пользователя
public function getEditToken() { if ( $this->editToken !== null ) { return $this->editToken; } $result = $this->apiGet( array( 'action' => 'tokens', 'type' => 'edit' ) ); if( !array_key_exists( 'edittoken', $result['tokens'] ) ) { throw new ClientErrorResponseException( 'Edittoken retriving failu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _editToken()\n {\n if ($token = Mage::getSingleton('core/session')->getData('editToken')) {\n Mage::getSingleton('core/session')->unsetData('editToken');\n return $token;\n }\n return $token;\n }", "public function editAction()\n {\n $...
[ "0.736257", "0.6771158", "0.6523739", "0.6327691", "0.62193084", "0.6187676", "0.60980856", "0.6043574", "0.6039882", "0.6002598", "0.59681773", "0.5966877", "0.59345543", "0.588485", "0.5883153", "0.5874917", "0.5862532", "0.5859184", "0.5853598", "0.58523536", "0.5841855", ...
0.76201725
0
Normalize a page title
Нормализовать заголовок страницы
public function normalizePageTitle( $title ) { return str_replace( array( ' ', "\t", "\n" ), array( '_', '_', '_' ), $title ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function page_title()\n {\n $page = isset($_GET['page']) ? htmlspecialchars($_GET['page']) : 'Home';\n\n return ucwords(str_replace('-', ' ', $page));\n }", "function cleanTitle($title) {\n\treturn ucwords( str_replace( array(\"-\", \"_\"), \" \", $title) );\n}", "public function adaptPageT...
[ "0.74255997", "0.7253647", "0.72528076", "0.71507066", "0.7083358", "0.7080929", "0.7039824", "0.6990722", "0.6983831", "0.6978093", "0.69564426", "0.6929078", "0.69111454", "0.6890838", "0.688505", "0.6865814", "0.6852833", "0.6834139", "0.67966396", "0.6786307", "0.6782309"...
0.8022633
0
Check if the page title is valid
Проверьте, является ли заголовок страницы допустимым
public function isPageTitleValid( $title ) { return strpos( $title, ':' ) === false && strpos( $title, '/' ) === false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function validateTitle()\n {\n if (empty($this->_taintedData['title'])) {\n $this->_addErrorMessage(\"Please fill in the title\");\n\n return false;\n }\n\n $title = $this->_cleanData['title'];\n\n if (strlen($title) > 100) {\n $this->_addError...
[ "0.80012786", "0.76412725", "0.73205024", "0.7139706", "0.70105004", "0.69820434", "0.69313604", "0.6914061", "0.6905575", "0.689914", "0.68236315", "0.6818742", "0.6794263", "0.6787672", "0.67573035", "0.6706702", "0.6691681", "0.66877013", "0.6642555", "0.66402084", "0.6639...
0.8129353
0
Registers an editor stylesheet for the theme.
Регистрирует редакторский стиль для темы.
function register_editor_stylesheet() { add_editor_style( 'css/bootstrap.css' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function bsc_add_editor_styles() {\n\t\t\tadd_editor_style( get_stylesheet_uri() );\n\t\t}", "function my_theme_add_editor_styles() {\n add_editor_style( 'editor-style.css' );\n}", "function add_editor_styles() {\n add_editor_style( '/admin/css/editor-styles.css' );\n}", "function wpdocs_theme_add_editor...
[ "0.76628464", "0.7375179", "0.7263746", "0.7121213", "0.70963776", "0.70529485", "0.7036448", "0.7013381", "0.6981804", "0.6966997", "0.69472116", "0.68989146", "0.6855096", "0.6843858", "0.67619634", "0.67484254", "0.672789", "0.6697887", "0.6687321", "0.66643476", "0.663805...
0.7665815
0
Preserve user input in a form when form is not processed successfully $val the values submitted by the user $type the type of form element $attr string assigned to value attribute of a drop down list (default is '')
Сохранять ввод пользователя в виде при неуспешной обработке формы $val значения, отправленные пользователем $type тип элемента формы $attr строка, назначенная атрибуту value элемента списка выбора (по умолчанию '')
public function keepValues($val, $type, $attr) { switch ($type) { case 'textbox': echo "value = '$val'"; break; case 'textarea': echo "value = '$val'"; // text between tags - not sure break; case 'select': ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function sanitize_an_option($val, $type)\n\t\t{\n\t\t\tswitch($type) {\n\t\t\t\tcase 'bool' :\n\t\t\t\t return $val ? true : false;\n\t\t\t\n\t\t\t\tdefault:\n\t\t\t\tcase 'text' :\n\t\t\t\t\treturn wp_filter_nohtml_kses($val); // HTML not allowed in value string for meta tags\n\t\t\t\t\n\t\t\t\tcase 'in...
[ "0.63343185", "0.6032475", "0.5852611", "0.5851717", "0.5842427", "0.5683921", "0.55979383", "0.54646474", "0.5436278", "0.5420623", "0.5382867", "0.5381997", "0.5348282", "0.53323", "0.5316458", "0.5313464", "0.5289498", "0.5281275", "0.52649665", "0.5237892", "0.51642543", ...
0.73562247
0
Defines the elements that make up the role form. Called automatically when the form object is created.
Определяет элементы, составляющие форму роли. Вызывается автоматически при создании объекта формы.
public function init() { // form should use p4cms-ui styles. $this->setAttrib('class', 'p4cms-ui role-form role-add-form'); // set the method for the form to POST $this->setMethod('post'); // add a field to collect the role name. $this->addElement( 'text...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function addElements() \n {\n // Add \"email\" field\n $this->add([ \n 'type' => 'text',\n 'name' => 'title',\n 'options' => [\n 'label' => 'Title',\n ],\n ]);\n \n // Add \"parent_id\" field\n ...
[ "0.6956439", "0.69482064", "0.6844195", "0.6816167", "0.68125236", "0.6743615", "0.6717615", "0.671011", "0.66983944", "0.6685839", "0.66634685", "0.6582135", "0.6501586", "0.64857346", "0.643796", "0.64229286", "0.64196324", "0.6407115", "0.6381234", "0.63799804", "0.6339165...
0.7618012
0
shortcode para exibir a lista de personagens // [sc_personagens_marvel]
shortcode для отображения списка персонажей // [sc_personagens_marvel]
function shortcode_personagens_marvel ( ) { //variaveis $publickey = get_option("marvelPublicKey"); $privatekey = get_option("marvelPrivateKey"); $ts = '1'; $hash = md5($ts.$privatekey.$publickey); $token = 'apikey='.$publickey.'&ts='.$ts.'&hash='.$hash; $pagina = $_GET['pagina']; if (!$pagina) { $pag...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function shortcode_personagem_marvel( ){\n\n\t\t$idPersonagem = $_GET['id'];\n\t\tif (!$idPersonagem) { $idPersonagem = 1011334; }\n\n\t\t//variaveis\n\t\t$publickey = 'a80b3d6da752653db8e06bf115158301';\n\t\t$privatekey = 'de2d8bb7ce1de8f871318cf9e18dbf137d89f83e';\n\t\t$ts = '1';\n\t\t$hash = md5($ts.$privatekey...
[ "0.72632927", "0.5945078", "0.590558", "0.5799547", "0.5795093", "0.5711303", "0.5696433", "0.5634237", "0.5623903", "0.5620616", "0.5597668", "0.5586564", "0.55329436", "0.54483324", "0.5444311", "0.54197496", "0.5411119", "0.54001653", "0.53907686", "0.5379547", "0.53709006...
0.8284633
0
shortcode para exibir a lista de personagens // [sc_personagem_marvel]
shortcode для отображения списка персонажей // [sc_personagem_marvel]
function shortcode_personagem_marvel( ){ $idPersonagem = $_GET['id']; if (!$idPersonagem) { $idPersonagem = 1011334; } //variaveis $publickey = 'a80b3d6da752653db8e06bf115158301'; $privatekey = 'de2d8bb7ce1de8f871318cf9e18dbf137d89f83e'; $ts = '1'; $hash = md5($ts.$privatekey.$publickey); $token = 'a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function shortcode_personagens_marvel ( ) {\n\t\t//variaveis\n\t\t$publickey = get_option(\"marvelPublicKey\");\n\t\t$privatekey = get_option(\"marvelPrivateKey\");\n\t\t$ts = '1';\n\t\t$hash = md5($ts.$privatekey.$publickey);\n\n\t\t$token = 'apikey='.$publickey.'&ts='.$ts.'&hash='.$hash;\n\n\t\t$pagina = $_GET['...
[ "0.8211068", "0.59405035", "0.5935537", "0.5871441", "0.58474857", "0.57902485", "0.56720763", "0.5640069", "0.5636608", "0.5635955", "0.5618537", "0.56041485", "0.56021607", "0.5600067", "0.55479264", "0.55448484", "0.55405855", "0.55387247", "0.55381894", "0.55301344", "0.5...
0.7523516
1
/ Set up IP alias here
/ Настройте IP-альиас здесь
function set_ipalias($ip, $netmask, $if, $action = '') { if($action == '-') { $_alias = "-alias"; log_error("Removing IP $ip with netmask $netmask from interface $if"); } else { $_alias = "alias"; log_error("Adding IP $ip with netmask $netmask to interface $if"); } $_cmd = "ifconfig $if $_alias...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function alias_expand_host($name) {\n\n\tglobal $aliastable;\n\n\tif (isset($aliastable[$name]) && is_ipaddr($aliastable[$name]))\n\treturn $aliastable[$name];\n\telse if (is_ipaddr($name))\n\treturn $name;\n\telse\n\treturn null;\n}", "private function _ip()\n {\n if (PSI_USE_VHOST === true) {\n ...
[ "0.6898494", "0.6786971", "0.67472464", "0.67276496", "0.664531", "0.64909244", "0.6449958", "0.6270394", "0.618759", "0.6136209", "0.61184186", "0.6086947", "0.60769004", "0.6070309", "0.60465425", "0.6015943", "0.59864473", "0.5961828", "0.59219927", "0.59196806", "0.589532...
0.72202146
0
Overrides \Drupal\views\Tests\ViewTestBase::schemaDefinition(). Adds a uid column to test the relationships.
Переопределяет \Drupal\views\Tests\ViewTestBase::schemaDefinition(). Добавляет столбец uid для тестирования связей.
protected function schemaDefinition() { $schema = parent::schemaDefinition(); $schema['views_test_data']['fields']['uid'] = [ 'description' => "The {users}.uid of the author of the beatle entry.", 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ]; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function uid(): ColumnSchemaBuilder\n {\n return $this->char(36)->notNull()->defaultValue('0');\n }", "function tripal_stock_chado_contact_relationship_schema() {\n $description = array();\n\n $description['foreign keys']['cvterm'] = array(\n 'table' => 'cvterm',\n 'columns' =...
[ "0.55042255", "0.5147662", "0.50950015", "0.5093101", "0.5069572", "0.50399053", "0.5039156", "0.5016435", "0.50034344", "0.50001657", "0.49961722", "0.49912784", "0.4989535", "0.49866676", "0.4974739", "0.4972628", "0.49710125", "0.49618778", "0.4958809", "0.49523714", "0.49...
0.71640587
0
Overrides \Drupal\views\Tests\ViewTestBase::viewsData(). Adds: a relationship for the uid column. a dummy field with no help text.
Переопределяет \Drupal\views\Tests\ViewTestBase::viewsData(). Добавляет: связь для столбца uid. поле-пустышка без текста помощи.
protected function viewsData() { $data = parent::viewsData(); $data['views_test_data']['uid'] = [ 'title' => 'UID', 'help' => 'The test data UID', 'relationship' => [ 'id' => 'standard', 'base' => 'users_field_data', 'base field' => 'uid', ], ]; // Create...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tripal_views_views_data_alter(&$data) {\n\n // ADD IN NODE JOINS & RELATIONSHIPS\n // D7 @todo: Create custom handler to allow join from Node => Base (ie: organism)\n // with the addition of a single relationship\n // D7 @todo: Create custom handler to allow join from Base (ie: organ...
[ "0.6463577", "0.6365944", "0.5920667", "0.58867645", "0.56706816", "0.5664398", "0.5659323", "0.5611487", "0.5607836", "0.5596144", "0.5555808", "0.5529159", "0.5309592", "0.5235259", "0.52300686", "0.5226186", "0.5162254", "0.51326925", "0.50519526", "0.50254744", "0.4900836...
0.7101369
0
To be overridden with a method that returns the name of the layout template class. The layout template class must be able to accept certain input values and generate a valid (X)HTML document when generated
Должен быть переопределен методом, возвращающим имя класса шаблона размещения. Класс шаблона размещения должен быть в состоянии принять определенные входные значения и сгенерировать корректный (X)HTML-документ при генерации
abstract public function getLayoutTemplateClassName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_template_name(){\n\n return str_replace(\"_\",\"\",str_replace(\"_page\", \"\", get_class($this))) . \".tpl\";\n }", "public function getName()\n\t{\n\t\treturn 'layout';\n\t}", "public function getName()\r\n\t{\r\n\t\treturn 'oxygen_framework_twig_layout';\r\n\t}", "private func...
[ "0.70866954", "0.68953246", "0.6831228", "0.67609286", "0.67413604", "0.67060536", "0.6477924", "0.6431686", "0.6311564", "0.6290501", "0.62603325", "0.62503016", "0.624421", "0.6189077", "0.618343", "0.6177352", "0.6110422", "0.6108037", "0.6108037", "0.6107061", "0.6103553"...
0.81571025
0
Returns the list of CSS stylesheets on which the HTML document depends
Возвращает список CSS-стилей, на которые зависит HTML-документ
public function getStylesheetDependencies() { return $this->stylesheetDependencies; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function stylesheets() {\n $sheets = func_get_args();\n foreach($this->included_stylesheets as $name) $sheets[] = $name;\n return $this->context->stylesheet_links($sheets, $this->base_url().\"/stylesheets\");\n }", "private function _getCSSIncludes () {\n $ret = array();\n foreach ($this->_styles...
[ "0.790242", "0.73833334", "0.73337173", "0.72487617", "0.7131644", "0.69671273", "0.69489896", "0.6908024", "0.6894167", "0.68462247", "0.6845781", "0.6785209", "0.6773132", "0.6769782", "0.6762031", "0.67587394", "0.6722462", "0.66957146", "0.6683008", "0.66255283", "0.66085...
0.7473878
1
Returns an array of HTML header link tags
Возвращает массив HTML-заголовков ссылок
public function getHeaderLinkTags() { $tags = array(); $layout = $this->getLayoutTemplate(); $layoutStylesheets = $layout->getStylesheetDependencies(); $extraStylesheets = $this->getStylesheetDependencies(); $stylesheets = array_merge($layoutStylesheets, $extraStylesheets); foreach ($stylesheets as $s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHeadingLinks(): array;", "public function getHeaderLinks()\r\n {\r\n return $this->_headerLinks;\r\n }", "public function getHeadingLinks($html) {\n $dom = new \\DOMDocument();\n\n // Load HTML but suppress warnings.\n $libxml_previous_state = libxml_use_internal_errors...
[ "0.77919924", "0.767456", "0.7106531", "0.6985528", "0.68613243", "0.66826916", "0.6637996", "0.6540139", "0.65173006", "0.6454651", "0.643265", "0.6369303", "0.63633907", "0.6337988", "0.628813", "0.62441504", "0.6203432", "0.61901295", "0.61482406", "0.6124866", "0.61196387...
0.7701502
1
Returns an array of HTML header meta tags
Возвращает массив HTML-метатегов заголовка
public function getHeaderMetaTags() { $tags = array(); foreach ($this->metaValues as $name => $value) { $tags[] = array( 'name' => $name, 'content' => $value, ); } foreach ($this->metaHttpEquiv as $name => $value) { $tags[] = array( 'http-equiv' => $name, 'content' => $value...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getHead() {\n\n $out = \"\";\n\n if ($this->meta_keywords) array_push($this->head, \"<meta name='keywords' content='{$this->meta_keywords}' />\");\n if ($this->meta_description) array_push($this->head, \"<meta name='description' content='{$this->meta_description}' />\");\n\n foreach ($this-...
[ "0.7382619", "0.7276523", "0.71676177", "0.6938599", "0.6811217", "0.6779088", "0.67764986", "0.67707354", "0.6741639", "0.6735065", "0.67219067", "0.67071456", "0.6666861", "0.66546977", "0.6612117", "0.6607536", "0.659927", "0.6521874", "0.64746857", "0.6468172", "0.6450221...
0.86229014
0
Returns the document's layout template object
Возвращает объект шаблона разметки документа
private function getLayoutTemplate() { if ($this->layoutTemplate === null) { $class = $this->getLayoutTemplateClassName(); $template = new $class; $this->layoutTemplate = $template; } return $this->layoutTemplate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLayoutTemplate()\n {\n return $this->layoutTemplate;\n }", "public static function getTemplateLayout()\n {\n return self::$templateLayout;\n }", "protected function getDocumentTemplate() {}", "protected function getDocumentTemplate() {}", "protected function get...
[ "0.75142854", "0.7229617", "0.72062004", "0.72062004", "0.72056794", "0.72056246", "0.72056246", "0.72052", "0.72052", "0.72052", "0.72052", "0.7036794", "0.685861", "0.68346167", "0.68312097", "0.6778857", "0.6725917", "0.67179763", "0.6661263", "0.6654344", "0.6623736", "...
0.75448626
0
Test if values are set in a mocked class
Проверить, заданы ли значения в заглушке класса
public function mocked_returns_set_value_test() { $mocked = new Mocked('user', VarStore::singleton()); // what would be set in a class when using Mocked::class $mocked->name->class = 'test'; $this->assertContains('=> ["test"]', (string)$mocked->name->class); $this->assertSam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetValues()\n {\n $this->todo('stub');\n }", "public function testGetValues()\n {\n $this->todo('stub');\n }", "public function testGetParams(): void\n {\n $this->class->setParams([$this->value]);\n\n self::assertSame([$this->value], $this->class->...
[ "0.69705385", "0.672354", "0.6645353", "0.6212512", "0.61926734", "0.6180472", "0.6113394", "0.6097373", "0.6085741", "0.60832345", "0.6080831", "0.60768306", "0.6073411", "0.60559416", "0.60551965", "0.6051365", "0.6011681", "0.60051405", "0.59751254", "0.5938196", "0.592822...
0.73374814
0
Donne le contenu du jeton csrf pour la session en cours
Укажите содержимое токена csrf для текущей сессии
function csrf(){ return 'csrf=' . $_SESSION['csrf']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function csrf() {\n return $_SESSION['csrf'];\n }", "function csrf_field()\n {\n $token = app()->services()->session()->CSRFToken;\n return \"<input type='hidden' name='csrf_token' value='$token'>\";\n }", "function csrf_token()\n {\n return app()->make('session')->t...
[ "0.7901027", "0.773639", "0.77219886", "0.764201", "0.76023865", "0.75342625", "0.75238013", "0.7519109", "0.75178754", "0.75126624", "0.7498086", "0.7473724", "0.74349016", "0.7374838", "0.7347585", "0.72983867", "0.7274605", "0.7266983", "0.7265497", "0.7138449", "0.7070515...
0.7787054
1