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
Gets the left offset of the y axis description
Получает левый сдвиг описания оси y
public function getYDescriptionOffsetLeft() { return $this->ydescr_offX; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAxisYLabelOffsetX()\n\t{\n\t\treturn $this->axis_ylabel_offX;\n\t}", "public function getAxisXLabelOffsetY()\n\t{\n\t\treturn $this->axis_xlabel_offY;\n\t}", "public function getXDescriptionOffsetBottom()\n\t{\n\t\treturn $this->xdescr_offY;\n\t}", "public function getAxisYLabelOffsetY()\n...
[ "0.7983535", "0.757131", "0.75322115", "0.71225005", "0.68216515", "0.6811708", "0.67788726", "0.64445883", "0.64382833", "0.631296", "0.63021713", "0.6246387", "0.6198067", "0.61644", "0.6019564", "0.6001948", "0.59560335", "0.5918793", "0.5909143", "0.59085774", "0.58942163...
0.8824287
0
Gets the distance between two axis marker strokes
Получает расстояние между двумя метками оси
public function getAxisStrokeDistance() { return $this->delta_pixel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getStrokeDashOffset () {}", "public function getAxisDistanceY()\n\t{\n\t\treturn $this->axis_distance_y;\n\t}", "private function _getSlope() {\n\t\t$compare_x = $this->pointB->x - $this->pointA->x;\n\t\t$compare_y = $this->pointB->y - $this->pointA->y;\n\n\t\treturn $compare_y / $compare_x;\n\...
[ "0.6170504", "0.55761814", "0.5497797", "0.54819727", "0.5480287", "0.5421208", "0.54104215", "0.53908086", "0.53571934", "0.5319497", "0.5312964", "0.5311079", "0.5308417", "0.5279954", "0.5271083", "0.5243663", "0.5237232", "0.5229777", "0.52223706", "0.5218209", "0.5210781...
0.7578307
0
Gets the chart data color (line)
Получает цвет данных диаграммы (линия)
public function getDataColor() { return $this->data_color; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_line_color() {\n return $this->line_color;\n }", "public function getColor() {\n return $this->_dataHelper->getColor();\n }", "public function getColor()\n {\n return $this->value;\n }", "public function getColor()\n {\n return ($this->info['colo...
[ "0.75723577", "0.7392424", "0.7036361", "0.700127", "0.6877185", "0.686521", "0.686521", "0.686521", "0.686521", "0.686521", "0.686521", "0.686521", "0.686521", "0.686521", "0.686521", "0.686521", "0.686521", "0.686521", "0.686521", "0.683949", "0.67967296", "0.6793958", ...
0.7840619
0
Actualiza la suma del recibo, de forma forzada
Обновите сумму чека, принудительно
function setSumaDeRecibo($monto = 0){ $this->mSumaDeRecibo = $monto; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function recalcula(){\n\t\t$mSQL = 'UPDATE lrece a SET lista=(SELECT SUM(lista) FROM itlrece b WHERE a.id=b.id_lrece );';\n\t\t$this->db->query($mSQL);\n\t\t$mSQL = 'UPDATE lrece SET litros=lleno, neto=lleno, diferen=lleno-lista WHERE vacio=0 AND lleno>0;';\n\t\t$this->db->query($mSQL);\n\t\t$mSQL = 'UPDATE lrece ...
[ "0.6380769", "0.6229964", "0.6104765", "0.6052068", "0.60159934", "0.59960294", "0.5972701", "0.5952419", "0.59464693", "0.59464693", "0.59449553", "0.59341854", "0.5923656", "0.59032303", "0.58673346", "0.58601075", "0.5756147", "0.57430726", "0.5742394", "0.57051736", "0.56...
0.74905276
0
Test salary payment date when there is weekend
Тест даты выплаты зарплаты, когда есть выходной
public function testSalaryPaymentDateIsWeekend(): void { $dateTime = new \DateTime('31 March 2019'); $dateTimeMock = Mockery::mock(DateTime::class); $dateTimeMock->shouldReceive('modify') ->once() ->with('last day of this month') ->andReturn($dateTime); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testBonusPaymentDateIsWeekend(): void\n {\n $dateTime = new \\DateTime('28 February 2019');\n $bonusDateTime = new \\DateTime('16 February 2019');\n\n $this->dateTimeMock->shouldReceive('modify->modify')\n ->twice()\n ->with('+14 days')\n ->a...
[ "0.7162962", "0.70019376", "0.6994768", "0.65890104", "0.64033735", "0.6378106", "0.6192878", "0.6156815", "0.6138375", "0.61122704", "0.60171837", "0.6002239", "0.5916563", "0.59128433", "0.5886836", "0.5867806", "0.58610344", "0.58339584", "0.5820122", "0.58150816", "0.5806...
0.76309633
0
Test bonus payment date
Дата тестового бонусного платежа
public function testBonusPaymentDate(): void { $dateTime = new \DateTime('28 February 2019'); $bonusDateTime = new \DateTime('15 February 2019'); $this->dateTimeMock->shouldReceive('modify->modify') ->twice() ->with('+14 days') ->andReturn($bonusDateTime)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testBonusPaymentDateIsPassed(): void\n {\n\n $firstDay = new \\DateTime('1 February 2019');\n $today = new \\DateTime('18 February 2019');\n $bonusDay = new \\DateTime('16 February 2019');\n $nextWednesday = new \\DateTime('16 February 2019');\n\n $this->dateTi...
[ "0.75928265", "0.74541163", "0.6825568", "0.66008466", "0.65375143", "0.6525036", "0.64878345", "0.64219874", "0.62809706", "0.62751895", "0.6268957", "0.6172843", "0.61654437", "0.61646694", "0.6159033", "0.61121505", "0.6100037", "0.60720855", "0.5967875", "0.5940052", "0.5...
0.7595731
0
Test bonus payment date is weekend
Дата выплаты тестового бонуса приходится на выходной день
public function testBonusPaymentDateIsWeekend(): void { $dateTime = new \DateTime('28 February 2019'); $bonusDateTime = new \DateTime('16 February 2019'); $this->dateTimeMock->shouldReceive('modify->modify') ->twice() ->with('+14 days') ->andReturn($bonus...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testIsWeekend()\n {\n $this->assertTrue($this->getCalculator()->isWeekend('2019-05-04'));\n $this->assertTrue($this->getCalculator()->isWeekend('2019-05-05'));\n }", "public function testSalaryPaymentDateIsWeekend(): void\n {\n $dateTime = new \\DateTime('31 March 20...
[ "0.7694026", "0.72604024", "0.6877772", "0.6814921", "0.6787215", "0.67868114", "0.67749035", "0.6750778", "0.65563595", "0.65120786", "0.64559674", "0.6449108", "0.63861835", "0.63854855", "0.63477325", "0.62746984", "0.624864", "0.62062687", "0.61847675", "0.6183857", "0.61...
0.78335625
0
Test months until new year
Тестирование месяцев до нового года
public function testMonthsUntilNewYear(): void { $midNight = new \DateTime('01-02-2019 00:00:00'); $this->dateTimeMock->shouldReceive('modify') ->once() ->with('midnight') ->andReturn($midNight); $dayCalculatorService = new DateCalculatorService($this->da...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function monthsInYear() {\n\t\treturn 12;\n\t}", "static function nextMonth($month,$year){\r\n \r\n $month++;\r\n if($month > 12){\r\n \r\n $month = $month - 12;\r\n $year++;\r\n \r\n }//if\r\n \r\n return array($month,$year);\r\n \r\n }", "public abstract function get_...
[ "0.67345834", "0.66384786", "0.6528282", "0.6509791", "0.64754933", "0.6432649", "0.63654053", "0.62885773", "0.624339", "0.62025905", "0.6198101", "0.61834997", "0.6170893", "0.6158566", "0.6138721", "0.6074686", "0.6061783", "0.6054529", "0.6047847", "0.6028165", "0.6024933...
0.74693584
0
Test to get formatted month
Тест для получения отформатированного месяца
public function testGetFormattedMonth(): void { $month = 'February'; $this->dateTimeMock->shouldReceive('format') ->once() ->with('F') ->andReturn($month); $dayCalculatorService = new DateCalculatorService($this->dateTimeMock); $result = $dayCalcu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMonthName(): string;", "public function months($format = null);", "public function month()\n\t{\n\t\treturn static::$dateTime->format(\"n\");\n\t}", "function getMonthAsString($inLong = false) {\n\t\treturn ($inLong) ? $this->format('F') : $this->format('M');\n\t}", "public function is_m...
[ "0.72995293", "0.7266784", "0.7241325", "0.71720624", "0.711044", "0.708068", "0.70777", "0.70590013", "0.7057145", "0.69853413", "0.6981508", "0.6972771", "0.69605345", "0.69605345", "0.6946436", "0.694245", "0.69180447", "0.6913187", "0.6906783", "0.6905309", "0.6898687", ...
0.7542262
0
Funcao que valida um usuario e senha
Функция, проверяющая пользователя и пароль
function validaUsuario($usuario, $senha) { global $_SG; $cS = ($_SG['caseSensitive']) ? 'BINARY' : ''; // Usa a funcao addslashes para escapar as aspas $nusuario = addslashes($usuario); $nsenha = addslashes($senha); // Monta uma consulta SQL par...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function validarLogin(){\n $Validacao=$this->validarUsuario($_POST['Usuario'],$_POST['Senha']);\n if($Validacao == true){\n echo \"Login efetuado!\";\n }else{\n echo \"Login não efetuado!\";\n }\n\n }", "public function validateUser($username,$password)...
[ "0.7442168", "0.71509176", "0.7109765", "0.69002193", "0.68951654", "0.6879911", "0.68589026", "0.68342304", "0.6755333", "0.6740059", "0.6731604", "0.6725619", "0.67064434", "0.66824675", "0.6666806", "0.66533357", "0.6647487", "0.66131437", "0.6569928", "0.6561459", "0.6543...
0.7241211
1
/ === Image Galleries ===
/ === Галереи изображений ===
function ohImageGallery() { if ( is_callable( 'twp_the_post_images' ) ) { $images = twp_the_post_images(); if ( $images ) { $galleryList = makeImageList( $images, 'page_gallery', 'thumbnail', 'thumbnail' ); $gallery = "<div class='gallery'><ul>$galleryList</ul></div>"; echo "<div class='images'>$galle...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cgalleries_images($item)\n\t{\n\t\t$gallery = mgalleries_read($item);\n\t\t$data['images'] = mgalleries_read_images($gallery['id']);\n\t\t$data['gal'] = $gallery;\n\t\tlloader_load_view('admin/subs/gallery_images', $data);\n\t}", "function get_post_galleries_images($post = 0)\n{\n}", "public function ...
[ "0.7607697", "0.7467814", "0.73557836", "0.7135202", "0.70928967", "0.70561516", "0.7052949", "0.705284", "0.70303917", "0.702388", "0.70216", "0.700034", "0.6990929", "0.6983169", "0.69459164", "0.69415665", "0.69120294", "0.69066733", "0.69009286", "0.6882535", "0.68797827"...
0.78039426
0
/ === Front Page News Ticker ===
/ === Новости на главной странице ===
function newsTicker() { $posts = get_posts( array( 'post_type' => 'ohnewsbulletin', 'post_status' => 'publish' ) ); if ($posts) { $items = ''; foreach ($posts as $post) { $items .= "<li>{$post->post_title}</li>"; } $atts = (count($post...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wd_news() {\n\t\t\tinclude_once( ABSPATH . WPINC . '/feed.php' );\n\t\t\tif ( $rssobj = fetch_feed( 'https://webdesires.co.uk/feed/' ) ) {\n\t\t\t\t\n\t\t\t\t$content = '<ul>';\n\t\t\t\t$maxitems = $rssobj->get_item_quantity( 5 ); \n\n\t\t\t\t// Build an array of all the items, starting with element 0 (fi...
[ "0.71119523", "0.68631846", "0.67503506", "0.67357945", "0.6733061", "0.6676018", "0.66156536", "0.66016906", "0.6581673", "0.65708756", "0.65697753", "0.65682083", "0.6545404", "0.65178704", "0.650925", "0.6495594", "0.64815795", "0.64769584", "0.6422107", "0.6416839", "0.63...
0.74947387
0
/ Global Page Custom Post Type
/ Глобальная страница пользовательского типа записей
function registerGlobalPagePostType() { $labels = array( 'name' => 'Global Pages', 'singular_name' => 'Global Page', 'menu_name' => 'Global Pages', 'name_admin_bar' => 'Global Pages', 'archives' => 'Item Archives', 'parent_item_colon' => 'Parent...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function register_custom_post_type() {\n\t\\do_action( 'gnist/register/custom_post_type' );\n}", "function init_custom_post_types() {\trequire 'inc/post_types.php'; }", "function custom_post_type() {\n\n\t$labels = array(\n\t\t'name' => _x( 'Sites', 'Site General Name', 'ido_ang_wp' ),\n\t\t's...
[ "0.76566994", "0.7492201", "0.7488478", "0.7483771", "0.7480958", "0.7425837", "0.74089557", "0.739667", "0.7395144", "0.7385094", "0.7383754", "0.7378702", "0.73785555", "0.73764503", "0.7374488", "0.73579264", "0.73568875", "0.73433954", "0.7342912", "0.7323041", "0.7313098...
0.78290594
0
/ === Hero Images ===
/ === Картинки героев ===
function heroImage($post) { $heroUrl = wp_get_attachment_url(get_post_thumbnail_id($post->ID)); if ($heroUrl) { $position = get_post_meta($post->ID, '_ohHeroPosition')[0]; $position = ($position) ? $position . '%' : 0; $atts = "background-image:url('$heroUrl'); background-position:0 $position;"; echo "<div st...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function hero_image()\n{\n return Hero_Customize::hero_image_partial();\n}", "function mw_do_hero()\n{\n ?>\n <div class=\"row\">\n <div class=\"col-sm-12\">\n <img src=\"assets/images/hero-image.png\" alt=\"Hero Image\"/>\n </div>\n </div>\n <?php\n}", "private function r...
[ "0.72892505", "0.69429505", "0.6942891", "0.63616526", "0.62941504", "0.6212426", "0.6124036", "0.6012561", "0.5929538", "0.5897441", "0.58811164", "0.5847213", "0.5839608", "0.58218473", "0.58057725", "0.58054644", "0.57856125", "0.57641506", "0.57608724", "0.5754561", "0.57...
0.7193298
1
Sets the flag to collect pattern ids during this build
Устанавливает флаг для сбора идентификаторов шаблонов во время этого сбора
public function setCollectPatternIds(bool $value): void { $this->collectPatternIds = $value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setId($id){\r\n\t\t$this->patternId = $id;\r\n\t}", "function add_patterns($defined = true) {\n\t\t$this->add_timing_patterns($defined);\n\t\t$this->add_finder_patterns($defined);\n\t\t$this->add_separators($defined);\n\t\t$this->add_alignment_patterns($defined);\n\t\t$this->add_dark_module($defi...
[ "0.5841086", "0.51970536", "0.51672035", "0.5152262", "0.514192", "0.5137651", "0.5137651", "0.5013147", "0.4933405", "0.48965907", "0.48861778", "0.48595738", "0.48368633", "0.4831596", "0.48211503", "0.47928935", "0.47891453", "0.47783348", "0.4773024", "0.4756422", "0.4742...
0.72699267
0
Returns a Editor_collection_type by id
Возвращает Editor_collection_type по идентификатору
public function find($id) { $query="SELECT id,". "name,". "entity_type,". "parent,". "child_order,". "description,". "gid ". "FRO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function find($id)\n {\n return $this->types->find($id);\n }", "public function getCollectionById($id)\n {\n return craft()->amSearch_collections->getCollectionById($id);\n }", "public function getType($id)\n {\n return $this->types->find($id);\n }", "functi...
[ "0.6547328", "0.6345267", "0.6324793", "0.6264552", "0.6230371", "0.62290573", "0.61315113", "0.59639955", "0.5912922", "0.58875734", "0.58781296", "0.5866976", "0.58075196", "0.57928187", "0.57806313", "0.5740324", "0.5738443", "0.5709854", "0.56907815", "0.5672122", "0.5669...
0.8097437
0
Insert a new Editor_collection_type into musicbrainz database
Вставить новый Editor_collection_type в базу данных musicbrainz
public function insert($editor_collection_type) { $query="INSERT INTO editor_collection_type ( ". "id,". "name,". "entity_type,". "parent,". "child_order,". "description,". ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function insert2($editor_collection_type)\n {\n $query=\"INSERT INTO editor_collection_type ( \".\n\t \"id,\".\n \"name,\".\n \"entity_type,\".\n \"parent,\".\n \"child_order,\".\n ...
[ "0.75470394", "0.6006212", "0.6005459", "0.59463096", "0.5942763", "0.59424794", "0.58310735", "0.5802149", "0.57609475", "0.5716219", "0.57087266", "0.56915665", "0.5677502", "0.56654066", "0.5652783", "0.5630663", "0.56266475", "0.56136495", "0.5605685", "0.5605537", "0.559...
0.79400957
0
Insert a new Editor_collection_type into musicbrainz database and return a Editor_collection_type with new autoincrement primary key
Вставить новый Editor_collection_type в базу данных musicbrainz и вернуть Editor_collection_type с новым автоинкрементным первичным ключом
public function insert2($editor_collection_type) { $query="INSERT INTO editor_collection_type ( ". "id,". "name,". "entity_type,". "parent,". "child_order,". "description,". ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function insert($editor_collection_type)\n {\n $query=\"INSERT INTO editor_collection_type ( \".\n\t \"id,\".\n \"name,\".\n \"entity_type,\".\n \"parent,\".\n \"child_order,\".\n ...
[ "0.7445945", "0.66474044", "0.59099406", "0.58721805", "0.5846397", "0.5841087", "0.5787031", "0.5748127", "0.5741491", "0.5720438", "0.5690369", "0.5687922", "0.5678994", "0.5622843", "0.5593411", "0.55853945", "0.548462", "0.5463202", "0.5445811", "0.5438357", "0.5438073", ...
0.7733494
0
Update a Editor_collection_type in musicbrainz database
Обновление Editor_collection_type в базе данных musicbrainz
public function update($editor_collection_type) { $query="UPDATE editor_collection_type ". "SET ". "id= ".$editor_collection_type->id." ,". "name='".$this->sqlSafe($editor_collection_type->name)."',". "entity_type='".$this->sqlSaf...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionUpdateTypeRessources(){\n\t\tif( Role::isSuperAdmin(Role::getRolesUserId(Yii::app()->session[\"userId\"]) )){\n\t\t $ress=PHDB::find(Ressource::COLLECTION);\n\t\t $i=0;\n\t\t foreach($ress as $key => $data){\n\t\t\t $label=\"\";\n\t\t\t if(@$data[\"type\"]==\"compétence\")\n\t\t\t \t\t$...
[ "0.6039167", "0.5850399", "0.5827877", "0.56952924", "0.55846334", "0.5535978", "0.5497227", "0.5492172", "0.5417834", "0.54130733", "0.5401494", "0.5368614", "0.5304935", "0.528509", "0.5277902", "0.5277832", "0.52337044", "0.5228398", "0.52160525", "0.5214206", "0.5203051",...
0.79277724
0
Delete a Editor_collection_type by id
Удалить Editor_collection_type по id
public function delete($id) { $query="DELETE FROM editor_collection_type WHERE id=".$id; $this->executeQuery($query); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function destroy($collection, $id)\n {\n //\n }", "public function deleteCollection();", "function custom_rules_delete_field_collection_item( $field_collection_item ){\n\t$field_collection_item->delete();\n}", "function budget_type_delete(budgetType $type) {\n $type->delete();\n}", "pu...
[ "0.6674343", "0.6525383", "0.6476703", "0.6467488", "0.63993686", "0.63451725", "0.63415605", "0.6330792", "0.6301027", "0.62986326", "0.626016", "0.62274694", "0.6217866", "0.61953366", "0.6131196", "0.60716736", "0.6017011", "0.60127836", "0.59595937", "0.59387547", "0.5926...
0.83106714
0
Returns a mapper instance identified by $identifier. $identifier is either a service ID of a service defined in the Symfony dependency container or a fully qualified class name. Implementations may also define additional types of identifiers.
Возвращает экземпляр маппера, идентифицированный $identifier. $identifier может быть либо идентификатором сервиса, определенного в контейнере зависимостей Symfony, либо полным именем класса. Реализации могут также определять дополнительные типы идентификаторов.
public function getMapper($identifier);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMapping($identifier)\n {\n return $this->getEntityRepository()->findBy(array('identifier' => $identifier));\n }", "public static function from($identifier);", "public function getInstance($identifier)\n {\n if (!array_key_exists($identifier, $this->instances)) {\n ...
[ "0.7319482", "0.63555616", "0.63416314", "0.63016945", "0.61506116", "0.6117006", "0.60162497", "0.57728297", "0.57666224", "0.5731567", "0.5731567", "0.57266545", "0.5724383", "0.57191926", "0.5709738", "0.5679724", "0.5678501", "0.56648535", "0.5659035", "0.56479365", "0.56...
0.8184054
0
Constructor for the default theme handler.
Конструктор для обработчика темы по умолчанию.
public function __construct() { $this->setup_theme(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct()\n {\n parent::__construct();\n $this->_theme = $this->settings->default_theme;\n }", "public function __construct()\n {\n // Setup the used Theme to default, if it is not already defined.\n if (! isset($this->theme)) {\n $this->theme =...
[ "0.780345", "0.7658238", "0.763762", "0.73666847", "0.72332793", "0.7204521", "0.7200291", "0.71727663", "0.71322066", "0.7124803", "0.7023983", "0.69555557", "0.69547695", "0.6943543", "0.6931371", "0.6893213", "0.6792869", "0.6789869", "0.6782772", "0.67532545", "0.6749174"...
0.7734767
1
SPDXLicenseIdentifier: BSD3Clause !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! !! !! NOTE this file does not need to be edited; see setup.php !! !! !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! //////////////////////////////////////////////////////////////////////////// Secu...
SPDXLicenseIdentifier: BSD3Clause !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! !! !! ЗАМЕЧАНИЕ: этот файл не нужно редактировать; см. setup.php !! !! !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! //////////////////////////////////////////////////////////////////////////// Бе...
function path_security_check($victim, $test) { if (!realpath($victim) || preg_match("/^" . rtrim('/', $test) . ".*/", rtrim('/', realpath($victim)))) { return true; } die("path security check failed: $victim - $test"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function met_filesystem_requirement()\n {\n }", "function securityCheck() {\n\t}", "public static function checkFilesystem()\n {\n // -------------------------- SCHREIBRECHTE\n $writables = [\n rex_path::media(),\n rex_path::assets(),\n ...
[ "0.6162832", "0.61566556", "0.61491203", "0.61159724", "0.6070737", "0.59994674", "0.5998058", "0.59928536", "0.59474295", "0.59018445", "0.5857511", "0.5727357", "0.5679545", "0.56793946", "0.56790173", "0.5671567", "0.56659484", "0.5660658", "0.5652361", "0.55883956", "0.55...
0.7250315
0
function path_security_check function parse_resolution(string $res) converts a string dimension (800x600, 800X600, 800 x 600, 800 X 600) to a twoelement array
Функция path_security_check функция parse_resolution(string $res) преобразует строковое измерение (800x600, 800X600, 800 x 600, 800 X 600) в двухэлементный массив
function parse_resolution($res) { //return(explode('x', ereg_replace('[^0-9x]', '', strtolower($res)))); return(explode('x', preg_replace('/[^0-9x]/', '', strtolower($res)))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function parseScreenResolution( $fingerprint_Session ) {\n\t//in text format example \"1280x800\"\n\t//It outputs an associative array of integers containing the Width x Height\n\t$ScreenResolutionArray = explode( 'x', $fingerprint_Session['getCurrentResolution'] );\n\t$ScreenResolutionArray[0] = intval( $Scree...
[ "0.6276697", "0.59274226", "0.58074224", "0.5711287", "0.54936117", "0.5467999", "0.53313935", "0.53169304", "0.5311156", "0.5302123", "0.525593", "0.5234757", "0.5148975", "0.50979227", "0.5064544", "0.50006115", "0.49814183", "0.49734387", "0.49665225", "0.4962763", "0.4917...
0.7002989
0
function cache_test function directory_data(string $path, string $url_path) walks the specified directory and returns an array containing image file and directory details: array( files => array( name, index, path, thumb_url, image_url, view_url, raw_url ), directories => array( name, index, list_url ) ) note: only file...
Функция cache_test функция directory_data(string $path, string $url_path) обходит указанную директорию и возвращает массив, содержащий детали файлов изображений и директорий: array( files => array( name, index, path, thumb_url, image_url, view_url, raw_url ), directories => array( name, index, list_url ) ) примечание: ...
function directory_data($path, $url_path) { global $CFG_image_valid, $CFG_url_album, $CFG_thumb_width, $CFG_thumb_height, $CFG_image_width, $CFG_image_height, $CFG_path_images, $CFG_cache_outside_docroot; //compensate for switching away from eregi() $CFG_image_valid_i = array(); foreach ($CFG_image_valid as $e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createCacheFromDir( $overwrite = FALSE) {\n\t\t// open the directory\n\t\t$dir = opendir ( $this->originalsdir () );\n\t\t$cachedFiles = array ();\n\t\t// loop through it, looking for any/all JPG files:\n\t\twhile ( false !== ($fname = readdir ( $dir )) ) {\n\t\t\t$original_fpath = $this->originalsdir () ...
[ "0.64268523", "0.6311874", "0.6268394", "0.6145593", "0.606642", "0.6062669", "0.60555774", "0.6016393", "0.59882456", "0.59810066", "0.5976143", "0.59610915", "0.59591377", "0.5934436", "0.5930267", "0.59199756", "0.58881027", "0.58609444", "0.5859829", "0.58450824", "0.5843...
0.82874465
0
function directory_data function path_list(string $path) return list of path parts and URLs in an array: array( url, name )
Функция directory_data функция path_list(string $path) возвращает список частей пути и URL в массиве: array( url, name )
function path_list($path) { global $CFG_url_album, $CFG_album_name; $image_subdir_parts = array(); if ($path != '') { $image_subdir_parts = explode('/', $path); } $path_list[] = array('url' => $CFG_url_album, 'name' => $CFG_album_name); for ($i = 0; $i < count($image_subdir_pa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDirList();", "public function list(string $path): array;", "public function listDirectory($path)\n {\n \t// Get all the directories\n $list = new ArrayObject();\n\t\ttry {\n\t if (!$this->getConnection()) {\n\t return array();\n\t }\n\t\n\t if (st...
[ "0.7454453", "0.71520936", "0.68965554", "0.6893472", "0.6862096", "0.680388", "0.67844456", "0.6727586", "0.66933334", "0.6634372", "0.6619303", "0.65977913", "0.6595009", "0.6575524", "0.657358", "0.65730953", "0.65632707", "0.65383995", "0.65383995", "0.6537526", "0.652872...
0.7690214
0
function path_data function debug(string $type[, string $message]) sets an entry in global DEBUG_MESSAGES
Функция path_data функция debug(string $type[, string $message]) устанавливает запись в глобальный DEBUG_MESSAGES
function debug($type, $message = '') { global $DEBUG_MESSAGES; if ($message == '') { $message = $type; $type = 'debug'; } // if if (is_array($message) || is_object($message)) { ob_start(); var_dump($message); $message = ob_get_contents(); ob_end_clean(); } // if $DEBUG_MESSAGES[] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function debugMessage($message, string $type) : void;", "function debug($message) { Common::debug($message); }", "public function debug($message, $type = null) {\n\t\t$this->_notify(AppLogger::LEVEL_DEBUG, $message, $type);\n\t}", "static function debug() {\n }", "function debug( $msg ) ...
[ "0.7151785", "0.70309347", "0.69458306", "0.6796882", "0.6664446", "0.6599889", "0.6570444", "0.6551761", "0.64970404", "0.6494125", "0.6473722", "0.6470016", "0.6446503", "0.6422305", "0.64152545", "0.64118695", "0.6403658", "0.637012", "0.6363091", "0.6321303", "0.6284565",...
0.7190166
0
Display an iframe of the given url
Показать iframe с заданным url
public function iframe($url) { echo "<iframe style='display: block; width: 100%; height: 200px;' onload='resizeIframe(this)' src='$url'></iframe>"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function iframeAction()\n {\n $this->loadLayout();\n $this->renderLayout();\n }", "function html_iframe($src, $w=600, $h=500, $options=array()) {\n $options['src'] = $src; \n $options['height'] = $h; \n $options['width'] = $w;\n if($s...
[ "0.6545039", "0.63437", "0.63339585", "0.62844926", "0.62663734", "0.62196755", "0.6153432", "0.61122406", "0.6076539", "0.5976733", "0.59069717", "0.5892645", "0.58755964", "0.58519477", "0.577701", "0.572977", "0.57201195", "0.57175493", "0.5717422", "0.56886274", "0.566171...
0.82807416
0
Before rendering, set the language to the global post lang
До рендеринга установите язык в глобальный язык поста
public static function setLang() { if (function_exists("pll_is_translated_post_type") && isset($GLOBALS["post"]->post_type) && pll_is_translated_post_type($GLOBALS["post"]->post_type)) { Lang::switchTo(Lang::ofPost($GLOBALS["post"]->ID)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function settingLanguage() {}", "protected function setLangCode()\n {\n $this->page->setVar('langCode', $this->text->getLanguage());\n }", "private function _set_lang() {\n\t\t$this->language = $this->config->item('language');\n\t\t$this->session->set_userdata('language', $this->language);\...
[ "0.76702595", "0.71579987", "0.71208465", "0.70475656", "0.67769945", "0.67394775", "0.6736823", "0.67212933", "0.67091745", "0.67026824", "0.6683688", "0.6585177", "0.6578581", "0.6536657", "0.65187883", "0.6511418", "0.65055555", "0.65040624", "0.64747244", "0.6449866", "0....
0.8047393
0
If this Boolean attribute is set, this option is not checkable. Often browsers grey out such control and it won't receive any browsing event, like mouse clicks or focusrelated ones. If this attribute is not set, the element can still be disabled if one its ancestors is a disabled element.
Если этот булевский атрибут установлен, этот вариант не может быть выбран. Часто браузеры выделяют такой элемент серым цветом, и он не получает никаких событий веб-обозревания, таких как щелчок мышью или события, связанные с фокусом. Если этот атрибут не установлен, элемент всё равно может быть отключен, если один из е...
public function setDisabledYes() { $this->setAttribute( "disabled"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function is_disabled();", "public function getDisabledValue() {\n return FALSE;\n }", "public function is_disabled()\n {\n }", "public function is_disabled()\n {\n }", "public function setDisabled($value = TRUE)\n\t{\n\t\t$this->attributes['data-disabled'] = $value ? ...
[ "0.71258044", "0.7108483", "0.7097515", "0.70963585", "0.70055336", "0.7002804", "0.6938496", "0.68823326", "0.68823326", "0.68823326", "0.68665457", "0.6839956", "0.6797833", "0.6797533", "0.67964244", "0.67962795", "0.6795166", "0.6781899", "0.67650634", "0.67620367", "0.67...
0.72373825
0
Add all required services for a provided facility (vet center).
Добавить все необходимые службы для указанного объекта (ветеринарный центр).
public function addRequiredServicesByFacility(EntityInterface $facility_node) { /** @var \Drupal\node\NodeInterface $facility_node */ if ($facility_node->bundle() == 'vet_center' && is_null($facility_node->original)) { // Be sure a given facility has all required services. $required_services = $this...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function _initServices();", "abstract public function servicemain();", "public function addservices() {\n\n\n/*\n\tforeach($service as $data) {\n\t\tServices::create()->save($data);\n\t}\n\treturn 'Services Installed';\n*/\n\treturn 'Method not active. See controller for details.';\n\n\t}", ...
[ "0.61035675", "0.5988899", "0.58949", "0.5842708", "0.57928705", "0.5781313", "0.5714487", "0.57004905", "0.5669872", "0.56414235", "0.56327534", "0.56156695", "0.56037915", "0.5598906", "0.5546726", "0.55259204", "0.54920185", "0.5476157", "0.5472884", "0.54615325", "0.54601...
0.7070378
0
Determine whether a provided service term is required or not.
Определите, требуется ли предоставленный срок обслуживания.
public function isRequiredService(TermInterface $service_term) { // Check a service to see if it is required. $required = $service_term->get('field_vet_center_required_servic')->value; return $required; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isServiceRequest() {\n return $this->isWorkerRequest() || $this->isWarmupRequest() || $this->isLighthouseRequest();\n }", "public static function isTerm()\n {\n\t//$timeslot = self::getCurrentTimeslot($time, $filter);\n return true;\n return (!empty(self::getTerms(true)...
[ "0.6519015", "0.61753213", "0.6150166", "0.60992116", "0.6005254", "0.5991871", "0.5922252", "0.5913434", "0.58303046", "0.5817268", "0.57914156", "0.5738514", "0.5720257", "0.57112116", "0.5674738", "0.5673223", "0.56713516", "0.5663049", "0.5639295", "0.5622628", "0.5618482...
0.80377203
0
Remove Edit from bulk actions
Удалить "Редактировать" из массовых действий
function edd_incentives_bulk_actions( $actions ) { unset( $actions['edit'] ); return $actions; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function remove_quick_edit( $actions ) {\n unset($actions['inline hide-if-no-js']);\n return $actions;\n}", "function get_bulk_actions() {\n $actions = array(\n\t\t\t\t\t\t\t'delete' => __('Delete', 'blog-designer-pack')\n\t\t\t\t\t\t);\n return apply_filters('bdpp_shrt_tmpl_list_bulk_act', $...
[ "0.70732254", "0.7068604", "0.7001062", "0.69290143", "0.6867184", "0.6829638", "0.68172467", "0.6808969", "0.6802888", "0.6777958", "0.67661995", "0.6739401", "0.667798", "0.66235363", "0.66135955", "0.6605803", "0.658333", "0.65452486", "0.65304226", "0.6527191", "0.6527191...
0.80539167
0
Login customer and open Order page.
Авторизуйтесь как клиент и откройте страницу Заказа.
protected function loginCustomerAndOpenOrderPage(Customer $customer) { $this->cmsIndex->open(); $loginCustomerOnFrontendStep = $this->objectManager->create( 'Magento\Customer\Test\TestStep\LoginCustomerOnFrontendStep', ['customer' => $customer] ); $loginCustom...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function logInCustomer()\r\n {\r\n\r\n // validate credentials\r\n $user = $this->model->check(Input::post('username'), Input::post('password'));\r\n\r\n // get customer name by email\r\n $customer_name = Elements::call('Customers/CustomersController')\r\n ->model->...
[ "0.68125874", "0.6662411", "0.6655717", "0.66371536", "0.6635286", "0.66299534", "0.658739", "0.65509963", "0.6526782", "0.6474375", "0.6435764", "0.6408987", "0.6403123", "0.6402433", "0.6399806", "0.639899", "0.63877964", "0.6379597", "0.6376329", "0.63699305", "0.6369897",...
0.7829191
0
Find all committee_role nodes, and append them to the $groups hash, adding a recipient email for both $groups_admin_address, and all of the addresses listed in the field_copy_emails_to field.
Найдите все узлы committee_role и добавьте их в хеш $groups, добавляя адрес электронной почты получателя для обоих $groups_admin_address и всех адресов, указанных в поле field_copy_emails_to.
function _eltmc_googlesync_create_recipient_map($group_admin_addresses) { $groups = array(); // Get all the committee_role nodes $query = new EntityFieldQuery(); $query ->entityCondition('entity_type', 'node') ->entityCondition('bundle', 'committee_role'); $result = $query->execute(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function eltmc_googlesync_sync_groups_to_committee() {\n Zend_Loader::loadClass('Zend_Gdata');\n\n $config = _eltmc_googlesync_config();\n if (!$config) {\n\twatchdog('eltmc_googlesync', \"<p>Not yet configured, skipping group sync</p>\");\n return;\n }\n\n $gapps = _eltmc_googlesync_oauth_cl...
[ "0.653054", "0.5416106", "0.5114903", "0.48753127", "0.4826699", "0.48064178", "0.4784074", "0.4735652", "0.47072506", "0.47051054", "0.4628143", "0.46277335", "0.4627187", "0.4588859", "0.45743755", "0.4560527", "0.45461679", "0.45354104", "0.4533119", "0.45283243", "0.45270...
0.7261839
0
Since the settings rely on the cookies I need to create a fake route that will contain the cookie passed as a param and will respond with the data that the Settings service returns for the given method. The response will be a json that we can use for testing the values.
Поскольку настройки зависят от кук, мне нужно создать фейковый маршрут, который будет содержать куку, переданную в качестве параметра, и будет отвечать данными, которые сервис Settings возвращает для заданного метода. Ответ будет JSON, который можно использовать для тестирования значений.
function getSettingsFromCookies($ctx, $method = 'all', array $settings = []) { Route::get('get-settings', ['middleware' => 'web', fn () => Arr::wrap(Settings::$method())]); $response = $ctx->withCookies([ 'settings' => json_encode($settings), ])->get('get-settings'); return is_string($response...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setCookie(){\n \t$response = new Response('Hello Cookie');\n \t$minute = 1;\n \t$response->withCookie(cookie('nameCookie','valueCookie',$minute));\n \treturn $response;\n }", "public function testCookiePath()\n {\n /** @var HttpKernelInterface $kernel */\n $kernel ...
[ "0.55035996", "0.5291327", "0.5188893", "0.5128337", "0.50684166", "0.50408703", "0.5026701", "0.4989979", "0.4985372", "0.49793276", "0.49358726", "0.49226913", "0.49179637", "0.49086756", "0.49023873", "0.48949564", "0.48824874", "0.4870928", "0.48518726", "0.48442012", "0....
0.74860513
0
Normalize a tag name
Нормализовать имя тега
public static function normalize($name) { if (!static::isValid($name)) { throw new InvalidArgumentException("Invalid tag name '" . $name . "'"); } // Non-namespaced tags are uppercased if (strpos($name, ':') === false) { $name = strtoupper($name); } return $name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function normalize($tag){\n $tag = ereg_replace(\"[ \\t\\r\\n]\", '', $tag);\n return strtolower($tag);\n }", "protected function sanitizeTagName(string $tag) : string {\n return mb_ereg_replace('/[^\\w\\\\\\.\\-]/', '_', $tag);\n }", "private static function _normalizeName($name)\n\t{\n\t...
[ "0.7384978", "0.71194977", "0.689103", "0.6835322", "0.65384024", "0.65279305", "0.6445475", "0.63721716", "0.63603824", "0.63602597", "0.6315328", "0.6309616", "0.6304217", "0.6304213", "0.62464756", "0.62402844", "0.62333465", "0.62332577", "0.6211902", "0.61440504", "0.613...
0.7860452
0
Pushes $this to ContextFactoryStack.
Пушит $this в ContextFactoryStack.
public function enterContext() { ContextFactoryStack::getInstance()->push($this); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function pushContext($context)\n {\n // Ensure we have an array\n if ($context==null || !is_array($context)) $context = array();\n\n // Note: when a context is pushed, it overload the existing one\n // we have to retrieve the current one and overload with new one\n $ne...
[ "0.54964864", "0.5491995", "0.537711", "0.5282771", "0.5262598", "0.5241258", "0.52020603", "0.51586974", "0.51560634", "0.5138438", "0.50917196", "0.5069967", "0.5050231", "0.49635103", "0.49321878", "0.49321637", "0.48981968", "0.48850346", "0.48739627", "0.48653832", "0.48...
0.757171
0
Gets the component associated with this component data
Получает компонент, связанный с этими данными компонента
public function getComponent() { return $this->component; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getComponent()\n {\n return $this->component;\n }", "public function getComponent()\n {\n return $this->component;\n }", "public function getComponent()\n {\n return $this->component;\n }", "public function getComponent()\n {\n return $this->ha...
[ "0.80899376", "0.80899376", "0.80899376", "0.7406386", "0.7406386", "0.7029321", "0.6825534", "0.6747541", "0.6737628", "0.6612515", "0.6556265", "0.6553449", "0.65169156", "0.6440119", "0.6368159", "0.6363563", "0.63355786", "0.63355786", "0.63312584", "0.63285947", "0.63279...
0.8168449
0
Gets if the component is peer
Проверяет, является ли компонент пировым
public function isPeer(): bool { return $this->is_peer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasPeerAuth()\n {\n return $this->peer_auth !== null;\n }", "public function connected()\r\n {\r\n return !is_null($this->link);\r\n }", "public function getBubble(): bool\n {\n return $this->bubble;\n }", "public function isConnected() {\n ...
[ "0.6452158", "0.5995989", "0.59714276", "0.593523", "0.5853567", "0.5829269", "0.5760369", "0.5760369", "0.56463206", "0.5643544", "0.55989337", "0.5585106", "0.5551485", "0.55335784", "0.5530723", "0.5525789", "0.5513408", "0.55128866", "0.551046", "0.55054283", "0.5503528",...
0.7648421
0
Gets the TaGradedGradeable that owns this graded component
Получает TaGradedGradeable, которому принадлежит этот оцененный компонент
public function getTaGradedGradeable() { return $this->ta_graded_gradeable; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function grade()\n {\n return Grade::where('assignment_id', $this->attributes['assignment_id'])->first();\n }", "public function getGrade()\n {\n return $this->hasOne(Grade::className(), ['id' => 'grade_id']);\n }", "public function get_grade() {\n global $DB;\n\n ...
[ "0.62144494", "0.6208461", "0.612655", "0.6106888", "0.6084767", "0.5997825", "0.5950962", "0.5895107", "0.56990016", "0.56618726", "0.554716", "0.5541323", "0.54935294", "0.53352714", "0.53308517", "0.530498", "0.5272299", "0.5247586", "0.524267", "0.5188777", "0.5154941", ...
0.7788696
0
Gets if this component grade is attached to a AutoGradedVersion
Проверяет, прикреплен ли этот компонент оценки к AutoGradedVersion
public function hasGradedVersion() { return $this->graded_version !== -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getGradedVersion() {\n $version = false;\n /** @var GradedComponent $graded_component */\n foreach ($this->graded_components as $graded_component) {\n $v = $graded_component->getGradedVersion();\n if ($version === false) {\n $version = $v;\n...
[ "0.7189566", "0.6314128", "0.62158984", "0.6100976", "0.6035056", "0.5995955", "0.5987742", "0.5947798", "0.5943939", "0.5943939", "0.59294987", "0.5882882", "0.58427525", "0.58131784", "0.58021355", "0.5745298", "0.5724583", "0.5722984", "0.5700532", "0.5677431", "0.5646063"...
0.7045761
1
Gets if the graded component has a custom mark
Проверяет, имеет ли компонент с оценкой пользовательскую отметку
public function hasCustomMark() { return $this->getComment() !== '' || $this->getScore() != 0.0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isMarked() {\n\t\t$sessionVars = WCF::getSession()->getVars();\n\t\tif (isset($sessionVars['markedSmileys'])) {\n\t\t\tif (in_array($this->smileyID, $sessionVars['markedSmileys'])) return 1;\n\t\t}\n\t\t\n\t\treturn 0;\n\t}", "private function hasLabelMarker()\n\t{\n\t\treturn strpos($this->strin...
[ "0.63237303", "0.616663", "0.6154675", "0.607917", "0.607917", "0.604678", "0.60460025", "0.60126543", "0.60113955", "0.60113955", "0.5912757", "0.5895516", "0.5892654", "0.58664083", "0.58662474", "0.5833017", "0.5806465", "0.5806269", "0.5780461", "0.57798547", "0.57629997"...
0.7552105
0
Gets the mark ids loaded from the database
Получает идентификаторы меток, загруженные из базы данных
public function getDbMarkIds() { return $this->db_mark_ids; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIDs();", "public function getIds();", "public function getIds()\n {\n $this->_loadSet();\n return $this->_set;\n }", "public function getIds()\n {\n \treturn $this->_cacheEnabled ? $this->_cache->getIds() : array();\n }", "public function getIds()\n ...
[ "0.710534", "0.70867383", "0.68969417", "0.6847137", "0.67710775", "0.6770092", "0.6765654", "0.66598845", "0.6650772", "0.6650772", "0.6650772", "0.6650772", "0.6640876", "0.6627386", "0.6616881", "0.6612259", "0.6593205", "0.6586956", "0.65512395", "0.6540529", "0.64335907"...
0.79959816
0
Gets the id of the verifier or '' if none exist
Получает идентификатор проверяющего или пустую строку, если его нет
public function getVerifierId() { return $this->verifier_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIdForVerification() {\n /** @noinspection PhpUndefinedFieldInspection */\n return $this->id;\n }", "public function obtenerID();", "public static function resolveId()\n {\n return auth()->check() ? auth()->user()->getAuthIdentifier() : null;\n }", "public func...
[ "0.7067803", "0.64882976", "0.63731116", "0.63384485", "0.6332771", "0.6292247", "0.6292247", "0.6255581", "0.6242169", "0.6242169", "0.62348974", "0.62205666", "0.6220401", "0.61821836", "0.61806375", "0.6164845", "0.6164845", "0.6164845", "0.61108714", "0.61069924", "0.6104...
0.75717735
0
Gets the time when this component was verified
Получает время, когда этот компонент был проверен
public function getVerifyTime() { return $this->verify_time; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getVerifyTime()\n {\n return $this->verify_time;\n }", "public function getArticleVerifyTime()\n {\n return $this->article_verify_time;\n }", "public function getAuthTime()\n {\n return $this->authTime;\n }", "function get_last_check_in_time(){\n ...
[ "0.83443516", "0.775813", "0.7371043", "0.69668", "0.6959738", "0.68934554", "0.68642455", "0.68227077", "0.67675555", "0.66901034", "0.66833353", "0.6671488", "0.6671488", "0.6671488", "0.6671488", "0.6671488", "0.6671488", "0.6671488", "0.6671488", "0.6667427", "0.6663916",...
0.8292077
1
Used to get email id on which order is placed
Используется для получения идентификатора электронной почты, на который оформляется заказ
public function get_email_id($id) { $this->db->select('billing_email'); $this->db->where('id',$id); $query = $this->db->get('user_order')->row_array(); return $query['billing_email']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEmailid()\n {\n return $this->emailid;\n }", "function getEmailID(){\n return $this->email_ad;\n }", "public function getEmailId()\n {\n return $this->emailId;\n }", "public function getEmailId()\n {\n return $this->emailId;\n }", "functio...
[ "0.71464175", "0.70892656", "0.70497006", "0.70497006", "0.68760484", "0.68066543", "0.66748255", "0.66748255", "0.66748255", "0.66739523", "0.664565", "0.66345674", "0.6621736", "0.6598294", "0.65540534", "0.654114", "0.65275514", "0.6489585", "0.648808", "0.647645", "0.6464...
0.7158682
0
Gets the name of the section class that is specified in the config.
Получает имя класса секции, указанного в конфигурации.
public function getSectionClass();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_name() {\n\t\treturn 'section';\n\t}", "public function getSectionName(): string;", "private static function guessSectionName(): string\n {\n foreach (debug_backtrace() as $trace) {\n if (isset($trace['class']) && $trace['class'] == self::class) {\n conti...
[ "0.68680054", "0.67874485", "0.63780165", "0.6302024", "0.6246768", "0.6212077", "0.61780024", "0.61293596", "0.61201185", "0.6114118", "0.61136496", "0.61136496", "0.61038357", "0.6096554", "0.6090343", "0.6087818", "0.6071965", "0.6054992", "0.60523176", "0.6049861", "0.602...
0.7762734
0
Gets the name of the topic class that is specified in the config.
Получает имя класса темы, указанного в конфигурации.
public function getTopicClass();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getName()\n {\n return 'acme.topic';\n }", "public function getName()\n {\n return 'agil.topic';\n }", "public function getClassName()\n {\n return $this->faqClass;\n }", "public function getTopicName();", "public function getName()\n {\n ret...
[ "0.7211653", "0.6990955", "0.6875443", "0.6840823", "0.6752869", "0.6733864", "0.6696334", "0.6692732", "0.66713965", "0.6656002", "0.66088694", "0.65779847", "0.6552345", "0.6511476", "0.64982325", "0.64893246", "0.6485503", "0.6474517", "0.64705336", "0.64226353", "0.641319...
0.77583146
0
Gets the name of the comment class that is specified in the config.
Получает имя класса комментария, указанного в конфигурации.
public function getCommentClass();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getClassName()\n {\n return $this->commentClass;\n }", "protected function getConfigName()\n {\n return 'codex-comments';\n }", "protected function _getClassComment()\n\t{\n\t\t//create an instance of the ReflectionClass passing the class name as parameter\n\t\t$reflec...
[ "0.836009", "0.71195066", "0.6858578", "0.66616786", "0.66060483", "0.6601709", "0.6551159", "0.6534497", "0.65218157", "0.6517963", "0.6444389", "0.6444055", "0.6434327", "0.6434327", "0.6404213", "0.63905054", "0.6388232", "0.63833493", "0.6362723", "0.635989", "0.6356212",...
0.76392984
1
Gets the name of the parser class that is specified in the config.
Получает имя класса парсера, указанного в конфигурации.
public function getParserClass();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getParserClassInstance() {\n\t\t\t$args = func_get_args();\n\t\t\t$name = array_shift($args);\n\n\t\t\t$parser = \\Configure::read('Saito.Settings.ParserPlugin');\n\t\t\t$name = \"\\\\Plugin\\\\{$parser}Parser\\\\Lib\\\\$name\";\n\n\t\t\t$reflection = new \\ReflectionClass($name);\n\t\t\tret...
[ "0.6682969", "0.6451235", "0.62527645", "0.6121954", "0.6121398", "0.6044556", "0.5998079", "0.59837675", "0.59406185", "0.5940309", "0.5940309", "0.5940309", "0.5940309", "0.5940309", "0.5940309", "0.59275466", "0.59112936", "0.5910404", "0.5905992", "0.5905992", "0.5901781"...
0.7541585
0
Tests that form caches is invalidated when Antibot settings are updated.
Тесты, проверяющие, что кэши формы становятся недействительными при обновлении настроек Antibot.
public function testFormCacheInvalidation() { $antibot_settings = $this->config('antibot.settings'); // Unprotect all forms. $antibot_settings->set('form_ids', [])->save(); // Warm the page cache. $this->verifyPageCache(Url::fromRoute('user.pass'), 'MISS'); $this->verifyPageCache(Url::fromRout...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function webform_plus_admin_settings_form_submit($form, &$form_state) {\n cache_clear_all();\n drupal_set_message(t('Cache cleared'));\n}", "function gsb_academic_year_settings_form_submit(array &$form, array &$form_state) {\n views_invalidate_cache();\n}", "protected function _onUpdate(Form_AdminGeneral $f...
[ "0.6742718", "0.66673344", "0.62957", "0.61093897", "0.6078337", "0.6054831", "0.5971363", "0.5963644", "0.5946898", "0.5882171", "0.58023304", "0.57939345", "0.5766675", "0.5758205", "0.5736888", "0.5718661", "0.57123137", "0.56944454", "0.5676824", "0.56677234", "0.56413335...
0.80446756
0
Gets the debug response.
Получает отладочный ответ.
public function getDebugResponse();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function debug()\n\t{\n\t\t$this->response['REQUEST'] = $this->request;\n\t\tvar_dump($this->response);\n\t}", "public function get_response(){\n\t\tprint_r($this->response);\n\n\t\treturn $this->response;\n\t}", "public function debug(){\n return $this->getClient()->debug_str;\n }", "publi...
[ "0.72941434", "0.7111575", "0.6883882", "0.66076046", "0.65540695", "0.6538842", "0.65253496", "0.650537", "0.65047216", "0.64808357", "0.64808357", "0.64808357", "0.6477634", "0.6471205", "0.64662623", "0.6461189", "0.6461189", "0.6451847", "0.6448448", "0.6422073", "0.64152...
0.8726222
0
Function to check whether to display the cancel appointment button
Функция для проверки необходимости отображения кнопки отмены записи
function checkToDisplayCancelButton($conn, $teacher_id) { // Variable to store a URL for deleting the record $cancel_appointment_script = WEBURL.DOCROOT."scripts/parents-evening/students/timeslot_cancel.php"; // SQL to check if there is already an appointment $sql_check_if_already_appointment = "SELECT * FROM appo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isCancelAble() {}", "public function isCancelRequested(){\n\t\treturn $this->getSubscription()->getCancelRequest() == 1;\n\t}", "public function isStatusCancel(){\n return $this->status == 'cancel';\n }", "public function canCancel ()\n {\n return true;\n }", "private...
[ "0.68407214", "0.6665447", "0.66481256", "0.65242183", "0.649454", "0.64808327", "0.6404077", "0.62213165", "0.61329806", "0.6039677", "0.6008333", "0.59728724", "0.5947292", "0.5921994", "0.5921994", "0.5921994", "0.5921994", "0.5907158", "0.59041667", "0.59011054", "0.58939...
0.71290517
0
Gets the childlessDescendants of the node.
Получает потомков без детей узла.
public function childlessDescendants() { $condition = [ 'and', ['>', $this->leftAttribute, $this->owner->getAttribute($this->leftAttribute)], ['<', $this->rightAttribute, $this->owner->getAttribute($this->rightAttribute)], [$this->rightAttribute => new Express...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllDescendants()\n {\n return $this->all_descendants;\n }", "public function childrenAndSelf(): Descendants\n {\n return $this->descendantsAndSelf()->whereDepth('<=', 1);\n }", "public function getDescendants();", "public function getDescendants()\r\n {\r\n ...
[ "0.650445", "0.6502458", "0.64661944", "0.6357282", "0.62369347", "0.6232968", "0.60085875", "0.59939826", "0.5982118", "0.5979084", "0.5977756", "0.5965765", "0.59585726", "0.5951064", "0.587662", "0.58654886", "0.58388865", "0.58088064", "0.58037275", "0.5800578", "0.579281...
0.740919
0
Lists all Apkversion models.
Перечисляет все модели Apkversion.
public function actionIndex() { if ($this->checkAdminSession()) { $searchModel = new ApkversionSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); return $this->render('index', [ 'searchModel' => $searchModel, '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getModels();", "public function index()\n {\n return Brand::with('models')->get();\n }", "public function getListOfModels() {\n $requestBody = null;\n $inputArray = [];\n $ret = $this->fetch('GET', 'repository/models', $requestBody, $inputArray, array (\n ...
[ "0.618161", "0.61317515", "0.60249764", "0.59552777", "0.58904546", "0.58516353", "0.57221854", "0.5700592", "0.5696615", "0.5696615", "0.5696615", "0.56569755", "0.56485", "0.564086", "0.5623015", "0.5613821", "0.56097066", "0.56005836", "0.5572809", "0.555475", "0.55537933"...
0.71769685
0
Creates a new Apkversion model. If creation is successful, the browser will be redirected to the 'view' page.
Создает новый объект модели Apkversion. Если создание успешно, браузер будет перенаправлен на страницу 'view'.
public function actionCreate() { if ($this->checkAdminSession()) { $rootPath = "apk/"; $model = new Apkversion(); if ($model->load(Yii::$app->request->post())) { $url = UploadedFile::getInstance($model, 'url'); $ext = $url->getExtension(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionCreate()\n {\n $model = new voucher();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\...
[ "0.66325676", "0.6556545", "0.6545332", "0.65191734", "0.6501146", "0.63808537", "0.6378779", "0.63644624", "0.6338942", "0.63211864", "0.6277233", "0.6270961", "0.6267358", "0.6248556", "0.6240587", "0.62143475", "0.6211697", "0.6201255", "0.6199726", "0.6194283", "0.6150878...
0.8015885
0
previous vertices in the shortest path
предыдущие вершины в кратчайшем пути
public function testPreviousVertices() { $previousVertices = self::$shortestPath->previousVertices(self::$graph, 'a'); $this->assertEquals($previousVertices['h'], 'e'); $this->assertEquals($previousVertices['c'], 'a'); $this->assertEquals($previousVertices['l'], 'k'); $this-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function gonext(){\r\n\t\t$this->back-=1;\r\n\t\tif ($this->back<0) {//Retreated to the last point\r\n\t\t\t$this->back=0;\r\n\t\t}\r\n\t\treturn $this->history[$this->prevNum($this->first,$this->back)]['path'];\r\n\t}", "function getPredecessors();", "function previous() {\r\n \t\tif ($return=prev($this->mod...
[ "0.6092318", "0.5884771", "0.5874125", "0.57625544", "0.56418777", "0.56265104", "0.5620941", "0.55696076", "0.54972255", "0.5494119", "0.5438149", "0.53684926", "0.5329762", "0.532603", "0.5300924", "0.52438086", "0.5170784", "0.5170784", "0.51692677", "0.51599175", "0.51436...
0.73798895
0
Create a Service Manager Prototype object
Создать прототип объекта Service Manager
protected function initializePrototype() { $config = require 'config/application.config.php'; $serviceManager = new ServiceManager( new ServiceManagerConfig( isset($config['service_manager']) ? $config['service_manager'] : array())); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function makeService();", "public function createObject () {\n\t\t// check base class (non-country specific)\n\t\t$baseDir = $this->config->get('app.path') . '/services/modules/' . $this->module;\n\t\t$baseFile = $baseDir . '/' . ucfirst($this->module) . 'Service.php';\n\t\t$class = ucfirst($t...
[ "0.6783758", "0.6641691", "0.64322317", "0.6376634", "0.6297134", "0.6275471", "0.62674534", "0.61799", "0.6167933", "0.6167933", "0.61084086", "0.6089522", "0.60774577", "0.6038725", "0.60359496", "0.60339284", "0.60018295", "0.5994039", "0.59651464", "0.59593767", "0.590252...
0.72786826
0
Build and return the Page in string format.
Создайте и верните страницу в формате строки.
public function buildPage(PageBuilderInterface $pageBuilder): string { $pageBuilder ->setHeading() ->setContent() ->setFooter(); return $pageBuilder->getPage(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPage() {\n\n\t\t$this->main = $this->makeMain($this->main);\n\n\t\treturn \t$this->pageStart.\n\t\t\t\t$this->header.\n\t\t\t\t$this->nav.\n\t\t\t\t$this->main.\n\t\t\t\t$this->footer.\n\t\t\t\t$this->pageEnd; \n\t}", "public static function toString()\r\n\t{\r\n\t\tif( ! self::$alreadyGenerat...
[ "0.71200943", "0.68438435", "0.6667688", "0.6558808", "0.65088636", "0.64961225", "0.64932895", "0.6421072", "0.6250447", "0.623914", "0.620929", "0.62064433", "0.6204577", "0.6193331", "0.6134028", "0.61252874", "0.6101891", "0.5998184", "0.5992351", "0.59779286", "0.5959236...
0.7101373
1
function ItemCompulsoriesUndefined, Parameter list: $item=array(),$datas=array() Tests item according to whether all compulsory fields are defined. Returns lista of undefined data, empty list of all defined.
Функция ItemCompulsoriesUndefined, Список параметров: $item=array(), $datas=array() Проверяет элемент на наличие всех обязательных полей. Возвращает список неопределенных данных, пустой список, если все определены.
function ItemCompulsoriesUndefined($item=array(),$datas=array()) { if (empty($item)) { $item=$this->ItemHash; } if (empty($datas)) { $datas=array_keys($this->ItemData); } $rdatas=array(); foreach ($datas as $data) { if ($this->ItemData[ $data ][ "Compulsory" ]) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ItemsForm_AddItemMissingData($newitem)\n {\n $missingdatas=array();\n foreach ($this->Args[ \"AddDatas\" ] as $data)\n {\n if (empty($newitem[ $data ]))\n {\n array_push($missingdatas,$data);\n }\n }\n\n if (count($missi...
[ "0.5828304", "0.57543534", "0.5503311", "0.5500929", "0.54884285", "0.5402384", "0.5383416", "0.5362782", "0.5362295", "0.5319241", "0.5308312", "0.5285028", "0.5284196", "0.52634853", "0.5259597", "0.5258828", "0.5256567", "0.5227345", "0.52218413", "0.5221348", "0.5221348",...
0.868681
0
Tests whether $item[ $data ] is unique.
Проверяет, является ли $item[ $data ] уникальным.
function ItemDataIsUnique($item,$data) { if (!empty($item[ $data ]) && empty($this->ItemData[ $data ][ "Derived" ])) { $nitems=$this->MySqlNEntries("",array($data => $item[ $data ])); if ($nitems>1) { if (!array($this->HtmlStatus)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ItemIsUnique($item)\n {\n foreach ($this->ItemData as $data => $value)\n {\n if (empty($this->ItemData[ $data ][ \"Unique\" ])) { continue; }\n if (empty($item[ $data ])) { continue; }\n\n $nitems=$this->MySqlNEntries(\"\",array($data => $item[ $data ]));\...
[ "0.78157043", "0.74666196", "0.6772948", "0.6760574", "0.67532223", "0.67348075", "0.6634373", "0.66261846", "0.6614851", "0.6614851", "0.6544826", "0.6516002", "0.6459767", "0.6427407", "0.6405819", "0.63128567", "0.62941915", "0.6282527", "0.62664974", "0.6255159", "0.62325...
0.83956385
0
Tests if data declared uniques ("Unique" => 1) is really unique. First detects the list of data that needs to be unique. Then queiries the DB if any of these values in $item are already present. Returns the TRUE, if everything OK, FALSE it nonunique.
Проверяет, действительно ли данные, объявленные как уникальные ("Unique" => 1), уникальны. Сначала определяет список данных, которые должны быть уникальны. Затем запрашивает базу данных, чтобы убедиться, что ни одно из этих значений в $item не существует. Возвращает TRUE, если всё в порядке, и FALSE, если данные не уни...
function ItemIsUnique($item) { foreach ($this->ItemData as $data => $value) { if (empty($this->ItemData[ $data ][ "Unique" ])) { continue; } if (empty($item[ $data ])) { continue; } $nitems=$this->MySqlNEntries("",array($data => $item[ $data ])); if (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ItemDataIsUnique($item,$data)\n {\n if (!empty($item[ $data ]) && empty($this->ItemData[ $data ][ \"Derived\" ]))\n {\n $nitems=$this->MySqlNEntries(\"\",array($data => $item[ $data ]));\n if ($nitems>1)\n {\n if (!array($this->HtmlStatus))\...
[ "0.78925806", "0.7428742", "0.6948566", "0.6871804", "0.68186516", "0.67292976", "0.65517163", "0.6516417", "0.6485219", "0.6456174", "0.64230126", "0.64230126", "0.63681424", "0.6366566", "0.6332403", "0.6286769", "0.62814903", "0.62248117", "0.620564", "0.619257", "0.618982...
0.8382657
0
Treats $newvalue, backspaces and stuff.
Обрабатывает $newvalue, возвращает каретку назад и прочее.
function TreatNewValue($newvalue) { //replace's $newvalue=preg_replace("/'/","&#39;",$newvalue); //backslashes $newvalue=preg_replace('/\\\\/',"&#92;",$newvalue); //$newvalue=preg_replace("/&#92;&#92;/","&#92;",$newvalue); $newvalue=preg_replace('/\s+$/',"",$newvalue...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function retestInput($newInput) {\n\t\t//trim removes unnecessary white space\n\t\t$newInput = trim($newInput);\n\t\treturn $newInput;\n\t}", "function ReplaceSpace($_new, $_string){\n return preg_replace('/\\s+/', $_new, $_string);\n}", "function modify_content($value){\r\n\t $value = str_replace(\"####\...
[ "0.59249574", "0.56167024", "0.5603858", "0.53163993", "0.5163295", "0.51395106", "0.51072073", "0.50707704", "0.5056794", "0.50274533", "0.5022357", "0.5002943", "0.49806383", "0.49491614", "0.49480823", "0.4943412", "0.49369866", "0.49312285", "0.4926966", "0.48944825", "0....
0.7403429
0
function TestPRN, Parameter list: $item Verifies brazilian PRN, rejects if invalid.
Функция TestPRN, список параметров: $item Проверяет бразильский PRN, отвергает при недействительном.
function TestPRN($prn) { $body = substr($prn,0,9); $dv = substr($prn,9,2); $d1 = 0; for ($i = 0; $i < 9; $i++) { $d1 += intval( substr ($body, $i, 1)) * (10 - $i); } $res=TRUE; if ($d1 == 0) { $res=FALSE; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function booknet_utilities_validISBN($testisbn) {\n\treturn (preg_match (\"([0-9]{10})\", $testisbn, $regs) || preg_match (\"([0-9]{13})\", $testisbn, $regs));\n}", "public static function check_item ( $item ) {\n\t}", "abstract protected function validateIpn();", "function isValidItem ($item) {\n\t\treturn ...
[ "0.56386715", "0.5636169", "0.55734175", "0.55495566", "0.55315804", "0.5526705", "0.5520879", "0.5493905", "0.5456569", "0.5448314", "0.54246396", "0.53366107", "0.5284224", "0.5254319", "0.5240165", "0.5235318", "0.5234429", "0.522308", "0.5175656", "0.51343596", "0.5125998...
0.71495
0
Returns the String representation of an access rootline element.
Возвращает строковое представление элемента корневого дерева доступа.
public function __toString() { $rootlineElement = ''; if ($this->type == self::ELEMENT_TYPE_CONTENT) { $rootlineElement .= 'c'; } else if ($this->type == self::ELEMENT_TYPE_RECORD) { $rootlineElement .= 'r'; } else { $rootlineElement .= $this->pageId; } $rootlineElement .= self::PAGE_ID_GROUP_DEL...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getReadableRootline() {}", "public function __toString()\n {\n $tree = $this->_rootNode->getName() . \"\\n\";\n $tree .= $this->_traverse($this->_rootNode->getId());\n return $tree;\n }", "public function AsSingleLine() {\n\t$sLine = $this->AsString(' / ');\n\tif (emp...
[ "0.61850303", "0.61006445", "0.6031593", "0.5851109", "0.5850358", "0.5685366", "0.5669439", "0.5658628", "0.5645712", "0.5614355", "0.5602519", "0.5593096", "0.5554503", "0.5542186", "0.5491166", "0.5491166", "0.54593897", "0.54588455", "0.5456775", "0.5456694", "0.5424541",...
0.7357863
0
Lists all InstructorInfo models.
Список всех моделей InstructorInfo.
public function actionIndex() { $dataProvider = new ActiveDataProvider([ 'query' => InstructorInfo::find(), ]); return $this->render('index', [ 'dataProvider' => $dataProvider, ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionIndex()\n {\n $searchModel = new CurInstructorSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n...
[ "0.7025984", "0.6773472", "0.6711657", "0.6544107", "0.6538991", "0.6456815", "0.63616073", "0.6308241", "0.63033223", "0.6286349", "0.6284292", "0.6254382", "0.6134451", "0.60906005", "0.60133314", "0.60008544", "0.5991663", "0.5936962", "0.5915513", "0.5857026", "0.5815847"...
0.74280506
0
Creates a new InstructorInfo model. If creation is successful, the browser will be redirected to the 'view' page.
Создает новый модель InstructorInfo. Если создание успешно, браузер будет перенаправлен на страницу 'view'.
public function actionCreate($id) { $model = new InstructorInfo(); $model->fkPersonID = $id; $model->year = date('Y'); if ($model->load(Yii::$app->request->post())) { $db = Yii::$app->db; // for convenience $transaction = $db->beginTransaction(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionCreate()\n {\n $model = new CurInstructor();\n\n if ($model->load(Yii::$app->request->post()) && $model->save())\n {\n return $this->redirect(['view', 'id' => $model->ins_id]);\n }\n else \n {\n return $this->render('create', ...
[ "0.8192234", "0.7113849", "0.699584", "0.6963172", "0.6963172", "0.68430454", "0.68387765", "0.680924", "0.67619234", "0.676157", "0.6757656", "0.67567086", "0.67491126", "0.672778", "0.6715734", "0.6688008", "0.6665859", "0.66330475", "0.6605173", "0.65951777", "0.65386933",...
0.74616176
1
action list my events.
список действий моих событий.
public function listMyEventsAction() { $events = $this->eventRepository->findMyEvents($GLOBALS['TSFE']->fe_user->user['uid']); $this->view->assign('events', $events); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function action_list() {\n if (Input::method() != 'GET') { $this->response($this->no_access); return; }\n \n $params = Input::get();\n \n $user = $this->user_login->user;\n \n try {\n $resp = $this->listStuff($params, $user)...
[ "0.7782786", "0.750044", "0.7468574", "0.7349831", "0.7331223", "0.7245521", "0.72207433", "0.72044027", "0.71910065", "0.7156835", "0.7093781", "0.7093781", "0.7093781", "0.7093781", "0.7046539", "0.7002021", "0.69728744", "0.69438654", "0.68950915", "0.68780196", "0.6867682...
0.8207517
0
initialize edit action This only happens if webko clicks on edit link in mail.
initialize edit action Это происходит только в случае, если webko нажимает на ссылку "редактировать" в письме.
public function initializeEditAction() { $this->registerEventFromRequest(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function editAction() {}", "public function editAction()\n\t{\n\t}", "public function action_edit()\n\t{\n\t\t\n\t}", "public function edit() {\n\t\t/* CHANGED - switched to url(\"id\") as $this->param(\"id\") is deprecated */\n\t $this->id = WaxUrl::get(\"id\");\n\t\tif(!$this->id) $this->id = $this...
[ "0.71237046", "0.69055253", "0.68564516", "0.68416667", "0.67570764", "0.6749017", "0.6697065", "0.6683093", "0.66404456", "0.662891", "0.66173464", "0.6615029", "0.66043204", "0.6592291", "0.65851873", "0.6562243", "0.6543653", "0.65201116", "0.6504085", "0.64705145", "0.644...
0.7425025
0
//////////////////////////////////////////////////////////////////////////////////////// Add the ARK Crypto Currency Symbol to WooCommerce (As Custom Currency)//
//////////////////////////////////////////////////////////////////////////////////////// Добавление символа криптовалюты ARK в WooCommerce (как пользовательская валюта) //
function arkcommerce_add_ark_currency_symbol( $currency_symbol, $currency ) { switch( $currency ) { // Add ISO 4217 currency symbol case 'ARK': $currency_symbol = 'Ѧ'; break; } return $currency_symbol; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function arkcommerce_add_ark_currency( $currencies ) \n{\n\t// Add ISO 4217 currency identifier\n\t$currencies['ARK'] = 'ARK';\n\treturn $currencies;\n}", "function ecommerce_get_currency_symbol()\n{\n\t$currency=get_option('currency');\n\tswitch ($currency)\n\t{\n\t\tcase 'USD':\n\t\t\t$currency='$';\n\t\t\tbre...
[ "0.6947566", "0.67014855", "0.6609597", "0.649299", "0.6376773", "0.62846726", "0.6224289", "0.6212388", "0.6179096", "0.61576366", "0.61462945", "0.6107476", "0.6099074", "0.6011647", "0.5967635", "0.59335446", "0.59335446", "0.59335446", "0.59335446", "0.59278864", "0.58551...
0.7264929
0
//////////////////////////////////////////////////////////////////////////////////////// ARKCommerce Dual Price Display//
//////////////////////////////////////////////////////////////////////////////////////// Двойное отображение цен ARKCommerce//
function arkcommerce_dual_price_display( $price ) { // Gather and/or set variables $arkgatewaysettings = get_option( 'woocommerce_ark_gateway_settings' ); $store_currency = get_woocommerce_currency(); // Show ARK price if default store currency other than ARK is chosen and dual price display is switched on if( $s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function displayBothPrices()\n {\n return $this->itemPriceRenderer->displayBothPrices();\n }", "public function displayBoth ()\n\t{\n\t\treturn Mage::helper( \"tax\" )->displayCartBothPrices();\n\t}", "public function display_prices_including_tax()\n {\n }", "function aa_dis...
[ "0.73441", "0.7232216", "0.7204855", "0.7190571", "0.70571107", "0.6974191", "0.69736814", "0.6973031", "0.68478525", "0.6840202", "0.68327814", "0.6813987", "0.6810744", "0.68064076", "0.6799497", "0.6789539", "0.6747348", "0.67296433", "0.671344", "0.6697185", "0.66703933",...
0.76206005
0
Sets the response for this controller
Устанавливает ответ для этого контроллера
public function setResponse(Response $response);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setResponse(\\Zend_Controller_Response_Abstract $response)\n {\n $this->_escort->setResponse($response);\n\n return parent::setResponse($response);\n }", "function setHttpResponse($response) {\n $this->httpResponse = $response;\n }", "public function setResponse($r...
[ "0.7366285", "0.73371637", "0.72962487", "0.7270878", "0.72475183", "0.71834373", "0.71491706", "0.71255904", "0.7112312", "0.7109093", "0.70879954", "0.70499957", "0.7045896", "0.6996273", "0.6985478", "0.69427544", "0.6936919", "0.6907739", "0.6895912", "0.6893638", "0.6874...
0.74420154
0
Get the data class data manager
Получить менеджер данных класса данных
public function get_data_manager() { return DataManager::getInstance(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_data_manager()\n {\n // return DataManager :: getInstance();\n }", "protected function getDataObject()\n {\n return Injector::inst()->get($this->getList()->dataClass());\n }", "public function getTypedDataManager() {\n return $this->typedDataManager ?: \\Drupal:...
[ "0.8790626", "0.7196337", "0.7148469", "0.7138529", "0.71294874", "0.68546885", "0.6824086", "0.6816631", "0.6734136", "0.6715872", "0.6710997", "0.6682356", "0.66228724", "0.6592384", "0.6580199", "0.6576303", "0.65043503", "0.6502546", "0.64821994", "0.64821994", "0.6482199...
0.88393885
1
Sets the lifetime of this Session.
Устанавливает срок действия этого сеанса.
public function set_lifetime($lifetime) { $this->set_default_property(self::PROPERTY_LIFETIME, $lifetime); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setLifetime($lifetime);", "public function setSessionCookieLifetime(int $ttl): void\n {\n // Set new cookie TTL\n session_set_cookie_params($ttl);\n\n if ($this->sessionExists()) {\n // There is a running session so we'll regenerate id to send a new cookie\n ...
[ "0.7120548", "0.6998317", "0.6964429", "0.6918106", "0.6864487", "0.6822981", "0.66772443", "0.65793663", "0.6568525", "0.6526433", "0.64814186", "0.6275364", "0.6268776", "0.6251468", "0.6198105", "0.6193285", "0.6190523", "0.61244243", "0.61118454", "0.6097735", "0.60955536...
0.71825016
0
Sets the save_path of this Session.
Устанавливает save_path этого сеанса.
public function set_save_path($save_path) { $this->set_default_property(self::PROPERTY_SAVE_PATH, $save_path); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setSavePath(string $path)\n {\n $this->savePath = rtrim($path, '/');\n }", "public function setSavePath()\n {\n $savePath = $this->app->getDataRoot() . \"upload/\" . date('Ym/', $this->now);\n if(!file_exists($savePath)) @mkdir($savePath, 0777, true);\n $this-...
[ "0.77195656", "0.76073104", "0.727949", "0.7058033", "0.7040648", "0.7028991", "0.67939824", "0.67800677", "0.6652912", "0.65821236", "0.65142095", "0.6462034", "0.630569", "0.6298235", "0.62489796", "0.62464786", "0.60834146", "0.60714906", "0.6037438", "0.5808029", "0.57729...
0.7727547
0
Outputs the JQuery for the media uploader
Выводит JQuery для медиа загрузчика
function jsOutput(){ if( get_current_screen()->base != 'nav-menus' ) return; wp_enqueue_script('media-upload'); wp_enqueue_script('thickbox'); wp_enqueue_style('thickbox'); ?> <script type="text/javascript"> jQuery(document).ready(functi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wp_media_script() { \r\n echo \"<script> $.wpMediaUploader(); </script> \";\r\n}", "public function uploadcare_media_upload()\n {\n \\wp_enqueue_script('uc-config');\n \\wp_enqueue_script('admin-js', null, require \\dirname(__DIR__) . '/compiled-js/admin.asset.php');\n $sign...
[ "0.7370417", "0.6928465", "0.6785709", "0.6526941", "0.64519227", "0.6437506", "0.64285547", "0.63774544", "0.63686734", "0.6340649", "0.63117045", "0.62978476", "0.62819546", "0.62720925", "0.6237588", "0.62241495", "0.6179762", "0.61795706", "0.61751986", "0.61679465", "0.6...
0.7438468
0
Save the icons data when menu is saved
Сохраните данные иконок при сохранении меню
function saveIconData($item, $id){ if( isset($_POST['menu-item-icon'][$id]) ){ update_post_meta( $id, '_menu_item_icon', esc_url_raw($_POST['menu-item-icon'][$id]) ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function save_menu_items() {\n \n // Save menu items\n (new MidrubBaseAdminCollectionUserHelpers\\Menu)->save_menu_items();\n \n }", "function vantage_menu_icon_save($post_id){\n\tif(empty($_POST['_vantage_menuicon_nonce']) || !wp_verify_nonce($_POST['_vantage_menuicon_nonce...
[ "0.706652", "0.6881801", "0.6785493", "0.6445617", "0.64119476", "0.6288161", "0.61928004", "0.60595083", "0.60248595", "0.5942594", "0.5803575", "0.5730537", "0.57292765", "0.57178223", "0.5714427", "0.56811386", "0.5674109", "0.56667554", "0.5636331", "0.5632987", "0.561906...
0.7095766
0
Validates each row from a CSV extracted array
Проверяет каждую строку из массива, извлеченного из CSV
protected function validateRows(array $data): array { $csvLineIndex = 0; try { foreach ($data as $csvLineIndex => &$row) { $row = $this->validator->applySchemaToData($row); } return $data; } catch (ValidationException $e) { th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function processCSVLines()\n\t{\n\t\t// make connection to database\n\t\t$Database = new Connect(); \n\t\t$mysqli = $Database->getConnection();\n\t\t\n\t\tif (mysqli_connect_errno()) {\n\t\t\t$this-> error = \"ERROR - could not connect to the database\". PHP_EOL. $Database->error. PHP_EOL;\n\t\t\treturn f...
[ "0.67894334", "0.67365545", "0.6445209", "0.6442556", "0.64263666", "0.64256084", "0.6405434", "0.64041716", "0.63949925", "0.63608015", "0.6340718", "0.6300913", "0.6277146", "0.6239186", "0.6226864", "0.6215366", "0.6204216", "0.61729664", "0.61612", "0.61610776", "0.614732...
0.7050333
0
get path to settings file
получить путь к файлу настроек
static function getSetting_path(){ return Zend_Registry::get('config')->configs->localConfigPath; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function fileLocation()\n\t{\n\n\t\treturn sprintf('%s' . DIRECTORY_SEPARATOR . 'data/config' . DIRECTORY_SEPARATOR . 'settings.json', $_SERVER['DOCUMENT_ROOT'] );\n\t}", "public function getConfigFilePath();", "public function getConfigFilePath();", "private function getFilePath()\n {\...
[ "0.77190644", "0.7390578", "0.7390578", "0.7279301", "0.71949947", "0.71820873", "0.7181507", "0.717092", "0.71546125", "0.7104957", "0.71013695", "0.70533025", "0.70501876", "0.7011686", "0.700069", "0.69946885", "0.6976611", "0.6969799", "0.69653624", "0.69650996", "0.69244...
0.79771936
0
get guest's settings guestEmailAddress, displaySellerInfo
получить настройки гостя guestEmailAddress, отобразить информацию о продавце
static function getSettings_guest() { //дізнаємось конфігурацію файла $configs = self::getSettings_config(); return $configs->guest; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAdvertiseEmail()\n {\n return Mage::getStoreConfig(self::ADVERTISE_EMAIL);\n }", "public function getEmailDetails()\n {\n //try to read from Configure First\n $results = Configure::read(\"SettingsGrouped.email_server\");\n if ($results) {\n $resu...
[ "0.59800446", "0.5953498", "0.5948632", "0.5866786", "0.5761053", "0.5582297", "0.5582297", "0.5526887", "0.55221254", "0.55081093", "0.5476647", "0.5453482", "0.5423415", "0.5419681", "0.53761464", "0.5375868", "0.5375855", "0.5357502", "0.5356403", "0.53469574", "0.53265595...
0.71698046
0
Get all the versions associated with a content item. The data attribute will also be converted to an array.
Получите все версии, связанные с элементом содержимого. Атрибут данных также будет преобразован в массив.
public function versions() { try { $versions = Version::where('content_name', $this->getAttributeValue('name'))->get(); foreach ($versions as $version) { $version->data = json_decode($version->getAttributeValue('data'), true); } return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getVersions() {\n\t\t$cacheKey = tx_egovapi_utility_cache::getCacheKey(array(\n\t\t\t'method' => 'getVersions',\n\t\t\t'includeCHServices' => $this->conf['includeCHServices'],\n\t\t\t'language' => $this->conf['eCHlanguageID'],\n\t\t\t'community' => $this->conf['eCHcom...
[ "0.7002801", "0.6789381", "0.671636", "0.6644547", "0.6637499", "0.66344124", "0.66344124", "0.66344124", "0.65842026", "0.6545418", "0.6443505", "0.6423237", "0.63191324", "0.63057464", "0.6233774", "0.62325203", "0.61969066", "0.6188139", "0.61402327", "0.6053657", "0.60325...
0.79226905
0
get the Type entity associated for a particular Content item.
получить сущность Type, связанную с определенным элементом Content.
public function type($contentEntity) { return Type::where('name', $contentEntity->type_name)->firstOrFail(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getItemType() {\n return $this->get('type')->value;\n }", "public function getType() {\n return $this->entity->getEntityTypeId();\n }", "public function type()\n {\n return $this->belongsTo(__NAMESPACE__ . '\\ContentType');\n }", "public function get_type()\n {\n ...
[ "0.67415786", "0.6645148", "0.66101575", "0.6597227", "0.65205646", "0.6503501", "0.64960545", "0.6472154", "0.633279", "0.633279", "0.630454", "0.62328357", "0.6230134", "0.6214428", "0.6180875", "0.61536086", "0.6143435", "0.6135331", "0.6125576", "0.61219716", "0.61187226"...
0.7026854
0
/ function to show client profile recieve parameters $id to show the client data return view
Функция для отображения профиля клиента получает параметр $id для отображения данных клиента и возвращает представление
public function showProfile($id) { $client = Client::find($id); return view('client.profile', compact('client')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function client_profile($id)\n {\n $districts = BdLocation::where('type','2')->get();\n $upazillas = BdLocation::where('type','3')->get();\n $client = ClientInfo::where('id',$id)->first();\n $fee = Fee::where('record_id',$client->record_id)->first();\n\n return...
[ "0.8315216", "0.7622339", "0.75908226", "0.7438452", "0.73792624", "0.73337406", "0.7301291", "0.7284491", "0.7248948", "0.7246461", "0.72455364", "0.72287434", "0.7227837", "0.7217809", "0.720417", "0.7197577", "0.7192178", "0.7185664", "0.71644944", "0.7144957", "0.7100887"...
0.7872422
1
/ function to update quantity of items recieve parameters $request to get the qty number return view
Функция для обновления количества товаров получает параметр $request, чтобы получить число qty и возвращает представление
public function updateQty(Request $request) { // check if we have a cart -> get it's data in session $oldCart = Session::has('cart') ? Session::get('cart') : null; // create an object from Caert class $cart = new Cart($oldCart); // pass parameters to the update() function ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update(Request $request, $id)\n {\n\n/************************************ */\n // Change the quantity of items\n/************************************ */\n\n }", "public function updateQtyAction()\n {\n try {\n $creditmemo = $this->_initCreditmemo(true);\n ...
[ "0.84565324", "0.7940382", "0.7906509", "0.787306", "0.77928483", "0.76459664", "0.76107395", "0.75888944", "0.75591195", "0.7533589", "0.7513584", "0.75009185", "0.747978", "0.7411923", "0.7365416", "0.7360466", "0.7321895", "0.7290639", "0.7260903", "0.72409034", "0.7218753...
0.80344933
1
Get Agency name from agency id
Получить название агентства по идентификатору агентства
public function getAgencyName($id) { if (is_numeric($id)) { $this->db->where('id', $id); $query = $this->db->get($this->table); if ($query->num_rows() == 1) { $row = $query->row(); return $row->agency_name; } else { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function bibdk_openuserstatus_agency_name_main($agencies) {\n $named_agencies = array();\n\n foreach ($agencies as $agency) {\n $named_agencies[$agency] = bibdk_openuserstatus_get_agencyname_main($agency);\n }\n\n return $named_agencies;\n}", "public function getAgencyId()\n\t{\n\t\treturn $this->agency_i...
[ "0.6614542", "0.6529375", "0.64506173", "0.6392647", "0.6367512", "0.6279644", "0.6180255", "0.6121068", "0.6109038", "0.60687774", "0.6051044", "0.6036209", "0.6019002", "0.5979777", "0.5974614", "0.5950543", "0.5930645", "0.581207", "0.5804453", "0.574138", "0.57154584", ...
0.7228171
0
Append a message to current output
Добавить сообщение в текущий вывод
public function output($msg) { $this->_currentOutput .= $msg . "\n"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add(string $output): void\n {\n $this->stdOut .= $output;\n }", "public function appendOutput( $output ) {\n\t\t$this->output .= $output;\n\t}", "public function append_output($string)\n\t{\n\t\t$this->buffer .= $string;\n\t}", "protected function _write($message) {\n\t\tif (!emp...
[ "0.6974645", "0.6721728", "0.6692098", "0.6681221", "0.65169495", "0.64799017", "0.6428086", "0.63191736", "0.6253341", "0.62469923", "0.6221392", "0.6215629", "0.6158659", "0.6123753", "0.612201", "0.60718346", "0.60616297", "0.60486114", "0.6035242", "0.600424", "0.5970611"...
0.72938645
0
A function to define if build succeeds or not
Функция для определения успешности сборки
abstract public function buildSucceed();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isBuilt();", "public static final function BUILD_SUCCESSFUL()\r\n {\r\n if (null === self::$BUILD_SUCCESSFUL)\r\n self::$BUILD_SUCCESSFUL = new Inx_Api_TriggerMail_BuildResultCode(1);\r\n\r\n return self::$BUILD_SUCCESSFUL;\r\n }", "protected function build() : bool\n ...
[ "0.7146451", "0.66728806", "0.64905685", "0.63542104", "0.62388784", "0.62368387", "0.6190656", "0.6133842", "0.6115081", "0.6115081", "0.6115081", "0.6115081", "0.6115081", "0.6115081", "0.6115081", "0.6115081", "0.6115081", "0.60705554", "0.60705554", "0.6005849", "0.599270...
0.75705993
0
Returns quote numbers by month
Возвращает номера котировок по месяцам
public function getQuotesByMonth() { $monthdata = []; for ($month = 1; $month <= (date('m') + 12); $month++) { $start = mktime(0, 0, 0, $month, 1, date("Y", strtotime('-1 year'))); $end = mktime(23, 59, 0, $month, date('t', $start), date("Y", strtotime('-1 year'))); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function splitByMonth();", "public abstract function get_months();", "private function getNumbersAddToCartMonthly()\n {\n $this->runTest(\n 'Test 22. Get numbers of add to cart by month',\n 'SELECT period, SUM(analytic_shop.products_in_cart_count) as products_in_cart_cou...
[ "0.65276307", "0.6413186", "0.63319105", "0.62738407", "0.6232877", "0.6160746", "0.6147851", "0.6100412", "0.6091113", "0.6085604", "0.59700227", "0.5930772", "0.59061664", "0.58904815", "0.5848235", "0.58429456", "0.58393335", "0.5804079", "0.5790904", "0.5747645", "0.57471...
0.8064528
0
Expiration timestamp in ms Generated from protobuf field int64 expiration_ms = 4;
Таймстемп истечения срока действия в миллисекундах, сгенерированный из поля protobuf int64 expiration_ms = 4;
public function getExpirationMs() { return $this->expiration_ms; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getExpirationTime( );", "public function getExpirationTime()\n {\n return $this->getPayload(self::JWT_CLAIM_EXPIRATION_TIME);\n }", "public function getExpiration() {}", "public function getExpiration()\n {\n return $this->expiration;\n }", "public function getExpi...
[ "0.7646721", "0.75422126", "0.7531993", "0.7462839", "0.7462839", "0.7406322", "0.7389408", "0.7389408", "0.7389408", "0.7379543", "0.7358251", "0.73184925", "0.730436", "0.7304336", "0.72075087", "0.7185224", "0.71828204", "0.71740943", "0.706497", "0.7060876", "0.69980836",...
0.8125743
0
Set to return data as collection.
Установить для возврата данных как коллекцию.
public function returnAsCollection() { $this->returnAsCollection = true; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _prepareCollection()\n {\n $collection = $this->getDataColllection();\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }", "public function getDataEntityCollection(): Collection;", "public function getCollection();", "public function ...
[ "0.74979657", "0.72662187", "0.72557765", "0.72557765", "0.72557765", "0.72557765", "0.72557765", "0.72557765", "0.7065579", "0.70579803", "0.70546085", "0.7008179", "0.6940562", "0.68922025", "0.6844084", "0.6844084", "0.6844084", "0.6829138", "0.6821332", "0.6821332", "0.68...
0.74862784
1
Disable search query logging to DB.
Отключить логирование поисковых запросов в БД.
public function disableSearchQueryLogging() { $this->searchQueryLogging = false; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function disableQueryLog() {\n\t\t$this->loggingQueries = false;\n\t}", "public function stopLogging(): void\n {\n DB::disableQueryLog();\n }", "public static function disableQueryLog()\n { //Method inherited from \\Illuminate\\Database\\Connection \n ...
[ "0.82651955", "0.7706327", "0.7505154", "0.7296534", "0.7057104", "0.68354034", "0.6812662", "0.64890575", "0.6344968", "0.63110954", "0.63012916", "0.62530077", "0.6195051", "0.6135895", "0.6016289", "0.5970402", "0.5937422", "0.590201", "0.5893885", "0.5824748", "0.5818124"...
0.7894905
1
Determine if search query logging is enabled.
Определите, включено ли логирование поисковых запросов.
public function logsEnabled(): bool { return (bool)config('netcore.module-search.enable_search_logs'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function enableQueryLog() {\n\t\t$this->loggingQueries = true;\n\t}", "public function isLoggingEnabled();", "public function isLoggingEnabled(): bool;", "static public function enableQueryLogging() {\n\t\t$GLOBALS['TYPO3_DB']->store_lastBuiltQuery = TRUE;\n\t}", "public function isLoggingEnabled()\...
[ "0.69864607", "0.69748354", "0.69546866", "0.67499894", "0.6739284", "0.6642318", "0.66151816", "0.660071", "0.64425015", "0.63984174", "0.6396661", "0.6275924", "0.6241447", "0.61384606", "0.61322445", "0.6123387", "0.61125124", "0.6096891", "0.60504824", "0.6035031", "0.597...
0.746377
0
Determine if user_id logging is enabled.
Определите, включен ли логирование user_id.
public function logUserId() { return (bool)config('netcore.module-search.log_user_ids'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasUserid()\n {\n return $this->get(self::USERID) !== null;\n }", "function hasCurrentUserId() ;", "public function isLoggingEnabled()\n {\n return (1 == Mage::getStoreConfig('postident/general/logging_enabled'));\n }", "public static function isLoggedIn()\r\n {\r...
[ "0.71189517", "0.66154534", "0.6533076", "0.6518685", "0.65097165", "0.6501069", "0.64690065", "0.6367276", "0.63405037", "0.63302726", "0.62877625", "0.6282696", "0.62775916", "0.6273311", "0.6254331", "0.6240744", "0.6232202", "0.6212104", "0.6210487", "0.61965793", "0.6176...
0.7889862
0
Returns an array of Javascript files to be included for this library.
Возвращает массив файлов JavaScript, которые должны быть включены для этой библиотеки.
public function getJsFiles(): array;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function grabAllJsFiles()\n\t{\n\t\t$jsFiles = array();\n\t\tforeach($this->includes_js as $file)\n\t\t{\n\t\t\t$jsFiles[$file] = array();\n\t\t\tif(array_key_exists($file, $this->includes_jsreq))\n\t\t\t\t$jsFiles[$file] = $this->includes_jsreq[$file];\n\t\t}\n\t\t$this->includes_js = array();\n\t\t$this->include...
[ "0.81909406", "0.81800234", "0.7958401", "0.7755227", "0.7748164", "0.76889783", "0.76369125", "0.7629908", "0.76268405", "0.74796075", "0.746081", "0.74017245", "0.7401433", "0.7329919", "0.7312153", "0.7264653", "0.72123456", "0.7189407", "0.7188031", "0.7118735", "0.711665...
0.82788193
0
Returns an array of CSS files to be included for this library.
Возвращает массив CSS-файлов, которые должны быть включены для этой библиотеки.
public function getCssFiles(): array;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCssFiles(): array\n {\n return array();\n }", "function grabAllCssFiles()\n\t{\n\t\t$cssFiles = $this->includes_css;\n\t\t$this->includes_css = array();\n\t\treturn $cssFiles;\n\t}", "function grabAllCSSFiles()\n\t{\n\t\t$cssFiles = $this->includes_css;\n\t\t$this->includes_css ...
[ "0.8109408", "0.8105665", "0.80508137", "0.78740644", "0.78523844", "0.7749669", "0.7741947", "0.7713128", "0.75984824", "0.7546447", "0.75040966", "0.7458132", "0.7416798", "0.73747265", "0.736769", "0.7303425", "0.7224916", "0.71995044", "0.716093", "0.71553844", "0.7119798...
0.81773144
0
This is a simple script that will extract the exchange rates from the CBvS Website (
Это простой скрипт, который будет извлекать курсы валют с сайта CBvS (
function get_cbvs_rates($base_url) { if (!$base_url) return array(); // Check if PHP CURL module is installed/enabled if (!extension_loaded('curl')) { scriptPrevious("CURL extension not loaded/installed!"); } $curl = curl_init(); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function fetchRates() {\n\t\t\n\t\t# Получаем текущий курс с сайта центробанка\n\t\t//$info = @file_get_contents('http://www.cbr.ru/scripts/XML_daily.asp');\n\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, \"http://www.cbr.ru/scripts/XML_daily.asp\");\n curl_setopt($ch, CURLOPT_R...
[ "0.74372315", "0.6983842", "0.6932194", "0.6931511", "0.6910063", "0.6879392", "0.6844369", "0.6807059", "0.6804399", "0.6572471", "0.65672296", "0.6476043", "0.6465387", "0.6433489", "0.6399182", "0.63907504", "0.63907504", "0.63907504", "0.635646", "0.6342871", "0.6334295",...
0.74344146
1
Test we can get all listed users.
Мы можем получить всех перечисленных пользователей.
public function testCanGetAllUsers() { $userRepository = App::make(UserRepositoryInterface::class); $users = $userRepository->all(); // Database is seeded with 50 users $this->assertCount(50, $users); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testgetAllUsersMethod()\n {\n $this->WithoutMiddleware();\n $users = factory('Suyabay\\User', 2)->create();\n $getUsers = self::$userRepository->getAllUsers();\n\n $this->assertTrue(is_array($getUsers->toArray()));\n $this->assertEquals($users[0]['username'], $...
[ "0.79755354", "0.7923177", "0.78963685", "0.7876204", "0.7869654", "0.78542894", "0.7839341", "0.7839341", "0.7839341", "0.7823344", "0.7823344", "0.7811047", "0.78060174", "0.7801998", "0.77962685", "0.77711606", "0.7727126", "0.77125156", "0.769839", "0.7696706", "0.7663316...
0.79618716
1
Test we can get paginated users.
Мы можем получить пользователей с пагинацией.
public function testCanGetPaginatedUsers() { $userRepository = App::make(UserRepositoryInterface::class); $users = $userRepository->paginate(25); $this->assertCount(25, $users); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetListWithPaginaton()\n {\n //create user\n $teacher = $this->CreateTeacher();\n $lisUser = $this->CreateTeacherUser($teacher);\n\n //now we have created studentuser set to current controller\n $this->controller->setLisUser($lisUser);\n $this->contr...
[ "0.74012715", "0.7050728", "0.70259017", "0.69783884", "0.6915243", "0.6805326", "0.6774718", "0.675242", "0.6739073", "0.67201376", "0.67125744", "0.6693956", "0.6660814", "0.6660814", "0.665234", "0.66269225", "0.6611248", "0.6607217", "0.66033435", "0.65824187", "0.6582418...
0.8859857
0
//////////////////////////// ajouter citoyen //////////////////////////////////////////////
//////////////////////////// добавить гражданина //////////////////////////////////////////////
function ajouterCitoyen($nom,$prenom,$datenais,$lieunais,$cni,$sexe,$datecnideliv,$datecniexp,$profession,$specialite,$matrimonial,$dateentre,$foto,$teint,$taille,$immatr,$dateimmatr){ $bdd = new PDO('mysql:host=localhost;dbname=gondwana', 'root', 'passer'); //insertion avec requête préparée $sql="INSERT INTO dic_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function insertarComentario($cContenido, $cTemaID, $cUsuarioID)\n{\n $nueva = new Comentario;\n $nueva->contenido = $cContenido;\n $nueva->temaid = $cTemaID;\n $nueva->usuarioid = $cUsuarioID;\n $nueva->fecha = date('Y-m-d H:i:s');\n $nueva->save();\n}", "public function createComite()\n...
[ "0.69779736", "0.69314474", "0.6850995", "0.6824001", "0.6485538", "0.64396197", "0.6431287", "0.64147186", "0.6412822", "0.6376669", "0.63736993", "0.63521165", "0.6286729", "0.6270753", "0.62707525", "0.6239249", "0.62212354", "0.6213989", "0.62105846", "0.6208924", "0.6202...
0.71118087
0