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
Verify basic behavior of getPhrase()
Проверьте базовое поведение getPhrase()
public function getPhrase() { $alliteration = new Alliteration(); $phrase = $alliteration->getPhrase('p', 2); $words = explode(' ', $phrase); $this->assertSame(2, count($phrase)); $this->assertSame('P', substr($words[0], 0, 1)); $this->assertSame('P', substr($words[1]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testEchoPhrase()\n {\n $myObj = new SkeletonClass();\n\n $res = $myObj->echoPhrase('foo');\n $this->assertEquals($res, 'foo');\n }", "public function test_example()\n {\n $this->assertTrue( (new PassPhrase('abcde fghij'))->validate());\n $this->assertTr...
[ "0.6617516", "0.6531505", "0.596504", "0.59649396", "0.5897109", "0.58544815", "0.5843495", "0.5834979", "0.5825766", "0.5733931", "0.57331765", "0.57300615", "0.5616175", "0.5599004", "0.5574847", "0.55632097", "0.5541407", "0.55226976", "0.5508477", "0.5479315", "0.54450107...
0.7551631
0
Get page size for currencies
Получить размер страницы для валют
protected function getPageSize(): int { // Allow .env file to specify needed size first return (int)env('API_CURRENCY_LIST_PAGE_SIZE', static::PAGE_SIZE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPageSize();", "function getPageSize()\n {\n return $this->_props['PageSize'];\n }", "public function pagesize() { return 15; }", "protected function _calculatePageSize() {\r\n\r\n if (array_key_exists('next_collection_link', $this->data)) {\r\n\r\n $url = $this->data...
[ "0.682899", "0.66529155", "0.65637344", "0.6511127", "0.65108985", "0.65108985", "0.65108985", "0.65108985", "0.65108985", "0.65108985", "0.65108985", "0.65108985", "0.65108985", "0.65108985", "0.6495663", "0.6480954", "0.6417091", "0.6387694", "0.6380076", "0.6380076", "0.63...
0.77710515
0
Check if slug is available (AJAX)
Проверить, доступен ли слаг (AJAX)
public function validateSlugAction(): void { if (isset($_GET['url_slug']) && !empty($_GET['url_slug'])) { $slug_valid = !Post::slugExist($_GET['url_slug'], $_GET['ignore_id'] ?? null); header('Content-Type: application/json'); echo json_encode($slug_valid); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajaxCheckSlug($slug)\n\t{\n\t\t$items = $this->users->findItemsBySlug($this->currentUser, $slug);\n\n\t\t// If we already have something, no dice...\n\t\tif ($items->count() > 0)\n\t\t{\n\t\t\treturn json_encode(['code' => 0]);\n\t\t}\n\n\t\treturn json_encode(['code' => 1]);\n\t}", "public funct...
[ "0.7414142", "0.6853548", "0.68027383", "0.67988384", "0.6685319", "0.6615832", "0.64586014", "0.64029837", "0.6395104", "0.63325703", "0.6326752", "0.6245146", "0.6089242", "0.6002566", "0.5969512", "0.5963833", "0.5943871", "0.59108084", "0.59066206", "0.59061563", "0.58895...
0.74132156
1
Updates the argument position (used in the argument chain)
Обновляет позицию аргумента (используется в цепочке аргументов)
public function incrementArgumentPosition() { $this->argument++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function setGivenArgumentAmount(): int {\n return $_SERVER['argc'] - 1;\n }", "abstract function incrementPosition();", "protected function initPosition(): void\n {\n if (!isset($this->args['argument'])) {\n $this->position = null;\n\n return;\n }\n\n ...
[ "0.6315607", "0.62951857", "0.60054547", "0.5992558", "0.576402", "0.5761704", "0.5707927", "0.55677253", "0.5541745", "0.55109745", "0.5451539", "0.5416732", "0.53942984", "0.53488034", "0.5328325", "0.5323568", "0.5311686", "0.5310132", "0.52747625", "0.5274231", "0.5261843...
0.814645
0
Returns the argument's position (0 indexed)
Возвращает позицию аргумента (0 индексированный)
public function getArgumentPosition() { return $this->argument; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getArgumentPosition(string $name)\n {\n return $this->arguments_infos[$name]['position'] ?? null;\n }", "function passed($argumento) { \n for($i = 0; $i < $this->argc; $i++) {\n if (isset($this->parsed[$i][0]) && $this->parsed[$i][0] == $argumento) {\n retur...
[ "0.76573974", "0.71878535", "0.68405783", "0.6819195", "0.6807794", "0.6716572", "0.66993225", "0.6699191", "0.66475207", "0.6645342", "0.65936846", "0.65936846", "0.6588096", "0.6588096", "0.6588096", "0.6588096", "0.6588096", "0.6574319", "0.6571731", "0.6560403", "0.655434...
0.81995106
0
Get the message, but include the comparison diff.
Получить сообщение, но включить сравнительную разницу.
public function getMessageWithComparisonDiff() { $previous = $this; while($previous = $previous->getPrevious()) { if ($previous instanceof \SebastianBergmann\Comparator\ComparisonFailure) { return trim($this->getMessage() . "\n" . $previous->getDiff()); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testMessage($compare) {\n\t\t$dumper = $this->getDumper();\n\n\t\t$value2 = $this->entityToFilteredArray($this->getValue());\n\t\t$compare2 = $this->entityToFilteredArray($compare);\n\n\t\tif ($this->test($compare)) {\n\t\t\treturn \"Identical entity expectation [\" . $dumper->describeValue($this->...
[ "0.6666339", "0.6636851", "0.6469196", "0.62986386", "0.6144159", "0.6141585", "0.60955894", "0.6074387", "0.605623", "0.6016071", "0.60141903", "0.6005936", "0.5968292", "0.59347224", "0.5924659", "0.59217674", "0.59159553", "0.5912229", "0.5905473", "0.5900092", "0.5875999"...
0.8342133
0
Working with settings under `nubmer_decimals`
Работа с настройками под `nubmer_decimals`
private static function configNubmerDecimals($args) { if (empty($args[0])) { return 0; } else { if (isset(Yii::app()->modules['systemSummary']['config']['nubmer_decimals'][$args[0]])) { return Yii::app()->modules['systemSummary']['config']['nubmer_decimals'][$args...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function opaljob_get_price_decimals() {\n return absint( opaljob_options( 'price_num_decimals', 2 ) );\n}", "function __give_sanitize_number_decimals_setting_field( $value ) {\n\t$value_changed = false;\n\t$show_notice = false;\n\t$old_value = $value;\n\n\tif ( isset( $_POST['decimal_separator'] ) ) {\n...
[ "0.61731213", "0.6140399", "0.59034413", "0.58521354", "0.58281666", "0.5682244", "0.5632327", "0.55702764", "0.5535372", "0.54580975", "0.5385083", "0.53131396", "0.5245357", "0.5231241", "0.5218185", "0.51899403", "0.5134486", "0.5123301", "0.5120888", "0.5098237", "0.50744...
0.70809954
0
Add shopping cart link to parent block
Добавить ссылку на корзину покупок в родительский блок
public function addCartLink() { $parentBlock = $this->getParentBlock(); if ($parentBlock && Mage::helper('core')->isModuleOutputEnabled('Mage_Checkout')) { $count = $this->getSummaryQty() ? $this->getSummaryQty() : $this->helper('checkout/cart')->getSummaryCount(); $text = ''; if ($count > 0) { $t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function foodgrower_cart_link() {\n\t\t?>\n\t\t\t<a class=\"cart-contents\" href=\"<?php echo esc_url( WC()->cart->get_cart_url() ); ?>\" title=\"<?php esc_attr_e( 'View your shopping cart', 'storefront' ); ?>\">\n\t\t\t\t<span class=\"count\"><?php echo wp_kses_data( sprintf( _n( '%d ', '%d ', WC()->cart->get_car...
[ "0.69751054", "0.6666719", "0.6542686", "0.6524757", "0.6466283", "0.6371914", "0.63549113", "0.63544494", "0.6327549", "0.6222702", "0.6104376", "0.60915947", "0.606168", "0.6038414", "0.60287917", "0.6015361", "0.6014499", "0.5986287", "0.59593767", "0.59376115", "0.5897676...
0.7518991
0
Funcion que guarda el helado en el archivo.
Функция, которая сохраняет мороженое в файл.
public function GuardarHelado() { $retorno = FALSE; //Creo o abro el archivo. $myFile = fopen("Helados.txt", "a"); //Creo el string del helado a guardar. $stringAGuardar = $this->sabor. " - " .$this->tipo. " - " .$this->precio. " - " .$this->cantid...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _guardarFichero($fichero, $datos) {\n\t\tif ( $this->comprimir )\n\t\t @gzwrite($fichero, $datos);\n\t\telse\n\t\t @fwrite($fichero, $datos);\n\t\t$this->escrito = true;\n\t}", "function guardar()\n\t{\t\t\n\t\tif ($this->activo) {\n\t\t\t$this->guardar_en_archivo($this->get_nombre_archivo());\n\t\t}\n\...
[ "0.6949099", "0.6753947", "0.65765226", "0.6552112", "0.6504227", "0.6462169", "0.6412878", "0.63737565", "0.62873673", "0.6232939", "0.62199575", "0.61716074", "0.6100741", "0.60709214", "0.60085344", "0.59837854", "0.5812776", "0.57850057", "0.57739604", "0.57519066", "0.57...
0.7230207
0
Lee el archivo y devuelve los helados guardados en un array.
Чтение файла и возврат сохраненных мороженых в массиве.
public static function LeerArchivo( ) { $ListaLeida = array(); //Abro el listado. $archivo = fopen("Helados.txt", "r"); //Leo el archivo. while(!feof($archivo)) { $renglon = fgets($archivo); $h...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function load(): array\n {\n $data = [];\n if($storage_data = @file_get_contents(self::$path.self::$filename)) {\n $data = unserialize($storage_data);\n } \n\n return $data;\n }", "private function readFileAsArray()\n {\n return file($this->get...
[ "0.6640611", "0.64768434", "0.6468439", "0.6403997", "0.63711655", "0.62511516", "0.61064005", "0.60337037", "0.600519", "0.6001455", "0.59914434", "0.59219193", "0.5891175", "0.58760595", "0.5864259", "0.5863065", "0.5860107", "0.5831721", "0.58187973", "0.5809802", "0.58098...
0.7524382
0
Adds an ordinal suffix to a number Examples: 1 => 1st, 2 => 2nd, 3 => 3rd
Добавляет порядковое окончание к числу Примеры: 1 => 1st, 2 => 2nd, 3 => 3rd
function ordinal_suffix($number) { $ends = array('th', 'st', 'nd', 'rd', 'th', 'th', 'th', 'th', 'th', 'th'); if ((($number % 100) >= 11) && (($number % 100) <= 13)) { return $number . 'th'; } else { return $number . $ends[$number % 10]; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ordinal_suffix($n) {\n $n_last = $n % 100;\n if (($n_last > 10 && $n_last < 14) || $n == 0){\n return \"{$n}th\";\n }\n switch(substr($n, -1)) {\n case '1': return \"{$n}st\";\n case '2': return \"{$n}nd\";\n case '3': return \"{$n}rd\";\n ...
[ "0.8144389", "0.8122912", "0.8029021", "0.7926687", "0.75568724", "0.7359844", "0.7309089", "0.7261478", "0.72552437", "0.71855783", "0.71360695", "0.7106843", "0.70828074", "0.69399464", "0.683521", "0.67166466", "0.65577435", "0.64236885", "0.63585675", "0.6353776", "0.6192...
0.8241956
0
Parses a danish address into these components (if possible) Street, Number, Letter, Floor, Door
Разбирает датский адрес на эти компоненты (если это возможно): Улица, Номер, Буква, Этаж, Дверь
function parse_danish_address($address) { $regex = '/^([^0-9]*)([0-9]*)\s*([A-Z]?)[,\s]*([0-9]*)?(st|kl)?[\.,\s]*([a-zæøå]*)?(\d{0,4})?.*$/mi'; preg_match_all($regex, $address, $matches); $result = array(); for ($i = 1; $i < count($matches); $i++) { if (isset($matches[$i]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_address_data($address) {\n\n\t$data = explode(',', $address);\n\n\n\t$house = trim($data[count($data)-1]); //last\n\tpreg_match_all('/[\\d]+/m', $house, $matches, PREG_SET_ORDER, 0);\n\t$house = $matches[0][0];\n\n\tif ($house == null) {\n\t\t$house = 0;\n\t\t$street = trim($data[count($data)-1]);\n\t...
[ "0.7020534", "0.6893624", "0.66631293", "0.6624421", "0.6184011", "0.61558515", "0.61287934", "0.60625535", "0.60535777", "0.6035906", "0.5975386", "0.5930437", "0.59134245", "0.590068", "0.5856157", "0.5854556", "0.5825855", "0.5808655", "0.5742181", "0.5726444", "0.56623435...
0.85415787
0
Converts a number (float) into formatted Danish Kroner. Default prefix is "kr. ". Example: 2759782.25 => "kr. 2.759.782,25".
Преобразует число (вещественное число) в форматированные датские кроны. Стандартный префикс — "kr. ". Пример: 2759782.25 => "kr. 2.759.782,25".
function toDKK($number, $prefix = 'kr. ', $postfix = null) { return \Findforsikring\Support\Number::formatDanishKroner($number, $prefix, $postfix); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function dokan_number_format( $number ) {\n $threshold = 10000;\n\n if ( $number > $threshold ) {\n return number_format( $number/1000, 0, '.', '' ) . ' K';\n }\n\n return $number;\n}", "function kwh(float $number)\n{\n return number_format($number, '2', ',', '');\n}", "function formatNum...
[ "0.7199517", "0.64468086", "0.63479805", "0.6229705", "0.61853766", "0.61662954", "0.6166264", "0.6131131", "0.61244833", "0.6006057", "0.5972507", "0.59696585", "0.59656197", "0.595762", "0.5913504", "0.5907694", "0.58806497", "0.58275664", "0.58202416", "0.5804103", "0.5793...
0.7886149
0
Convert an xml string into associative array
Преобразовать строку xml в ассоциативный массив
function xml2array($xml_string) { return \Findforsikring\Support\Converters::xml2Array($xml_string); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function xml_to_array($xml)\n {\n $xml = simplexml_load_string($xml, \"SimpleXMLElement\", LIBXML_NOCDATA);\n $root = $xml->getName();\n $data[\"$root\"] = json_decode(json_encode($xml), TRUE);\n\n return $data;\n }", "private function xml2array($xml) \n\t{ \n\t\t$json = json...
[ "0.7553298", "0.7389075", "0.7321345", "0.73111326", "0.7175879", "0.7130507", "0.70990664", "0.707139", "0.7013409", "0.6992407", "0.69899124", "0.6978881", "0.6967859", "0.695329", "0.6939355", "0.68866277", "0.6875048", "0.68191105", "0.68099624", "0.6803612", "0.6785458",...
0.77557236
0
Tells whether PHP interpreter is a 64 bits one.
Показывает, является ли интерпретатор PHP 64-битным.
public static function is64bits() { return (PHP_INT_SIZE === 8); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function is64bit()\n\t{\n\t\treturn intval(\"9223372036854775807\") === 9223372036854775807 ? true: false;\n\t}", "public function isOs64bit()\n {\n return $this->is_64_bit_os;\n }", "public function isBrowser64bit()\n {\n return $this->is_64_bit_browser;\n }", "public function getCheck32Bit...
[ "0.7653765", "0.746671", "0.7434926", "0.62202686", "0.58147734", "0.56662077", "0.53244376", "0.5315783", "0.5276068", "0.5276068", "0.5270561", "0.5268307", "0.5234583", "0.52241826", "0.52021194", "0.5106078", "0.5092804", "0.5059187", "0.5042579", "0.5042579", "0.5026039"...
0.7783699
0
Returns the extended information for a given artwork ID.
Возвращает расширенную информацию для заданного идентификатора произведения искусства.
public function extended(int $artworkId): ArtworkExtendedRecord { $json = $this->parent->performAPICallWithJsonResponse('get', 'artwork/'.$artworkId.'/extended'); return DataParser::parseData($json, ArtworkExtendedRecord::class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getidArt()\n\t {\n\t return $this->idArt;\n\t }", "public function getidArt()\n\t {\n\t return $this->idArt;\n\t }", "public function getidArt()\n\t {\n\t return $this->idArt;\n\t }", "public function getIdArt()\n {\n return $this->idArt;\n ...
[ "0.60846716", "0.60846716", "0.60846716", "0.6000278", "0.5905617", "0.5863307", "0.5817223", "0.5811082", "0.5787222", "0.57852334", "0.57685757", "0.5754104", "0.5729639", "0.5697965", "0.5664717", "0.5643482", "0.5627806", "0.56199414", "0.5598477", "0.55955434", "0.553438...
0.7729553
0
ACTION FOR EDIT VIDEO
ДЕЙСТВИЕ ДЛЯ РЕДАКТИРОВАНИЯ ВИДЕО
public function editAction() { //CHECK USER VALIDATION if (!$this->_helper->requireUser()->isValid()) { return; } //GET LISTING ID $listing_id = $this->_getParam('listing_id', 0); $listingtype_id = $this->_listingType->listingtype_id; $this->view->sitereview = $sitereview = Engine_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Video $video)\n {\n //\n }", "public function edit(Video $video)\n {\n //\n }", "public function editVideo(Request $request)\n {\n\n $editVideo = UploadVideo::where(\"id\", $request->id)->first();\n $editVideo->content_title = ucfirst($request->ti...
[ "0.7008484", "0.7008484", "0.6761501", "0.66914135", "0.66596067", "0.65628296", "0.6534702", "0.65109015", "0.65015817", "0.6501097", "0.64971673", "0.64009815", "0.63999707", "0.6379953", "0.6348836", "0.6337341", "0.6313386", "0.6312328", "0.6304035", "0.6303521", "0.63013...
0.7036598
0
ACTION FOR VIEW VIDEO
ДЕЙСТВИЕ ДЛЯ ПРОСМОТРА ВИДЕО
public function viewAction() { //IF SITEREVIEWVIDEO SUBJECT IS NOT THEN RETURN if (!$this->_helper->requireSubject('sitereview_video')->isValid()) return; //GET LOGGED IN USER INFORMATION $viewer = Engine_Api::_()->user()->getViewer(); $viewer_id = $viewer->getIdentity(); //GET VIDEO IT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function video(){\n\t\t$data=array();\n\t\t$this->load->view('administrador/admin_video',$data);\n\t}", "public function actionVideo()\n {\n $title = '微站设置/视频设置';\n //title of webpage,you can find title in /web/pub/top.php eg:wechat demo\n $keywords = 'wechat demo';\n //t...
[ "0.74828035", "0.71874565", "0.69635296", "0.69069326", "0.6740909", "0.67165756", "0.6716336", "0.66395193", "0.6583835", "0.6544684", "0.6544684", "0.6544684", "0.6544684", "0.6510193", "0.64697415", "0.6469223", "0.64505595", "0.6423167", "0.6413178", "0.6356954", "0.62907...
0.7195916
1
ACTION FOR UPLOAD VIDEO
ДЕЙСТВИЕ ДЛЯ ЗАГРУЗКИ ВИДЕО
public function uploadAction() { if (isset($_GET['ul']) || isset($_FILES['Filedata'])) return $this->_forwardCustom('upload-video', null, null, array('format' => 'json')); if (!$this->_helper->requireUser()->isValid()) return; $this->view->form = $form = new Sitereview_Form_Reviewvideo(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function media_upload_video()\n {\n }", "public function composeUploadAction() {\n\n //GET VIEWER INFO\n $viewer = Engine_Api::_()->user()->getViewer();\n\n if (!$viewer->getIdentity()) {\n $this->_redirect('login');\n return;\n }\n\n if (!$this->getRequest()->isPost()) {\n $t...
[ "0.7278679", "0.66098833", "0.6521009", "0.65127", "0.64675283", "0.636429", "0.634872", "0.6330287", "0.62758195", "0.62758195", "0.62758195", "0.62758195", "0.62758195", "0.62758195", "0.6261282", "0.6252089", "0.6252089", "0.6242984", "0.6239027", "0.62290746", "0.62171066...
0.7432149
0
ACTION FOR EMBEDING THE VIDEO
ДЕЙСТВИЕ ДЛЯ ВСТАВКИ ВИДЕО
public function embedAction() { //GET SUBJECT (EITHER VIDEO TYPE OR SITEREVIEW_VIDEO TYPE) $this->view->video = $video = Engine_Api::_()->core()->getSubject(); //CHECK THAT EMBEDDING IS ALLOWED OR NOT if (!Engine_Api::_()->getApi('settings', 'core')->getSetting('sitereview_video.embeds', 1)) { $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function embed_video() {\r\n\t\tglobal $wp_embed;\r\n\t\treturn $wp_embed->run_shortcode( '[embed]'. $this->video .'[/embed]' );\r\n\t}", "function the_embed_video( $video_embed_code, $width = 500, $height = 281 ) {\n\techo get_embed_video( $video_embed_code, $width, $height );\n}", "function video_cck_...
[ "0.73611766", "0.6920054", "0.6745134", "0.6694458", "0.6545113", "0.6545113", "0.65030104", "0.64714366", "0.64547926", "0.6452821", "0.6374694", "0.6367869", "0.6303775", "0.62741345", "0.6269048", "0.6266624", "0.6266109", "0.62346584", "0.6227877", "0.6225957", "0.6224732...
0.7531949
0
Instant Payment Notification (IPN) from Skrill
Уведомление о мгновенном платеже (IPN) от Skrill
public function ipn(Request $request) { // skrill data - get more fields from Skrill Quick Checkout Integration Guide 7.9 (page 23) $transaction_id = $request->transaction_id; $mb_transaction_id = $request->mb_transaction_id; $invoice_id = $request->invoice_id; // custom field ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ipn(){\n\t\t$paypalInfo\t= $this->input->post();\n\n\t\t$data['user_id'] = $paypalInfo['custom'];\n\t\t$data['product_id']\t= $paypalInfo[\"item_number\"];\n\t\t$data['txn_id']\t= $paypalInfo[\"txn_id\"];\n\t\t$data['payment_gross'] = $paypalInfo[\"payment_gross\"];\n\t\t$data['currency_code'] = $paypalIn...
[ "0.7072461", "0.7038173", "0.67171407", "0.67075723", "0.6648683", "0.6639493", "0.65885717", "0.6529756", "0.65222186", "0.650824", "0.6462759", "0.6414495", "0.64136934", "0.6376686", "0.63481075", "0.63295424", "0.6146531", "0.6141052", "0.61070776", "0.6072249", "0.601603...
0.7068483
1
Calculates the Mean of given data
Вычисляет среднее значение заданных данных
public static function mean(array $data): float { return array_sum($data) / count($data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function average(array $data): float\n\t{\n\t\treturn self::mean($data);\n\t}", "public function mean() {\n $count = count($this->value);\n $sum = array_sum($this->value);\n return ((float) $sum) / $count;\n }", "public function getTotalProductAverage($data)\n {\n ...
[ "0.72525936", "0.7014455", "0.67692995", "0.650703", "0.6439166", "0.64246315", "0.6310784", "0.6292964", "0.6292161", "0.6273767", "0.61897177", "0.6189553", "0.61880136", "0.617486", "0.6158035", "0.61034256", "0.60960704", "0.60487854", "0.60368973", "0.5999395", "0.596742...
0.7559423
0
Calculates the Median of given data
Вычисляет медиану заданных данных
public static function median(array $data): float { sort($data); $count = count($data); $i = round($count / 2) - 1; if ($count % 2 !== 0) return $data[$i]; else return self::mean([$data[$i], $data[$i + 1]]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function array_median($array) { $iCount = count($array);\n // if we're down here it must mean $array\n // has at least 1 item in the array.\n $middle_index = floor($iCount / 2);\n sort($array, SORT_NUMERIC);\n $median = $array[$middle_index]; // assume an odd # of items\n // Handle the even case by averagin...
[ "0.73705286", "0.73496205", "0.73367035", "0.72944224", "0.723225", "0.720231", "0.6944948", "0.67976284", "0.6679688", "0.6633966", "0.6490438", "0.6401704", "0.6307692", "0.60462654", "0.55758417", "0.5513916", "0.5490872", "0.5005187", "0.4907285", "0.48668227", "0.4866822...
0.76842844
0
Determines the deviations of each value of given data
Определяет отклонения каждого значения заданных данных
public static function deviations(array $data): array { $mean = self::mean($data); $deviations = []; foreach ($data as $key => $value) { $deviations[$value] = pow($value - $mean, 2); } return $deviations; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function standard_deviation($array) {\n if(count($array)<=1)\n {\n return 0;\n }\n // square root of sum of squares devided by N-1\n return sqrt(array_sum(array_map(\"sd_square\", $array, array_fill(0,count($array), (array_sum($array) / count($array)) ) ) ) / (count($array)-1) );\n}", "func...
[ "0.69521594", "0.68808216", "0.6875571", "0.68724114", "0.68536687", "0.676657", "0.67367554", "0.6660776", "0.6601233", "0.65569663", "0.65137875", "0.6372756", "0.6357747", "0.61252064", "0.6118812", "0.6118812", "0.60593766", "0.5991339", "0.5678814", "0.5543977", "0.55321...
0.7853073
0
metodo para editar usuario
метод для редактирования пользователя
public function editar_usuario($id_usuario, $nombre, $apellido, $cedula, $telefono, $email, $direccion, $cargo, $usuario, $password1, $password2, $estado, $permisos) { $conectar = parent::conexion(); parent::set_names(); require_once("Usuarios.php"); $usuarios = new Usuarios(); //verifica si el i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edita()\n\t {\t\n\t\t$car=$_REQUEST['car'];\n\t\t$per=$_REQUEST['per'];\n\t\t$logi=$_REQUEST['logi'];\n\t\t$pas=$_REQUEST['pas'];\n\t\t$obs=$_REQUEST['obs'];\n\t\t$est=$_REQUEST['est'];\n\t\t\t//$usu=$_REQUEST['usu'];\n\t\t$user_data=array();\n\t\t$user_data['carnet']=$car;\n\t\t$user_data['login']...
[ "0.77866316", "0.7770919", "0.77652997", "0.77421355", "0.7678002", "0.7621394", "0.76122206", "0.7462953", "0.7452985", "0.74410146", "0.74119866", "0.7409006", "0.73766583", "0.73731434", "0.73536134", "0.7346778", "0.734658", "0.731159", "0.72908443", "0.7265789", "0.72620...
0.78699076
0
esta function alista los permisos (NO MARCADOS)
этот функция перечисляет разрешения (НЕ ПОМЕЧЕННЫЕ)
public function permisos() { $conectar = parent::conexion(); $sql = "select * from permisos;"; $sql = $conectar->prepare($sql); $sql->execute(); return $resultado = $sql->fetchAll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function listaPermisos(){\n\n\t$lista = null; //array para almacenar los permisos\n\t$num=0; //variable para indexar el array lista\n\t$USU_GRUPO = new USU_GRUPO_Model($_SESSION[\"login\"], '');\n\t$listaGrupos = $USU_GRUPO->listagrupoUsuario();\n\tif($listaGrupos == null){ //si no tiene ningun grupo\n\t\treturn f...
[ "0.7200085", "0.7061065", "0.6966644", "0.6845108", "0.67715347", "0.67668295", "0.67425096", "0.67388886", "0.6672337", "0.6670497", "0.6648839", "0.6621577", "0.66047573", "0.65924376", "0.6586815", "0.6497386", "0.6485197", "0.64502877", "0.6435989", "0.6429652", "0.640737...
0.7076265
1
Retrieve all Workers from cache Return $workers
Получить всех Workers из кэша Вернуть $workers
public function setWorkers() { if (!is_array($this->workers)) { $gearmanCache = $this->container->get('gearman.cache'); $this->workers = $gearmanCache->get(); } /** * Always will be an Array */ return $this->workers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getWorkers()\n {\n $workers = $this->redis->hGetAll(self::$workerKey);\n $temp = array();\n \n foreach ($workers as $name => $value) {\n $temp[$name] = unserialize($value);\n }\n return $temp;\n }", "public static function all()\n\t{\n\t\...
[ "0.7357164", "0.72402537", "0.69595903", "0.658846", "0.6482899", "0.647158", "0.60938746", "0.60868424", "0.60859627", "0.60801244", "0.6064577", "0.6002177", "0.5993438", "0.5936748", "0.5930278", "0.5907677", "0.5861151", "0.5861151", "0.5837312", "0.5785102", "0.5738178",...
0.76031905
0
Return worker containing a job with $jobName as name If is not found, throws JobDoesNotExistException Exception
Возвращает рабочего, содержащего задание с именем $jobName. Если задание не найдено, выбрасывает исключение JobDoesNotExistException.
public function getJob($jobName) { $this->setWorkers(); foreach ($this->workers as $worker) { if (is_array($worker['jobs'])) { foreach ($worker['jobs'] as $job) { if ($jobName === $job['realCallableName']) { $wo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getWorker($workerName)\r\n {\r\n $this->setWorkers();\r\n\r\n foreach ($this->workers as $worker) {\r\n if ($workerName === $worker['callableName']) {\r\n return $worker;\r\n }\r\n }\r\n\r\n throw new WorkerDoesNotExistException($w...
[ "0.7377638", "0.59968376", "0.5947182", "0.5933819", "0.5867373", "0.5815962", "0.57901084", "0.5776445", "0.57565236", "0.5707591", "0.5680078", "0.5680078", "0.56703645", "0.56694126", "0.56491023", "0.5638792", "0.56113625", "0.5608863", "0.55965525", "0.55891615", "0.5521...
0.83386594
0
Return worker with $workerName as name and all its jobs If is not found, throws WorkerDoesNotExistException Exception
Возвращает рабочего с именем $workerName и всем его заданиями. Если рабочий не найден, выбрасывает исключение WorkerDoesNotExistException
public function getWorker($workerName) { $this->setWorkers(); foreach ($this->workers as $worker) { if ($workerName === $worker['callableName']) { return $worker; } } throw new WorkerDoesNotExistException($workerName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getJob($jobName)\r\n {\r\n $this->setWorkers();\r\n \r\n foreach ($this->workers as $worker) {\r\n if (is_array($worker['jobs'])) {\r\n foreach ($worker['jobs'] as $job) {\r\n if ($jobName === $job['realCallableName']) {\r\n ...
[ "0.7013373", "0.6706149", "0.6706149", "0.6429684", "0.629609", "0.62102634", "0.6205643", "0.6205643", "0.59925115", "0.59875923", "0.56865853", "0.56865853", "0.56865853", "0.5642475", "0.5608391", "0.55265534", "0.5524059", "0.54683024", "0.534676", "0.5303269", "0.5265257...
0.7725565
0
Return the flag value or, if it's not set, the $default value. Because flags can be negated (e.g. noquiet to negate quiet), this function provides a safer alternative to using `isset( $assoc_args['quiet'] )` or similar.
Верните значение флага или, если оно не задано, значение $default. Поскольку флаги могут быть отрицательными (например, noquiet для отрицания quiet), эта функция предоставляет более безопасную альтернативу использованию `isset( $assoc_args['quiet'] )` или подобного.
public function flag( $assoc_args, $flag, $default = null ) { return \WP_CLI\Utils\get_flag_value( $assoc_args, $flag, $default ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getValue($option, $altOption = false, $default = null) {\n\t\tif(isset($this->args[$option])) {\n\t\t\treturn $this->args[$option];\n\t\t}\n\t\tif($altOption && isset($this->args[$altOption])) {\n\t\t\treturn $this->args[$altOption];\n\t\t}\n\t\treturn $default;\n\t}", "function get_value_or_defa...
[ "0.6147237", "0.6119566", "0.5965552", "0.5963115", "0.58995956", "0.5874271", "0.58623236", "0.5861893", "0.5844152", "0.58219504", "0.58206725", "0.58158976", "0.57920283", "0.5774488", "0.57571733", "0.5744707", "0.5730252", "0.5716222", "0.5685732", "0.56762254", "0.56399...
0.7601611
0
add attribute namespace URI for null values.
Добавить атрибут namespace URI для значений null.
public function addNullNamespaceURI(\DOMElement $node) { if ($node->hasAttribute(self::NS_XSI)) { return; } // first solution found, create real attribute namespace // there is perhaps a more simple way if ($node->ownerDocument->firstChild === $node) { // no need to update Dom $node->ownerDocument->c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAttributeNamespaceURI($index = null);", "public function testChangeNamespaceURIEmptyStore()\n {\n $res = $this->fixture->changeNamespaceURI(\n 'http://www.w3.org/1999/02/22-rdf-syntax-ns#',\n 'urn:rdf'\n );\n\n $this->assertEquals(\n [\n...
[ "0.59994733", "0.5873287", "0.5689408", "0.5556165", "0.54679966", "0.53660893", "0.5336751", "0.52852154", "0.52735794", "0.52689475", "0.5267113", "0.5261335", "0.5261172", "0.5255512", "0.5212988", "0.52093554", "0.5204817", "0.51783216", "0.51779836", "0.51661235", "0.512...
0.748113
0
add attribute namespace xsi:nil on given node
добавить атрибут пространства имен xsi:nil на заданный узел
public function setNodeAsNull(\DOMElement $node) { $node->setAttributeNS(self::NIL_URI, self::NULL_VALUE, 'true'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addNullNamespaceURI(\\DOMElement $node) {\n\t\tif ($node->hasAttribute(self::NS_XSI)) {\n\t\t\treturn;\n\t\t}\n\t\t// first solution found, create real attribute namespace\n\t\t// there is perhaps a more simple way\n\t\tif ($node->ownerDocument->firstChild === $node) {\n\t\t\t// no need to update D...
[ "0.79250365", "0.6000146", "0.56981784", "0.55322427", "0.5477496", "0.5460935", "0.54450864", "0.52948314", "0.52887034", "0.52722466", "0.5270257", "0.5269163", "0.52574426", "0.5256837", "0.52258563", "0.5225463", "0.52014667", "0.51742953", "0.51564914", "0.51359415", "0....
0.72355545
1
get value in $node with attribute or node $name according $asNode
получить значение в узле $node с атрибутом или узлом $name в соответствии с $asNode
public function &getValue(&$node, $name, $asNode = false) { if ($asNode) { $childNode = $this->getChildNode($node, $name); if (!is_null($childNode) && $this->isNodeNull($childNode)) { $childNode = null; } return $childNode; } else if ($node->hasAttribute($name)) { $value = $node->getAttribute($na...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getValue(Node $node);", "public function hasValue($node, $name, $asNode = false) {\n\t\treturn $asNode ? \n\t\t\t!is_null($this->getChildNode($node, $name)) \n\t\t\t: $node->hasAttribute($name);\n\t}", "function getElemOrAttrVal(&$element, $name){\n\t\t$value;\n\t\t$parts = explode(\".\", $name...
[ "0.6757998", "0.65717846", "0.63147384", "0.6305614", "0.60879374", "0.5975214", "0.58329034", "0.5803339", "0.57028425", "0.5693372", "0.5605153", "0.55326885", "0.55075026", "0.55013555", "0.54966533", "0.5488277", "0.5479343", "0.5473704", "0.5453799", "0.5450746", "0.5419...
0.78619087
0
verify if node is null (i.e. if has attribute xsi:nil="true")
проверить, является ли узел null (т.е. если есть атрибут xsi:nil="true")
public function isNodeNull(\DOMElement $node) { return $node->hasAttributeNS(self::NIL_URI, self::NULL_VALUE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setNodeAsNull(\\DOMElement $node) {\n\t\t$node->setAttributeNS(self::NIL_URI, self::NULL_VALUE, 'true');\n\t}", "protected function parseNullElement(\\SimpleXMLElement $node) {\n\t\t\treturn null;\n\t\t}", "abstract public function isNull();", "#[@test]\n public function nullableSet() {\n ...
[ "0.68650264", "0.67544794", "0.6562782", "0.6545576", "0.6501922", "0.65018886", "0.6380014", "0.6276513", "0.6244824", "0.62111473", "0.6201409", "0.61824554", "0.6173619", "0.6162699", "0.61449707", "0.61208963", "0.6044384", "0.6019069", "0.6005852", "0.5979709", "0.594534...
0.8151333
0
verify if $node contain value with attribute or node $name according $asNode
проверить, содержит ли узел $node значение с атрибутом или узел $name в соответствии с $asNode
public function hasValue($node, $name, $asNode = false) { return $asNode ? !is_null($this->getChildNode($node, $name)) : $node->hasAttribute($name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function &getValue(&$node, $name, $asNode = false) {\n\t\tif ($asNode) {\n\t\t\t$childNode = $this->getChildNode($node, $name);\n\t\t\tif (!is_null($childNode) && $this->isNodeNull($childNode)) {\n\t\t\t\t$childNode = null;\n\t\t\t}\n\t\t\treturn $childNode;\n\t\t} else if ($node->hasAttribute($name)) {\n\t...
[ "0.63158965", "0.62392044", "0.5889889", "0.58729875", "0.58016694", "0.57649016", "0.5728893", "0.55314314", "0.5493771", "0.54546773", "0.5409793", "0.53385663", "0.5264174", "0.5256306", "0.5243181", "0.5226437", "0.5225756", "0.52175355", "0.5214276", "0.51930463", "0.518...
0.76252526
0
verify if value is a \DOMElement
проверить, является ли значение \DOMElement
public function isNodeValue($value) { return ($value instanceof \DOMElement); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _isDOMElement($value) {\n return $value instanceof DOMElement;\n }", "public function isArrayNodeValue($value, $isAssociative) {\n\t\treturn ($value instanceof \\DOMElement);\n\t}", "public function domElement(\\DOMDocument &$aframe_dom): DOMElement;", "public function isElements()...
[ "0.84738165", "0.62621707", "0.5876481", "0.58605283", "0.57540625", "0.5675179", "0.56719166", "0.56302726", "0.5563006", "0.5555378", "0.5549568", "0.55390453", "0.5531119", "0.5431015", "0.542761", "0.5286332", "0.5258606", "0.52247137", "0.52125597", "0.5192768", "0.51882...
0.7800929
1
verify if value is a flatten complex id (with inheritance key)
проверить, является ли значение плоским сложным идентификатором (с ключом наследования)
public function isFlattenComplexInterfacedId($value) { return $this->isComplexInterfacedId($value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isComplexInterfacedId($value) {\n\t\treturn ($value instanceof \\DOMElement) && $value->hasAttribute(self::COMPLEX_ID_KEY);\n\t}", "public function isComplexType(): bool;", "function _check_parent_id($value)\n {\n if (!$value) {\n return TRUE;\n }\n\n $where =...
[ "0.67709744", "0.57282406", "0.54886", "0.52462274", "0.5224995", "0.51475006", "0.5091606", "0.5083518", "0.4988959", "0.49403948", "0.49068934", "0.48710513", "0.4854244", "0.4839089", "0.483696", "0.48287743", "0.4802658", "0.4800701", "0.47963685", "0.4794325", "0.4781233...
0.7701882
0
Set value in $node with attribute or node $name according $asNode. Warning! if $value is a \DomNode and doesn't belong to same \DomDocument than $node, $value is copied and the copy is set on $node. So modify $value later will not modify set value. Warning! if you set a null value as node, parent node (direct or not) m...
Установить значение в узле $node с атрибутом или узлом $name в соответствии с $asNode. Предупреждение! Если $value является \DomNode и не принадлежит тому же \DomDocument, что и $node, $value копируется, и копия устанавливается в $node. Таким образом, последующие изменения $value не повлияют на установленное значение. ...
public function setValue(&$node, $value, $name = null, $asNode = false) { if (!($node instanceof \DOMElement)) { throw new ArgumentException($node, '\DOMElement', 1); } if ($value instanceof \DOMNode) { if ($node->ownerDocument !== $value->ownerDocument) { $value = $node->ownerDocument->importNode($valu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function unsetValue(&$node, $name, $asNode = false) {\n\t\tif ($asNode) {\n\t\t\t$domElement= $this->getChildNode($node, $name);\n\t\t\tif (!is_null($domElement)) {\n\t\t\t\t$node->removeChild($domElement);\n\t\t\t}\n\t\t} else {\n\t\t\t$node->removeAttribute($name);\n\t\t}\n\t}", "public function &getVal...
[ "0.6632947", "0.6579118", "0.6411173", "0.63918656", "0.6357135", "0.6307138", "0.62376153", "0.6209177", "0.61473364", "0.6141487", "0.574444", "0.56594336", "0.56184644", "0.5590057", "0.55480456", "0.5539245", "0.55107385", "0.5508318", "0.5422785", "0.53799117", "0.534598...
0.82922405
0
unset value in $node with attribute or node $name according $asNode
неопределенное значение в $node с атрибутом или узлом $name согласно $asNode
public function unsetValue(&$node, $name, $asNode = false) { if ($asNode) { $domElement= $this->getChildNode($node, $name); if (!is_null($domElement)) { $node->removeChild($domElement); } } else { $node->removeAttribute($name); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __unset($name) {\n\t\tif ($this->hasAttribute($name))\n\t\t\tunset($this->_attributes[$name]);\n\t\telse\n\t\t\tparent::__unset($name);\n\t}", "public function __unset($name)\n\t{\n\t\tif(isset($this->_attributes[$name]))\n\t\t\tunset($this->_attributes[$name]);\n\t\telse\n\t\t\tparent::__unset($...
[ "0.6207006", "0.59676075", "0.57167727", "0.5713372", "0.5643022", "0.5578763", "0.5567389", "0.5559965", "0.55507666", "0.55072206", "0.5500073", "0.5479319", "0.5439618", "0.54152054", "0.5382776", "0.5377799", "0.53670746", "0.5324204", "0.5295384", "0.52883047", "0.528591...
0.82781184
0
add value to $node
добавить значение к $node
public function addValue(&$node, $value, $name = null) { $this->setValue($node, $value, $name, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setNodeValue($value) {\n $this->nodeValue = $value;\n }", "public function appendValue($value) {\n $this->current->value($value);\n }", "public function pushNode( $node );", "public function addValue($value);", "protected function setElementContent($node, $value)\n\t{\n\t\t...
[ "0.6717786", "0.66763264", "0.6631777", "0.64335847", "0.6028007", "0.601264", "0.598935", "0.59557277", "0.59526473", "0.5929855", "0.5929855", "0.59118617", "0.5880494", "0.5867952", "0.5859166", "0.58584183", "0.5815171", "0.58122134", "0.5778666", "0.5744558", "0.56939554...
0.7196019
0
replace value in node $name by $value (fail if node $name doesn't exist)
заменить значение в узле $name на $value (ошибка, если узел $name не существует)
public function replaceValue(&$node, $name, $value) { $domElement = $this->getChildNode($node, $name); if (!is_null($domElement)) { $node->removeChild($domElement); $this->setValue($node, $value, $name, true); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set(string $name, string $value = null): NodeInterface;", "public function addValue(&$node, $value, $name = null) {\n\t\t$this->setValue($node, $value, $name, true);\n\t}", "public function setElement($name, $value);", "private function set(string $name, $value): void\n {\n $path = ...
[ "0.6872359", "0.67174214", "0.66532606", "0.6600663", "0.65580684", "0.6387339", "0.62911886", "0.6286114", "0.61526704", "0.6124548", "0.6088239", "0.59935737", "0.5945085", "0.59348345", "0.5929965", "0.5927133", "0.5927133", "0.5927133", "0.5924938", "0.5894539", "0.585279...
0.8124191
0
extract text from node
извлечь текст из узла
public function extractNodeText(\DOMElement $node) { if ($this->isNodeNull($node)) { return null; } if ($node->childNodes->length != 1) { throw new ComhonException('malformed node, should only contain one text'); } if ($node->childNodes->item(0)->nodeType != XML_TEXT_NODE) { throw new ComhonException...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function text()\n {\n return $this->node->textContent;\n }", "private function _retrieveNodeText(DOMNode $node, &$text)\r\n {\r\n if ($node->nodeType == XML_TEXT_NODE) {\r\n $text .= $node->nodeValue ;\r\n $text .= ' ';\r\n } else if ($node->nodeType == ...
[ "0.7320928", "0.71784", "0.69176155", "0.6745823", "0.6660741", "0.66377944", "0.6611162", "0.65342563", "0.65342563", "0.65342563", "0.65195584", "0.6509144", "0.64916027", "0.6483894", "0.6483894", "0.6483451", "0.6483451", "0.6483451", "0.6483451", "0.6483451", "0.6483451"...
0.7205476
1
Returns an array of files instances based on the given files array
Возвращает массив экземпляров файлов на основе заданного массива файлов
private function getFiles(array $arr, array &$options) { $files = []; foreach ($arr as $key => $val) { $files[$key] = new File($val, $options); } return $files; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function filesArrayGet($files)\n {\n $result = [];\n\n if ($files != '') {\n $files = explode(';', $files);\n\n foreach ($files as $f) {\n $p = explode(',', $f);\n $file = new VoFile();\n $file->fileId = $p[0];\n ...
[ "0.68273705", "0.6622255", "0.6589569", "0.6551", "0.6497178", "0.6452465", "0.6436977", "0.6432343", "0.64303464", "0.6398528", "0.63563514", "0.63056356", "0.6302419", "0.63020056", "0.62762046", "0.62628895", "0.6261652", "0.6244142", "0.62363523", "0.62153447", "0.6208644...
0.7110527
0
Create an Tabs Booking object from a node
Создать объект Tabs Booking из узла
public static function createFromNode($node) { $booking = new \tabs\api\booking\TabsBooking(); // Temp if (property_exists($node, 'price') && property_exists($node->price, 'extras')) { foreach ($node->price->extras as $code => $extra) { $booking->addExtra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function create(&$a_pg_obj, $a_hier_id, $a_pc_id = \"\")\n\t{\n\t\t$this->node = $this->createPageContentNode();\n\t\t$a_pg_obj->insertContent($this, $a_hier_id, IL_INSERT_AFTER, $a_pc_id);\n\t\t$this->tabs_node =& $this->dom->create_element(\"Tabs\");\n\t\t$this->tabs_node =& $this->node->append_child($this->tabs...
[ "0.5837519", "0.5710909", "0.56886226", "0.55311507", "0.53990275", "0.5219598", "0.5207205", "0.51457685", "0.5052788", "0.5050655", "0.5040258", "0.4989709", "0.49826193", "0.4978458", "0.49671465", "0.4961963", "0.49511614", "0.49447656", "0.49431473", "0.488253", "0.48615...
0.75487334
0
Return true if status is O (for owner booking).
Верните true, если статус равен O (для бронирования владельца).
public function isOwnerBooking() { return ($this->getStatus() == 'O'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function reserved(){\n\n return $this->attributes['status'] == 1;\n\n }", "public function isActive(): bool\n {\n return self::ISO_STATUS_ACTIVE === $this->isoStatus;\n }", "public function isAcitve()\n\t{\n\t\treturn $this->status == AdFox::OBJECT_STATUS_ACTIVE;\n\t}", "public ...
[ "0.65204495", "0.6317959", "0.62553537", "0.6237712", "0.62363", "0.62281775", "0.6187297", "0.6170114", "0.61376125", "0.61133873", "0.6109869", "0.61069393", "0.60441595", "0.6024482", "0.6005748", "0.60002506", "0.60001093", "0.5993367", "0.5991705", "0.59878266", "0.59599...
0.8352641
0
Set balance due date
Установить дату оплаты
public function setBalanceDueDate($balanceDueDate) { if (stristr($balanceDueDate, "-")) { $balanceDueDate = strtotime($balanceDueDate); } $this->balanceDueDate = $balanceDueDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setDueDate( $value )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n $this->DueDate = $value;\n }", "public function setDueDate(\\DateTime $value)\n {\n $this->setItemValue('due_date', (string)$value->getTimestamp());\n }", "public fun...
[ "0.7272119", "0.7067686", "0.6836207", "0.6767701", "0.6629222", "0.6444036", "0.643417", "0.6348537", "0.63044316", "0.62748545", "0.6255923", "0.62315434", "0.62228465", "0.6209715", "0.61828387", "0.61485195", "0.613062", "0.608556", "0.6023201", "0.6018401", "0.5989779", ...
0.7164064
1
Return booking balance amount including the security deposit
Вернуть баланс бронирования, включая депозит
public function getBalanceAmountWithSecurityDeposit() { return $this->getBalanceAmount() + ($this->getSecurityDepositAmount() - $this->getSecurityDepositPaid()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBalance();", "public function getbalance(){\n $balance = $this->_run('getbalance');\n return $balance;\n }", "public function get_balance() {\n\t\treturn $this->balance;\n\t}", "public function getBalance()\n {\n return $this->balance;\n }", "public ...
[ "0.75297874", "0.7514276", "0.74768865", "0.74701834", "0.74459326", "0.73681486", "0.7361703", "0.7361703", "0.7361703", "0.7348037", "0.7320776", "0.72957087", "0.7293961", "0.7284088", "0.7260319", "0.7220042", "0.7184645", "0.7184645", "0.7165968", "0.7117261", "0.7085625...
0.7649827
0
Get the customer object
Получить объект клиента
public function getCustomer() { return \tabs\api\core\Customer::create($this->getCusref()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function customer()\n {\n return Customer::retrieve($this->customer);\n }", "public function getCustomer()\n {\n return $this->data->customer;\n }", "public function getCustomer()\n {\n if (null === $customer && isset($this['CUSTOMER_ID']))\n {\n $this->customer = \...
[ "0.8878297", "0.85789037", "0.8558397", "0.85510445", "0.84817183", "0.84817183", "0.84817183", "0.8417272", "0.8382625", "0.8205345", "0.8199346", "0.8111954", "0.80837464", "0.80837464", "0.80280554", "0.7961126", "0.79338604", "0.78880876", "0.78574455", "0.78533214", "0.7...
0.85957706
1
Devuelve el error de PostgreSQL
Возвращает ошибку PostgreSQL
function error($err=''){ if(!$this->Id_Connection){ return @pg_last_error() ? @pg_last_error() : "[Error Desconocido en PostgreSQL $err]"; } return pg_last_error($this->Id_Connection); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function sql_error() {}", "public function sql_error() {}", "public function error() {\n\t\tif (!$this->connection) return @pg_last_error();\n\t\treturn pg_last_error($this->connection);\n\t}", "function error($err=''){\n\t\tif(!$this->id_connection){\n\t\t\treturn @pg_last_error() ? @pg_last_error()....
[ "0.73531544", "0.73531544", "0.7288166", "0.72836286", "0.72176635", "0.7020347", "0.69147813", "0.69147813", "0.67179304", "0.6681189", "0.6669687", "0.66553044", "0.66036683", "0.6591501", "0.6537958", "0.65156204", "0.6475716", "0.6425047", "0.6394626", "0.6387263", "0.633...
0.7555367
0
get uid from free form (numeric=uid, not numeric=uname)
получить uid из свободной формы (числовое значение=uid, не числовое=uname)
function pico_main_get_uid($text) { $user_handler = xoops_gethandler('user'); $text = trim($text); if (is_numeric($text)) { $uid = (int)$text; $user = &$user_handler->get($uid); if (is_object($user)) return $uid; else return 0; } else { $users = &$user_handler->getObjects(new Criteria('uname', addslashes...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ibm_uid ( $dn ) { return dn2uid($dn); }", "public function getUid ();", "public function getUid();", "public function getUid();", "public function getUid() {}", "public function getUid() {}", "public function getUid() {}", "public function getUid() {}", "public function getUid() {}", "pu...
[ "0.7405631", "0.72485334", "0.72333723", "0.72333723", "0.717965", "0.71787643", "0.71787465", "0.71787465", "0.71787465", "0.71787465", "0.7156548", "0.7154901", "0.71361", "0.7070714", "0.70663124", "0.7019013", "0.69726956", "0.69726956", "0.69726956", "0.69726956", "0.697...
0.7521116
0
nieuwsRecord Show end =============================== nieuwsRecord Close Event begin nieuwsRecord Close Event end =============================== =============================== Display Search Form
nieuwsRecord Show end =============================== nieuwsRecord Close Event begin nieuwsRecord Close Event end =============================== =============================== Display Search Form
function Search_show() { global $db; global $tpl; global $sForm; $sFormTitle = "Zoek nieuwsbericht"; $sActionFileName = "nieuwsRecord.php"; //------------------------------- // Search Open Event begin // Search Open Event end //------------------------------- $tpl->set_var("FormTitle", $sFormTitle); $tpl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Search_show()\n{\n global $db;\n global $styles;\n \n global $sForm;\n $sFormTitle = \"Busquedas\";\n $sActionFileName = \"busquedas.php\";\n $ss_DEPE_CODIDisplayValue = \"\";\n $ss_PRES_ESTADODisplayValue = \"\";\n $ss_PRES_REQUERIMIENTODisplayValue = \"\";\n\n//-------------------------------\n...
[ "0.6876658", "0.6675015", "0.6478433", "0.64549774", "0.63448644", "0.6244054", "0.6226991", "0.61923724", "0.61234266", "0.6089571", "0.60774523", "0.599879", "0.59696937", "0.5939342", "0.58711874", "0.58532995", "0.5848591", "0.58159244", "0.5813026", "0.5787876", "0.57857...
0.79037404
0
Test that a basic password grant request includes the correct URL, body, and headers.
Тестирование того, что базовый запрос с использованием метода password включает правильный URL, тело и заголовки.
public function testThatPasswordGrantLoginSendsBasicRequestCorrectly() { $api = new MockAuthenticationApi([new Response(200)]); $api->call()->login_with_default_directory( [ 'username' => 'the_username', 'password' => 'the_password', ] ); $this->assertEquals...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testBasicGET_withBasicAuth()\n\t{\n\t\t$Request = new Request(new URL('http://user:password@' . self::TESTHOST . '/basicAuth.php'), null, null, $this->_getDefaultOptions());\n\n\t\t// Return the body as StringValue\n\t\t$result = $Request->getResponseAs(new StringValue());\n\t\t$this->assertEquals(...
[ "0.7347253", "0.7123308", "0.6316685", "0.6279717", "0.623905", "0.61989164", "0.61368084", "0.60213315", "0.59557694", "0.59518856", "0.5940198", "0.58429337", "0.5795547", "0.5787152", "0.57747006", "0.5743868", "0.57437795", "0.57212627", "0.5719724", "0.57036954", "0.5677...
0.7438064
0
Test that a basic password grant realm request includes the realm.
Тестирование того, что базовый запрос на предоставление пароля включает в себя реалию.
public function testThatPasswordGrantRealmLoginSendsBasicRequestCorrectly() { $api = new MockAuthenticationApi([new Response(200)]); $api->call()->login( [ 'username' => 'the_username', 'password' => 'the_password', 'realm' => 'the_realm', ] ); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testThatPasswordGrantLoginSendsBasicRequestCorrectly()\n {\n $api = new MockAuthenticationApi([new Response(200)]);\n\n $api->call()->login_with_default_directory( [\n 'username' => 'the_username',\n 'password' => 'the_password',\n ] );\n\n $this...
[ "0.671164", "0.6096618", "0.5955326", "0.59086066", "0.5833622", "0.57763356", "0.5696539", "0.5654123", "0.56506705", "0.56161135", "0.5605059", "0.55696416", "0.5518738", "0.5500243", "0.54868346", "0.5486107", "0.54784894", "0.54784894", "0.54784894", "0.5453426", "0.54433...
0.7933779
0
Update rating data for a link in dB link table to keep in sync with the vote dB table contents
Обновите данные рейтинга для ссылки в таблице dB link, чтобы синхронизировать их с содержимым таблицы vote dB
function updaterating($sel_id) { global $xoopsDB; $sel_id = intval($sel_id); $sql = "SELECT COUNT(*), FORMAT(AVG(rating),4) FROM " . $xoopsDB->prefix("mylinks_votedata") . " WHERE lid={$sel_id}"; $voteResult = $xoopsDB->query($sql); if ($voteResult) { list($votesDB, $finalrating) = $xoopsDB-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function column_rating($link)\n {\n }", "public function updateRating(){\r\n\t\t$mysqli = \\Database::Instance()->get();\r\n\r\n\t\t$rating = $this->rating;\r\n\r\n\t\t$stmt = $mysqli->prepare(\"SELECT SUM(`stars`)/COUNT(`stars`) AS `rating` FROM `ratings` WHERE `hotspot` = ?\");\r\n\t\t$stm...
[ "0.66996855", "0.65686363", "0.61444896", "0.6058586", "0.60366863", "0.5834631", "0.579196", "0.57743675", "0.5676913", "0.5633409", "0.56330407", "0.5628512", "0.56056434", "0.55968565", "0.5582096", "0.5580343", "0.5555076", "0.55511564", "0.5520567", "0.54950875", "0.5468...
0.7008628
0
Get fake instance of CotacaoPasseio.
Получить фейковый экземпляр CotacaoPasseio.
public function fakeCotacaoPasseio($cotacaoPasseioFields = []) { return new CotacaoPasseio($this->fakeCotacaoPasseioData($cotacaoPasseioFields)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function makeCotacaoPasseio($cotacaoPasseioFields = [])\n {\n /** @var CotacaoPasseioRepository $cotacaoPasseioRepo */\n $cotacaoPasseioRepo = App::make(CotacaoPasseioRepository::class);\n $theme = $this->fakeCotacaoPasseioData($cotacaoPasseioFields);\n\n return $cotacaoPassei...
[ "0.5950073", "0.55428773", "0.54571646", "0.5429989", "0.5418552", "0.54044145", "0.53846395", "0.53651786", "0.53559947", "0.5329054", "0.52977717", "0.52623737", "0.5227452", "0.52256054", "0.5203055", "0.5202491", "0.5199816", "0.5187995", "0.5173304", "0.5156", "0.5144539...
0.75751793
0
sorting CMS Pages for subshop
сортировка CMS-страниц для подмагазина
public function testSortCmsPagesForSubShop() { $testConfig = $this->getTestConfig(); if (!$testConfig->isSubShop()) { $this->markTestSkipped('This test is for Subshops only'); } $iLastPage = 5; $iPreviousPageBeforeLastPage = $iLastPage - 1; $iLastPageLast...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function changeContentSortingAndCopyLivePage() {}", "function sort_admin_categories()\n {\n $this->outer_template = null;\n\n // Require admin login\n if(!(isset($_SESSION['active_user']) && $_SESSION['active_user']['type'] == 'admin'))\n die;\n\n if(!isset($_POST['So...
[ "0.66727453", "0.6244795", "0.6192933", "0.6181146", "0.60787064", "0.6042877", "0.59742874", "0.59605926", "0.591", "0.58847827", "0.58693755", "0.58465254", "0.58307624", "0.5791866", "0.57745457", "0.57287717", "0.5714513", "0.57002854", "0.5690347", "0.5688896", "0.568600...
0.74623966
0
Update users shop id for subshop testing
Обновление идентификатора магазина пользователей для тестирования подмагазинов
protected function updateUsersForSubshop() { $testConfig = $this->getTestConfig(); if ($testConfig->getShopEdition() === 'EE' && $testConfig->isSubShop()) { #User demodata for subshop $aUserParams = array("oxshopid" => $testConfig->getShopId()); $aUsers = oxDb::ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function updateShopInfo($shop = null) {\n // in case something weird happen, wrap in try catch\n try {\n\n $shopify = App::make('ShopifyAPI', [\n 'API_KEY' => env('API_KEY'),\n 'API_SECRET' => env('API_SECRET'),\n 'SHOP_DOMAIN' =...
[ "0.66603357", "0.64519495", "0.6371108", "0.62556696", "0.617522", "0.6151477", "0.6132431", "0.61088943", "0.6084651", "0.60810286", "0.60212874", "0.6001946", "0.5998141", "0.59958524", "0.59552747", "0.595188", "0.5951494", "0.5921146", "0.5903749", "0.58445585", "0.580285...
0.7033274
0
Update orders shop id for subshop testing
Обновление идентификатора магазина для заказов в целях тестирования подмагазинов
protected function updateOrdersForSubshop() { $testConfig = $this->getTestConfig(); if ($testConfig->getShopEdition() === 'EE' && $testConfig->isSubShop()) { # order demodata for subshop $aOrderParams = array("oxshopid" => $testConfig->getShopId()); $aOrders = oxD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function updateShopInfo($shop = null) {\n // in case something weird happen, wrap in try catch\n try {\n\n $shopify = App::make('ShopifyAPI', [\n 'API_KEY' => env('API_KEY'),\n 'API_SECRET' => env('API_SECRET'),\n 'SHOP_DOMAIN' =...
[ "0.63816524", "0.6178004", "0.6092488", "0.60393775", "0.6031567", "0.60206467", "0.6017119", "0.59552246", "0.5915286", "0.5912635", "0.5901752", "0.5893776", "0.5889259", "0.5865127", "0.58336025", "0.5830613", "0.57823557", "0.5739189", "0.5727695", "0.57164925", "0.571013...
0.73629427
0
Prepare categories for sorting test
Подготовить категории для сортировки тестов
protected function prepareSortCategories() { $queries = array(); $queries[] = "UPDATE oxcategories set OXSORT = (OXSORT+500)"; $queries[] = "UPDATE oxcategories set OXSORT = 1 WHERE oxid = 'testcategory0'"; $queries[] = "UPDATE oxcategories set OXSORT = 2 WHERE oxid = 'testcat3'"; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSortListCategoriesWhenPanigate()\n {\n $this->browse(function (Browser $browser) {\n $browser->loginAs($this->user)\n ->visit('admin/categories')\n ->resize(1200, 1600)\n ->click(\"#category-sort-name a\")\n ->clic...
[ "0.65835434", "0.65407467", "0.6280747", "0.6226804", "0.61216444", "0.6117576", "0.5991552", "0.59440833", "0.59046143", "0.5902608", "0.58038706", "0.5803809", "0.5803518", "0.5752348", "0.57400733", "0.57302046", "0.57034045", "0.5691701", "0.5663916", "0.56621", "0.562823...
0.71815705
0
Get VK group ID for current export ID
Получить ID группы VK для текущего ID экспорта
private function getVkGroupId() { $vk = Vk::getInstance(); return $vk->getGroupId($this->exportId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getGroupid()\n {\n return $this->groupid;\n }", "function getGroupId($group)\n {\n return '';\n }", "public function id(): string\n {\n return $this->groupId;\n }", "public function getGroupId()\n {\n return $this->__get(\"group_id\");\n }",...
[ "0.6752103", "0.6652466", "0.6461711", "0.64491755", "0.6381299", "0.6379082", "0.63553864", "0.6300444", "0.62703806", "0.62662685", "0.6263841", "0.6258752", "0.62358254", "0.6232136", "0.62100273", "0.61787593", "0.6175015", "0.6159585", "0.6159585", "0.612328", "0.6079954...
0.8126147
0
Delete tour date by its ID
Удалить дату тура по её ID
public function deleteById($id) { return $this->tourDateMapper->deleteByPk($id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteById($id)\n {\n return $this->tourDayMapper->deleteByPk($id);\n }", "public function destroy($id)\n {\n $date=Date::find($id);\n $date->delete();\n return redirect('admin/date')->with('success',trans('lang.delb')); }", "function delete(){\n\t\t$sql ...
[ "0.70940214", "0.7071091", "0.6966599", "0.6926136", "0.68732405", "0.6777312", "0.67758054", "0.6720933", "0.6699893", "0.66464657", "0.6629182", "0.6601529", "0.6561575", "0.65577954", "0.65549934", "0.6513873", "0.64454246", "0.64314896", "0.64303833", "0.6404914", "0.6363...
0.76915747
0
Fetch tour date by its ID
Получить дату тура по его ID
public function fetchById($id) { return $this->prepareResult($this->tourDateMapper->findByPk($id)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTour($id) {\n\t\t$action = new EventerraActionGetTours($this);\n\t\t$array = $action->request($id);\n\t\treturn array_shift($array);\n\t}", "public static function getTurnos($id){\n return DB::table('shifts')\n ->select('shifts.fechaInicio','shifts.fechaFin','shifts.horaInicio','...
[ "0.6534165", "0.60335845", "0.60189104", "0.59528774", "0.59414035", "0.59184164", "0.58955294", "0.57746", "0.57584196", "0.5734238", "0.57234114", "0.56730145", "0.56712866", "0.56480485", "0.5644063", "0.56261146", "0.557971", "0.5572074", "0.5552133", "0.5550434", "0.5539...
0.7512468
0
Set the entity manager
Установите менеджер сущностей
public function setEntityManager(EntityManager $em);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setEntityManager(EntityManagerInterface $manager);", "public function setEntityManager(EntitiyManager $em)\r\n {\r\n $this->em = $em;\r\n }", "public function setEntityManager(\\Doctrine\\ORM\\EntityManager $em);", "public function setEntityManager(EntityManager $em)\n {\n ...
[ "0.8188252", "0.78195244", "0.77994287", "0.7409565", "0.73101723", "0.7272479", "0.72069454", "0.72069454", "0.7131497", "0.7109457", "0.71032953", "0.7094871", "0.70359164", "0.6894396", "0.68793803", "0.6863703", "0.68302166", "0.6825145", "0.6815951", "0.6815597", "0.6764...
0.804376
1
217. Contains Duplicate Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it should return false if every element is distinct. Example 1: Input: [1,2,3,1] Output: true Example 2: Input: [1,2,3,4] Output: false Ex...
217. Содержит дубликаты Дан массив целых чисел, найдите, содержит ли массив дубликаты. Ваша функция должна возвращать true, если любое значение встречается хотя бы дважды в массиве, и false, если все элементы уникальны. Пример 1: Вход: [1,2,3,1] Выход: true Пример 2: Вход: [1,2,3,4] Выход: false Пример 3: Вход: [1,1,1,...
function containsDuplicate($nums) { if (count($nums) <= 0) return false; return count(array_unique($nums)) !== count($nums); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function checkDuplicates($array)\n{\n return count($array) !== count(array_unique($array));\n}", "function duplication(Array $array) {\n if (empty($array)) {\n return FALSE;\n }\n $tmp = $array;\n foreach ($array as $key => $val) {\n unset($tmp[ $key ]);\n if (in_array($val, $...
[ "0.81684804", "0.7767914", "0.757738", "0.6732799", "0.64435625", "0.6175448", "0.6076575", "0.5924208", "0.59017366", "0.58339906", "0.5817797", "0.579516", "0.5767117", "0.5734778", "0.5726145", "0.5701942", "0.56992704", "0.56068027", "0.5595049", "0.556102", "0.5503398", ...
0.80989164
1
Gets all bookmarks for a logged in user
Получает все закладки для авторизованного пользователя
public function index() { $categories = $this->CurrentUser->getCategories()->getAll('read'); $bookmarks = $this->Bookmarks->find( 'all', [ 'contain' => ['Entries' => ['Categories', 'Users']], 'conditions' => [ 'Bookmarks.use...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBookmarkedUsers()\n {\n return Auth::user()->bookmarkedUsers()->simplePaginate(10);\n }", "protected function _getBookmarks()\n {\n if (!is_null($this->_bookmarks)) {\n return;\n }\n\n // @TODO: paging\n if ($this->_noSearch) {\n ...
[ "0.7551556", "0.70162666", "0.7013802", "0.68264645", "0.673876", "0.66891056", "0.6640467", "0.66218126", "0.6617515", "0.63244325", "0.6301129", "0.6223006", "0.61799645", "0.61257154", "0.611309", "0.60999614", "0.5984371", "0.5976221", "0.5939407", "0.5888653", "0.5875550...
0.7464051
1
Add a new bookmark.
Добавить новый закладку.
public function add() { $data = [ 'user_id' => $this->CurrentUser->getId(), 'entry_id' => $this->request->getData('entry_id'), ]; $bookmark = $this->Bookmarks->createBookmark($data); if (!$bookmark) { throw new GenericApiException('The bookmark co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function bookmark()\r\n {\r\n \r\n }", "function createBookmark()\n\t{\n\t\tglobal $lng, $ilCtrl;\n\t\tif (!$this->tree->isInTree($this->id))\n\t\t{\n\t\t\t$this->ctrl->setParameter($this, 'bmf_id', '');\n\t\t\t$this->ctrl->redirect($this);\n\t\t}\n\n\t\t// check title and target...
[ "0.7025535", "0.68731624", "0.67810136", "0.6661775", "0.65271235", "0.6506813", "0.6453362", "0.6427527", "0.64164656", "0.6128036", "0.6117219", "0.5951748", "0.588115", "0.58740234", "0.58373797", "0.5832595", "0.581674", "0.58119315", "0.5807047", "0.57787496", "0.5769358...
0.7905053
0
Delete a single bookmark.
Удалить один закладку.
public function delete($id) { $id = (int)$id; $bookmark = $this->getBookmark($id); if (!$this->Bookmarks->delete($bookmark)) { throw new GenericApiException('The bookmark could not be deleted.'); } $this->autoRender = false; $this->response = $this->respo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function DeleteByBookmarkID( $bookmark_id ) {\n \n return $this->deleteAll(array('bookmark_id' => $bookmark_id), false );\n }", "function delBookmark($ar) {\n $p=new XParam($ar,array('oid'=>XUser::get_current_user_uid()));\n $oid=$p->get('oid','norequest');\n if(!($oid==XUser::get_current_...
[ "0.71799743", "0.70358837", "0.70027655", "0.69625014", "0.6648663", "0.6644066", "0.6378008", "0.6369815", "0.6076143", "0.5947108", "0.5677215", "0.56547433", "0.5653578", "0.5647538", "0.5615236", "0.560368", "0.560368", "0.560368", "0.560368", "0.560368", "0.560368", "0...
0.71144074
1
Clears the state of this checker. It means that the next call of checkDatabase() will do retest the database state.
Очищает состояние этого проверителя. Это означает, что следующий вызов checkDatabase() выполнит повторную проверку состояния базы данных.
public function clearCheckDatabase() { $this->dbCheck = null; // force the check even if the application is already installed // this is required to avoid collisions during the installation $this->installed = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static function reset()\n {\n self::$dbm = null;\n }", "public function clear()\n {\n $this->conn->flushDb();\n }", "function clear() {\n\n switch ($this->type) {\n case 'sqlite':\n case 'mysql':\n $query[0] = 'DROP TABLE `enrolled...
[ "0.6885493", "0.6828859", "0.663071", "0.65242976", "0.64540684", "0.64396745", "0.64209735", "0.6413913", "0.6412828", "0.6399743", "0.6396974", "0.63582736", "0.6304863", "0.6296396", "0.62908435", "0.6279248", "0.6265999", "0.6258562", "0.62431777", "0.6227938", "0.6222076...
0.7802102
0
Remove any expired log files from the log directory.
Удалите любые устаревшие файлы журналов из каталога журналов.
protected final function removeExpiredLogFiles($logName) { $logPath = $this->logDirPath . rtrim($logName, '/') . '/'; $expiryDate = new \DateTime(); $expiryDate->modify('-' . $this->fileLife . ' days'); foreach (scandir($logPath) as $logFile) { $date = \...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteExpiredLogs()\n {\n $client = $this->createLocalStorageDriver();\n\n $allFiles = $client->files();\n\n foreach ($allFiles as $file) {\n $fileDate = new DateTime(str_replace('.json', '', $file));\n\n $currentDate = new DateTime(date('d-m-Y'));\n\n ...
[ "0.793667", "0.7368913", "0.734923", "0.7235849", "0.71730685", "0.7128059", "0.71157265", "0.70828056", "0.70350504", "0.68962973", "0.68574584", "0.68176436", "0.6817164", "0.6796704", "0.67925", "0.6747527", "0.6681881", "0.66774255", "0.66755456", "0.65954256", "0.6576017...
0.7822765
1
Add last change information to form
Добавить информацию о последнем изменении в форму
protected function addFormLastChange(ilPropertyFormGUI $a_form, $a_mode = "edit") { global $lng; $sh = new ilFormSectionHeaderGUI(); $sh->setTitle($lng->txt("adn_last_change")); $a_form->addItem($sh); if($a_mode == "edit") { $comment = new ilTextAreaInputGUI($lng->txt("adn_last_change_comment"), "co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getLastchange() {\n\t\treturn $this->get(\"lastchange\");\n\t}", "public function updateForm(){\n $new = $this->model->getNew();\n $this->view->updateForm($new);\n }", "public function onSaveNewRecord()\n {\n $this->created = $this->updated = new \\DateTime();\n $this...
[ "0.62139565", "0.58799386", "0.5876367", "0.5874515", "0.58050513", "0.57931685", "0.57930994", "0.5781286", "0.57452327", "0.5680046", "0.56541085", "0.5614625", "0.56131804", "0.56087595", "0.55774945", "0.55674917", "0.5545998", "0.5543848", "0.55026513", "0.5493975", "0.5...
0.7177242
0
Search page, using google's.
Страница поиска, используя google's.
public function search() { $query = Purifier::clean(Input::get('q')); return Redirect::away('https://www.google.com/search?q=site:www.apcow.com' . $query, 301); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function searchGoogle(Request $request){\n\t\t$key = $request->input('key');\n\t\t$this->removeOldResults($key);\n\t\t$url = 'http://www.google.com/search?hl=en&tbo=d&site=&source=hp&q='.urlencode($key).'&oq='.urlencode($key);\n\t\t$html = file_get_contents($url);\n\t\tpreg_match_all('/<h3 class=\\\"r\\\">...
[ "0.7545125", "0.7200083", "0.71882004", "0.71882004", "0.71776867", "0.7106111", "0.7021866", "0.69993687", "0.69315505", "0.6867344", "0.672539", "0.6690804", "0.6656772", "0.6656772", "0.66313666", "0.6621898", "0.6527567", "0.6508229", "0.6493661", "0.6480246", "0.64396214...
0.75804913
0
//////////////////////////////////////////////////// Tests for setting markers within nested subparts. ////////////////////////////////////////////////////
//////////////////////////////////////////////////// Тесты для установки маркеров внутри вложенных подчастей. ////////////////////////////////////////////////////
public function setMarkerInSubpartWithinCompleteTemplate() { $this->subject->processTemplate( 'Some text. ' .'<!-- ###MY_SUBPART### -->' .'This is some template code. ###MARKER### More text.' .'<!-- ###MY_SUBPART### -->' .' Even more text.' ); $this->subject->setMarker('marker', 'foo'); $this...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function unclosedMarkersAreIgnored() {\n\t\t$this->subject->processTemplate(\n\t\t\t'<!-- ###MY_SUBPART### -->'\n\t\t\t\t.'###MY_MARKER_1### '\n\t\t\t\t.'###MY_MARKER_2 '\n\t\t\t\t.'###MY_MARKER_3# '\n\t\t\t\t.'###MY_MARKER_4## '\n\t\t\t\t.'###MY_MARKER_5###'\n\t\t\t\t.'<!-- ###MY_SUBPART### -->'\n\t\t);\n\...
[ "0.627347", "0.61835164", "0.59549445", "0.5630402", "0.55202043", "0.5408739", "0.52320486", "0.5218861", "0.52140176", "0.5182476", "0.51763785", "0.5096692", "0.5046719", "0.5002129", "0.49813914", "0.49761632", "0.49622816", "0.49499416", "0.494895", "0.49223876", "0.4901...
0.72850853
0
///////////////////////////////////////////////// Test concerning unclosed markers and subparts. /////////////////////////////////////////////////
///////////////////////////////////////////////// Тест, связанный с незакрытыми маркерами и подчастями. /////////////////////////////////////////////////
public function unclosedMarkersAreIgnored() { $this->subject->processTemplate( '<!-- ###MY_SUBPART### -->' .'###MY_MARKER_1### ' .'###MY_MARKER_2 ' .'###MY_MARKER_3# ' .'###MY_MARKER_4## ' .'###MY_MARKER_5###' .'<!-- ###MY_SUBPART### -->' ); $this->subject->setMarker('my_marker_1', 'tes...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testBadlyClosedDocblock() {\n\t\t$info = Inspector::info(__METHOD__ . '()');\n\t\t$description = 'This docblock has an extra * in the closing element.';\n\t\t$this->assertEqual($description, $info['description']);\n\t\t$this->assertEqual('', $info['text']);\n\t}", "public function setMarkerInSubp...
[ "0.59710157", "0.58252966", "0.582295", "0.57226443", "0.56587344", "0.56401426", "0.5629863", "0.55762213", "0.5564835", "0.54805666", "0.5479508", "0.54646087", "0.5454384", "0.54504806", "0.54291534", "0.5419999", "0.5368489", "0.5363486", "0.5341528", "0.5341339", "0.5329...
0.7863828
0
css2xpath($selector) Converts CSS3 path to Xpath
css2xpath($selector) Преобразует CSS3-селектор в XPath
public static function css2xpath($selector) { $selector_chunks = preg_split('/(?<!\\\\)\s+/',$selector); $xpath_parts = array(); foreach ($selector_chunks as $selector_chunk) { $selector_chunk = str_replace(',',' | //',$selector_chunk); # .class or #id (without tagname) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function selectorToXPath($selector) {\r\n\t\t// a:link:link\r\n\t\t// a:visited\r\n\t\t// a:link:hover\r\n\t\t// a:active\r\n\t\t// a:visited:hover\r\n\t\t// They are put into the style attribute.\r\n\t\t$namespace = ReTidy::get_html_namespace();\r\n\t\t$selector = \" \" . $selector;\r\n\t\t$XPath = $selector;\r\n...
[ "0.74266905", "0.74226385", "0.68985033", "0.6667846", "0.6662475", "0.6352781", "0.6183589", "0.61137116", "0.60951877", "0.60470897", "0.5841899", "0.57539165", "0.5666317", "0.5632983", "0.5602261", "0.5513361", "0.5502804", "0.5453507", "0.5437837", "0.53014475", "0.52647...
0.84678847
0
Sets a new domesticUltimateDunsNumber
Устанавливает новый внутренний номер Duns
public function setDomesticUltimateDunsNumber($domesticUltimateDunsNumber) { $this->domesticUltimateDunsNumber = $domesticUltimateDunsNumber; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDunsNumber($dunsNumber)\n {\n $this->dunsNumber = $dunsNumber;\n return $this;\n }", "public function setGlobalUltimateDunsNumber($globalUltimateDunsNumber)\n {\n $this->globalUltimateDunsNumber = $globalUltimateDunsNumber;\n return $this;\n }", "funct...
[ "0.61099356", "0.57241136", "0.56271994", "0.54830766", "0.54411143", "0.51501435", "0.51143587", "0.51108915", "0.5086929", "0.5080621", "0.5062204", "0.5030546", "0.5007512", "0.5007512", "0.5007512", "0.5007512", "0.498138", "0.4979909", "0.49642247", "0.49361596", "0.4924...
0.7162594
0
Sets a new employeeQuantityGrowthRate
Устанавливает новый показатель роста числа сотрудников
public function setEmployeeQuantityGrowthRate($employeeQuantityGrowthRate) { $this->employeeQuantityGrowthRate = $employeeQuantityGrowthRate; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setGrowthFactor($var)\n {\n GPBUtil::checkDouble($var);\n $this->growth_factor = $var;\n\n return $this;\n }", "public function setFabricQuantity($quantity) {\r\n \r\n $this->quantity = intVal(100*$quantity);\r\n }", "public function setQuantity(floa...
[ "0.6297658", "0.6132199", "0.5814387", "0.5769167", "0.56038874", "0.5578492", "0.5560415", "0.5554896", "0.5433272", "0.54265434", "0.5395794", "0.53599846", "0.5333364", "0.5298313", "0.5250258", "0.51970005", "0.5191773", "0.51727515", "0.51112455", "0.51033753", "0.509083...
0.7273985
0
Sets a new employeesHere
Устанавливает новый employeesHere
public function setEmployeesHere($employeesHere) { $this->employeesHere = $employeesHere; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function set_employee($emp)\n\t\t{\n\t\t\t$this->employee = $emp;\n\t\t}", "public function __construct($employees)\n {\n $this->employees = $employees;\n }", "function setEmployeeID($employeeid) {\n $this->employeeid = $employeeid;\n }", "public function setEmployees(\n array $employe...
[ "0.73156244", "0.6631188", "0.66085476", "0.6478525", "0.612917", "0.6079467", "0.60342115", "0.6003262", "0.59739184", "0.5965113", "0.5963305", "0.5938357", "0.5930238", "0.58929616", "0.5873894", "0.58230543", "0.574359", "0.5714492", "0.57076824", "0.5685439", "0.5664081"...
0.760559
0
Sets a new employeesTotal
Устанавливает новый employeesTotal
public function setEmployeesTotal($employeesTotal) { $this->employeesTotal = $employeesTotal; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setEmployeesHere($employeesHere)\n {\n $this->employeesHere = $employeesHere;\n return $this;\n }", "function setTotalRecords($total)\n\t{\n\t\t$this->total_records = 0+$total;\n\t}", "public function setEmployees(\n array $employees)\n {\n $this->_employees...
[ "0.6248196", "0.62285596", "0.61891365", "0.5943102", "0.5894865", "0.5850725", "0.58332914", "0.573898", "0.57365376", "0.56275165", "0.55067617", "0.54899895", "0.5465098", "0.5452389", "0.5416643", "0.53879315", "0.5354686", "0.5329703", "0.53176165", "0.53136927", "0.5310...
0.7830302
0
Sets a new employeesTotalReliability
Устанавливает новое значение employeesTotalReliability
public function setEmployeesTotalReliability($employeesTotalReliability) { $this->employeesTotalReliability = $employeesTotalReliability; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setEmployeesTotal($employeesTotal)\n {\n $this->employeesTotal = $employeesTotal;\n return $this;\n }", "public function setEmployeesHereReliability($employeesHereReliability)\n {\n $this->employeesHereReliability = $employeesHereReliability;\n return $this;\n...
[ "0.58027726", "0.5666757", "0.5296674", "0.51960623", "0.5140978", "0.5033645", "0.49048874", "0.4903848", "0.4897857", "0.48787817", "0.48410475", "0.48353988", "0.48330182", "0.48097277", "0.47699568", "0.4768204", "0.4757969", "0.47525826", "0.4739499", "0.4703561", "0.467...
0.7268968
0
Sets a new familyMembers
Устанавливает новую familyMembers
public function setFamilyMembers($familyMembers) { $this->familyMembers = $familyMembers; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setFamily($family)\n {\n $this->family = $family;\n $this->setAttributes(\"Family\");\n }", "public function setFamily($family)\n {\n $this->family = $family;\n\n return $this;\n }", "public function set_members($member...
[ "0.6853716", "0.63940704", "0.63541275", "0.62802756", "0.58636063", "0.5747306", "0.5747306", "0.5703787", "0.5680705", "0.5670194", "0.56338465", "0.5591301", "0.5560945", "0.5559398", "0.54067296", "0.5403781", "0.53674644", "0.5307276", "0.53035194", "0.52720034", "0.5256...
0.742146
0
Sets a new fifthNaics
Устанавливает новый пятый Naics
public function setFifthNaics($fifthNaics) { $this->fifthNaics = $fifthNaics; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setFifthSic($fifthSic)\n {\n $this->fifthSic = $fifthSic;\n return $this;\n }", "public function setFifthNaicsDesc($fifthNaicsDesc)\n {\n $this->fifthNaicsDesc = $fifthNaicsDesc;\n return $this;\n }", "public function setSixthNaics($sixthNaics)\n {\n ...
[ "0.7072344", "0.6657707", "0.61241496", "0.61062104", "0.60991466", "0.57985663", "0.5768453", "0.5745975", "0.5595935", "0.5536045", "0.54945654", "0.54802984", "0.53268033", "0.53219426", "0.5284085", "0.52777857", "0.5233742", "0.52211356", "0.5211453", "0.5116382", "0.511...
0.7908704
0
Sets a new fifthNaicsDesc
Устанавливает новый fifthNaicsDesc
public function setFifthNaicsDesc($fifthNaicsDesc) { $this->fifthNaicsDesc = $fifthNaicsDesc; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setFifthSicDesc($fifthSicDesc)\n {\n $this->fifthSicDesc = $fifthSicDesc;\n return $this;\n }", "public function setSixthNaicsDesc($sixthNaicsDesc)\n {\n $this->sixthNaicsDesc = $sixthNaicsDesc;\n return $this;\n }", "public function setFifthSic8Desc($fif...
[ "0.73764914", "0.6702094", "0.66789144", "0.6640715", "0.60209084", "0.5982977", "0.5975017", "0.5741076", "0.5607308", "0.53705376", "0.5342973", "0.5332838", "0.5245019", "0.5245019", "0.51958776", "0.51637685", "0.51552844", "0.5155258", "0.5135599", "0.5097008", "0.508272...
0.81281793
0
Sets a new fifthSic
Устанавливает новый fifthSic
public function setFifthSic($fifthSic) { $this->fifthSic = $fifthSic; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setFifthSic8($fifthSic8)\n {\n $this->fifthSic8 = $fifthSic8;\n return $this;\n }", "public function setFifthSicDesc($fifthSicDesc)\n {\n $this->fifthSicDesc = $fifthSicDesc;\n return $this;\n }", "public function setFifthNaics($fifthNaics)\n {\n ...
[ "0.73430836", "0.6915982", "0.6720921", "0.6709754", "0.6329501", "0.6302793", "0.6216534", "0.5994083", "0.59339005", "0.5924614", "0.57349813", "0.56551975", "0.559661", "0.5569674", "0.55293363", "0.5524361", "0.54718345", "0.53973776", "0.53414816", "0.53381723", "0.53353...
0.82861274
0
Sets a new fifthSic8
Устанавливает новый fifthSic8
public function setFifthSic8($fifthSic8) { $this->fifthSic8 = $fifthSic8; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setSixthSic8($sixthSic8)\n {\n $this->sixthSic8 = $sixthSic8;\n return $this;\n }", "public function setFifthSic($fifthSic)\n {\n $this->fifthSic = $fifthSic;\n return $this;\n }", "public function setFifthSic8Desc($fifthSic8Desc)\n {\n $this->f...
[ "0.7295205", "0.7182371", "0.708307", "0.6650156", "0.6473459", "0.6362527", "0.63121736", "0.6189565", "0.6136092", "0.5780478", "0.5757822", "0.57366264", "0.56330216", "0.5629809", "0.5527323", "0.5439797", "0.54195744", "0.5272705", "0.5231051", "0.5168087", "0.51617354",...
0.81387854
0
Sets a new fifthSic8Desc
Устанавливает новый fifthSic8Desc
public function setFifthSic8Desc($fifthSic8Desc) { $this->fifthSic8Desc = $fifthSic8Desc; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setFifthSicDesc($fifthSicDesc)\n {\n $this->fifthSicDesc = $fifthSicDesc;\n return $this;\n }", "public function setSixthSic8Desc($sixthSic8Desc)\n {\n $this->sixthSic8Desc = $sixthSic8Desc;\n return $this;\n }", "public function setFifthSic8($fifthSic8)\...
[ "0.77497447", "0.7481055", "0.69494927", "0.6829356", "0.67546207", "0.6742411", "0.65059537", "0.6449405", "0.6247012", "0.6125215", "0.60081375", "0.59951514", "0.58554083", "0.5666159", "0.5519414", "0.54963285", "0.5472717", "0.54054064", "0.54054064", "0.5309048", "0.524...
0.8241631
0
Sets a new fifthSicDesc
Устанавливает новый fifthSicDesc
public function setFifthSicDesc($fifthSicDesc) { $this->fifthSicDesc = $fifthSicDesc; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setFifthSic8Desc($fifthSic8Desc)\n {\n $this->fifthSic8Desc = $fifthSic8Desc;\n return $this;\n }", "public function setSixthSicDesc($sixthSicDesc)\n {\n $this->sixthSicDesc = $sixthSicDesc;\n return $this;\n }", "public function setFifthNaicsDesc($fifthN...
[ "0.75998384", "0.7151828", "0.71025014", "0.68803024", "0.67352384", "0.6257816", "0.62398094", "0.594407", "0.5825581", "0.5809196", "0.57968587", "0.5791428", "0.5725691", "0.5725691", "0.5651407", "0.55465627", "0.54861176", "0.5427071", "0.5427071", "0.5427071", "0.542707...
0.8359432
0
Sets a new fourthNaicsDesc
Устанавливает новый четвертыйNaicsDesc
public function setFourthNaicsDesc($fourthNaicsDesc) { $this->fourthNaicsDesc = $fourthNaicsDesc; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setSixthNaicsDesc($sixthNaicsDesc)\n {\n $this->sixthNaicsDesc = $sixthNaicsDesc;\n return $this;\n }", "public function setFourthSicDesc($fourthSicDesc)\n {\n $this->fourthSicDesc = $fourthSicDesc;\n return $this;\n }", "public function setThirdNaicsDesc...
[ "0.6351575", "0.6288533", "0.62646127", "0.62078846", "0.5772242", "0.57423854", "0.55533385", "0.5524862", "0.5494123", "0.53811985", "0.53319705", "0.5309728", "0.5289308", "0.5278834", "0.52661616", "0.5257542", "0.5214281", "0.51867723", "0.5171839", "0.5154034", "0.51504...
0.71586466
0
Sets a new fourthSic
Устанавливает новый fourthSic
public function setFourthSic($fourthSic) { $this->fourthSic = $fourthSic; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setThirdSic($thirdSic)\n {\n $this->thirdSic = $thirdSic;\n return $this;\n }", "public function setSixthSic($sixthSic)\n {\n $this->sixthSic = $sixthSic;\n return $this;\n }", "public function setFourthSic8($fourthSic8)\n {\n $this->fourthSic8 ...
[ "0.6632892", "0.65234786", "0.63682866", "0.6176657", "0.6054718", "0.6042276", "0.59138215", "0.580039", "0.57729125", "0.5578388", "0.55073416", "0.5466927", "0.5430332", "0.53726166", "0.5222576", "0.52031696", "0.51842564", "0.5143858", "0.5120293", "0.5017959", "0.499775...
0.71813464
0
Sets a new fourthSic8
Устанавливает новый fourthSic8
public function setFourthSic8($fourthSic8) { $this->fourthSic8 = $fourthSic8; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setThirdSic8($thirdSic8)\n {\n $this->thirdSic8 = $thirdSic8;\n return $this;\n }", "public function setSixthSic8($sixthSic8)\n {\n $this->sixthSic8 = $sixthSic8;\n return $this;\n }", "public function setFifthSic8($fifthSic8)\n {\n $this->fifth...
[ "0.72546524", "0.6964582", "0.6783435", "0.6770247", "0.65664047", "0.6527419", "0.6376574", "0.6357276", "0.60089594", "0.5927711", "0.5821346", "0.57376987", "0.5624043", "0.53704417", "0.53633374", "0.5298027", "0.5229009", "0.5222332", "0.49222884", "0.4918016", "0.491576...
0.7440503
0
Sets a new fourthSic8Desc
Устанавливает новый fourthSic8Desc
public function setFourthSic8Desc($fourthSic8Desc) { $this->fourthSic8Desc = $fourthSic8Desc; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setThirdSic8Desc($thirdSic8Desc)\n {\n $this->thirdSic8Desc = $thirdSic8Desc;\n return $this;\n }", "public function setSixthSic8Desc($sixthSic8Desc)\n {\n $this->sixthSic8Desc = $sixthSic8Desc;\n return $this;\n }", "public function setSecondSic8Desc($se...
[ "0.7111609", "0.7008395", "0.6910018", "0.6866321", "0.6767146", "0.67299205", "0.64481676", "0.63044566", "0.6130851", "0.60108674", "0.5966316", "0.5799697", "0.5784841", "0.57662493", "0.57026446", "0.5667262", "0.54446137", "0.5432325", "0.5401098", "0.53833646", "0.53670...
0.7501261
0
Sets a new fourthSicDesc
Устанавливает новый fourthSicDesc
public function setFourthSicDesc($fourthSicDesc) { $this->fourthSicDesc = $fourthSicDesc; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setSixthSicDesc($sixthSicDesc)\n {\n $this->sixthSicDesc = $sixthSicDesc;\n return $this;\n }", "public function setThirdSicDesc($thirdSicDesc)\n {\n $this->thirdSicDesc = $thirdSicDesc;\n return $this;\n }", "public function setFourthSic8Desc($fourthSic8...
[ "0.68642014", "0.67334676", "0.6648096", "0.64756393", "0.6424476", "0.6421384", "0.6305556", "0.61500293", "0.6077702", "0.6061861", "0.6006181", "0.5993023", "0.59864426", "0.59763366", "0.59227824", "0.59227824", "0.5906834", "0.58542776", "0.5852486", "0.5840326", "0.5714...
0.729234
0
Sets a new geocodeAccuracyStandard
Устанавливает новый стандарт точности геокодирования
public function setGeocodeAccuracyStandard($geocodeAccuracyStandard) { $this->geocodeAccuracyStandard = $geocodeAccuracyStandard; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGeocodeInconclusiveMinAccuracy() {\n\t\t$address = 'Bibersfeld';\n\t\tif (!$this->isDebug()) {\n\t\t\t$this->_getMock('inconclusive');\n\t\t}\n\n\t\t$this->Geocode->setOptions(['allow_inconclusive' => true, 'min_accuracy' => GeocodeLib::ACC_STREET]);\n\t\t$is = $this->Geocode->geocode($address)...
[ "0.5787642", "0.5601323", "0.52093375", "0.49107534", "0.47408104", "0.4732211", "0.47148132", "0.45578662", "0.45342436", "0.44424582", "0.44306377", "0.43999612", "0.43494883", "0.4332798", "0.43007302", "0.4297206", "0.429374", "0.42757007", "0.42502117", "0.41656476", "0....
0.80895287
0
Sets a new globalUltimateBusinessName
Устанавливает новый globalUltimateBusinessName
public function setGlobalUltimateBusinessName($globalUltimateBusinessName) { $this->globalUltimateBusinessName = $globalUltimateBusinessName; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBusinessName()\n {\n return isset($this->business_name) ? $this->business_name : '';\n }", "public function getBusinessName()\n {\n return $this->business_name;\n }", "public function setBusinessName($var)\n {\n GPBUtil::checkString($var, True);\n $...
[ "0.58419776", "0.58406883", "0.576774", "0.576774", "0.5730644", "0.5730154", "0.5655918", "0.5638156", "0.5582688", "0.55783707", "0.5577855", "0.5570075", "0.5569447", "0.5546148", "0.5528452", "0.5518947", "0.5476979", "0.54711187", "0.5449506", "0.54465884", "0.5443234", ...
0.70719266
0
Sets a new globalUltimateDunsNumber
Устанавливает новый глобальный номер Duns
public function setGlobalUltimateDunsNumber($globalUltimateDunsNumber) { $this->globalUltimateDunsNumber = $globalUltimateDunsNumber; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function change_one_global() {\n $var_name = $GLOBALS['test_var'];\n $GLOBALS[ $var_name ] = rand_str();\n }", "function setNiveau($niveau) { $niveau = (int) $niveau;\r\n if ($niveau >= 1 && $niveau <= 100) {\r\n $this->_niveau = $niveau;\r\n }\r\n }", ...
[ "0.5413832", "0.53904796", "0.5268046", "0.52346945", "0.5106481", "0.49497768", "0.49487984", "0.49075592", "0.49013633", "0.48805824", "0.48467678", "0.48330444", "0.47675517", "0.476321", "0.47481173", "0.47237012", "0.46460533", "0.4643144", "0.46347356", "0.45796", "0.45...
0.71074766
0
Sets a new globalUltimateTotalEmployees
Устанавливает новый globalUltimateTotalEmployees
public function setGlobalUltimateTotalEmployees($globalUltimateTotalEmployees) { $this->globalUltimateTotalEmployees = $globalUltimateTotalEmployees; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setEmployeesTotal($employeesTotal)\n {\n $this->employeesTotal = $employeesTotal;\n return $this;\n }", "public function updateTotal() {\n //get the scans for this user\n $scans = $this->scans();\n //create running total\n $newTotal = 0; \n //for each scan, add ...
[ "0.59326893", "0.555335", "0.53025955", "0.5290183", "0.5285801", "0.52813834", "0.5246174", "0.5177037", "0.51143974", "0.51016504", "0.5097479", "0.5075177", "0.5048174", "0.50163287", "0.49455848", "0.4941482", "0.49377537", "0.4905552", "0.48850647", "0.48433194", "0.4830...
0.751006
0
Sets a new importExportAgent
Устанавливает новый importExportAgent
public function setImportExportAgent($importExportAgent) { $this->importExportAgent = $importExportAgent; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAgents() {\n foreach ($this->rAgents as $value) {\n $this->agent[$value->id] = $value->id;\n }\n }", "public function set_import( $name, $value ) {\n\t\t$this->import[ $name ] = $value;\n\t}", "public function __construct(Importer $importer)\n\t{\n\t\t$this->impor...
[ "0.530025", "0.52227044", "0.5165676", "0.50932163", "0.5016587", "0.5015947", "0.49137574", "0.4824665", "0.48155686", "0.47993395", "0.47931135", "0.4746262", "0.472205", "0.46955675", "0.46933955", "0.46888554", "0.4671369", "0.46438667", "0.4637615", "0.4630042", "0.46300...
0.73111415
0
Sets a new includedInSnP500
Устанавливает новый includedInSnP500
public function setIncludedInSnP500($includedInSnP500) { $this->includedInSnP500 = $includedInSnP500; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setIncludedInPrice($includedInPrice);", "public function setIncludeShippingPriceInCod($includeShippingPriceInCod) {\n $this->_includeShippingPriceInCod = $includeShippingPriceInCod;\n }", "public function setAttributes_price_base_included( $attributes_price_base_included ) {\n\t\t$thi...
[ "0.5460803", "0.525407", "0.48889726", "0.48202074", "0.4733911", "0.4728147", "0.4702255", "0.4591631", "0.45489767", "0.4543022", "0.4500004", "0.44964245", "0.44836423", "0.4481802", "0.4476791", "0.44694605", "0.44627056", "0.44434237", "0.44429466", "0.4426166", "0.44004...
0.7848915
0
Sets a new lastReferencedDate
Устанавливает новый lastReferencedDate
public function setLastReferencedDate(\DateTime $lastReferencedDate) { $this->lastReferencedDate = $lastReferencedDate; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setLastRefreshedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('lastRefreshedDateTime', $value);\n }", "public function setLastRefreshedDateTime($val)\n {\n $this->_propDict[\"lastRefreshedDateTime\"] = $val;\n return $this;\n }", "public functi...
[ "0.63798314", "0.62426823", "0.6070995", "0.6036109", "0.6036013", "0.6022414", "0.585384", "0.58270043", "0.582031", "0.5726068", "0.5726068", "0.5677556", "0.56161076", "0.558817", "0.55291426", "0.5515042", "0.5495216", "0.5489163", "0.5481605", "0.5480663", "0.5472297", ...
0.7835988
0
Sets a new lastViewedDate
Устанавливает новую дату последнего просмотра
public function setLastViewedDate(\DateTime $lastViewedDate) { $this->lastViewedDate = $lastViewedDate; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setUpdateViewedDate($value)\n {\n return $this->set('UpdateViewedDate', $value);\n }", "public function setLastAccessDate(\\DateTime $lastAccessDate);", "public function setLastActivityDate(\\DateTime $date): void\n {\n $this->lastActivityDate = $date;\n }", "public ...
[ "0.67534333", "0.6751384", "0.63611466", "0.6353215", "0.6327411", "0.628118", "0.628118", "0.6239929", "0.6163213", "0.6163213", "0.6103101", "0.6095885", "0.60724705", "0.6039714", "0.6018367", "0.60175294", "0.5967745", "0.5967745", "0.59550303", "0.59531057", "0.5928983",...
0.73358107
0
Sets a new mailingState
Устанавливает новый mailingState
public function setMailingState($mailingState) { $this->mailingState = $mailingState; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setStateB($stateB) {\r\r\n\t\t$this->stateB = $stateB;\r\r\n\t}", "public function setState($state){\n $this->state=$state;\n }", "public function setState(MQStateKey $state)\n {\n $this->state = $state->getState();\n }", "public function setState($state) {}", "public function set...
[ "0.62931085", "0.605103", "0.59859127", "0.59401816", "0.5939618", "0.593006", "0.5816751", "0.57921416", "0.5761487", "0.57596356", "0.57596356", "0.5742618", "0.5719706", "0.57158333", "0.57158107", "0.5686972", "0.56240284", "0.55999583", "0.5587755", "0.55717003", "0.5557...
0.7064494
0