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 |
|---|---|---|---|---|---|---|---|
add new javascript files to head $paramstring$typefile or custom | добавить новые файлы javascript в head $paramstring$typefile или кастомные | public function addNewJsHead($type, $string, $dirName = 'framework') {
if($type == 'file'):
if($direction == 'framework') {
$baseurl = '/media/nawala/js/' . $string;
} else {
$baseurl = '/templates/' . $dirName . '/assets/js/' . $string;
}
return $this->doc->addScript($url);
else:
return $thi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function addJavascriptFiles($js /* array */);",
"protected function addJS() {\n foreach ($this->js_files as $js_file) {\n $this->header.=\"<script type='text/javascript' src='\" . __ASSETS_PATH . \"/\" . $js_file . \"'></script> \\n\";\n }\n }",
"function ft_hook_add_js_file(... | [
"0.73259175",
"0.7257021",
"0.718334",
"0.7178671",
"0.67307806",
"0.67146647",
"0.6586321",
"0.6580654",
"0.656524",
"0.6543141",
"0.65336496",
"0.65264714",
"0.6489544",
"0.6468505",
"0.6462681",
"0.64532596",
"0.64498216",
"0.6424448",
"0.6390562",
"0.63834465",
"0.6336388... | 0.7296526 | 1 |
add new stylesheet files to head $paramstring$typefile or custom | добавить новые файлы стилей в head $paramstring$typefile или пользовательский | public function addNewCssHead($type, $string, $dirName = 'framework') {
if($type == 'file')
{
if($dirName == 'framework') {
$url = '/media/nawala/css/' . $string;
} else {
$url = '/templates/' . $dirName . '/assets/css/' . $string;
}
return $this->doc->addStyleSheet($url);
}
else
{
retu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function kiwip_stylesheet_add_file(){\n\t\t//register\n\t\tforeach($this->stylesheet as $key){\n\t\t\twp_register_style('kiwip_shortcode-css-'.$key['stylesheetId'], $key['stylesheetURL']);\n\t\t}\n\t\t\n\t\t//load\n\t\tforeach($this->stylesheet as $eky){\n\t\t\twp_enqueue_style('kiwip_shortcode-css-'.$key['... | [
"0.68363434",
"0.6809248",
"0.66527635",
"0.6631513",
"0.6616079",
"0.6607778",
"0.6586208",
"0.6470924",
"0.644404",
"0.64260685",
"0.6419417",
"0.64182276",
"0.6394522",
"0.63236165",
"0.6292651",
"0.6283326",
"0.62427",
"0.62387425",
"0.62338877",
"0.62153745",
"0.62017775... | 0.70542663 | 0 |
Returnst the rule name. | Возвращает имя правила. | public function getRuleName(): string; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getRuleNameWithSuffix(): string;",
"public function getRuleName(): ?string\n {\n return $this->rule->getName();\n }",
"public function getRuleName(): ?string { return $this->server->getRuleName(); }",
"public function getBusinessRuleName()\n\t\t{\n\t\t\treturn $this->business_rul... | [
"0.80989355",
"0.7815388",
"0.74374026",
"0.72035146",
"0.7044642",
"0.6939271",
"0.6911848",
"0.6893608",
"0.65092814",
"0.6504017",
"0.64057505",
"0.640281",
"0.6390139",
"0.63730717",
"0.6364889",
"0.63468206",
"0.6331937",
"0.63212544",
"0.62982863",
"0.62982863",
"0.6229... | 0.86950123 | 1 |
Returns the css class to add to the left sidebar | Возвращает класс CSS для добавления в левую панель боковой панели | public static function get_left_sidebar_css_class(){
return self::get_sidebar_or_content_css_class( 'left-sidebar' );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function left_sidebar() {\n\t\t$layout_type = WpvTemplates::get_layout();\n\n\t\tif($layout_type == 'left-only' || $layout_type == 'left-right'): ?>\n\t\t\t<aside class=\"<?php echo apply_filters('wpv_left_sidebar_class', 'left', $layout_type) ?>\">\n\t\t\t\t<?php WpvSidebars::getInstance()->get_side... | [
"0.71286744",
"0.6850059",
"0.67675465",
"0.6767409",
"0.6763249",
"0.670586",
"0.6660504",
"0.65981984",
"0.65418565",
"0.6531015",
"0.64972407",
"0.646866",
"0.6466094",
"0.6433104",
"0.6410166",
"0.63890123",
"0.6339804",
"0.6302837",
"0.62083465",
"0.61943305",
"0.6188909... | 0.8545752 | 0 |
Returns the css class to add to the content section | Возвращает класс CSS для добавления в раздел содержимого | public static function get_content_css_class(){
return self::get_sidebar_or_content_css_class( 'content' );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function cssClass()\n {\n return $this->class;\n }",
"public function get_css_class() {\n\t\treturn $this->css_class;\n\t}",
"function jetpack_the_content_customizer_class( $new_class = null ) {\n\tstatic $class;\n\tif ( isset( $new_class ) ) {\n\t\t// Assign a new class and return.\n\t\t$c... | [
"0.67200464",
"0.66308767",
"0.65209794",
"0.6495835",
"0.638417",
"0.6361976",
"0.6321686",
"0.63074386",
"0.6304425",
"0.63004416",
"0.6283359",
"0.6268505",
"0.6266694",
"0.6266694",
"0.6255908",
"0.6230488",
"0.6230417",
"0.62295043",
"0.6209663",
"0.61462927",
"0.6132086... | 0.7670132 | 0 |
Returns the css class to add to the right sidebar | Возвращает класс CSS для добавления в правую панель | public static function get_right_sidebar_css_class(){
return self::get_sidebar_or_content_css_class( 'right-sidebar' );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static function makeRightSidebarClasses()\n {\n $classes = [];\n\n // Add classes related to the \"right_sidebar\" configuration.\n\n if (static::getConfig('right_sidebar') && static::getConfig('right_sidebar_push')) {\n $classes[] = 'control-sidebar-push';\n }\n\n... | [
"0.7740462",
"0.7379398",
"0.72883",
"0.7177287",
"0.6970315",
"0.6932208",
"0.6854096",
"0.6810628",
"0.67938125",
"0.6755794",
"0.67271143",
"0.67020875",
"0.6610692",
"0.6605831",
"0.6600754",
"0.65867454",
"0.6580463",
"0.65738523",
"0.65554595",
"0.651924",
"0.64973605",... | 0.83147675 | 0 |
Get HTML body as DOMElement from Dom\Document received by the constructor. | Получить тело HTML как DOMElement из Dom\Document, полученного в конструкторе. | protected function get_body_node() {
_deprecated_function( 'Use $this->dom->body instead', '1.5.0' );
return $this->dom->body;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getDomDocument() {}",
"abstract protected function getHtmlBody();",
"private static function createDomDocument()\n {\n $document = new DOMDocument('1.0', 'utf-8');\n $document->preserveWhiteSpace = false;\n $document->formatOutput = true;\n\n return $document;\n ... | [
"0.704526",
"0.66909945",
"0.656861",
"0.656861",
"0.65446806",
"0.6341395",
"0.6335107",
"0.6325825",
"0.6316862",
"0.6292397",
"0.6142344",
"0.61246616",
"0.60967994",
"0.60612917",
"0.60535985",
"0.60520023",
"0.6008248",
"0.60039",
"0.59673715",
"0.596449",
"0.59222436",
... | 0.7118773 | 0 |
Determine if an attribute value is empty. | Определите, является ли значение атрибута пустым. | public function is_empty_attribute_value( $value ) {
return ! isset( $value ) || '' === $value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function ContainsEmptyAttribute()\n {\n foreach(self::$attributes as $attribute)\n {\n if($this->$attribute == '')\n {\n $this->_error = 'All attributes cannot be empty';\n return true;\n }\n }\n \n return f... | [
"0.84597594",
"0.8063511",
"0.80115485",
"0.79481316",
"0.7512992",
"0.74711674",
"0.7467572",
"0.7410895",
"0.7334063",
"0.7331416",
"0.71884793",
"0.7178818",
"0.7152906",
"0.71288395",
"0.7114051",
"0.70992714",
"0.7099026",
"0.7088124",
"0.70615864",
"0.70581114",
"0.7033... | 0.844287 | 1 |
Decide if we should remove a src attribute if https is required. If not required, the implementing class may want to try and force https instead. | Определите, нужно ли удалять атрибут src, если требуется https. Если это не требуется, реализующий класс может захотеть попытаться принудительно использовать https. | public function maybe_enforce_https_src( $src, $force_https = false ) {
$protocol = strtok( $src, ':' ); // @todo What about relative URLs? This should use wp_parse_url( $src, PHP_URL_SCHEME )
if ( 'https' !== $protocol ) {
// Check if https is required.
if ( isset( $this->args['require_https_src'] ) && true ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function isHttpsOnly()\n {\n return in_array('https', $this->action, true);\n }",
"public function usesHttps()\n {\n return $this->useHttps;\n }",
"function qa_is_https_probably()\n{\n\tif (qa_to_override(__FUNCTION__)) { $args=func_get_args(); return qa_call_override(__FUNCTIO... | [
"0.5840898",
"0.5799161",
"0.5738277",
"0.5693204",
"0.5668312",
"0.56029904",
"0.5590072",
"0.55344075",
"0.5525718",
"0.5512357",
"0.549152",
"0.549152",
"0.54760855",
"0.5459738",
"0.5436579",
"0.5427773",
"0.54202676",
"0.54172397",
"0.5401007",
"0.5377262",
"0.537447",
... | 0.76920336 | 0 |
Check whether the document of a given node is in dev mode. | Проверьте, находится ли документ узла в режиме разработки. | protected function is_document_in_dev_mode() {
_deprecated_function( 'AMP_Base_Sanitizer::is_document_in_dev_mode', '1.5', 'AmpProject\DevMode::isActiveForDocument' );
return DevMode::isActiveForDocument( $this->dom );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function isDev(): bool;",
"protected function has_dev_mode_exemption( DOMNode $node ) {\n\t\t_deprecated_function( 'AMP_Base_Sanitizer::has_dev_mode_exemption', '1.5', 'AmpProject\\DevMode::hasExemptionForNode' );\n\t\treturn DevMode::hasExemptionForNode( $node );\n\t}",
"public function isDevMode(): bo... | [
"0.72411853",
"0.72286445",
"0.7220102",
"0.72134614",
"0.69261026",
"0.6921282",
"0.68805546",
"0.68650055",
"0.68047714",
"0.6652506",
"0.6644125",
"0.6627444",
"0.6596545",
"0.65431523",
"0.65257084",
"0.65229726",
"0.6479399",
"0.64685684",
"0.64569825",
"0.64314234",
"0.... | 0.75233924 | 0 |
Check whether a certain node should be exempt from validation. | Проверьте, должен ли определенный узел быть исключенным из валидации. | protected function is_exempt_from_validation( DOMNode $node ) {
_deprecated_function( 'AMP_Base_Sanitizer::is_exempt_from_validation', '1.5', 'AmpProject\DevMode::isExemptFromValidation' );
return DevMode::isExemptFromValidation( $node );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function isValidNode();",
"public function check(Node $node);",
"public function validation()\n {\n $this->assertFalse($this->denyValidator->validate(123));\n $this->assertFalse($this->denyValidator->validate('1234'));\n $this->assertFalse($this->denyValidator->validate(true));\n... | [
"0.6422284",
"0.60223615",
"0.59827065",
"0.5856693",
"0.58457017",
"0.5710291",
"0.5656306",
"0.565542",
"0.5608633",
"0.55942595",
"0.55632544",
"0.5552161",
"0.5531559",
"0.55289686",
"0.55289686",
"0.547836",
"0.546714",
"0.54570055",
"0.5454565",
"0.54543406",
"0.5433692... | 0.72245514 | 0 |
Parse a style string into an associative array of style attributes. | Парсить строку стиля в ассоциативный массив атрибутов стиля. | protected function parse_style_string( $style_string ) {
// We need to turn the style string into an associative array of styles first.
$style_string = trim( $style_string, " \t\n\r\0\x0B;" );
$elements = preg_split( '/(\s*:\s*|\s*;\s*)/', $style_string );
if ( 0 !== count( $elements ) % 2 ) {
// Style ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function unpackStyles($styleString)\n {\n $styleList = explode(';', $styleString);\n $styleArray = array();\n\n foreach ($styleList as $style)\n {\n if (strpos($style,':') !== false)\n {\n list($name, $value) = explode(':', $style);\n ... | [
"0.7366318",
"0.67678905",
"0.65408874",
"0.5895844",
"0.58815175",
"0.58203447",
"0.5815821",
"0.57972527",
"0.57808787",
"0.5709582",
"0.5708333",
"0.5650486",
"0.56015545",
"0.5590507",
"0.5470841",
"0.54685843",
"0.5418802",
"0.5371792",
"0.5367747",
"0.5333866",
"0.52491... | 0.77592176 | 0 |
Get data that is returned in validate responses. The array returned is merged with the overall validate response data. | Получите данные, возвращаемые в ответах validate. Массив, возвращаемый, объединяется с общими данными ответа validate. | public function get_validate_response_data() {
return [];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function validationData()\n {\n return $this->json()->all();\n }",
"public function getResponseData(): array\n {\n $responseData = [\n 'success' => $this->isSuccessful(),\n 'data' => $this->data,\n ];\n\n if ($this->error && !$this->isSuccessfu... | [
"0.7106336",
"0.6911559",
"0.68752843",
"0.6681374",
"0.66700697",
"0.66639614",
"0.6577372",
"0.65757394",
"0.63721305",
"0.6364563",
"0.6339654",
"0.63006014",
"0.6279458",
"0.6279169",
"0.6210716",
"0.616401",
"0.61601275",
"0.61472076",
"0.61174786",
"0.61140484",
"0.6098... | 0.8237592 | 0 |
Mark Todo as completed. | Отметить Todo как выполненное. | public function mark_completed($todo=null)
{
try {
// if the returned instance wasn't found
if(\is_null($todo)) {
return $this->resourceNotFound();
}
// mark the Todo as completed
$todo->update(['completed' => 1] );
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function complete($completed = true)\n {\n $this->update(compact('completed'));\n }",
"public function mark_complete() {\n // Create record\n $this->timecompleted = time();\n\n // Save record\n if ($this->id) {\n $this->update();\n } else {\n ... | [
"0.698086",
"0.68164575",
"0.6771203",
"0.67212677",
"0.65875566",
"0.64752376",
"0.64185095",
"0.64069855",
"0.628964",
"0.6247402",
"0.6130831",
"0.61241394",
"0.6028067",
"0.6025306",
"0.60245997",
"0.59815955",
"0.5924369",
"0.5858478",
"0.5847599",
"0.5817654",
"0.581521... | 0.7374694 | 0 |
Helper method to return json response if a resource was not found. | Помощь метод для возврата ответа в формате json, если ресурс не найден. | private function resourceNotFound()
{
// if the returned instance wasn't found
return response()->json([
'success' => false,
'message' => 'Resource could not be found.',
], 404);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function renderJsonNotFoundOutput()\n {\n return '{\"message\":\"Not found\"}';\n }",
"public static function throwResourceNotFoundException()\n {\n return Response::json([\n 'message' => \"Your request dosen't contain any resources\"\n ], 404);\n }",
"publ... | [
"0.7437301",
"0.7344235",
"0.7122504",
"0.7003275",
"0.6892723",
"0.68390495",
"0.67997795",
"0.6630571",
"0.6597195",
"0.65924424",
"0.65260404",
"0.6504675",
"0.65017825",
"0.64776033",
"0.64251953",
"0.6415515",
"0.63596994",
"0.63505423",
"0.62636536",
"0.6263246",
"0.624... | 0.8068612 | 0 |
Return the user's backup codes. | Верните коды резервного копирования пользователя. | public function getBackupCodes(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function getAvailableBankCodes()\n {\n return [\n Banks::CPI => 'Interac Combined Pay-in',\n Banks::BCT => 'Bancontact',\n ];\n }",
"protected static function getBackupCodeJsonStatusCodes()\n {\n return array(\n self::NO_IDENTIFIER_SUPP... | [
"0.61493474",
"0.6044774",
"0.5979818",
"0.5836679",
"0.5807777",
"0.573728",
"0.57020783",
"0.5692694",
"0.56840855",
"0.5664803",
"0.5625882",
"0.5607813",
"0.5538637",
"0.55157006",
"0.5514218",
"0.5495918",
"0.5472796",
"0.5468541",
"0.54289776",
"0.54213595",
"0.5416422"... | 0.8299897 | 0 |
testGetAccountDashboardEvent (Logged out) Check response status as there is nothing to test | testGetAccountDashboardEvent (Выход из системы) Проверить статус ответа, так как проверять нечего | public function testGetAccountDashboardEventOut()
{
$eventId = '2';
// Grab Page
$result = $this->visit('account/dashboard/event/' . $eventId)
->see('create your suaray account')
->see('welcome to suaray')
->seePageIs('/account/register');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function test_logout()\n\t{\n\t\t$response = $this->call('GET', 'v1/logout');\n\t\t$result = json_decode($response->getContent());\n\t\techo \"logout is : \";\n\t\tvar_dump($result->status);\n\t\t$this->assertEquals(\"success\", $result\n\t\t\t\t->status, 'We expected the post logout to have a success statu... | [
"0.7269783",
"0.7013315",
"0.69959766",
"0.678391",
"0.67826414",
"0.6657148",
"0.6647951",
"0.6605721",
"0.65744185",
"0.65696293",
"0.6569396",
"0.65377253",
"0.6532612",
"0.6508988",
"0.6479067",
"0.64527375",
"0.64157",
"0.64140403",
"0.6395118",
"0.63398916",
"0.6334187"... | 0.71086586 | 1 |
testGetAccountSettings (Logged out) Check response status as there is nothing to test | testGetAccountSettings (Выход из системы) Проверить статус ответа, так как проверять нечего | public function testGetAccountSettingsOut()
{
// Grab settings page
$result = $this->visit('account/settings')
->see('create your suaray account')
->see('welcome to suaray')
->seePageIs('/account/register');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testCanLogOut() {\n // TBA\n }",
"public function testCanLoadSettings()\n\t{\n\t\t$this->call('GET', '/account/settings');\n\n\t\t$this->assertResponseOk();\n\t}",
"public function test_logout()\n\t{\n\t\t$response = $this->call('GET', 'v1/logout');\n\t\t$result = json_decode($respons... | [
"0.66140467",
"0.6605833",
"0.6430336",
"0.63462174",
"0.6345152",
"0.6291008",
"0.62768483",
"0.62708104",
"0.6250892",
"0.6189485",
"0.6175834",
"0.6121947",
"0.6114837",
"0.6114634",
"0.60924345",
"0.6052608",
"0.6047081",
"0.6032134",
"0.6030039",
"0.59686744",
"0.5948252... | 0.72896516 | 0 |
testGetAccountMyTickets (Logged out) Check response status as there is nothing to test | testGetAccountMyTickets (Выход из системы) Проверка статуса ответа, так как ничего тестировать нет | public function testGetAccountMyTicketsOut()
{
// Grab page
$result = $this->visit('account/my-tickets')
->see('create your suaray account')
->see('welcome to suaray')
->seePageIs('/account/register');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function test_logout()\n\t{\n\t\t$response = $this->call('GET', 'v1/logout');\n\t\t$result = json_decode($response->getContent());\n\t\techo \"logout is : \";\n\t\tvar_dump($result->status);\n\t\t$this->assertEquals(\"success\", $result\n\t\t\t\t->status, 'We expected the post logout to have a success statu... | [
"0.6668292",
"0.6604397",
"0.6520081",
"0.65140164",
"0.6395835",
"0.6318588",
"0.6318478",
"0.62906235",
"0.6277408",
"0.6270062",
"0.6267205",
"0.6222439",
"0.6181347",
"0.614811",
"0.61365134",
"0.61303216",
"0.61138076",
"0.60876554",
"0.60563594",
"0.6038373",
"0.6037124... | 0.7160947 | 0 |
testGetAccountEventCheckIn (Logged out) Check response status as there is nothing to test | testGetAccountEventCheckIn (Выход из системы) Проверка статуса ответа, так как проверять нечего | public function testGetAccountEventCheckOut()
{
// Grab Page
$result = $this->visit('account/event/check-in')
->see('create your suaray account')
->see('welcome to suaray')
->seePageIs('/account/register');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testGetAccountEventCheckInUpdateOut()\n {\n // Grab Page\n $result = $this->visit('account/event/check-in/update')\n ->see('create your suaray account')\n ->see('welcome to suaray')\n ->seePageIs('/account/register');\n }",
"public function testCheckIfAccountExpired()\n ... | [
"0.7156879",
"0.7080483",
"0.70631415",
"0.7010198",
"0.6978376",
"0.69131655",
"0.67598426",
"0.6683855",
"0.66554224",
"0.6632142",
"0.65344507",
"0.6505674",
"0.64779806",
"0.6445418",
"0.6354793",
"0.6314121",
"0.6274228",
"0.62539685",
"0.6205464",
"0.62043",
"0.6203422"... | 0.73111206 | 0 |
testGetAccountEventCheckInConfirm (Logged out) Check response status as there is nothing to test | testGetAccountEventCheckInConfirm (Выход из системы) Проверка статуса ответа, так как ничего проверять нет | public function testGetAccountEventCheckInConfirmOut()
{
// Grab Page
$result = $this->visit('account/event/check-in/confirm')
->see('create your suaray account')
->see('welcome to suaray')
->seePageIs('/account/register');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testGetAccountEventCheckOut()\n {\n // Grab Page\n $result = $this->visit('account/event/check-in')\n ->see('create your suaray account')\n ->see('welcome to suaray')\n ->seePageIs('/account/register');\n }",
"public function testGetAccountEventCheckInUpdateOut()\n {\n ... | [
"0.74401635",
"0.7245459",
"0.6897544",
"0.68809015",
"0.67772985",
"0.66566074",
"0.65033966",
"0.6486",
"0.6432884",
"0.6393287",
"0.6372451",
"0.6358834",
"0.619785",
"0.61943823",
"0.6171475",
"0.6158083",
"0.6096138",
"0.60303485",
"0.6024526",
"0.60199636",
"0.6011911",... | 0.75876325 | 0 |
testGetAccountEventCheckInUpdate (Logged out) Check response status as there is nothing to test | testGetAccountEventCheckInUpdate (Выход из системы) Проверка статуса ответа, так как ничего тестировать нет | public function testGetAccountEventCheckInUpdateOut()
{
// Grab Page
$result = $this->visit('account/event/check-in/update')
->see('create your suaray account')
->see('welcome to suaray')
->seePageIs('/account/register');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testGetAccountEventCheckInUpdateIn($auth)\n {\n // Grab Page\n $result = $this->actingAs($auth)\n ->visit('account/event/check-in/update')\n ->see('success\":true')\n ->see('error\":null')\n ->seePageIs('account/event/check-in/update');\n }",
"public function testCheck... | [
"0.700943",
"0.689821",
"0.6872255",
"0.66200113",
"0.6489171",
"0.64361286",
"0.64273113",
"0.6386644",
"0.63387436",
"0.62770027",
"0.627433",
"0.6229652",
"0.6220888",
"0.6166621",
"0.61501074",
"0.6134572",
"0.61280215",
"0.6099625",
"0.60948944",
"0.6060294",
"0.60166883... | 0.7699054 | 0 |
/ testGetAccountProfile (Logged out) Check response status as there is nothing to test | / testGetAccountProfile (Выход из системы) Проверьте статус ответа, так как проверять нечего | public function testGetAccountProfileOut()
{
// Grab Page
$result = $this->visit('account/profile')
->see('create your suaray account')
->see('welcome to suaray')
->seePageIs('/account/register');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testProfileLogout()\n {\n\n }",
"public function testGetProfileNotLoggedIn()\r\n {\r\n $url = \"http://127.0.0.1/app_test.php/profile/view/bucky-barnes\";\r\n\r\n $response = \\Httpful\\Request::get($url)->send();\r\n\r\n //ERROR Call to a member function getWellness... | [
"0.72688866",
"0.70477766",
"0.7045691",
"0.7009929",
"0.69505584",
"0.69011784",
"0.68451935",
"0.6784885",
"0.67058307",
"0.6664202",
"0.6609449",
"0.65821654",
"0.65380555",
"0.65297997",
"0.65198505",
"0.65171945",
"0.65101385",
"0.6500194",
"0.64846236",
"0.6474296",
"0.... | 0.7348641 | 0 |
testGetAccountFriends (Logged out) Check response status as there is nothing to test | testGetAccountFriends (Выход из системы) Проверить статус ответа, так как ничего тестировать нет | public function testGetAccountFriendsOut()
{
// Grab Page
$result = $this->visit('account/friends')
->see('create your suaray account')
->see('welcome to suaray')
->seePageIs('/account/register');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testGetAccountFriendsUsersOut()\n {\n // Grab Page\n $result = $this->visit('account/friends/users')\n ->see('create your suaray account')\n ->see('welcome to suaray')\n ->seePageIs('/account/register');\n }",
"public function testFriendsDeleteOut()\n {\n $result = $thi... | [
"0.7257011",
"0.6977338",
"0.69603765",
"0.67514247",
"0.66459584",
"0.6640503",
"0.6566099",
"0.65510225",
"0.6402409",
"0.63231164",
"0.6319623",
"0.62562656",
"0.6171702",
"0.61407477",
"0.61210835",
"0.6111215",
"0.61107665",
"0.6040128",
"0.5997857",
"0.59857374",
"0.597... | 0.7249815 | 1 |
testGetAccountFriendsUsers (Logged out) Check response status as there is nothing to test | testGetAccountFriendsUsers (Выход из системы) Проверить статус ответа, так как проверять нечего | public function testGetAccountFriendsUsersOut()
{
// Grab Page
$result = $this->visit('account/friends/users')
->see('create your suaray account')
->see('welcome to suaray')
->seePageIs('/account/register');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testGetAccountFriendsOut()\n {\n // Grab Page\n $result = $this->visit('account/friends')\n ->see('create your suaray account')\n ->see('welcome to suaray')\n ->seePageIs('/account/register');\n }",
"public function testSuccessWithNoUsersToList()\n {\n $response =... | [
"0.71332854",
"0.69506365",
"0.6894336",
"0.67184997",
"0.65126127",
"0.64985305",
"0.64585817",
"0.64457726",
"0.6419605",
"0.63489",
"0.6298773",
"0.62956697",
"0.627762",
"0.62748927",
"0.6248139",
"0.6238653",
"0.62254786",
"0.61856925",
"0.61831045",
"0.6166761",
"0.6142... | 0.7485653 | 0 |
logged out test of delete friend request | тест выхода из системы при удалении заявки на дружбу | public function testRequestDeleteOut()
{
$result = $this->visit('account/friends/delete/request/{id}')
->see('create your suaray account')
->see('welcome to suaray')
->seePageIs('/account/register');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testFriendsDeleteOut()\n {\n $result = $this->visit('account/friends/delete/{id}')\n ->see('create your suaray account')\n ->see('welcome to suaray')\n ->seePageIs('/account/register');\n }",
"public function delete()\n\t{\n\t\t$this->plugin->setResponse($this->deletefriend())... | [
"0.7538791",
"0.7054002",
"0.67486995",
"0.67083025",
"0.65310794",
"0.6454781",
"0.6454106",
"0.6448405",
"0.6439734",
"0.63270766",
"0.6309642",
"0.6244956",
"0.6229749",
"0.62263376",
"0.62248874",
"0.6201838",
"0.6178022",
"0.6157464",
"0.6155201",
"0.61468875",
"0.613272... | 0.74493366 | 1 |
logged out test of delete friend | тест выхода из системы при удалении друга | public function testFriendsDeleteOut()
{
$result = $this->visit('account/friends/delete/{id}')
->see('create your suaray account')
->see('welcome to suaray')
->seePageIs('/account/register');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testRequestDeleteOut()\n {\n $result = $this->visit('account/friends/delete/request/{id}')\n ->see('create your suaray account')\n ->see('welcome to suaray')\n ->seePageIs('/account/register');\n }",
"public function deleteAction() {\r\n if (isset($_SESSION['Connected']... | [
"0.70069623",
"0.70041466",
"0.7003785",
"0.6786619",
"0.6658987",
"0.6541851",
"0.65118927",
"0.64921206",
"0.64663017",
"0.64360607",
"0.64316905",
"0.64195776",
"0.64068365",
"0.638037",
"0.6376749",
"0.63012016",
"0.6287302",
"0.62527883",
"0.62440723",
"0.6236407",
"0.62... | 0.75163406 | 0 |
logged out test of update friend | тест выхода из системы при обновлении друга | public function testFriendsUpdateOut()
{
$result = $this->visit('account/friends/update/{id}')
->see('create your suaray account')
->see('welcome to suaray')
->seePageIs('/account/register');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testUpdateUnauthenticatedAccess(): void { }",
"public function test_users_update_leader_leads_403(){\n $this->signInUser();\n $response = $this->patch(route('users.update', ['user' => 2]), $this->user); \n $response->assertStatus(403);\n }",
"public function testFriendsDe... | [
"0.62585306",
"0.60542464",
"0.60346127",
"0.5963051",
"0.58827347",
"0.5868872",
"0.5857033",
"0.5840976",
"0.58185655",
"0.58129877",
"0.5804539",
"0.57986945",
"0.5772304",
"0.5747984",
"0.5740803",
"0.5724279",
"0.56933486",
"0.5687572",
"0.56854093",
"0.5680526",
"0.5671... | 0.73894763 | 0 |
Logged out schedule update test | Тест обновления расписания после выхода из системы | public function testSchedulesUpdateOut()
{
$result = $this->visit('events/{event}/schedules/update/{id}')
->see('create your suaray account')
->see('welcome to suaray')
->seePageIs('/account/register');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testCanLogOut() {\n // TBA\n }",
"function admin_logout() {\n\t\t$this->Member->create();\n\t\t$db = $this->Member->getDataSource();\n\t\t$data['Member']['login_status'] = $db->expression(\"NOW()\");\n\t\t$data['Member']['id'] = $this->Session->read... | [
"0.67771626",
"0.6773893",
"0.6740707",
"0.66466385",
"0.66446996",
"0.6597811",
"0.6592813",
"0.65896827",
"0.6544282",
"0.6495624",
"0.64870405",
"0.64617306",
"0.6433431",
"0.6433414",
"0.643287",
"0.6428652",
"0.6428354",
"0.64070016",
"0.64066786",
"0.6377629",
"0.637475... | 0.74165565 | 0 |
testGetAccountFriendsCreateRequest (Logged out) Check response status as there is nothing to test | testGetAccountFriendsCreateRequest (Выход из системы) Проверить статус ответа, так как ничего проверять нет возможности | public function testGetAccountFriendsCreateRequestOut()
{
$friendId = '5';
Session::start();
$token = csrf_token();
$data = [
'_token' => $token,
];
// Grab Page
$result = $this->get('account/friends/create/request/' . $friendId, $data);
$this->assertResponseStatus(302);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testFriendsDeleteOut()\n {\n $result = $this->visit('account/friends/delete/{id}')\n ->see('create your suaray account')\n ->see('welcome to suaray')\n ->seePageIs('/account/register');\n }",
"public function testGetAccountFriendsOut()\n {\n // Grab Page\n $result = $th... | [
"0.68419677",
"0.6784916",
"0.6767432",
"0.67288053",
"0.6658779",
"0.66164637",
"0.64022785",
"0.6283326",
"0.62288404",
"0.61084497",
"0.6105622",
"0.6045794",
"0.60253274",
"0.6009224",
"0.5982347",
"0.5966679",
"0.5965201",
"0.5888142",
"0.58726954",
"0.58723706",
"0.5850... | 0.7707803 | 0 |
testGetEventsEventSchedulesId (Logged out) Check response status as there is nothing to test | testGetEventsEventSchedulesId (Выход из системы) Проверить статус ответа, так как ничего тестировать нет | public function testGetEventsEventSchedulesIdOut()
{
$eventId = '1';
$id = '1';
$result = $this->visit('events/' . $eventId . '/schedules/' . $id)
->see('create your suaray account')
->see('welcome to suaray')
->seePageIs('/account/register');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testGetEventsIdSchedulesOut()\n {\n $eventId = '1';\n\n $result = $this->visit('events/' . $eventId . '/schedules')\n ->see('create your suaray account')\n ->see('welcome to suaray')\n ->seePageIs('/account/register');\n }",
"public function testEventsList()\n {\n ... | [
"0.7729513",
"0.7003781",
"0.6926943",
"0.68418974",
"0.67271096",
"0.6726869",
"0.6700262",
"0.6643027",
"0.65365505",
"0.6501602",
"0.6472009",
"0.64125884",
"0.6325936",
"0.6318217",
"0.62621826",
"0.625452",
"0.62486494",
"0.62452054",
"0.61267316",
"0.6122904",
"0.607588... | 0.7524929 | 1 |
testGetEventsIdSchedules (Logged out) Check response status as there is nothing to test | testGetEventsIdSchedules (Выход из системы) Проверьте статус ответа, так как ничего тестировать нет | public function testGetEventsIdSchedulesOut()
{
$eventId = '1';
$result = $this->visit('events/' . $eventId . '/schedules')
->see('create your suaray account')
->see('welcome to suaray')
->seePageIs('/account/register');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testGetEventsEventSchedulesIdOut()\n {\n $eventId = '1';\n $id = '1';\n\n $result = $this->visit('events/' . $eventId . '/schedules/' . $id)\n ->see('create your suaray account')\n ->see('welcome to suaray')\n ->seePageIs('/account/register');\n }",
"public function test... | [
"0.7452563",
"0.7018472",
"0.69010425",
"0.68714476",
"0.6814501",
"0.6612918",
"0.6544576",
"0.6544075",
"0.6454989",
"0.64491093",
"0.63191015",
"0.6311529",
"0.6273483",
"0.62285995",
"0.6221289",
"0.6220216",
"0.6213365",
"0.6177034",
"0.6169324",
"0.614569",
"0.6139858",... | 0.77021796 | 0 |
Print the funtion name | Выведите имя функции | function test()
{
echo "The fuction name is: ".__FUNCTION__."<br><br>";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function test(){ \n //print the function name i.e; test. \n echo 'The function name is '. __FUNCTION__ . \"<br><br>\"; \n }",
"public function getFunctionName()\n {\n return $this->function;\n }",
"public function getFunctionName() \n\t{\n\t\treturn $this->function_name;\n\... | [
"0.78451973",
"0.72897995",
"0.72855365",
"0.72386074",
"0.7231346",
"0.7194874",
"0.7185265",
"0.71382254",
"0.71382254",
"0.71382254",
"0.7027565",
"0.6859406",
"0.68539405",
"0.6816245",
"0.681361",
"0.6779787",
"0.6779787",
"0.6779787",
"0.6779787",
"0.67336583",
"0.66763... | 0.7882013 | 0 |
If the current Backend User has set a temporary DB mount, it is stored to her/his UC. | Если текущий пользователь бэкенда установил временный монтирование БД, оно сохраняется в его UC. | protected function setTemporaryDbMounts()
{
$backendUser = $this->getBackendUser();
// Clear temporary DB mounts
$tmpMount = GeneralUtility::_GET('setTempDBmount');
if (isset($tmpMount)) {
$backendUser->setAndSaveSessionData('pageTree_temporaryMountPoint', (int)$tmpMount... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function initializeTemporaryDatabaseMount()\n {\n $backendUser = $this->getBackendUser();\n\n // Set/Cancel Temporary DB Mount:\n if (strlen($this->setTemporaryDatabaseMount)) {\n $set = max($this->setTemporaryDatabaseMount, 0);\n // Setting...:\n ... | [
"0.70660484",
"0.69936085",
"0.5748251",
"0.57090616",
"0.55253965",
"0.5489031",
"0.5400628",
"0.5302352",
"0.5274703",
"0.52739227",
"0.51872534",
"0.5112991",
"0.510015",
"0.5068928",
"0.50505275",
"0.5005781",
"0.49919373",
"0.49769443",
"0.49646893",
"0.4948219",
"0.4930... | 0.76219535 | 0 |
Recursively extract the value of the data key for each file within a set of files. | Рекурсивно извлекайте значение ключа данных для каждого файла в наборе файлов. | function data_extract( array $files ) {
// Recursively extract the data key from the files.
return array_map(function($file) {
// Extract the data key.
return (isset($file['data']) ? $file['data'] : data_extract($file));
}, $files);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function searchFile($filePath, $currentPathKey, $files)\n{\n if ($currentPathKey == (count($filePath) - 1)) {\n return $files[$filePath[$currentPathKey]];\n } else {\n return searchFile($filePath, ($currentPathKey + 1), $files[$filePath[$currentPathKey]]['children']);\n }\n}",
"public func... | [
"0.55639166",
"0.5542399",
"0.550288",
"0.5321676",
"0.53181845",
"0.52595985",
"0.51690376",
"0.5093684",
"0.5093098",
"0.50808877",
"0.5056665",
"0.5025707",
"0.5007857",
"0.50049967",
"0.4999987",
"0.49971056",
"0.49923798",
"0.4989559",
"0.49629024",
"0.49550828",
"0.4923... | 0.72744596 | 0 |
mass delete offer action | действие массового удаления предложения | public function massDeleteAction()
{
$offerIds = $this->getRequest()->getParam('offer');
if (!is_array($offerIds)) {
Mage::getSingleton('adminhtml/session')->addError(
Mage::helper('mfb_myflyingbox')->__('Please select offers to delete.')
);
} else {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function multiDeleteAction() {\n if ($this->getRequest()->isPost()) {\n $values = $this->getRequest()->getPost();\n foreach ($values as $key => $value) {\n if ($key == 'delete_' . $value) {\n //DELETE OFFERS FROM DATABASE AND SCRIBD\n $offer_id = (int) $value;\n\t\t\t\t... | [
"0.7505983",
"0.7382481",
"0.73757595",
"0.7013971",
"0.6953614",
"0.6953614",
"0.6815862",
"0.67944705",
"0.67880255",
"0.6781958",
"0.67497486",
"0.67444295",
"0.67444295",
"0.67444295",
"0.67444295",
"0.67444295",
"0.67444295",
"0.67444295",
"0.67444295",
"0.67444295",
"0.... | 0.813297 | 0 |
Get a random ID | Получить случайный ID | protected function getID()
{
return rand();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getRandomID() \n\t{\n\t\treturn $this->random_id;\n\t}",
"public static function generateID()\n {\n return mt_rand();\n }",
"function randomId(): int\n{\n // Don't ask why I chose this number.\n return random_int(0, 4294967295);\n}",
"function gen_rand_id()\n\t{\n\t\treturn... | [
"0.87259",
"0.8448375",
"0.8248098",
"0.81308407",
"0.812291",
"0.80612797",
"0.7961272",
"0.7960734",
"0.79024464",
"0.7865333",
"0.7810931",
"0.7802197",
"0.7531103",
"0.7520928",
"0.74960345",
"0.74850845",
"0.74392533",
"0.7433966",
"0.7421078",
"0.74041885",
"0.7338436",... | 0.87776273 | 0 |
Create a new, empty DataTable. This method will create an empty DataTable, with or without a timezone. | Создайте новый, пустой DataTable. Этот метод создаст пустой DataTable, с учетом или без учета часового пояса. | private static function emptyDataTable($timezone)
{
$datatable = '\Khill\Lavacharts\DataTablePlus\DataTablePlus';
if (class_exists($datatable) === false) {
$datatable = '\Khill\Lavacharts\DataTables\DataTable';
}
return new $datatable($timezone);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getEmptyClone()\n {\n $clone = new Piwik_DataTable;\n $clone->queuedFilters = $this->queuedFilters;\n $clone->metadata = $this->metadata;\n return $clone;\n }",
"protected function init_datatable(): stdClass\n {\n $columns[\"com_cliente_id\"][\"titulo\"... | [
"0.6177281",
"0.61461043",
"0.5848567",
"0.5747422",
"0.55826086",
"0.55088323",
"0.5457823",
"0.5253041",
"0.5229824",
"0.52029747",
"0.5192758",
"0.5192307",
"0.5189314",
"0.51606846",
"0.51577634",
"0.51216334",
"0.5008189",
"0.5003832",
"0.5002926",
"0.49996537",
"0.49967... | 0.7920888 | 0 |
Returns an array of location types | Возвращает массив типов местоположений | public static function getTypes()
{
$sql = 'SELECT * FROM location_type';
$command = Yii::app()->db->createCommand($sql);
return $command->queryAll(true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function get_location_types()\n {\n return $this->retrieve('SELECT * FROM isys_obj_type WHERE isys_obj_type__container <> 0;');\n }",
"function acf_get_location_types()\n{\n}",
"function acf_get_location_rule_types()\n{\n}",
"public static function getTypesList()\n {\n $sql = 'S... | [
"0.82921153",
"0.796395",
"0.7554607",
"0.75306976",
"0.7113351",
"0.7109518",
"0.7109518",
"0.69210327",
"0.6894923",
"0.6852088",
"0.6852088",
"0.6852088",
"0.6852088",
"0.6819425",
"0.6736794",
"0.67006224",
"0.663093",
"0.6625332",
"0.6564712",
"0.65426624",
"0.6542324",
... | 0.8049719 | 1 |
Returns an array of location statuses | Возвращает массив статусов местоположений | public static function getStatuses()
{
$sql = 'SELECT * FROM location_status';
$command = Yii::app()->db->createCommand($sql);
return $command->queryAll(true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function getStatusesList()\n {\n $sql = 'SELECT id AS value, display_name AS text '\n . 'FROM location_status '\n . 'WHERE active = 1';\n $command = Yii::app()->db->createCommand($sql);\n return $command->queryAll(true);\n }",
"public static ... | [
"0.78715813",
"0.7414954",
"0.70135576",
"0.6985992",
"0.69725436",
"0.69435424",
"0.691977",
"0.6890651",
"0.68767047",
"0.6752113",
"0.67067933",
"0.6686106",
"0.66381985",
"0.6629282",
"0.66046786",
"0.6599941",
"0.64936596",
"0.64913917",
"0.64830416",
"0.6477191",
"0.645... | 0.83205616 | 0 |
Returns an array of location statuses | Возвращает массив статусов местоположений | public static function getStatusesList()
{
$sql = 'SELECT id AS value, display_name AS text '
. 'FROM location_status '
. 'WHERE active = 1';
$command = Yii::app()->db->createCommand($sql);
return $command->queryAll(true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function getStatuses()\n {\n $sql = 'SELECT * FROM location_status';\n $command = Yii::app()->db->createCommand($sql);\n return $command->queryAll(true);\n }",
"public static function getStatuses(): array;",
"public static function get_statuses() {\n return array(\n ... | [
"0.83205616",
"0.7414954",
"0.70135576",
"0.6985992",
"0.69725436",
"0.69435424",
"0.691977",
"0.6890651",
"0.68767047",
"0.6752113",
"0.67067933",
"0.6686106",
"0.66381985",
"0.6629282",
"0.66046786",
"0.6599941",
"0.64936596",
"0.64913917",
"0.64830416",
"0.6477191",
"0.645... | 0.78715813 | 1 |
Returns an array of attributes that are in the summary view | Возвращает массив атрибутов, которые находятся в представлении сводки | public static function getSummaryAttributes()
{
return array(
'id' => array(
'name' => 'id',
'display' => 'ID',
'type' => 'numeric',
'link' => 'endpoint',
),
'external_id' => array(
'name' => ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function getSummaryAttributes()\n {\n return array(\n 'id' => array(\n 'name' => 'id',\n 'display' => 'ID',\n 'type' => 'numeric',\n 'link' => 'endpoint',\n ),\n 'event_id' => array(\n ... | [
"0.7669204",
"0.7170206",
"0.6985952",
"0.6706133",
"0.658365",
"0.6466638",
"0.6466638",
"0.6466638",
"0.6466638",
"0.6466638",
"0.6466638",
"0.6466638",
"0.6466638",
"0.6466638",
"0.6449092",
"0.6449092",
"0.6449092",
"0.6449092",
"0.6431825",
"0.6431825",
"0.6431825",
"0... | 0.7815833 | 0 |
Register Service Providers for this package | Регистрация поставщиков служб для этого пакета | protected function registerServiceProviders()
{
// Core Bus
// -----------------------------------------------------------------------------
$this->app->register('Congraph\Core\Bus\BusServiceProvider');
// Core Event
// -----------------------------------------------------------------------------
$this->a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function registerServiceProviders()\n {\n foreach ($this->providers as $provider) {\n $this->app->register($provider);\n }\n }",
"protected function registerServiceProviders()\n {\n if ($this->active()->has('providers')) {\n $providers = $this->active... | [
"0.8426404",
"0.82671076",
"0.8106842",
"0.7987194",
"0.7928222",
"0.79251707",
"0.7874128",
"0.7869936",
"0.7838294",
"0.78020215",
"0.76793",
"0.7646068",
"0.758897",
"0.75674117",
"0.7531697",
"0.75172186",
"0.7481219",
"0.7449168",
"0.74199843",
"0.738162",
"0.7381475",
... | 0.83546996 | 1 |
Register the swift mailer manager. | Зарегистрируйте менеджера swift mailer. | protected function registerSwiftMailerManager()
{
$this->app->singleton('swift.mailer.manager', function ($app) {
return (new SwiftMailerManager($app))
->setTransportManager($app['swift.transport']);
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function registerSwiftMailer()\n {\n if ($this->app['config']['mail.driver'] == 'mymsgmail') {\n $this->registerMymsgSwiftMailer();\n } else {\n parent::registerSwiftMailer();\n }\n }",
"protected function registerManager()\n {\n $this->app->singl... | [
"0.718045",
"0.7003345",
"0.69963795",
"0.68303883",
"0.67362887",
"0.6683054",
"0.6472881",
"0.6329089",
"0.62470025",
"0.61696297",
"0.6073975",
"0.5954613",
"0.58493733",
"0.58235574",
"0.57805026",
"0.5602244",
"0.5596446",
"0.5591378",
"0.55345255",
"0.55222416",
"0.5521... | 0.8028303 | 0 |
Register the Mailer instance. | Зарегистрируйте экземпляр Mailer. | protected function registerIlluminateMailer()
{
$this->app->singleton('mailer', function ($app) {
// Once we have create the mailer instance, we will set a container instance
// on the mailer. This allows us to resolve mailer classes via containers
// for maximum testabil... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function registerIlluminateMailer()\n {\n $this->app->singleton('mail.manager', function ($app) {\n return new CustomMailManager($app);\n });\n\n $this->app->bind('mailer', function ($app) {\n return $app->make('mail.manager')->mailer();\n });\n }",... | [
"0.70462346",
"0.6965263",
"0.6564817",
"0.6424464",
"0.62224877",
"0.6178852",
"0.61207795",
"0.61137754",
"0.6105494",
"0.6099814",
"0.60871774",
"0.6079569",
"0.60682243",
"0.6048195",
"0.6030149",
"0.601202",
"0.59481454",
"0.5924527",
"0.59141517",
"0.58762664",
"0.58585... | 0.7197378 | 0 |
Devuelve el valor de articulo | Возвращает значение статьи | public function getArticulo()
{
return $this->articulo;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getArtigo() {\n return $this->artigo;\n }",
"function loadArticulo(){\n\t\t\t$r = $this->ar->getArticuloById($this->id);\n\t\t\tif($r != -1){\n\t\t\t\t$this->id \t\t\t= $r['doa_id'];\n\t\t\t\t$this->alcance \t\t= $r['alc_id'];\n\t\t\t\t$this->documento \t= $r['doc_id'];\n\t\t\t\t$thi... | [
"0.67010015",
"0.62546504",
"0.6197292",
"0.6196479",
"0.61944836",
"0.61944836",
"0.61944836",
"0.6191475",
"0.6161825",
"0.6051127",
"0.59797037",
"0.59613305",
"0.5938448",
"0.5938448",
"0.5934709",
"0.5925339",
"0.59004724",
"0.58718413",
"0.5866362",
"0.58325696",
"0.581... | 0.71668816 | 0 |
function MyMod_Paging_Init, Parameter list: $hash=array() Initializes paging subsystem. | Функция MyMod_Paging_Init, Список параметров: $hash=array() Инициализирует подсистему пагинации. | function MyMod_Paging_Init($hash=array())
{
$query=$this->CGI_Script_Query_Hash();
unset($query[ "Page" ]);
$query=$this->MyMod_Search_CGI_Hash_Get($query);
$this->PageURL=$this->CGI_Script_Exec($this->CGI_Hash2Query($query));
$this->NumberOfItems=count($this->ItemHashes)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function page_init() {\n }",
"function xh_initModules()\r\n\t{\r\n\t}",
"public function initPage() {}",
"public function initPage() {}",
"protected function _init()\r\n\t{\r\n\t}",
"abstract protected function _init( );",
"public function extProc_init() {}",
"public function extProc_init(... | [
"0.67828095",
"0.6462842",
"0.61836994",
"0.61836994",
"0.61785764",
"0.61627847",
"0.61123645",
"0.611225",
"0.6069937",
"0.6020607",
"0.60113335",
"0.5984985",
"0.5984985",
"0.5981447",
"0.5976398",
"0.5972193",
"0.5972193",
"0.59502435",
"0.59198046",
"0.59198046",
"0.5914... | 0.8617559 | 0 |
function MyMod_Paging_NItemsPerPage_Set, Parameter list: Updates $this>NItemsPerPage. | Функция MyMod_Paging_NItemsPerPage_Set, Список параметров: Обновляет $this>NItemsPerPage. | function MyMod_Paging_NItemsPerPage_Set()
{
$val=$this->CGI_VarValue($this->ModuleName."_NItemsPerPage");;
if (!empty($val) && preg_match('/^\d+$/',$val))
{
$this->NItemsPerPage=$val;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function MyMod_Paging_NPages_Set()\n {\n if ($this->NumberOfItems>$this->NItemsPerPage)\n {\n $this->MyMod_Paging_N=intval($this->NumberOfItems/$this->NItemsPerPage);\n $res=$this->NumberOfItems % $this->NItemsPerPage;\n if ($res>0) { $this->MyMod_Paging_N++; }\n ... | [
"0.8695222",
"0.80993676",
"0.74690545",
"0.7271786",
"0.71208525",
"0.7113368",
"0.709147",
"0.6979398",
"0.69562095",
"0.68598676",
"0.68295157",
"0.6826541",
"0.6798113",
"0.6761237",
"0.67580795",
"0.66589946",
"0.66589946",
"0.6553894",
"0.65463114",
"0.6538605",
"0.6533... | 0.8830138 | 0 |
function MyMod_Paging_NPages_Set, Parameter list: Updates $this>MyMod_Paging_N. | Функция MyMod_Paging_NPages_Set, Список параметров: Обновляет $this>MyMod_Paging_N. | function MyMod_Paging_NPages_Set()
{
if ($this->NumberOfItems>$this->NItemsPerPage)
{
$this->MyMod_Paging_N=intval($this->NumberOfItems/$this->NItemsPerPage);
$res=$this->NumberOfItems % $this->NItemsPerPage;
if ($res>0) { $this->MyMod_Paging_N++; }
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function MyMod_Paging_NItemsPerPage_Set()\n {\n $val=$this->CGI_VarValue($this->ModuleName.\"_NItemsPerPage\");;\n if (!empty($val) && preg_match('/^\\d+$/',$val))\n {\n $this->NItemsPerPage=$val;\n }\n }",
"function MyMod_Paging_Page_No_Set()\n {\n //$this-... | [
"0.8329632",
"0.76269794",
"0.7374577",
"0.73632497",
"0.7292308",
"0.70409817",
"0.69201046",
"0.683434",
"0.6833028",
"0.68237686",
"0.6797446",
"0.6638237",
"0.65408653",
"0.6482425",
"0.64396894",
"0.6405911",
"0.635544",
"0.6352841",
"0.6279974",
"0.62638736",
"0.6262167... | 0.9050495 | 0 |
function MyMod_Paging_Page_No_Get, Parameter list: Returns value of pageno, as from CGI. | Функция MyMod_Paging_Page_No_Get, Список параметров: Возвращает значение pageno, как из CGI. | function MyMod_Paging_Page_No_Get()
{
$this->MyMod_Paging_No=$this->GetPOST($this->ModuleName."_Page");
if (empty($this->MyMod_Paging_No))
{
$this->MyMod_Paging_No=$this->GetGETOrPOST("Page");
}
if (empty($this->MyMod_Paging_No)) { $this->MyMod_Paging_No=1; }
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function pageGetPageNo() {\n if (get_query_var('paged')) {\n print ' | Page ' . get_query_var('paged');\n }\n}",
"public function getPageNr(){\n\t\tif(isset($_GET['p'])){\n\t\t\treturn $_GET['p'];\n\t\t}else{\n\t\t\treturn 1;\n\t\t}\n\t}",
"function MyMod_Paging_Page_No_Set()\n {\n //$th... | [
"0.78296274",
"0.74516416",
"0.71188825",
"0.7007955",
"0.7007955",
"0.6968273",
"0.6893727",
"0.6893727",
"0.68739736",
"0.6724503",
"0.6687649",
"0.66581887",
"0.6629788",
"0.6599994",
"0.6549577",
"0.65396184",
"0.65350235",
"0.65198845",
"0.65172607",
"0.65167236",
"0.650... | 0.7926564 | 0 |
function MyMod_Paging_Page_No_Set, Parameter list: Updates $this>MyMod_Paging_No. | Функция MyMod_Paging_Page_No_Set, Список параметров: Обновляет $this>MyMod_Paging_No. | function MyMod_Paging_Page_No_Set()
{
//$this->MyMod_Paging_No=$this->PresetPage;
if (empty($this->MyMod_Paging_No))
{
$this->MyMod_Paging_No=$this->GetPOST($this->ModuleName."_Page");
if (empty($this->MyMod_Paging_No))
{
$this->MyMod_Pagin... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function MyMod_Paging_NPages_Set()\n {\n if ($this->NumberOfItems>$this->NItemsPerPage)\n {\n $this->MyMod_Paging_N=intval($this->NumberOfItems/$this->NItemsPerPage);\n $res=$this->NumberOfItems % $this->NItemsPerPage;\n if ($res>0) { $this->MyMod_Paging_N++; }\n ... | [
"0.8135328",
"0.8058278",
"0.7173304",
"0.7121061",
"0.67937684",
"0.6527157",
"0.64978266",
"0.6496591",
"0.6468081",
"0.64631104",
"0.6419837",
"0.64075375",
"0.6402757",
"0.6363846",
"0.63290936",
"0.6316322",
"0.62868005",
"0.6285907",
"0.6285907",
"0.6271536",
"0.626362"... | 0.863819 | 0 |
function MyMod_Paging_Page_No_2_Item_Nos, Parameter list: Updates $this>FirstItemNo, $this>LastItemNo and $this>OffSet. | Функция MyMod_Paging_Page_No_2_Item_Nos, Список параметров: Обновляет $this>FirstItemNo, $this>LastItemNo и $this>OffSet. | function MyMod_Paging_Page_No_2_Item_Nos()
{
if ($this->NumberOfItems>$this->NItemsPerPage)
{
if ($this->MyMod_Paging_Active_ID && $this->MyMod_Paging_Active_ID>0)
{
$this->FirstItemNo=0;
foreach ($items as $id => $item)
{
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function MyMod_Paging_NItemsPerPage_Set()\n {\n $val=$this->CGI_VarValue($this->ModuleName.\"_NItemsPerPage\");;\n if (!empty($val) && preg_match('/^\\d+$/',$val))\n {\n $this->NItemsPerPage=$val;\n }\n }",
"function MyMod_Paging_NPages_Set()\n {\n if ($this... | [
"0.6344066",
"0.6312431",
"0.5731297",
"0.5612276",
"0.55670625",
"0.54194176",
"0.5302006",
"0.5252224",
"0.5250366",
"0.51866007",
"0.51714605",
"0.5061438",
"0.5057631",
"0.50239074",
"0.5010609",
"0.5005632",
"0.49953136",
"0.49827677",
"0.49721",
"0.49188602",
"0.4892065... | 0.8242673 | 0 |
Retrieves the image for a certain contact | Получает изображение для определенного контакта | public function get_contactimage($aid = 0, $inc_global = 0)
{
$aid = ($aid) ? intval($aid) : 0;
switch ($inc_global) {
case 3: $q_r = '(owner IN('.$this->uid.',0) OR (owner!='.$this->uid.' AND visibility="public"))'; break;
case 2: $q_r = '(owner='.$this->uid.' OR (owner!='.$... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPicture(){\n\t\t$criteria = new CDbCriteria();\n\t\t$criteria->condition = \"emp_id = :EMPID\";\n\t\t$criteria->params[':EMPID'] = $this->emp_id;\n\t\t$criteria->select = \"pic,location_pic\";\n\t\t$empl_pic = Employees::model()->find($criteria);\n\t\treturn \t$empl_pic;\n\t}",
"public functio... | [
"0.6623237",
"0.6525648",
"0.6277056",
"0.6249135",
"0.621902",
"0.62080216",
"0.6149706",
"0.61368823",
"0.6126677",
"0.61170334",
"0.6105496",
"0.60909253",
"0.60901296",
"0.6076477",
"0.60628015",
"0.6060975",
"0.6023111",
"0.60034424",
"0.59844166",
"0.5965327",
"0.594721... | 0.7207993 | 0 |
Add an contact to the address book Omit data you don't want to set Set the owner to 0 for a global contact Input : adb_add_contact(array field data) | Добавить контакт в адресную книгу. Пропустить данные, которые не хотите устанавливать. Установить владельца в 0 для глобального контакта. Входные данные: adb_add_contact(массив данных поля) | public function add_contact($data)
{
$aid = false;
$add = array();
foreach (array(
'nick' => '""', 'firstname' => '""', 'lastname' => '""', 'thirdname' => '""',
'title' => '""', 'company' => '""', 'comp_dep' => '""', 'comp_role' => '""',
'comp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function add_new_phonebook_contact($phonebook_data_type, $id, $name, $phone, $address, $email, $contactPerson, $contactType){\n\t\tif( isset($_POST[$phonebook_data_type]) ){\n\t\t\tglobal $base;\n\t\t\tswitch ($_POST[$phonebook_data_type]) {\n\t\t\t\tcase 'insert':\n\t\t\t\t\t$phonebook = new phonebook();\n\t\t\n\... | [
"0.65329707",
"0.65137434",
"0.6360099",
"0.6337096",
"0.62912244",
"0.6152085",
"0.61417055",
"0.61228204",
"0.61167675",
"0.61001927",
"0.6058911",
"0.59813994",
"0.5938072",
"0.5904522",
"0.5900109",
"0.5889055",
"0.5877854",
"0.58747303",
"0.5874455",
"0.58644634",
"0.585... | 0.71964747 | 0 |
Check, whether a group name for a ceratin user already exists Input : adb_checkfor_groupname(integer owner, string groupname) | Проверьте, существует ли имя группы для определенного пользователя. Входные данные: adb_checkfor_groupname(целое owner, строка groupname) | public function checkfor_groupname($name = '')
{
$query = 'SELECT gid FROM '.$this->Tbl['adb_group'].' WHERE owner='.$this->uid.' AND name="'.$this->esc($name).'"';
list ($result) = $this->fetchrow($this->query($query));
return ($result) ? $result : false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function checkfor_groupname($name = '')\n {\n $query = 'SELECT gid FROM '.$this->Tbl['cal_group'].' WHERE owner='.$this->uid.' AND name=\"'.$this->esc($name).'\"';\n list ($result) = $this->fetchrow($this->query($query));\n return ($result) ? $result : false;\n }",
"private func... | [
"0.74024475",
"0.71348494",
"0.6966758",
"0.6803285",
"0.66340625",
"0.66300637",
"0.6570902",
"0.6561207",
"0.6523767",
"0.6407948",
"0.63857245",
"0.6340406",
"0.628799",
"0.62747216",
"0.6232114",
"0.62189114",
"0.6155453",
"0.6150861",
"0.61422086",
"0.6140432",
"0.611785... | 0.75372905 | 0 |
Push entity to repository | Пушить сущность в репозиторий | public function pushEntity($entity): void
{
/** @var EntityRepository $repository */
$repository = Prime::repository($entity);
$mapper = $repository->mapper();
$isReadOnly = $mapper->isReadOnly();
$mapper->setReadOnly(false);
$repository->disableEventNotifier();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function onEntityRepositoryAttach(IEntity $entity): void;",
"public function persist($entity)\n {\n }",
"public function postPersist($entity);",
"public function push() {\n\t\t$this->save();\n\n\t\t// To sync all of the relationships to the database, we will simply spin through\n\t\t// the relat... | [
"0.64785236",
"0.6265551",
"0.6073144",
"0.6071813",
"0.6034604",
"0.6011305",
"0.6011305",
"0.6011305",
"0.59048164",
"0.58294547",
"0.5804454",
"0.5778774",
"0.574504",
"0.5735215",
"0.57335925",
"0.5703773",
"0.5697073",
"0.56970644",
"0.56661916",
"0.56576496",
"0.5637181... | 0.77137196 | 0 |
Create a save point on each active connections | Создать точку сохранения на каждой активной соединении | protected function createSavePoint(): void
{
foreach ($this->getActiveConnections() as $connection) {
try {
$connection->setNestTransactionsWithSavepoints(true);
$connection->beginTransaction();
} catch (\Exception $e) {
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function createSavepoint()\n {\n $this->exec(\n $this->compileSavepoint('trans' . ($this->transactions + 1))\n );\n }",
"function save(){\n\t\tif (isset($this->id) && !$this->_new) {\n\t\t\t$sql = \"UPDATE `layer_points` set \";\n\t\t\t$i = 0;\n\t\t\tforeach($this->UPDATE... | [
"0.60750246",
"0.60261333",
"0.59215266",
"0.5520151",
"0.5429656",
"0.53722686",
"0.5344853",
"0.5300442",
"0.5293439",
"0.52706635",
"0.52637064",
"0.5232514",
"0.5222522",
"0.5178473",
"0.5157392",
"0.51077914",
"0.5106214",
"0.5100503",
"0.5089453",
"0.5086956",
"0.504454... | 0.79020053 | 0 |
This method when called sends a group invitiation to the user fro the search | Этот метод, когда вызывается, отправляет приглашение в группу пользователю из поиска | public function sendGroupInvite(){
//Gets the other users id
$otherUserId = $_POST["otherUserId"];
//Gets the other users information
$userInfo = $this->individualGroupModel->getUserInfo($otherUserId);
//Gets the group information
$groupInfo = $this->individualGroupModel->getGroupInf... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function ProcessInvites () {\n global $zLOCALUSER;\n\n global $gINVITES, $gSITEDOMAIN;\n global $gINVITINGUSER, $gGROUPFULLNAME, $gGROUPURL;\n global $gGROUPINVITEACTION, $gGROUPINVITEUSERNAME, $gGROUPINVITEDOMAIN;\n\n // Loop through the action list.\n foreach ($gGROUPINVITEACTION as... | [
"0.6807322",
"0.64395875",
"0.6431199",
"0.62571555",
"0.6180305",
"0.61264086",
"0.60969555",
"0.6069076",
"0.60110575",
"0.5919071",
"0.5906147",
"0.5877728",
"0.58475095",
"0.58172166",
"0.5811429",
"0.58071727",
"0.5792262",
"0.5784128",
"0.577846",
"0.57575566",
"0.57575... | 0.7305382 | 0 |
This method is called when the user wants to send a message from the group page to another user who belongs to the same group | Этот метод вызывается, когда пользователь хочет отправить сообщение с страницы группы другому пользователю, который принадлежит к той же группе | public function sendMessage(){
//Gets the recievers id
$userId = $_POST["userIdForMessage"];
//gets the message text
$messageText = $_POST["messageText"];
//Makes sure not of the above variables are empty
if(empty($userId) == false && empty($messageText) == false){
//Gets the... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function sendGroupInvite(){\n //Gets the other users id\n $otherUserId = $_POST[\"otherUserId\"];\n //Gets the other users information\n $userInfo = $this->individualGroupModel->getUserInfo($otherUserId);\n //Gets the group information\n $groupInfo = $this->individualGroupModel... | [
"0.6833457",
"0.6590386",
"0.6439589",
"0.6372756",
"0.61858785",
"0.6130288",
"0.6110153",
"0.61008996",
"0.6038358",
"0.60158455",
"0.5999719",
"0.59168726",
"0.5911773",
"0.58808446",
"0.58659786",
"0.58121043",
"0.58058184",
"0.57810855",
"0.57649094",
"0.5757702",
"0.575... | 0.70453525 | 0 |
The taskComplete functions changes a groups task from incomplete to complete | Функция taskComplete изменяет задачу группы с неисполненной на выполненную | public function taskComplete(){
$taskId = $_POST["taskId"];
$this->individualGroupModel->changeTaskCompletion($taskId, true);
//redirect
$path = '/IndividualGroupController/individualGroup?groupId=' . $_SESSION['current_group'];
redirect($path);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function completing($task)\n {\n $task->update(['complete' => true]);\n\n $this->createActive('create_with_complete_task', 'App\\Models\\Task', $this->id);\n }",
"public function setTaskDone()\n {\n // Simply unlink our task file.\n unlink($this->taskFilePath);\n }",
"public ... | [
"0.63733655",
"0.62078786",
"0.60808104",
"0.6065707",
"0.5949079",
"0.5949079",
"0.58855027",
"0.58502406",
"0.5805389",
"0.57969236",
"0.57913244",
"0.5750094",
"0.57294124",
"0.57049495",
"0.56883943",
"0.5649566",
"0.56006896",
"0.5550131",
"0.54797727",
"0.5474867",
"0.5... | 0.7154666 | 0 |
This method helps round the minutes when calculating the time | Этот метод помогает округлять минуты при расчете времени | function roundMinutes($timestring) {
$minutes = date('i', strtotime($timestring));
$minutesLeft = $minutes % 5;
switch($minutesLeft){
case 0:
return $minutes;
break;
case 1:
return $minutes - 1;
break;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getTimeInMinutes();",
"public function toMinutes($time) {\n \treturn intval($time / 60000) % 60;\n }",
"protected function calculateTime()\n {\n return $this->start->diffInHours($this->end) +\n round(\n ($this->start->diffInMinutes($this->end) - ($this-... | [
"0.70326126",
"0.6588641",
"0.6446812",
"0.6380485",
"0.6379081",
"0.6288074",
"0.6275351",
"0.62561804",
"0.61700577",
"0.6164475",
"0.61135274",
"0.6103938",
"0.60748196",
"0.6064378",
"0.5999069",
"0.59838426",
"0.59764826",
"0.5959091",
"0.59361726",
"0.59239346",
"0.5898... | 0.7377364 | 0 |
Array of equipment linked to the service. | Массив оборудования, связанного с сервисом. | public function getServiceEquipment(): ?array
{
return $this->serviceEquipment;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function quoteGetEquipmentAction()\n {\n \t$this->_helper->layout()->disableLayout();\n \t\n \t$this->view->quoteId = $this->_request->getParam('id');\n \t$this->view->equipments = array();\n \tif (!empty($this->view->quoteId)) {\n \t\t$db = Zend_Registry::get('db');\n \t\t$equipment... | [
"0.6052467",
"0.59378654",
"0.5920498",
"0.5868861",
"0.5854162",
"0.5831917",
"0.58213186",
"0.5795272",
"0.5795245",
"0.5779761",
"0.57728326",
"0.57166344",
"0.5679775",
"0.5665135",
"0.56169456",
"0.56121296",
"0.5584144",
"0.55772525",
"0.5551401",
"0.55385923",
"0.55316... | 0.7285972 | 0 |
Delete a Link by id | Удалить связь по идентификатору | public function delete($id)
{
$query="DELETE FROM link WHERE id=".$id;
$this->executeQuery($query);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function destroy($id)\n {\n $link = Link::where('id', $id)->first();\n\n if($link->user_id == Auth::id()){\n $link->delete();\n }\n }",
"public function delete( $id );",
"public function delete($id);",
"public function delete($id);",
"public function delete($id)... | [
"0.789079",
"0.7796076",
"0.7764465",
"0.7764465",
"0.7764465",
"0.7764465",
"0.7764465",
"0.7764465",
"0.7764465",
"0.7764465",
"0.7764465",
"0.7764465",
"0.7764465",
"0.7764465",
"0.7764465",
"0.7764465",
"0.7764465",
"0.7764465",
"0.7764465",
"0.7764465",
"0.7764465",
"0... | 0.85575 | 0 |
Helper method to: Tell SapphireTest to use Jackalope's manifest. | Помощь метод для: сообщить SapphireTest использовать манифест Jackalope. | protected function helperUseManifest() {
// Create a new instance of the manifest.
global $flush;
$manifest = new JackalopeManifest(BASE_PATH, false, $flush);
// Overwrite the test one.
SS_ClassLoader::instance()->pushManifest($manifest);
SapphireTest::set_test_class_manifest($manifest);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testGetManifest()\n {\n }",
"public function testListManifests()\n {\n }",
"public function testIsManifest()\n\t{\n\t\t$this->assertInstanceOf(\n\t\t\t'SimpleXmlElement',\n\t\t\t$this->object->isManifest(__DIR__ . '/data/pkg_joomla.xml'),\n\t\t\t'Ensure JInstaller::isManifest proper... | [
"0.7052126",
"0.6580545",
"0.60581034",
"0.57427275",
"0.5523815",
"0.5322781",
"0.5318264",
"0.530111",
"0.52894247",
"0.52894247",
"0.52851313",
"0.5271212",
"0.5269564",
"0.5269197",
"0.519295",
"0.51445913",
"0.5135546",
"0.5133249",
"0.5117271",
"0.5115443",
"0.5111269",... | 0.78025323 | 0 |
Press the divide button | Нажмите кнопку деления | public function pressDivide() {
if(count($this->stack) > 1) {
$this->evaluateStack();
}
$this->op = "/";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function makeSplitButton() {}",
"public function divide($by) {}",
"public function divide($value);",
"function mDIVIDE(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DIVIDE;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_... | [
"0.5514752",
"0.546479",
"0.5451439",
"0.528286",
"0.51322824",
"0.50305736",
"0.497018",
"0.4895486",
"0.48745048",
"0.48140463",
"0.47866634",
"0.47818178",
"0.4771013",
"0.47553805",
"0.47206193",
"0.46736804",
"0.46253133",
"0.45932165",
"0.45824274",
"0.45824274",
"0.457... | 0.79170924 | 0 |
Get all allowed environments in this app | Получить все разрешенные окружения в этом приложении | public function getAllowedEnvironments()
{
return [self::ENV_LIVE, self::ENV_DEV, self::ENV_STAGE, self::ENV_TEST];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function allowableEnvironments(): array\n {\n if (!empty(config('core-middleware.allowable-environments'))) {\n return config('core-middleware.allowable-environments');\n }\n\n return ['local'];\n }",
"public function getEnvironments();",
"protected function getE... | [
"0.8105466",
"0.8078718",
"0.79661983",
"0.78623116",
"0.77651024",
"0.7473322",
"0.73090065",
"0.7298484",
"0.6799807",
"0.6561339",
"0.6518768",
"0.644396",
"0.64242095",
"0.64242095",
"0.64242095",
"0.64242095",
"0.64242095",
"0.64242095",
"0.6410243",
"0.6357874",
"0.6307... | 0.81995696 | 0 |
Return the interface name for this component type. | Верните имя интерфейса для этого типа компонента. | public function getComponentInterface()
{
return 'Nerrad\\WPCLI\\EE\\interfaces\\ComponentHas' . $this->type . 'Interface';
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function name(): string\n {\n return 'interface';\n }",
"public function get_component_name() {\n return $this->plugintype.'_'.$this->pluginname;\n }",
"public function getName(): string {\n\t\t\treturn $this->type;\n\t\t}",
"public function getInterfaceId()\n {\n retu... | [
"0.7305852",
"0.69678867",
"0.65955114",
"0.6540255",
"0.6442272",
"0.64415824",
"0.64096034",
"0.6405674",
"0.63932824",
"0.63932824",
"0.63480693",
"0.6347501",
"0.63220984",
"0.63204056",
"0.63048774",
"0.62986726",
"0.62942874",
"0.62818754",
"0.62647045",
"0.6257256",
"0... | 0.82498926 | 0 |
Return the command interface for this component type. | Верните интерфейс команд для этого типа компонента. | public function getCommandInterface()
{
return 'Nerrad\\WPCLI\\EE\\interfaces\\' . $this->type . 'CommandInterface';
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getCommand();",
"public function getCommand() {\n\t\t$spec = self::$specs[$this->id];\n\t\treturn array_value($spec, \"command\", NULL);\n\t}",
"public function getCmdType();",
"public function getCommand()\n {\n return $this->oCommand;\n }",
"public function getCommand() {}",
... | [
"0.7202806",
"0.71594393",
"0.711695",
"0.7104337",
"0.7086947",
"0.69705474",
"0.69528794",
"0.69362736",
"0.69081324",
"0.69081324",
"0.69081324",
"0.69081324",
"0.68884116",
"0.6884243",
"0.68756026",
"0.68627",
"0.6855528",
"0.6855528",
"0.6850587",
"0.6850587",
"0.684368... | 0.8366532 | 0 |
Return the trait name for this component type. | Верните имя признака для этого типа компонента. | public function getTrait()
{
return 'Component' . $this->type . 'Trait';
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getTraitName(): string\n {\n return $this->traitName;\n }",
"public function get_component_name() {\n return $this->plugintype.'_'.$this->pluginname;\n }",
"protected function name()\n\t{\n\t\t/**\n\t\t * `parent` is still the parent class in the class hierarchy, not\n\t\... | [
"0.8198095",
"0.7260279",
"0.70753556",
"0.6821483",
"0.6791796",
"0.6638323",
"0.6638323",
"0.6602842",
"0.65629655",
"0.65337074",
"0.6520128",
"0.6487513",
"0.64845985",
"0.64603573",
"0.64565516",
"0.64446074",
"0.6442311",
"0.64105725",
"0.6388881",
"0.6388788",
"0.63690... | 0.8371213 | 0 |
Used to register subcommands for a component. | Используется для регистрации подкоманд для компонента. | public function registerSubCommand(ComponentInterface $component)
{
//if the component isn't for this type or is not a command then no registration.
if (! $this->shouldRunCommand($component)) {
return;
}
WP_CLI::add_command($this->subCommandTrigger($component), $this->sub... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function getSubCommands();",
"public function register()\n {\n\n// foreach ($this->commands as $command)\n// {\n// $this->{\"register{$command}Command\"}();\n// }\n//\n// $this->commands(\n// \"command.route-controllers.generate\"\n// );\n\n }... | [
"0.6800479",
"0.67085916",
"0.6539563",
"0.64755744",
"0.6377538",
"0.6368702",
"0.63489395",
"0.6320893",
"0.6252347",
"0.62077487",
"0.61785156",
"0.61751497",
"0.61706805",
"0.61220586",
"0.61220586",
"0.61220586",
"0.61220586",
"0.61220586",
"0.61014205",
"0.61014205",
"0... | 0.7719377 | 0 |
Return what is the sub command trigger for the given component. Note: this method makes no assumption about whether the component even supports commands. It's expected that client code is checking that. | Возвращает, какое подкоманду запускает данный компонент. Примечание: этот метод не делает никаких предположений о том, поддерживает ли компонент команды вообще. Ожидается, что клиентский код проверяет это. | public function subCommandTrigger(ComponentInterface $component)
{
return 'ee ' . strtolower($this->type) . ' ' . strtolower($component->componentName());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function subCommandCallback(ComponentInterface $component, $as_string = false)\n {\n //something like scaffoldCommand\n $method = strtolower($this->type) . 'Command';\n return $as_string ? $method : array($component, $method);\n }",
"public function getCommand() {\n\t\t$spec = s... | [
"0.6278293",
"0.603221",
"0.5708666",
"0.5698736",
"0.55548245",
"0.5553624",
"0.55496776",
"0.551783",
"0.54767925",
"0.5464319",
"0.5383028",
"0.53676456",
"0.5366769",
"0.5366769",
"0.53630525",
"0.5360392",
"0.53443736",
"0.53313017",
"0.5313376",
"0.5313188",
"0.5313188"... | 0.7074776 | 0 |
Returns the initialize method for this component type. | Возвращает метод инициализации для этого типа компонента. | private function initializeMethod()
{
//something like initializeScaffold
return 'initialize' . $this->type;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getInitMethod()\n {\n $initClassName = $this->getCNamespace() . '_' . $this->getName();\n return $this->getMethod('zephir_init_properties_' . $initClassName);\n }",
"public function initialize() {\n\t\t$this->registerMethod(\"getSettings\");\n\t\t$this->registerMethod(\"setSet... | [
"0.67701185",
"0.6220068",
"0.6191141",
"0.61884385",
"0.6052195",
"0.6040505",
"0.6000778",
"0.6000778",
"0.6000778",
"0.6000778",
"0.6000778",
"0.6000778",
"0.6000778",
"0.6000778",
"0.6000778",
"0.6000778",
"0.599077",
"0.599077",
"0.599077",
"0.599077",
"0.59616274",
"0... | 0.7388377 | 0 |
======================================================================= clients_selectboxPromptDeleteValues ======================================================================= display a confirmation page that the current action was completed succesfully TODO: ========================================================... | ======================================================================= clients_selectboxPromptDeleteValues ======================================================================= отображает страницу подтверждения, что текущее действие было успешно завершено TODO: =======================================================... | function clients_selectboxPromptDeleteValues($title,$message,$target,$items,$identifier) {
global $gSession,$Auth;
## prepare the template file
$select_template = new Template('interface');
$select_template->set_templatefile(array("body" => "deletelink.tpl"));
$select_template->set_var("yesIMG","lang/".$Auth->au... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function confirmAction() {\r\n\t\t$id = $this->getRequest ()->getParam ( 'id' );\r\n\t\t$controller = Zend_Controller_Front::getInstance ()->getRequest ()->getControllerName ();\r\n\t\ttry {\r\n\t\t\tif (is_numeric ( $id )) {\r\n\t\t\t\t$this->view->back = \"/admin/$controller/edit/id/$id\";\r\n\t\t\t\t$thi... | [
"0.6289913",
"0.6239263",
"0.61902535",
"0.60845333",
"0.60187525",
"0.6005025",
"0.5985061",
"0.5964069",
"0.5938467",
"0.58603173",
"0.5844867",
"0.5832279",
"0.5817217",
"0.5811416",
"0.5809754",
"0.580458",
"0.57974094",
"0.574677",
"0.5725843",
"0.57191145",
"0.5690462",... | 0.74745554 | 0 |
Main AffiliateWP_Direct_Link_Tracking Instance Insures that only one instance of AffiliateWP_Direct_Link_Tracking exists in memory at any one time. Also prevents needing to define globals all over the place. | Основной экземпляр AffiliateWP_Direct_Link_Tracking гарантирует, что в памяти всегда существует только один экземпляр AffiliateWP_Direct_Link_Tracking. Также предотвращает необходимость определять глобальные переменные везде по коду. | public static function instance() {
if ( ! isset( self::$instance ) && ! ( self::$instance instanceof AffiliateWP_Direct_Link_Tracking ) ) {
self::$instance = new AffiliateWP_Direct_Link_Tracking;
self::$version = '1.1.4';
self::$instance->setup_constants();
self::$instance->load_textdomain();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function affiliatewp_direct_link_tracking() {\n\t if ( ! class_exists( 'Affiliate_WP' ) ) {\n\t if ( ! class_exists( 'AffiliateWP_Activation' ) ) {\n\t require_once 'includes/class-activation.php';\n\t }\n\n\t $activation = new AffiliateWP_Activation( plugin_dir_path( __FILE__ ),... | [
"0.72133815",
"0.5648529",
"0.5501332",
"0.5403518",
"0.53674674",
"0.532138",
"0.532105",
"0.5281766",
"0.52690566",
"0.52685016",
"0.526683",
"0.5188425",
"0.51526386",
"0.510799",
"0.5105207",
"0.5104422",
"0.509488",
"0.50877786",
"0.5079155",
"0.5052587",
"0.50514925",
... | 0.7957434 | 0 |
Reset the instance of the class | Сбросить экземпляр класса | public static function reset() {
self::$instance = null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function reset()\n {\n self::resetDefault();\n self::$instances = array();\n }",
"public static function resetInstance()\n {\n static::$_instance = null;\n }",
"static public function reset()\n\t{\n\t\tstatic::$instance = null;\n\t}",
"public static function res... | [
"0.826012",
"0.80279124",
"0.79659706",
"0.78695047",
"0.78622204",
"0.7711635",
"0.7684643",
"0.7634084",
"0.75187474",
"0.7509787",
"0.7509787",
"0.7509787",
"0.7509787",
"0.7509787",
"0.7509787",
"0.7509787",
"0.7509787",
"0.7509787",
"0.7509787",
"0.74916077",
"0.74916077... | 0.85000485 | 1 |
The main function responsible for returning the one true AffiliateWP_Direct_Link_Tracking Instance to functions everywhere. Use this function like you would a global variable, except without needing to declare the global. Example: | Основная функция, отвечающая за возврат одного настоящего экземпляра AffiliateWP_Direct_Link_Tracking. Используйте эту функцию так, как будто бы вы обращались к глобальной переменной, за исключением того, что не нужно объявлять глобальную. Пример: | function affiliatewp_direct_link_tracking() {
if ( ! class_exists( 'Affiliate_WP' ) ) {
if ( ! class_exists( 'AffiliateWP_Activation' ) ) {
require_once 'includes/class-activation.php';
}
$activation = new AffiliateWP_Activation( plugin_dir_path( __FILE__ ), basename( __FIL... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function instance() {\n\t\t\tif ( ! isset( self::$instance ) && ! ( self::$instance instanceof AffiliateWP_Direct_Link_Tracking ) ) {\n\n\t\t\t\tself::$instance = new AffiliateWP_Direct_Link_Tracking;\n\t\t\t\tself::$version = '1.1.4';\n\n\t\t\t\tself::$instance->setup_constants();\n\t\t\t\tself::$i... | [
"0.79155946",
"0.57186157",
"0.5660735",
"0.5633806",
"0.56098443",
"0.54884714",
"0.54863524",
"0.54746896",
"0.5465024",
"0.5465024",
"0.5465024",
"0.5465024",
"0.5465024",
"0.5465024",
"0.5465024",
"0.5465024",
"0.54543775",
"0.54543775",
"0.54543775",
"0.54543775",
"0.545... | 0.7525359 | 1 |
Run module hooks (project hooks) | Запуск модульных хуков (хуков проекта) | static public function runProjectHooks($hook, $params, ProjectTools_Project $project = null)
{
// Get current project if not specified
if ($project === null)
$project = ProjectTools_Project::getCurrent();
// Run hooks for each module
foreach ($project->getModules() as $module)
{
if (method_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function hooks(): void {\n\t\t// Steps loader hooks.\n\n\t\tadd_filter(\n\t\t\t'learndash_breezy_localize_script_data',\n\t\t\t$this->container->callback( Steps\\Loader::class, 'add_scripts_data' )\n\t\t);\n\t\tadd_action(\n\t\t\t'wp_ajax_' . Steps\\Loader::$sub_steps_ajax_action_name,\n\t\t\t$this->contai... | [
"0.68880755",
"0.6880342",
"0.68766314",
"0.67646956",
"0.67646956",
"0.670782",
"0.65824777",
"0.65690887",
"0.65478486",
"0.64680374",
"0.6393534",
"0.6361579",
"0.6350677",
"0.6346132",
"0.6335243",
"0.63055867",
"0.6227378",
"0.6225508",
"0.62221164",
"0.6170545",
"0.6163... | 0.7049121 | 0 |
enqueues our locally supplied font awesome stylesheet | вставляет наш локально предоставленный стиль шрифта Font Awesome | function enqueue_font_awesome(){
wp_enqueue_style('font-awesome', get_stylesheet_directory_uri() . '/library/css/font-awesome.css');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function prefix_enqueue_awesome() {\n\twp_enqueue_style( 'prefix-font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css', array(), '4.0.3' );\n}",
"function pagely_load_font_awesome() {\n\t\n\twp_enqueue_style( 'font-awesome', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css... | [
"0.798411",
"0.7906656",
"0.7783592",
"0.77800274",
"0.7753272",
"0.7671074",
"0.76288646",
"0.7594648",
"0.7470594",
"0.7373914",
"0.7335677",
"0.72474194",
"0.71545494",
"0.71235543",
"0.6818942",
"0.6795667",
"0.6741256",
"0.6705136",
"0.66726977",
"0.6653946",
"0.66484684... | 0.8147176 | 0 |
Mantis 1.2 only !! remove existing entries from mantis menu | Mantis 1.2 только !! удалить существующие записи из меню mantis | function removeCustomMenuItem($name) {
// get current mantis custom menu entries
$query = "SELECT value FROM `mantis_config_table` WHERE config_id = 'main_menu_custom_options'";
$result = execQuery($query);
$serialized = (0 != SqlWrapper::getInstance()->mysql_num_rows($result)) ? mysql_result($result, 0) ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract public function reregister_menu_items();",
"function hello_world_remove() {\ndelete_option('ernaehrungsnews_anzahl');\ndelete_option('ernaehrungsnews_trimmer');\ndelete_option('ernaehrungsnews_kategorieId');\n\n}",
"function remove($options='') {\n $sql = array();\n\n\tdolibarr_set_const($this->db,... | [
"0.68057877",
"0.67940104",
"0.6734353",
"0.67322075",
"0.6725973",
"0.6713692",
"0.66730595",
"0.6622507",
"0.6581188",
"0.6554846",
"0.655241",
"0.6520591",
"0.65119606",
"0.6485574",
"0.6482767",
"0.6454483",
"0.6432714",
"0.64326864",
"0.6429052",
"0.64157045",
"0.6405476... | 0.7501378 | 0 |
/ Prints out the reservations page. | Выводит страницу бронирований. | function view(){
global $DOPBSP;
/*
* Check if reservations have expired each time you open the reservations page.
*/
$this->clean();
/*
* Display reservations template.
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function reservations() {\n $this->template->content = View::instance(\"v_reservations_reservations\");\n $this->template->title = \"Reservations\";\n\n # Build the query to get all the users\n // $q = \"SELECT * FROM reservations\";\n\n\t $q = \"SELECT *\n FROM reservations\n ... | [
"0.7009054",
"0.7002167",
"0.68252003",
"0.68249774",
"0.6785977",
"0.6735278",
"0.67175275",
"0.65861726",
"0.6584785",
"0.65495133",
"0.65300155",
"0.65300155",
"0.65300155",
"0.65284264",
"0.6525267",
"0.65221334",
"0.64519775",
"0.64079356",
"0.6388457",
"0.63863075",
"0.... | 0.7599657 | 0 |
Copied from 7.x media module media.filter.inc (media_parse_css_declarations). Parses the contents of a CSS declaration block and returns a keyed array of property names and values. | Скопировано из модуля media 7.x media.module media.filter.inc (media_parse_css_declarations). Парсит содержимое блока объявлений CSS и возвращает массив с ключами, представляющими имена свойств и их значения. | private function MediaParseCssDeclarations($declarations) {
$properties = [];
foreach (array_map('trim', explode(";", $declarations)) as $declaration) {
if ($declaration != '') {
list($name, $value) = array_map('trim', explode(':', $declaration, 2));
$properties[strtolower($name)] = $value... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function extractProperties(): array\n {\n $tokens = $this->tokens->findFirstCurlyParenthesizedBlock();\n $tokens = $tokens->withoutBlocks();\n\n preg_match_all('/(?<docblock>T_DOC_COMMENT )?(?<qualifiers>(T_VAR |T_PUBLIC |T_PROTECTED |T_PRIVATE |T_STATIC ))+(?<type>T_STRING )?(?<name>T_VARIABLE )... | [
"0.6191942",
"0.5973232",
"0.5802987",
"0.57903963",
"0.5756272",
"0.56209236",
"0.5485233",
"0.5458766",
"0.5438791",
"0.53102076",
"0.53055286",
"0.5288399",
"0.5282109",
"0.52553284",
"0.52553284",
"0.5245113",
"0.5205017",
"0.5201003",
"0.5175503",
"0.51692986",
"0.516795... | 0.8067354 | 0 |
Render brands list widget output on the frontend. | Отображать вывод виджета списка брендов на фронтенде. | protected function render() {
$settings = $this->get_settings_for_display();
$settings['ids'] = !empty( $settings['ids'] ) ? implode( ',', $settings['ids'] ) : '';
echo do_shortcode( '[etheme_brands_list
ids="'. $settings['ids'] .'"
hide_a_z="'. $settings['hide_a_z'] .'"
columns="'. $settings['columns... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function render()\n {\n return view('adminhub::livewire.pages.brands.index')\n ->layout('adminhub::layouts.app', [\n 'title' => 'Brands',\n ]);\n }",
"public function index()\n {\n $paginator = $this->brandRepository->getAllWithPaginate(5);\n\n ... | [
"0.69651425",
"0.6720399",
"0.6528806",
"0.6469208",
"0.6418543",
"0.64002335",
"0.63663936",
"0.63451576",
"0.63047016",
"0.62737036",
"0.6251939",
"0.6246897",
"0.62424695",
"0.6235948",
"0.62356335",
"0.62282425",
"0.62173057",
"0.6212265",
"0.61759007",
"0.61572576",
"0.6... | 0.75972736 | 0 |
Call the Collections surface. | Вызовите поверхность Collections. | private static function collections()
{
$files = ['JSON', 'Collection'];
$folder = static::$root.'Collections'.'/';
self::call($files, $folder);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static function dataCollection()\n {\n $files = ['DataCollection'];\n $folder = static::$root.'Objects'.'/';\n\n self::call($files, $folder);\n }",
"public function collection_list()\n\t{\n\t\t$data['collection_list']=$this->ref_coll->get_all();\n\t\t$data['brands_list']=$this-... | [
"0.70544463",
"0.67775714",
"0.6752833",
"0.6653673",
"0.66210496",
"0.65516937",
"0.65302914",
"0.6521485",
"0.64965075",
"0.64965075",
"0.64965075",
"0.64965075",
"0.6433107",
"0.6418854",
"0.6347934",
"0.6338905",
"0.6299794",
"0.6202037",
"0.6161237",
"0.61606854",
"0.613... | 0.8088131 | 0 |
Call the Validation surface. | Вызовите поверхность проверки. | private static function validation()
{
$files = ['Validator', 'ValidationResult'];
$folder = static::$root.'Validation'.'/';
self::call($files, $folder);
//Initiate the validation surface
Validator::ini();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract public function runValidation();",
"public function validation();",
"protected function performValidation()\n {\n // no required arguments\n }",
"public function validate();",
"public function validate();",
"public function validate();",
"public function validate();",
"public fu... | [
"0.7794404",
"0.7571125",
"0.74993587",
"0.73944986",
"0.73944986",
"0.73944986",
"0.73944986",
"0.73944986",
"0.73944986",
"0.73944986",
"0.73944986",
"0.73944986",
"0.73944986",
"0.73944986",
"0.73944986",
"0.7341166",
"0.7255509",
"0.7200319",
"0.7200319",
"0.7186777",
"0.... | 0.80464894 | 0 |
Call the Faker surface. | Вызовите поверхность Faker. | private static function faker()
{
$files = ['Faker'];
$folder = static::$root.'Resources'.'/';
self::call($files, $folder);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function faker()\n{\n $faker = Faker\\Factory::create();\n\n return $faker;\n}",
"public function run(Faker $faker)\n {\n factory(\\App\\Company::class,30)->create();\n factory(\\App\\Company::class,30)->create([\n 'argumentation' => implode(\"\",$faker->sentences($nb = 3, $asTe... | [
"0.7145133",
"0.6955915",
"0.6887655",
"0.68799216",
"0.644592",
"0.64430994",
"0.6379136",
"0.63726336",
"0.63322663",
"0.6292992",
"0.6209649",
"0.61621153",
"0.61334664",
"0.60820514",
"0.60739475",
"0.6071333",
"0.6068095",
"0.60495335",
"0.60185605",
"0.60132766",
"0.600... | 0.79341793 | 0 |
Call the Links surface. | Вызовите поверхность Links. | private static function links()
{
$files = ['Link'];
$folder = static::$root.'Http/Links'.'/';
self::call($files, $folder);
$files = ['LinkKeyNotFoundException'];
$folder = static::$root.'Http/Links/Exceptions'.'/';
self::call($files, $folder);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function link_to(){\n echo call_user_func_array('Laika::link_to', func_get_args() );\n }",
"public function link();",
"protected function addLinks()\n {\n }",
"public function links()\n\t{\n\t\techo view('sketchpad::help/output/links');\n\t}",
"public function get_links()\n ... | [
"0.68324137",
"0.68133557",
"0.6728097",
"0.66707605",
"0.6449596",
"0.63611007",
"0.6229206",
"0.6214927",
"0.62035197",
"0.60894144",
"0.6070714",
"0.5981188",
"0.59452546",
"0.5943012",
"0.59269774",
"0.5915263",
"0.58532685",
"0.5846493",
"0.58317953",
"0.5713284",
"0.571... | 0.7247033 | 0 |
Call the Redirection surface. | Вызовите поверхность перенаправления. | private static function redirect()
{
$files = ['Redirector', 'Redirect'];
$folder = static::$root.'Http/Redirect'.'/';
self::call($files, $folder);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function handle_redirection()\n {\n }",
"abstract protected function redirect();",
"function auth_redirect() {\n\n\t\tauth_redirect();\n\n\t}",
"public function redirect();",
"public function redirect();",
"public function redirect();",
"function redirect()\n {\n global $wgOut;\n... | [
"0.68292063",
"0.65931493",
"0.648393",
"0.63126945",
"0.63126945",
"0.63126945",
"0.62494546",
"0.6202167",
"0.6187664",
"0.6095022",
"0.6081407",
"0.60250825",
"0.5977618",
"0.5901259",
"0.58870685",
"0.58811516",
"0.58617985",
"0.582813",
"0.5820773",
"0.57991594",
"0.5736... | 0.72188205 | 0 |
Call the Middleware surface. | Вызовите поверхность Middleware. | private static function middleware()
{
$files = ['Filters', 'Middleware'];
$folder = static::$root.'Http/Middleware'.'/';
self::call($files, $folder);
$files = ['MiddlewareNotFoundException', 'MiddlewareWallException'];
$folder = static::$root.'Http/Middleware/Exceptions'.'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function callMiddleware()\n {\n if (count($this->middleware) > 0) {\n foreach ($this->middleware as $middleware) {\n $controller = new $middleware;\n call_user_func_array([$controller, 'handle'], []);\n }\n }\n }",
"public function... | [
"0.7430214",
"0.7346702",
"0.7260936",
"0.68956375",
"0.679369",
"0.6640762",
"0.6573833",
"0.64817154",
"0.6429449",
"0.6362121",
"0.6360535",
"0.63507324",
"0.6194757",
"0.6165443",
"0.6131768",
"0.6113512",
"0.61066544",
"0.6043573",
"0.60263354",
"0.60012716",
"0.5904125"... | 0.7488127 | 0 |
Call the Assets surface. | Вызовите поверхность Assets. | private static function assets()
{
$files = ['Assets'];
$folder = static::$root.'Resources'.'/';
self::call($files, $folder);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function addAssets() {}",
"public function addAssets() {}",
"public function run()\n {\n\tparent::run();\n $this->imageDir = Yii::$app->assetManager->publish($this->imageDir)[1];\n $this->timeVal = Date(\"H:i:se\", $this->timestamp);\n\t$this->registerAssets();\n return $this->re... | [
"0.62156457",
"0.62156457",
"0.61777884",
"0.60744137",
"0.5977548",
"0.58842564",
"0.58384347",
"0.580147",
"0.57415515",
"0.5660575",
"0.5658221",
"0.564714",
"0.5637398",
"0.5607714",
"0.5607714",
"0.55722135",
"0.5565364",
"0.5513891",
"0.5512765",
"0.54679173",
"0.544802... | 0.7033547 | 0 |
Call the Media surface. | Вызовите поверхность медиа. | private static function media()
{
$files = ['QR'];
$folder = static::$root.'Media'.'/';
self::call($files, $folder);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function media();",
"public function get_media()\n {\n }",
"public function show(Media $media)\n {\n //\n }",
"public function show(Media $media)\n {\n //\n }",
"public abstract function render_media($instance);",
"public function displayMedia()\n {\n // s... | [
"0.6377804",
"0.62342966",
"0.6215709",
"0.6215709",
"0.6210956",
"0.6109998",
"0.6025241",
"0.6019743",
"0.5981897",
"0.5981897",
"0.5981897",
"0.5981897",
"0.5852654",
"0.5710878",
"0.5710878",
"0.5710878",
"0.5670383",
"0.5652252",
"0.56043166",
"0.5602645",
"0.5556733",
... | 0.704874 | 0 |
Call the Controllers surface. | Вызовите поверхность контроллеров. | private static function controller()
{
$files = ['Controller'];
$folder = static::$root.'MVC'.'/';
self::call($files, $folder);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function controller()\r\n {\r\n $collector = $this->getControllerCollector();\r\n \r\n foreach (func_get_args() as $controller) {\r\n call_user_func([$collector, 'controller'], $controller);\r\n }\r\n }",
"protected static function runController()\n {\n ... | [
"0.69935185",
"0.6844262",
"0.6790237",
"0.65254694",
"0.65003127",
"0.64270616",
"0.6383719",
"0.6365481",
"0.63077575",
"0.6283987",
"0.6223195",
"0.614972",
"0.61454624",
"0.60948324",
"0.6094334",
"0.60747796",
"0.60741323",
"0.6051956",
"0.60262984",
"0.5994016",
"0.5959... | 0.73717755 | 0 |
Call the Mail surface. | Вызовите поверхность Mail. | private static function mail()
{
$files = ['Mail', 'Mailable', 'SMTP'];
$folder = static::$root.'Mailing'.'/';
self::call($files, $folder);
$files = ['SmtpParameterNotFoundException', 'MailViewNotFoundException'];
$folder = $folder.'Exceptions/';
self::call($files,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected function _sendMail ( );",
"function mail()\n {\n\n\n }",
"function call_mailer($mail,$fn,$email)\n {\n //Simfatic Forms saves email Name<email> form. The functions take the name and email seperate\n $arr = $this->addr($email);\n \n return $mail->$fn($arr[0]... | [
"0.6915926",
"0.68631846",
"0.6525414",
"0.6484008",
"0.6393621",
"0.63257945",
"0.63023293",
"0.62287396",
"0.619952",
"0.6190749",
"0.61885333",
"0.6184588",
"0.61819047",
"0.6094685",
"0.60898674",
"0.60894084",
"0.60844755",
"0.6077186",
"0.607605",
"0.6060346",
"0.605806... | 0.7478745 | 0 |
Call the Data Collection surface. | Вызовите поверхность сбора данных. | private static function dataCollection()
{
$files = ['DataCollection'];
$folder = static::$root.'Objects'.'/';
self::call($files, $folder);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected function _generateDataCollection();",
"private static function collections()\n {\n $files = ['JSON', 'Collection'];\n $folder = static::$root.'Collections'.'/';\n\n self::call($files, $folder);\n }",
"private function createCollection()\n {\n $class = get... | [
"0.6639404",
"0.64571464",
"0.64182764",
"0.6283842",
"0.61271834",
"0.5901879",
"0.588912",
"0.5836708",
"0.5835607",
"0.5796116",
"0.5795905",
"0.5760561",
"0.5760561",
"0.5753519",
"0.5725767",
"0.57054657",
"0.5670644",
"0.5665328",
"0.5638457",
"0.56373996",
"0.56253844"... | 0.8370024 | 0 |
Call the Intro surface. | Вызовите поверхность Intro. | private static function intro()
{
$files = ['Intro'];
$folder = static::$root.'Access'.'/';
self::call($files, $folder);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function intro() {\n\n\t}",
"public function intro() {\n\n }",
"function &renderIntro( )\r\n {\r\n $generator =& $this->generator();\r\n \r\n return $generator->renderIntro();\r\n }",
"function showIntro() {\n if (! $_SESSION[\"eligible\"]) {\n return $this->showS... | [
"0.716677",
"0.6993488",
"0.6729739",
"0.65299404",
"0.63448566",
"0.6140208",
"0.5910411",
"0.58340347",
"0.5777371",
"0.5713337",
"0.555402",
"0.5484123",
"0.5461128",
"0.5292346",
"0.5288669",
"0.52534825",
"0.524898",
"0.5235124",
"0.5228083",
"0.5201065",
"0.5181835",
... | 0.7357965 | 0 |
Require commands of Lumos. | Требуется команда Lumos. | private static function commands()
{
foreach (self::fetch(static::$root.'Lumos/Commands') as $file) {
static::need($file);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static function lumos()\n {\n $files = ['cmdOutput', 'bashOutput', 'Argument', 'Option', 'Commands'];\n $folder = static::$root.'Lumos'.'/';\n\n self::call($files, $folder);\n\n // Call Kernel commands\n static::commands();\n\n $files = ['Console'];\n $fo... | [
"0.71447194",
"0.61972624",
"0.61917144",
"0.6161699",
"0.61568755",
"0.6130144",
"0.61088526",
"0.6103978",
"0.6103978",
"0.602693",
"0.602693",
"0.602693",
"0.602693",
"0.602693",
"0.602693",
"0.602693",
"0.602693",
"0.602693",
"0.602693",
"0.602693",
"0.602693",
"0.60269... | 0.70562845 | 1 |
Call the Tests surface. | Вызовите поверхность тестов. | private static function test()
{
$files = ['TestCase'];
$folder = static::$root.'Testing'.'/';
self::call($files, $folder);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function run_tests()\n {\n }",
"function runTests() {\n\t\tif(is_array($this->_aTests)){\n\t\t\tforeach($this->_aTests as $test){\n\t\t\t\t$this->_aResults[$test->sName] = array();\n\t\t\t\t$this->_aResults = $test->run($this->_aResults);\n\n\t\t\t}\n\t\t}\n\t}",
"public function run()\n ... | [
"0.7711601",
"0.72743297",
"0.69762313",
"0.6787989",
"0.6774102",
"0.6742802",
"0.66731024",
"0.66690266",
"0.66572434",
"0.66480047",
"0.661314",
"0.6594877",
"0.6591544",
"0.65776205",
"0.65776205",
"0.65776205",
"0.6557347",
"0.6530458",
"0.65218467",
"0.65218467",
"0.652... | 0.7855511 | 0 |
Return an array of a WHERE condition for SQL queries, and arguments that are used in it. These can be used in a db_query() for selecting all the projects specified in the given parameter. The parameter is an array of project specifications, where each item is in the form of either 'origin/project', or in the form of 'o... | Вернуть массив условия WHERE для SQL-запросов и аргументов, используемых в этом условии. Эти данные могут быть использованы в db_query() для выбора всех проектов, указанных в данном параметре. Параметр представляет собой массив спецификаций проектов, где каждый элемент имеет вид либо 'origin/project', либо 'origin' (вк... | function utils_projects_to_where_condition($arr_projects) {
$arr_conditions = array();
$arguments = array();
$arg_origin = ':origin01';
$arg_project = ':project01';
foreach ($arr_projects as $proj) {
$parts = preg_split('#/#', $proj, 2);
if (sizeof($parts)==2) {
list($origin, $project) = $par... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function createWhere() {\n\t\tlist($where, $joins) = parent::createWhere();\n\t\tif (!($this->parent->parent instanceof QuerySet))\n\t\t\t$where = \" WHERE \" . $where;\n\t\telse\n\t\t\t$where = \" AND \" . $where;\n\t \n\t\treturn array($where, $joins);\n\t}",
"protected abstract function getWhereClause(... | [
"0.59084487",
"0.5888",
"0.5880136",
"0.5851341",
"0.57935363",
"0.5749419",
"0.5736072",
"0.5686746",
"0.56462413",
"0.5641213",
"0.5601662",
"0.55473286",
"0.55307955",
"0.55262226",
"0.5505512",
"0.5490357",
"0.54465675",
"0.544105",
"0.54324543",
"0.54220575",
"0.5419722"... | 0.7589747 | 0 |
/ Author Box on article page | / Авторский блок на странице статьи | function pantomime_author_box(){
if ( is_single() ) :
// Get the author email -> for Gravatar
$author_email = get_the_author_meta('user_email');
// Get the author description
$author_description = get_the_author_meta('description');
?>
<div id="author-box" class="emboss">
<h4 class="section-title"><?php _... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function maybe_render_author_box() {\n\t\t$author_description = get_the_author_meta( 'description' );\n\t\tif ( empty( $author_description ) ) {\n\t\t\treturn;\n\t\t}\n\t\t?>\n\t\t<div class=\"card card-profile card-plain\">\n\t\t\t<div class=\"row\">\n\t\t\t\t<div class=\"col-md-2\">\n\t\t\t\t\t<div class... | [
"0.76868016",
"0.747512",
"0.74711496",
"0.7379634",
"0.7349352",
"0.72854936",
"0.7251022",
"0.7233782",
"0.72212046",
"0.7218675",
"0.72000647",
"0.7169859",
"0.71468264",
"0.7111359",
"0.70859635",
"0.7066988",
"0.7045608",
"0.7043796",
"0.7030728",
"0.7024151",
"0.6990294... | 0.7956963 | 0 |
/ Feedburner Subscription Box | / Ящик для подписки на Feedburner | function pantomime_feedburner_box(){
if ( is_single() ):
$status = of_get_option( 'pantomime_feedburner_subscription_box_status', '0' );
if ( $status == '1' ) :
?>
<div id="feedburner-subscription" class="emboss">
<h4 class="section-title">Subscribe Through Email <small>- Powered by <a href... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function display_account_subscriptions( ){\n\t\tif( $this->is_page_visible( \"subscriptions\" ) ){\n\t\t\tif( file_exists( WP_PLUGIN_DIR . '/wp-easycart-data/design/layout/' . get_option( 'ec_option_base_layout' ) . '/ec_account_subscriptions.php' ) )\t\n\t\t\t\tinclude( WP_PLUGIN_DIR . '/wp-easycart-data/d... | [
"0.6687777",
"0.65646285",
"0.6512937",
"0.64652157",
"0.64154816",
"0.6331586",
"0.61925673",
"0.6063521",
"0.60262465",
"0.59899414",
"0.5963674",
"0.595864",
"0.59575945",
"0.59244525",
"0.59074026",
"0.59068626",
"0.5897732",
"0.5881575",
"0.58426625",
"0.5827227",
"0.582... | 0.7691901 | 0 |
Check the SSL connection to the given host | Проверьте SSL-соединение с указанным хостом | protected static function CheckSSLConnection($sHost)
{
$errno = 0;
$errstr = 'No error';
$fp = @stream_socket_client('ssl://'.$sHost, $errno, $errstr, 5);
if (($fp === false) && ($errno === 0))
{
// Failed to connect, check for SSL certificate problems
$aStreamContextOptions = array(
'ssl' => arra... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function verify_ssl_certificate($stream, $host)\n {\n }",
"protected function sslCheck()\n {\n $ssl_port = '443'; // default\n if(\n isset($_SERVER['OPENSSL_CONF'])\n || isset($_SERVER['SSL_PROTOCOL'])\n || preg_match('~SSL~',$_SERVER[... | [
"0.7359361",
"0.7343896",
"0.7111866",
"0.7019585",
"0.69632137",
"0.69596535",
"0.68770176",
"0.6849372",
"0.6818692",
"0.66890794",
"0.65615463",
"0.6474278",
"0.6449044",
"0.63821405",
"0.6306837",
"0.62779003",
"0.6259215",
"0.6167309",
"0.61637425",
"0.61630565",
"0.6117... | 0.77416164 | 0 |