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
Creates a file input and returns it
Создает файловый ввод и возвращает его
public static function file():InputFile { return new InputFile(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function InputFile() {}", "public function generateFromFile($input, $output);", "function createNewFile() {\n $newFile = new File();\n\n echo \"enter the files name: \";\n $newFile->setName(getUserInput());\n\n echo \"enter the files size in KB: \"; // might just automate this, not...
[ "0.7734648", "0.7153852", "0.6895533", "0.6787566", "0.675967", "0.6748276", "0.6698464", "0.6655724", "0.6384057", "0.6318502", "0.63016826", "0.62851995", "0.62385833", "0.61383045", "0.61194694", "0.6071302", "0.6068053", "0.6030106", "0.6027732", "0.59828824", "0.59828824...
0.72025114
1
Creates a file drop input and returns it
Создает элемент ввода для загрузки файла и возвращает его
public static function fileDrop():InputFileDrop { return new InputFileDrop(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function InputFile() {}", "function createNewFile() {\n $newFile = new File();\n\n echo \"enter the files name: \";\n $newFile->setName(getUserInput());\n\n echo \"enter the files size in KB: \"; // might just automate this, not sure why the user should have to enter it.\n $newFil...
[ "0.6083129", "0.59647375", "0.55636454", "0.55634576", "0.5550211", "0.5528165", "0.5518961", "0.5368626", "0.53452724", "0.53279644", "0.52960235", "0.52898043", "0.5281817", "0.5278459", "0.52633214", "0.5261543", "0.51619357", "0.51188654", "0.5071116", "0.50616443", "0.50...
0.7714245
0
Creates a info input and returns it
Создаёт информационный вход и возвращает его
public static function info():InputInfo { return new InputInfo(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function createInfo()\n {\n $ret = new static();\n $ret->type = \"info\";\n return $ret;\n }", "abstract function info();", "abstract public function get_info();", "private function _cookData($info) {\n\t\tif(!$info['name']) $this->output(-1, '名称不能为空.');\n\t\treturn $...
[ "0.7180369", "0.67989296", "0.66793483", "0.651124", "0.64563304", "0.63352424", "0.63352424", "0.63352424", "0.63352424", "0.63352424", "0.6330947", "0.6323051", "0.6299103", "0.61861765", "0.61861765", "0.61861765", "0.61814713", "0.6174987", "0.6148276", "0.6148276", "0.61...
0.7600216
0
Creates a new password input and returns it
Создаёт новый элемент ввода пароля и возвращает его
public static function newPassword():InputNewPassword { return new InputNewPassword(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function password():InputPassword {\r\n\t\treturn new InputPassword();\r\n\t}", "function _prep_password($input) {\n if (isset($input['params']['password'])) {\n //hash baby hash!\n $input['params']['password'] = $this->_hash_string($input['params']['password']);\n ...
[ "0.8012603", "0.7271479", "0.72144544", "0.7199435", "0.71948016", "0.71851295", "0.71850014", "0.71214813", "0.7062904", "0.70578426", "0.70508283", "0.704926", "0.70164096", "0.70164096", "0.70164096", "0.70164096", "0.70164096", "0.70164096", "0.70164096", "0.69780856", "0...
0.82542914
0
Creates a number input and returns it
Создает элемент ввода числа и возвращает его
public static function number():InputNumber { return new InputNumber(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getNumber();", "public function getNumber();", "private function createNumber(): int\n {\n return intval(\n sprintf('%s01', date('Ymd'))\n );\n }", "public function getNumber() {}", "public function number()\n\t{\n\t\t$number = StaticFactory::factory('number');\n\n\t...
[ "0.68093944", "0.65530044", "0.64564997", "0.6420691", "0.6357557", "0.6343621", "0.6226284", "0.6116841", "0.6090122", "0.6071479", "0.60355043", "0.601471", "0.5967734", "0.59345335", "0.5923238", "0.5905225", "0.5887", "0.5872044", "0.5850427", "0.58081776", "0.5799196", ...
0.780644
0
Creates a password input and returns it
Создает поле ввода пароля и возвращает его
public static function password():InputPassword { return new InputPassword(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getPassword();", "public static function newPassword():InputNewPassword {\r\n\t\treturn new InputNewPassword();\r\n\t}", "public function password();", "public function getPassword();", "public function getPassword();", "public function getPassword();", "public function getPassword();", "pub...
[ "0.7531841", "0.75253224", "0.7481323", "0.7333046", "0.7333046", "0.7333046", "0.7333046", "0.7333046", "0.7333046", "0.7333046", "0.73161775", "0.727701", "0.7204073", "0.7138846", "0.71347386", "0.7130744", "0.7130744", "0.70931774", "0.70493644", "0.7048564", "0.7046581",...
0.79602116
0
Creates a phone input and returns it
Создает элемент ввода телефона и возвращает его
public static function phone():InputPhone { return new InputPhone(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_phone();", "public function getPhoneNumber();", "public static function telephone($name, $value = null, $attributes = array()) {\n\t\treturn static::input('tel', $name, $value, $attributes);\n\t}", "protected function pf_phone()\r\n {\r\n #verefication phone string\r\n\r\n ...
[ "0.6786622", "0.6547798", "0.65277004", "0.6444888", "0.6370992", "0.63634473", "0.6336509", "0.62858665", "0.6255488", "0.61890054", "0.61877054", "0.61789966", "0.60702014", "0.60628307", "0.6058775", "0.6037846", "0.6037846", "0.60358286", "0.6028648", "0.60024583", "0.600...
0.7979317
0
Creates a search input and returns it
Создает поле ввода для поиска и возвращает его
public static function search():InputSearch { return new InputSearch(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createSearch($query);", "function GetSearchInput()\n{\n // Initial values for gategory, title, genre and poster.\n $aInput = array(\"OK\"=>null, \"CAT\"=>null, \"TITLE\"=>null, \"GENRE\"=>null, \"POSTER\"=>null, \"MODE\"=>null, \"ID\"=>0, \n \"CHECK\"=>false, \"PREV\"=>nu...
[ "0.71809274", "0.6839906", "0.673997", "0.6691418", "0.66717213", "0.6658217", "0.6599739", "0.6599739", "0.6500572", "0.64490706", "0.6425417", "0.64192414", "0.6363791", "0.6337292", "0.63231236", "0.63102424", "0.62826186", "0.6281862", "0.6266759", "0.6189452", "0.6163454...
0.7881337
0
Creates a select input and returns it
Создаёт выборку и возвращает её
public static function select():InputSelect { return new InputSelect(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function dbSelect(InputForSelect $input);", "function acf_get_select_input($attrs = array()) {}", "function make()\n {\n return $this->formBuilder()->select(\n $this->fieldName,\n $this->field->values(),\n $this->fieldValue,\n $this->attributes\n );\...
[ "0.6867105", "0.68590087", "0.6833796", "0.6675673", "0.65838575", "0.65353245", "0.65105444", "0.64482427", "0.63673687", "0.63643885", "0.63355106", "0.63352793", "0.6325994", "0.62904507", "0.62901676", "0.62446445", "0.62390906", "0.620097", "0.6197721", "0.61703247", "0....
0.7929707
0
Creates a text input and returns it
Создает текстовое поле ввода и возвращает его
public static function text():InputText { return new InputText(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function &create_textinput()\n {\n $obj = new happy_linux_rss_parse_textinput();\n return $obj;\n }", "function input_text_name_create(){\n\techo '<input type=\"text\" name=\"name\">';\n}", "function inputText($name, $content) {\n\t$inputText = '<input type=\"text\" id=\"'.$name.'\" ...
[ "0.76598084", "0.7067272", "0.69040895", "0.6867059", "0.6731177", "0.6587613", "0.6563527", "0.6481236", "0.6481236", "0.6481236", "0.6481236", "0.6481236", "0.63648427", "0.63381565", "0.6336757", "0.63137543", "0.6307235", "0.62849265", "0.62833923", "0.62462974", "0.61853...
0.7554226
1
Creates a textarea input and returns it
Создаёт текстовое поле ввода и возвращает его
public static function textarea():InputTextarea { return new InputTextarea(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function textarea( $input )\n {\n $output = $input;\n\n return $output;\n }", "function acf_get_textarea_input($attrs = array()) {}", "function buildTextarea() {\n\t\t$args = func_get_args();\n\t\tarray_unshift_assoc($args, '-1', 'form_textarea');\n\t\treturn call_user_func_ar...
[ "0.76656044", "0.74702287", "0.73883146", "0.7254498", "0.72097075", "0.7165534", "0.7164826", "0.71465087", "0.7075185", "0.7067275", "0.7045865", "0.70141375", "0.6943369", "0.69040555", "0.6857178", "0.6845297", "0.68433195", "0.68431956", "0.6835513", "0.6720679", "0.6709...
0.7791522
0
Creates a time input and returns it
Создает элемент ввода времени и возвращает его
public static function time():InputTime { return new InputTime(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function convertTime($input)\n {\n $return = $input;\n if ($input == self::EMPTY_TIME) {\n $return = null;\n } else {\n if ($input === null) {\n $return = self::EMPTY_TIME;\n }\n }\n\n return $return;\n }", "pr...
[ "0.71124774", "0.7004988", "0.69973636", "0.68740636", "0.6795439", "0.6768867", "0.6758196", "0.6690396", "0.66532385", "0.65971714", "0.64931655", "0.6473007", "0.6408704", "0.640331", "0.6309596", "0.62738186", "0.62700886", "0.62700665", "0.62656486", "0.6177244", "0.6160...
0.8021311
0
Function to get the Lattitude and longitude with the Zipcode
Функция для получения широты и долготы по почтовому индексу
public function getLnt($zip){ // Get the API key from Amasty $apiKey = $this->_amastyconfigProvider->getApiKey(); $url = "https://maps.googleapis.com/maps/api/geocode/json?address=".$zip."&sensor=true&key=".$apiKey; $resultString = $this->_curl->get($url); $resultString = $this->_curl->getBody(); $result = json_decode($resultString, true); if(isset($result['results'][0])) { $result1[] = $result['results'][0]; $result2[] = $result1[0]['geometry']; $result3[] = $result2[0]['location']; return $result3[0]; } else { return ''; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getZipcode();", "function getLnt($zip) {\n $url = \"https://maps.googleapis.com/maps/api/geocode/json?address=\".urlencode($zip).\"&key=AIzaSyDUb6sUYDFGheeMWV8Wl-lN9wDz6hi858A\";\n $result_string = file_get_contents($url);\n $result = json_decode($result_string, true);\n...
[ "0.7725593", "0.7533507", "0.7183386", "0.71117187", "0.7090389", "0.7029282", "0.69782263", "0.6911349", "0.6904272", "0.68206835", "0.67657965", "0.6755941", "0.67251337", "0.66089815", "0.6456007", "0.6456007", "0.6456007", "0.6456007", "0.6456007", "0.644148", "0.64402694...
0.77168787
1
/ Function Desc Loads javascript applicable to tree menu
/ Описание функции Загрузка javascript, применимого к дереву меню
function LoadScript (&$params){ $menuScriptStr="var ".$this->menuUNID." = new DynamicTree('".$this->menuUNID."', '".$params->get( 'LSPath' )."');"; /** /* Do folder items need to link ? */ $foldersAsLinks=intval($params->get('tree_folders_link')); if ($foldersAsLinks==1){ $menuScriptStr=$menuScriptStr.$this->menuUNID.".foldersAsLinks=true;"; } /** /* Initialise script */ $menuScriptStr=$menuScriptStr.$this->menuUNID.".init();"; ?> <script type="text/javascript" src="<?php echo $params->get( 'LSPath' ); ?>/js/dynamictree_crunched.js"></script> <script><?php echo($menuScriptStr);?></script> <?php }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show()\n {\n \t$include = new TElement('script'); \t\n \t$include->src = 'vendor/costamarques/plugins/src/VanillaTree/js/vanillatree.min.js';\n \t$include->type = 'text/javascript';\n \tparent::add($include);\n\n $collapsed = $this->collapsed ? 'true' : 'false';\n $c...
[ "0.75693965", "0.7006808", "0.69985336", "0.6826583", "0.6771633", "0.6648956", "0.66248477", "0.64912075", "0.6487028", "0.64030004", "0.63611966", "0.63598937", "0.63583064", "0.6285964", "0.6272371", "0.6246329", "0.6241373", "0.6219652", "0.62016475", "0.6167806", "0.6144...
0.7797933
0
Returns current appointment's duration in seconds
Возвращает продолжительность текущего мероприятия в секундах
public function getDurationSec(){ return $this->appStop->getTimestamp() - $this->appStart->getTimestamp(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_duration() {\n\t\treturn $this->duration;\n\t}", "function duration()\n\t{\n\t\t//Difference\n\t\t$startTime = strtotime($this->startTime);\n\t\t\n\t\tif(is_null($this->endTime))\n\t\t\t$endTime = time();\n\t\telse \n\t\t\t$endTime = strtotime($this->endTime);\n\t\t\n\t\t//Return the number o...
[ "0.70134526", "0.6909465", "0.6899726", "0.6871707", "0.68703884", "0.68607605", "0.68607605", "0.68607605", "0.68607605", "0.68607605", "0.68607605", "0.68607605", "0.68607605", "0.68607605", "0.68607605", "0.68194604", "0.68194604", "0.6813038", "0.67782855", "0.6776677", "...
0.7599831
0
Returns current appointment's attendee
Возвращает участника встречи текущего назначения
public function getAttendee(){ return $this->attendee; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function attendee()\n {\n return $this->belongsTo('App\\Models\\Attendee', 'attendee_id');\n }", "public function attendee() {\n\t\t$form = $this->AttendeeForm();\n\t\t$attendee = $this->selection->Attendee();\n\t\t// load form data from attendee, if not already loaded from session\n\t\tif (!...
[ "0.7311976", "0.6794008", "0.66829103", "0.66274893", "0.6464107", "0.6365215", "0.6318863", "0.6184116", "0.61053944", "0.6049793", "0.5990055", "0.59790814", "0.5938766", "0.5912044", "0.5887673", "0.5864466", "0.5863119", "0.58585626", "0.58264476", "0.5801624", "0.5785892...
0.7753674
0
Generated from protobuf field bytes pki_id = 1;
Сгенерировано из поля protobuf bytes pki_id = 1;
public function getPkiId() { return $this->pki_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setPkiId($var)\n {\n GPBUtil::checkString($var, False);\n $this->pki_id = $var;\n\n return $this;\n }", "public function setPkiId($var)\n {\n GPBUtil::checkString($var, False);\n $this->pki_id = $var;\n\n return $this;\n }", "public function...
[ "0.736124", "0.736124", "0.5604796", "0.55651295", "0.5530493", "0.55173045", "0.5446822", "0.54393333", "0.54093325", "0.535492", "0.5338192", "0.5315629", "0.5315629", "0.530836", "0.530361", "0.53004265", "0.5280481", "0.5262522", "0.5261337", "0.5257439", "0.5249364", "...
0.786164
0
Generated from protobuf field bool is_declaration = 3;
Сгенерировано из поля protobuf bool is_declaration = 3;
public function getIsDeclaration() { return $this->is_declaration; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setIsDeclaration($var)\n {\n GPBUtil::checkBool($var);\n $this->is_declaration = $var;\n\n return $this;\n }", "function isDeclaration($line) {\n return $line[0] != '#' && strpos($line, \"=\");\n}", "public function getCopyrightsDeclarationSignedByPatron()\n {\n ...
[ "0.7163378", "0.60101485", "0.5684542", "0.53718203", "0.5278292", "0.5269708", "0.5196313", "0.519354", "0.51806337", "0.51797444", "0.5121412", "0.5082977", "0.50754416", "0.5050182", "0.50144106", "0.49964684", "0.49394283", "0.49372888", "0.49199516", "0.49136877", "0.491...
0.75323087
0
Generated from protobuf field bool is_declaration = 3;
Сгенерировано из поля protobuf bool is_declaration = 3;
public function setIsDeclaration($var) { GPBUtil::checkBool($var); $this->is_declaration = $var; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIsDeclaration()\n {\n return $this->is_declaration;\n }", "function isDeclaration($line) {\n return $line[0] != '#' && strpos($line, \"=\");\n}", "public function getCopyrightsDeclarationSignedByPatron()\n {\n return (bool) $this->json()->copyrights_declaration_signed...
[ "0.7530821", "0.6006695", "0.5684679", "0.53719616", "0.5280507", "0.52694523", "0.5195963", "0.51906973", "0.51844513", "0.51798016", "0.5117132", "0.50839514", "0.50764143", "0.505062", "0.5015006", "0.4999857", "0.49406976", "0.4938413", "0.49201685", "0.4913962", "0.49138...
0.7163705
1
Takes the given text, cleans it up and stores it using the provided category. This is the store that everything will be checked against. The larger it gets the slower that checking will be.
Принимает данный текст, очищает его и сохраняет с использованием предоставленной категории. Это хранилище, с которым будет производиться проверка. Чем больше оно становится, тем медленнее будет происходить проверка.
function addtostore($text,$category) { $clean_text = preg_replace('/\W+/',' ',$text); $clean_text = strtolower($clean_text); mysql_query("INSERT INTO `store` ( `text` , `category` ) VALUES ( '".mysql_real_escape_string($clean_text)."','".mysql_real_escape_string($category)."')"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function process_categories() {\n if (empty($this->categories))\n return;\n\n foreach ($this->categories as $cat) {\n // if the category already exists leave it alone\n $term_id = term_exists($cat['category_nicename'], 'category');\n ...
[ "0.526953", "0.51484376", "0.5147158", "0.5139973", "0.51295537", "0.5105191", "0.5059027", "0.50522673", "0.50219846", "0.50115", "0.5002837", "0.49976444", "0.4996371", "0.49732754", "0.497063", "0.49694246", "0.49608177", "0.49344334", "0.49239346", "0.49148244", "0.487699...
0.7145481
0
Creates a new Addresses models related to specific user.
Создает новый модель Addresses, связанную с конкретным пользователем.
public function actionCreate($user_id) { $model = new Addresses(); if($model->load(Yii::$app->request->post()) && is_numeric($model->post)){ $model->country_code = strtoupper($model->country_code); $model->save(); return $this->redirect(Url::to(['users/view', 'id' => $user_id])); } return $this->render('create', [ 'model' => $model, 'userId' => $user_id ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store(CreateUserAddressRequest $request)\n {\n $this->useraddress->create($request->all());\n\n return redirect()->route('admin.user.useraddress.index')\n ->withSuccess(trans('core::core.messages.resource created', ['name' => trans('user::useraddresses.title.useraddresse...
[ "0.69082403", "0.6896242", "0.6717539", "0.6651588", "0.6561904", "0.65603405", "0.65098405", "0.6485268", "0.64523834", "0.64286005", "0.6416101", "0.63824856", "0.63707936", "0.634375", "0.62875676", "0.6279898", "0.6274934", "0.62311745", "0.62304294", "0.6203094", "0.6162...
0.7237005
0
Deletes an existing Address model. If deletion is successful, the browser will be redirected to the 'index' page.
Удаляет существующую модель Address. Если удаление успешно, браузер будет перенаправлен на страницу 'index'.
public function actionDelete($id) { $model = Addresses::findOne($id); $model->delete(); return $this->redirect(Yii::$app->request->referrer ?: Yii::$app->homeUrl); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteAddressAction()\n\t {\n\t \t$customer = Mage::getSingleton ( 'customer/session' );\n\t \t$addressId = $this->getRequest ()->getParam ('addressId');\n\t \tif (!$addressId) {\n\t \t\techo json_encode(array('status'=>'error','message'=>'Address Id is missing.'));\n\t\t\texit;\n\t \t}\n\t \tif (...
[ "0.72480506", "0.7234181", "0.7124469", "0.6790873", "0.67595273", "0.67531085", "0.67469645", "0.6686167", "0.6549222", "0.6541893", "0.6529729", "0.65124345", "0.64915293", "0.6483636", "0.64765745", "0.6428929", "0.64219403", "0.64119864", "0.64118993", "0.6409113", "0.638...
0.7410751
0
Get the WC Order instance for a given order ID or order post Introduced in WC 2.2 as part of the Order Factory so the 2.1 version is not an exact replacement. If no param is passed, it will use the global post. Otherwise pass an the order post ID or post object.
Получите экземпляр WC Order для заданного идентификатора заказа или поста заказа. Введено в WC 2.2 в составе фабрики заказов, поэтому версия 2.1 не является точным заменителем. Если параметр не передан, будет использоваться глобальный пост. В противном случае передайте идентификатор поста заказа или объект поста заказа.
public static function wc_get_order( $the_order = false ) { if ( self::is_wc_version_gte_2_2() ) { return wc_get_order( $the_order ); } else { global $post; if ( false === $the_order ) { $order_id = $post->ID; } elseif ( $the_order instanceof WP_Post ) { $order_id = $the_order->ID; } elseif ( is_numeric( $the_order ) ) { $order_id = $the_order; } return new WC_Order( $order_id ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function get_order( $the_order = false ) {\n\n\t\t\tif ( self::is_wc_22() ) {\n\t\t\t\treturn wc_get_order( $the_order );\n\t\t\t} else {\n\n\t\t\t\tglobal $post;\n\n\t\t\t\tif ( false === $the_order ) {\n\t\t\t\t\t$order_id = $post->ID;\n\t\t\t\t} elseif ( $the_order instanceof WP_Post ) {\n\t\t\t\t...
[ "0.7110804", "0.6905942", "0.6381137", "0.63416386", "0.6262024", "0.6238562", "0.6221648", "0.6176673", "0.6163402", "0.6091903", "0.608434", "0.60794204", "0.6069545", "0.602019", "0.5973065", "0.596203", "0.5960015", "0.5931995", "0.59122634", "0.5893067", "0.58804953", ...
0.72573805
0
Helper method to get the version of the currently installed WooCommerce
Помощь метод получения версии установленного WooCommerce
private static function get_wc_version() { return defined( 'WC_VERSION' ) && WC_VERSION ? WC_VERSION : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function get_wc_version() {\n\t\treturn defined( 'WC_VERSION' ) && WC_VERSION ? WC_VERSION : null;\n\t}", "public static function get_wc_version() {\n\t\t\tif (defined('WC_VERSION') && WC_VERSION)\n\t\t\t\treturn WC_VERSION;\n\t\t\tif (defined('WOOCOMMERCE_VERSION') && WOOCOMMERCE_VERSION)\n\t\t\t...
[ "0.7585542", "0.7324783", "0.7224428", "0.68986654", "0.68705195", "0.6815234", "0.6806953", "0.67460275", "0.65727025", "0.65274376", "0.6449026", "0.6404271", "0.63923687", "0.63747096", "0.6289609", "0.6275865", "0.6221986", "0.62177694", "0.616839", "0.6162838", "0.614924...
0.7575362
1
Returns true if the installed version of WooCommerce is 2.2 or greater
Возвращает true, если установленная версия WooCommerce составляет 2.2 или выше
public static function is_wc_version_gte_2_2() { return self::get_wc_version() && version_compare( self::get_wc_version(), '2.2', '>=' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function boldthemes_woocommerce_is_new_version() {\n\n\t\tif ( ! class_exists( 'WooCommerce' ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tglobal $woocommerce;\n\t\tif ( version_compare( $woocommerce->version, '3.0', '>=') ) {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\t\t\t\n\t}", "public static function i...
[ "0.8077599", "0.7832979", "0.6929083", "0.6742525", "0.67228985", "0.6689785", "0.6617661", "0.6615224", "0.6533978", "0.65316725", "0.65286964", "0.65050274", "0.6487456", "0.6469633", "0.6423399", "0.6419517", "0.6372783", "0.63681185", "0.6367361", "0.63093793", "0.6303254...
0.834297
0
Get video stats for each metric
Получить статистику видео для каждой метрики
public function getVideoStats($id) { //Video $this->videoStats = []; $this->videoStats[0] = $this->pages->posts()->where('type', 'video')->whereBetween('posted', [$this->from, $this->to])->count(); foreach($this->metrics as $metric) { $this->videoStats[$metric][0] = DB::table('posts')->where('page_id', $id)->select(DB::raw($this->conversion.'('.$metric.') as total'))->where('type', 'video')->whereBetween('posted', [$this->from, $this->to])->groupBy('page_id')->pluck('total'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getVideo() : VideoMetrics\n {\n return $this->video;\n }", "function _get_va($video, $ffmpeg)\r\n{\r\n\r\n $command = $ffmpeg . ' -i ' . $video . ' -vstats 2>&1';\r\n $output = shell_exec($command);\r\n\r\n $regex_sizes = \"/Video: ([^,]*), ([^,]*), ([0-9]{1,4})x([0-9]{1,4})...
[ "0.68196446", "0.6277059", "0.6218429", "0.60549474", "0.6035029", "0.60016185", "0.5853554", "0.58093977", "0.579717", "0.5794486", "0.57636374", "0.566903", "0.56559366", "0.56466216", "0.56358737", "0.55972874", "0.5581575", "0.5573239", "0.5544777", "0.5536919", "0.552880...
0.7259694
0
Get link stats for each metric
Получить статистику по ссылкам для каждой метрики
public function getLinkStats($id) { // LINKS $this->linkStats = []; $this->linkStats[0] = $this->pages->posts()->where('type', 'link')->whereBetween('posted', [$this->from, $this->to])->count(); foreach($this->metrics as $metric) { $this->linkStats[$metric][0] = DB::table('posts')->where('instant_article', 0)->where('page_id', $id)->select(DB::raw($this->conversion.'('.$metric.') as total'))->where('type', 'link')->whereBetween('posted', [$this->from, $this->to])->groupBy('page_id')->pluck('total'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLinkStats()\n {\n return $this->hasMany(LinkStats::className(), ['link_id' => 'id']);\n }", "function plugin_statssummary_links ()\n{\n global $LANG_LINKS_STATS;\n\n list($total_links, $total_clicks) = LINKS_countLinksAndClicks ();\n\n $item_count = COM_NumberFormat ($tot...
[ "0.7037619", "0.6789831", "0.62752676", "0.6228179", "0.6164583", "0.59571934", "0.5938183", "0.59117", "0.57999915", "0.57802725", "0.57461965", "0.5714428", "0.5708225", "0.57016295", "0.568087", "0.56610245", "0.5601052", "0.5517542", "0.55044526", "0.5501854", "0.5459399"...
0.71761984
0
Gets the requested team ID, or throws a suitable exception if something went wrong.
Получает запрошенный идентификатор команды или выбрасывает подходящее исключение, если что-то пошло не так.
private static function getRequestTeamID() { $authModule = AuthBackend::getInstance(); if ($authModule->getCurrentUserName() == null) throw new Exception('not authenticated', E_PERM_DENIED); $input = Input::getInstance(); $team = $input->getInput('team'); if ($team == null) throw new Exception('need a team', E_MALFORMED_REQUEST); if (in_array($team, $authModule->getCurrentUserTeams())) return $team; else throw new Exception('you are not a member of that team', E_PERM_DENIED); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTeamId()\n {\n return $this->team_id;\n }", "public function get_team_id()\n {\n return $this->team_id;\n }", "public function getTeamId()\n {\n return $this->teamid;\n }", "private static function getTeamId($teamUrl) {\n\t\t$response = HttpGetter::requ...
[ "0.71899116", "0.7161934", "0.715126", "0.684403", "0.6624886", "0.65844303", "0.6486305", "0.6414372", "0.64127064", "0.6372763", "0.6264098", "0.6237818", "0.62243885", "0.6220483", "0.6173878", "0.6146996", "0.61413395", "0.60846627", "0.6080814", "0.60710937", "0.60369563...
0.8454598
0
Delete permissions and revoke them from admin.
Удалить разрешения и отозвать их у администратора.
protected function downPermissions() { $admins = Role::where('guard_name', config('lit.guard')) ->where('name', 'admin') ->get(); $permissions = Permission::where('guard_name', config('lit.guard')) ->whereIn('name', $this->permissions) ->get(); foreach ($permissions as $permission) { foreach ($admins as $admin) { $admin->revokePermissionTo($permission->name); } $permission->delete(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteAllPermissions() {}", "public abstract function deleteAllPermissions();", "abstract protected function deletePermission();", "public abstract function deleteAllUsersPermissions();", "public function removePermissions($permissions);", "public function detachAllPermissions();", "fun...
[ "0.76379466", "0.74941385", "0.73520434", "0.7271555", "0.70440596", "0.70170814", "0.69986534", "0.6901457", "0.6766839", "0.66487694", "0.66170406", "0.6546381", "0.65388876", "0.65360826", "0.65161145", "0.6512321", "0.6477876", "0.63586277", "0.6357038", "0.6340763", "0.6...
0.77409995
0
Public Citation Grid Actions Import citations from the article
Публичная сетка цитирований Действия Импорт цитирований из статьи
function importCitations(&$args, &$request) { $article =& $this->getArticle(); // Delete existing citations $citationDAO =& DAORegistry::getDAO('CitationDAO'); $citationDAO->deleteCitationsByAssocId(ASSOC_TYPE_ARTICLE, $article->getId()); // (Re-)import raw citations from the article $rawCitationList = $article->getCitations(); import('citation.CitationListTokenizerFilter'); $citationTokenizer = new CitationListTokenizerFilter(); $citationStrings = $citationTokenizer->execute($rawCitationList); // Instantiate and persist citations import('citation.Citation'); $citations = array(); foreach($citationStrings as $citationString) { $citation = new Citation($citationString); // Initialize the edited citation with the raw // citation string. $citation->setEditedCitation($citationString); // Set the article association $citation->setAssocType(ASSOC_TYPE_ARTICLE); $citation->setAssocId($article->getId()); $citationDAO->insertCitation($citation); // FIXME: Database error handling. $citations[$citation->getId()] = $citation; unset($citation); } $this->setData($citations); // Re-display the grid $json = new JSON('true', $this->fetchGrid($args,$request)); return $json->getString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function import_articles() {\n\n\t\t$content_list = $this->stream->get_content_list();\n\t\t$this->stream->download_content( $content_list, $this->upload_dir, $this->local_image_dir, true );\n\n\t\t$articles = $this->get_articles_list();\n\t\t$this->import_local_articles( $articles );\n\t}", "function in...
[ "0.5686664", "0.56506145", "0.5618155", "0.5599529", "0.5398718", "0.53426677", "0.5307908", "0.52934337", "0.5284015", "0.5281511", "0.52748823", "0.5267649", "0.523362", "0.5196705", "0.5192151", "0.5126789", "0.51179034", "0.5110944", "0.5101489", "0.5098895", "0.50903744"...
0.7083928
0
An action to manually add a new citation
Действие для ручного добавления новой цитаты
function addCitation(&$args, &$request) { // Calling editCitation() with an empty row id will add // a new citation. return $this->editCitation($args, $request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addCitation(CiteProcJSCitation $citation) {\n $citation_id = $citation->getID();\n $this->citations[$citation_id] = $citation;\n }", "function &_saveCitation(&$args, &$request) {\n\t\tassert($request->isPost());\n\n\t\t// Identify the citation to be updated\n\t\t$citation =& $this->_getCit...
[ "0.6406791", "0.611396", "0.611381", "0.5779543", "0.56995845", "0.56895393", "0.56139123", "0.5561563", "0.55447555", "0.5521201", "0.5514588", "0.5454985", "0.5433908", "0.5390233", "0.5377941", "0.53661704", "0.53550196", "0.53311986", "0.53277224", "0.5320005", "0.5314346...
0.7400818
0
Private helper function This will retrieve a citation object from the grids data source based on the request arguments. If no citation can be found then this will raise a fatal error.
Приватная вспомогательная функция. Эта функция получает объект цитирования из источника данных grids в зависимости от аргументов запроса. Если цитирование не найдено, это вызовет сбойную ошибку.
function &_getCitationFromArgs(&$args, $createIfMissing = false) { // Identify the citation id and retrieve the // corresponding element from the grid's data source. if (!isset($args['citationId'])) { if ($createIfMissing) { // It seems that a new citation is being edited/updated import('citation.Citation'); $citation = new Citation(); $citation->setAssocType(ASSOC_TYPE_ARTICLE); $article =& $this->getArticle(); $citation->setAssocId($article->getId()); } else { fatalError('Missing citation id!'); } } else { $citation =& $this->getRowDataElement($args['citationId']); if (is_null($citation)) fatalError('Invalid citation id!'); } return $citation; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function importCitations(&$args, &$request) {\n\t\t$article =& $this->getArticle();\n\n\t\t// Delete existing citations\n\t\t$citationDAO =& DAORegistry::getDAO('CitationDAO');\n\t\t$citationDAO->deleteCitationsByAssocId(ASSOC_TYPE_ARTICLE, $article->getId());\n\n\t\t// (Re-)import raw citations from the article\n...
[ "0.58710384", "0.5858063", "0.55915755", "0.55645937", "0.5510363", "0.5510282", "0.5296891", "0.52252924", "0.51899135", "0.51826", "0.49505097", "0.48975128", "0.48749986", "0.48426634", "0.48372823", "0.47929004", "0.47929004", "0.47912607", "0.47811124", "0.47777346", "0....
0.70106465
0
Instantiates filters that can parse a citation. FIXME: Make the filter selection configurable and retrieve filter candidates from the filter registry.
Инициализирует фильтры, которые могут парсить цитированный текст. FIXME: Сделать выбор фильтра настраиваемым и получать кандидатов фильтров из реестра фильтров.
function &_instantiateParserFilters(&$citation, &$metadataDescription) { // Extract the edited citation string from the citation $citationString = $citation->getEditedCitation(); // Instantiate the supported parsers import('citation.parser.paracite.ParaciteRawCitationNlmCitationSchemaFilter'); $paraciteFilter = new ParaciteRawCitationNlmCitationSchemaFilter(); import('citation.parser.parscit.ParscitRawCitationNlmCitationSchemaFilter'); $parscitFilter = new ParscitRawCitationNlmCitationSchemaFilter(); import('citation.parser.regex.RegexRawCitationNlmCitationSchemaFilter'); $regexFilter = new RegexRawCitationNlmCitationSchemaFilter(); $parserFilters = array(&$paraciteFilter, &$parscitFilter, &$regexFilter, $citationString); return $parserFilters; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function &_instantiateLookupFilters(&$citation, &$metadataDescription) {\n\t\t$lookupFilters = array();\n\n\t\t// Instantiate CrossRef filter\n\t\timport('citation.lookup.crossref.CrossrefNlmCitationSchemaFilter');\n\t\t$crossrefFilter = new CrossrefNlmCitationSchemaFilter(CROSSREF_TEMP_ACCESS_EMAIL);\n\n\t\t// In...
[ "0.6750457", "0.6264674", "0.62581056", "0.6181678", "0.6181678", "0.60210794", "0.5967925", "0.5845566", "0.5821116", "0.58058596", "0.5785833", "0.57300967", "0.57149684", "0.5612531", "0.5605834", "0.5564423", "0.5563734", "0.5507113", "0.5487174", "0.5475148", "0.5463619"...
0.73844266
0
Check wehter there is existing ics file records
Проверьте, есть ли существующие записи файлов ics
public function hasCreatedICSFileBefore() { return $this->ics !== null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function parseIcalEvents($ics) {\n if (filter_var($ics, FILTER_VALIDATE_URL)) {\n if (preg_match('/^webcal:\\/\\//i', $ics)) {\n $ics = str_replace('webcal://', 'http://', $ics);\n }\n }\n\n $icalEvents = array();\n $f = file($ics, FILE_IGNORE...
[ "0.56499046", "0.54700315", "0.5446804", "0.5416351", "0.5406912", "0.5307869", "0.5299679", "0.5280094", "0.52781326", "0.52573836", "0.521347", "0.5112705", "0.509989", "0.5097968", "0.50954324", "0.50940573", "0.5092662", "0.50842464", "0.50671715", "0.5058898", "0.5035937...
0.72936153
0
Generate a calendar instance that allow event can be added to it
Создайте экземпляр календаря, позволяющий добавлять события в него
private function makeCalendarInstance($event) { $calendar = new \Eluceo\iCal\Component\Calendar($this->title); $calendar->addComponent($event); return $calendar; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function makeiCalEvent()\n {\n $event = new \\Eluceo\\iCal\\Component\\Event();\n\n $event->setTimezoneString($this->timezone);\n\n $event->setDtStart($this->started_at);\n $event->setDtEnd($this->ended_at);\n $event->setSummary($this->title);\n return $event;\n...
[ "0.7293672", "0.715825", "0.709761", "0.70796233", "0.7038835", "0.7000018", "0.6970886", "0.69100374", "0.6765911", "0.66624296", "0.6639346", "0.6639346", "0.6629011", "0.65366256", "0.6496649", "0.6491757", "0.6371748", "0.63467443", "0.6343749", "0.6331533", "0.6252743", ...
0.75203294
0
Create and return the ical event
Создайте и верните событие iCal
private function makeiCalEvent() { $event = new \Eluceo\iCal\Component\Event(); $event->setTimezoneString($this->timezone); $event->setDtStart($this->started_at); $event->setDtEnd($this->ended_at); $event->setSummary($this->title); return $event; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createICalEvent ($event) {\n $e = new vevent();\n\n $iCalDateFormat = \"Ymd\\THis\";\n\n $startTimestamp = strtotime($event['startDate'] . ' ' . $event['startTime']);\n $endTimestamp = strtotime($event['endDate'] . ' ' . $event['endTime']);\n\n $e->setProperty('summary', strip_tags($...
[ "0.73078036", "0.71577173", "0.6947616", "0.6935624", "0.6807813", "0.6696731", "0.66842216", "0.6480974", "0.6351823", "0.6317726", "0.63134164", "0.6295999", "0.6295999", "0.6295999", "0.6295999", "0.6285993", "0.62688214", "0.6240891", "0.6204938", "0.6193946", "0.61734176...
0.7699514
0
Get the system preset timezone that is located in the app configuration file
Получите системный настройки часового пояса, который находится в файле конфигурации приложения
public function getSystemTimezone() { return config('app.timezone'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function scheduleTimezone()\n {\n return $this->app->config('timezone');\n }", "public static function getTZ(): string\n {\n /* Local timezone */\n return config('app.timezone', 'UTC');\n }", "static function get_timezone(){\n\t\treturn get_option('gc_timezone');\t\t\...
[ "0.7784666", "0.76955974", "0.75202966", "0.75202966", "0.74617136", "0.7389845", "0.7345355", "0.73416203", "0.7301395", "0.72827715", "0.7273391", "0.727075", "0.72532755", "0.7177183", "0.7135147", "0.7116672", "0.71140456", "0.7108256", "0.7108256", "0.7057916", "0.705791...
0.7950106
0
Add the "Add to Wishlist" button. Needed to use in wp_head hook.
Добавьте кнопку "Добавить в список желаний". Необходимо использовать в хуке wp_head.
public function add_button() { global $post; $this->_positions = apply_filters( 'yith_wcwl_positions', $this->_positions ); if ( ! isset( $post ) || ! is_object( $post ) ) { return; } // Add the link "Add to wishlist" $position = get_option( 'yith_wcwl_button_position' ); $position = empty( $position ) ? 'add-to-cart' : $position; if ( $position != 'shortcode' ) { add_action( $this->_positions[$position]['hook'], array( $this, 'print_button' ), $this->_positions[$position]['priority'] ); } // Free the memory. Like it needs a lot of memory... but this is rock! }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function print_button() {\n\t\t\techo do_shortcode( \"[yith_wcwl_add_to_wishlist]\" );\n\t\t}", "public static function add_to_wishlist( $atts, $content = null ) {\n\t\t\tglobal $product;\n\n\t\t\t// product object\n\t\t\t$current_product = ( isset( $atts['product_id'] ) ) ? wc_get_product( $atts['product...
[ "0.7607011", "0.74852985", "0.71964824", "0.68980527", "0.67700034", "0.6743856", "0.6704238", "0.668305", "0.6557457", "0.64759105", "0.645826", "0.64553595", "0.6440203", "0.6393255", "0.6353971", "0.6332779", "0.6287902", "0.62751657", "0.62486345", "0.62479496", "0.620498...
0.7565879
1
Print "Add to Wishlist" shortcode
Код короткого текста "Добавить в список желаний"
public function print_button() { echo do_shortcode( "[yith_wcwl_add_to_wishlist]" ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wishlist_add(){ $product_id = ($this->EE->TMPL->fetch_param('product_id')) ? ($this->EE->TMPL->fetch_param('product_id')) : \"#product_id_required\" ;\n\n // Which list does it go on (public or private)\n $status = ($this->EE->TMPL->fetch_param('status'...
[ "0.7259364", "0.70823765", "0.6875889", "0.6764177", "0.67576075", "0.6503307", "0.6502057", "0.64931756", "0.648529", "0.63794875", "0.63604224", "0.635425", "0.62515867", "0.62481874", "0.6198603", "0.6167461", "0.61040175", "0.6066835", "0.60656434", "0.60598236", "0.60364...
0.8124403
0
Destroy serialize cookies, to prevent major vulnerability
Уничтожьте сериализованные куки, чтобы предотвратить серьезную уязвимость
private function _destroy_serialized_cookies(){ $name = 'yith_wcwl_products'; if ( isset( $_COOKIE[$name] ) && is_serialized( stripslashes( $_COOKIE[ $name ] ) ) ) { $_COOKIE[ $name ] = json_encode( array() ); yith_destroycookie( $name ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function removeCookies();", "function destroy() {\n\t\tif (isset($_COOKIE[$this->name])) {\n\t\t\t$this->__values = $this->__decrypt($_COOKIE[$this->name]);\n\t\t}\n\n\t\tforeach ($this->__values as $name => $value) {\n\t\t\tif (is_array($value)) {\n\t\t\t\tforeach ($value as $key => $val) {\n\t\t\t\t\tun...
[ "0.7755944", "0.7419857", "0.7301867", "0.7093898", "0.70546633", "0.69512784", "0.6945724", "0.69110864", "0.6814054", "0.68084633", "0.677366", "0.67613214", "0.67325085", "0.67149985", "0.67015934", "0.6697742", "0.66777253", "0.666201", "0.66497993", "0.6637244", "0.66354...
0.8244251
0
Update old wishlist cookies
Обновить старые вкладки желаний
private function _update_cookies(){ $cookie = yith_getcookie( 'yith_wcwl_products' ); $new_cookie = array(); if( ! empty( $cookie ) ) { foreach ( $cookie as $item ) { if ( ! isset( $item['add-to-wishlist'] ) ) { return; } $new_cookie[] = array( 'prod_id' => $item['add-to-wishlist'], 'quantity' => isset( $item['quantity'] ) ? $item['quantity'] : 1, 'wishlist_id' => false ); } yith_setcookie( 'yith_wcwl_products', $new_cookie ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static function update()\n {\n setcookie(self::$name, self::$cookie, time() + (86400 * 30), \"/\");\n }", "function add_to_wishlist_func(){\n if (@$_GET['add_to_wishlist']){\n $product_id = $_GET['add_to_wishlist']; \n $cookie_name = 'wishlist_products';\n $c...
[ "0.6826025", "0.6824577", "0.6763317", "0.6647617", "0.6600397", "0.62773", "0.60756177", "0.60345316", "0.60343504", "0.6023609", "0.5986239", "0.5969231", "0.5884598", "0.5853432", "0.5783275", "0.5672171", "0.56701577", "0.5670005", "0.563634", "0.562543", "0.56208616", ...
0.78297794
0
Unique access to instance of YITH_WCWL_Init class
Уникальный доступ к экземпляру класса YITH_WCWL_Init
function YITH_WCWL_Init(){ return YITH_WCWL_Init::get_instance(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static function init(){}", "public static function init() {}", "static function init(){\n\t\t\treturn self::construct(__CLASS__);\n\t\t}", "public static function init() { }", "protected function _init() {}", "protected function _init()\n {}", "protected function _init(){}", "public stat...
[ "0.6800421", "0.67649156", "0.67617774", "0.6685943", "0.667811", "0.66207635", "0.65990734", "0.65784943", "0.65784943", "0.65784943", "0.6546774", "0.65247107", "0.65178704", "0.65178704", "0.6462283", "0.6462283", "0.6460684", "0.6460684", "0.6460571", "0.6460571", "0.6460...
0.8779593
0
/ $this>set('sales_logs', $this>SalesLog>find('all')); $data=$this>SalesLog>find("all",array( "conditions"=>array( "SalesLog.id"=>"1" ) )); $total = $this>SalesLog>find('all', array(array('fields' => array('SUM(vehicle.nyuci_share) AS gaji'), 'conditions'=>array('SalesLog.user_id = staf.id' =>$this>params['SalesLog']['id'])))); $virtualFields = array('feilds' => 'COUNT(staff.name) AS nyuci_share'); $total = $this>SalesLog>find('all', array(array('sales_logs' => array('total'), 'conditions'=>array('SalesLog.user_id = staf.id' =>$this>params['SalesLog']['id'])))); paging page $this>paginate = array( 'limit' => 10 ); $saleslog = $this>paginate('SalesLog'); $this>set('sales_logs', $saleslog);
$this>set('sales_logs', $this>SalesLog>find('all')); $data=$this>SalesLog>find("all",array( "conditions"=>array( "SalesLog.id"=>"1" ) )); $total = $this>SalesLog>find('all', array(array('fields' => array('SUM(vehicle.nyuci_share) AS gaji'), 'conditions'=>array('SalesLog.user_id = staf.id' =>$this>params['SalesLog']['id'])))); $virtualFields = array('feilds' => 'COUNT(staff.name) AS nyuci_share'); $total = $this>SalesLog>find('all', array(array('sales_logs' => array('total'), 'conditions'=>array('SalesLog.user_id = staf.id' =>$this>params['SalesLog']['id'])))); paging page $this>paginate = array( 'limit' => 10 ); $saleslog = $this>paginate('SalesLog'); $this>set('sales_logs', $saleslog);
function index(){ $data = $this->SalesLog->find("all",array( "fields" => array( "Staff.name", "SUM(VehicleCategory.nyuci_share) as TOTAL" ), "group" => array( "SalesLog.staff_id" ) )); $this->set(compact("data")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function TotalHeures( ){\n \t\n$this->loadModel('Fichejour');\n $this->loadModel('Fichee');\n $options['joins'] = array(\n array('table' => 'fichees',\n 'alias' => 'Fichee',\n 'type' => 'LEFT',\n 'conditions' => array(\n 'Fichee.id = Fichejour.id_s',\n )\n )\...
[ "0.6709541", "0.6664914", "0.6643808", "0.6564553", "0.65558845", "0.6549971", "0.6464614", "0.64511955", "0.6445912", "0.64175236", "0.6396988", "0.63849634", "0.6375103", "0.63735116", "0.63560975", "0.6347975", "0.6341336", "0.634029", "0.63313705", "0.63137513", "0.624803...
0.75057423
0
Get the messages from the validator.
Получите сообщения от валидатора.
public function getValidatorMessages() { return $this->validator ? $this->validator->messages()->all() : []; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMessages()\r\n {\r\n if (empty($this->_messages)) {\r\n return $this->validator->getMessages();\r\n } else {\r\n return $this->_messages;\r\n }\r\n }", "public function getMessages()\n {\n if ($this->validator) {\n return $t...
[ "0.8213816", "0.81768423", "0.7929352", "0.7912065", "0.77639204", "0.77285236", "0.7721346", "0.7704338", "0.7615946", "0.74957263", "0.74648803", "0.7445513", "0.7442122", "0.74364555", "0.7435665", "0.7411527", "0.7400567", "0.7395006", "0.737754", "0.7376053", "0.7376053"...
0.8571227
0
Returns the timestamp (in ms) of this log entry.
Возвращает временной штамп (в миллисекундах) этой записи лога.
public function getTimestampMs() { return $this->timestampMs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTimestampMs()\n {\n return $this->timestamp_ms;\n }", "public function getTimestamp()\n {\n return $this->message[3];\n }", "protected function getTimestamp() {\n\t\treturn time();\n\t}", "public function getMillisTimestamp() {\n\t\treturn ($this->getTimestamp() *...
[ "0.7581111", "0.73671544", "0.7165602", "0.7149727", "0.71456593", "0.71424365", "0.71046066", "0.70878947", "0.708275", "0.7073796", "0.70533884", "0.70533884", "0.70533884", "0.70533884", "0.70533884", "0.70533884", "0.70533884", "0.70533884", "0.70533884", "0.70533884", "0...
0.7489651
1
Returns the combat points.
Возвращает боевые очки.
public function getCombatPoints() { return $this->combatPoints; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_points() {\n return $this->points;\n }", "public function points()\n {\n return $this->points;\n }", "public function points()\n {\n return $this->points;\n }", "public function getPoints()\n\t{\n\t\treturn $this->points;\n\t}", "public function getPo...
[ "0.73424715", "0.72230506", "0.72230506", "0.71831393", "0.70721227", "0.70619416", "0.7049733", "0.70420724", "0.70324665", "0.69216573", "0.68982434", "0.6883625", "0.68652666", "0.68644583", "0.6860683", "0.6842631", "0.68202364", "0.6813525", "0.67938703", "0.6766631", "0...
0.8690868
0
Returns the pokemon data id.
Возвращает идентификатор данных покемона.
public function getPokemonDataId() { return $this->pokemonDataId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPokemonId()\n {\n return $this->pokemon_id;\n }", "public function getPokemonId()\n {\n return $this->pokemon_id;\n }", "public function getPokemonId()\n {\n return $this->pokemon_id;\n }", "public function getID(): string {\n return $this->dat...
[ "0.81107587", "0.81107587", "0.81107587", "0.6984482", "0.68945014", "0.68618196", "0.671891", "0.66750723", "0.66528237", "0.6635548", "0.6613087", "0.66115564", "0.66100144", "0.6603011", "0.66009307", "0.6575303", "0.65705824", "0.65499264", "0.65397453", "0.64989775", "0....
0.89184403
0
Returns the pokemon metadata.
Возвращает метаданные покемона.
public function getPokemonMeta() { return PokemonMetaRegistry::getByPokemonId($this->pokemonId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMetaData();", "public function getMetaData()\n {\n return $this->meta;\n }", "public function pokemon()\n {\n // Only handle gets\n if ($this->method != 'GET') {\n return self::NOT_GET_RESPONSE;\n }\n \n // Get Pokemon Data\n ...
[ "0.6925686", "0.68716586", "0.68642765", "0.68223023", "0.6817933", "0.67474777", "0.6656689", "0.6656689", "0.6656689", "0.6656689", "0.6656689", "0.6625094", "0.65554816", "0.6508233", "0.64541876", "0.6403262", "0.6399183", "0.63856524", "0.6378695", "0.63696456", "0.63696...
0.8259221
0
Returns the pokedex entry.
Возвращает запись в покедексе.
public function getPokedexEntry() { return $this->getPokedex()->get($this->pokemonId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEntry()\n {\n return $this->gleEntry;\n }", "public function getEntry()\n {\n return $this->entry;\n }", "public function getEntry()\n {\n return $this->entry;\n }", "public function getEntry()\n {\n return $this->entry;\n }", "public f...
[ "0.63739026", "0.6345652", "0.6345652", "0.6345652", "0.6345652", "0.6123392", "0.5324095", "0.53091997", "0.52963495", "0.52894604", "0.5282805", "0.52804106", "0.526746", "0.5192856", "0.51912254", "0.5136321", "0.511386", "0.509831", "0.50854284", "0.5078118", "0.5061065",...
0.8701843
0
Update working hours of a business
Обновление рабочих часов бизнеса
protected function updateWorkingHours() { // Get business of this user $business = Confide::user()->business; $business->working_hours = Input::get('working_hours'); $business->saveOrFail(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function working_hour_update(Request $request, $id)\n {\n # Here $id is auth:user id\n $working_hour=WorkingHour::where('cid', $id)->first();\n\n if($working_hour === NULL) {\n # If WorkingHour table in database is empty; create new row\n $working_hour = new Wor...
[ "0.6436809", "0.64347553", "0.640207", "0.63882345", "0.63546526", "0.63080627", "0.61160946", "0.6041729", "0.60314065", "0.60288364", "0.60077584", "0.5970285", "0.5952978", "0.59425676", "0.5934588", "0.5857168", "0.58440024", "0.5843133", "0.5729363", "0.57076794", "0.567...
0.8472771
0
Menu callback; confirm deletion of a format.
Меню обратного вызова; подтверждение удаления формата.
function filter_admin_delete() { $format = arg(4); $format = db_fetch_object(db_query('SELECT * FROM {filter_formats} WHERE format = %d', $format)); if ($format) { if ($format->format != variable_get('filter_default_format', 1)) { $form['format'] = array('#type' => 'hidden', '#value' => $format->format); $form['name'] = array('#type' => 'hidden', '#value' => $format->name); return confirm_form($form, t('Are you sure you want to delete the input format %format?', array('%format' => $format->name)), 'admin/settings/filters', t('If you have any content left in this input format, it will be switched to the default input format. This action cannot be undone.'), t('Delete'), t('Cancel')); } else { drupal_set_message(t('The default format cannot be deleted.')); drupal_goto('admin/settings/filters'); } } else { drupal_not_found(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function confirmedDelete()\n\t{\n\t\t$cont_obj_gui =& new ilObjContentObjectGUI(\"\",$this->content_object->getRefId(),\n\t\t\ttrue, false);\n\t\t$cont_obj_gui->confirmedDelete($this->obj->getId());\n\t\t$this->ctrl->redirect($this, $_GET[\"backcmd\"]);\n\t}", "function handleDelete() {\r\n try {\r\n deleteI...
[ "0.64367294", "0.63936216", "0.6241695", "0.6209697", "0.618232", "0.6164337", "0.61343414", "0.6110282", "0.6072715", "0.60600054", "0.60565054", "0.6002383", "0.6001282", "0.59314734", "0.59242976", "0.5916628", "0.5909672", "0.5888238", "0.58857584", "0.5873836", "0.587218...
0.73594874
0
Build a form to change the settings for a format's filters.
Создайте форму для изменения настроек фильтров формата.
function filter_admin_configure(&$form_state, $format) { $list = filter_list_format($format->format); $form = array(); foreach ($list as $filter) { $form_module = module_invoke($filter->module, 'filter', 'settings', $filter->delta, $format->format); if (isset($form_module) && is_array($form_module)) { $form = array_merge($form, $form_module); } } if (!empty($form)) { $form = system_settings_form($form); } else { $form['error'] = array('#value' => t('No settings are available.')); } $form['format'] = array('#type' => 'hidden', '#value' => $format->format); $form['#submit'][] = 'filter_admin_configure_submit'; return $form; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function buildFilterForm() {\n // Add the filter by key(word) and/or state.\n if ($this->currentUser->hasPermission('administer webform')) {\n $state_options = [\n (string) $this->t('Active') => [\n '' => $this->t('All [@total]', ['@total' => $this->getTotal(NULL, NULL)]),\n ...
[ "0.75421333", "0.72413164", "0.71747345", "0.67117506", "0.6681364", "0.66779184", "0.66217256", "0.6621203", "0.6580138", "0.64508957", "0.64076066", "0.63635254", "0.63442636", "0.63012236", "0.629908", "0.62580633", "0.62513447", "0.62132293", "0.616851", "0.6149184", "0.6...
0.7538149
1
Build the form for ordering filters for a format.
Создайте форму для заказа фильтров для формата.
function filter_admin_order(&$form_state, $format = NULL) { // Get list (with forced refresh). $filters = filter_list_format($format->format); $form['weights'] = array('#tree' => TRUE); foreach ($filters as $id => $filter) { $form['names'][$id] = array('#value' => $filter->name); $form['weights'][$id] = array('#type' => 'weight', '#default_value' => $filter->weight); } $form['format'] = array('#type' => 'hidden', '#value' => $format->format); $form['submit'] = array('#type' => 'submit', '#value' => t('Save configuration')); return $form; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function buildFilterForm() {\n // Add the filter by key(word) and/or state.\n if ($this->currentUser->hasPermission('administer webform')) {\n $state_options = [\n (string) $this->t('Active') => [\n '' => $this->t('All [@total]', ['@total' => $this->getTotal(NULL, NULL)]),\n ...
[ "0.69311196", "0.66649115", "0.6603114", "0.65902823", "0.65843815", "0.65694886", "0.6502391", "0.6353128", "0.6112901", "0.6071564", "0.6046236", "0.6014837", "0.60141957", "0.6003071", "0.59803516", "0.5915985", "0.59049255", "0.5901143", "0.58542657", "0.5773655", "0.5744...
0.7580571
0
Sets the news items that the RSS feed will contain
Устанавливает новостные элементы, которые будут содержать RSS-канал
public function setNewsItems( array $newsItems ) { $this->newsItems = $newsItems; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function Update_News_Feed(){\n $RSS_Sites = $this->get_All_RSS_Site();\n\n if(isset($RSS_Sites) && isset($RSS_Sites['result'])){\n $RSS_Sites = $RSS_Sites['result'];\n foreach($RSS_Sites as $RSS_SITE){\n\n $rss = simplexml_load_file($RSS_SITE['link']);\n ...
[ "0.6954817", "0.63167447", "0.6297944", "0.62874347", "0.6270046", "0.62284356", "0.62127346", "0.61609", "0.6123642", "0.6116708", "0.60164183", "0.59972966", "0.59758276", "0.59296983", "0.5881776", "0.58493775", "0.584935", "0.57824785", "0.5778514", "0.57736385", "0.57677...
0.73228574
0
Creates a new Connection. $options may contain the following fields: host The domain name of the SnapBill API. Defaults to api.snapbill.com. secure Boolean flag indicating whether the connection should use SSL or not. Defaults to true. username The username to connect with. A password must be provided along with username. password The password to authenticate with. config Configuration file to load authentication details from if username and password are not specified. Defaults to .snapbill.cfg, under the current user's home directory. Example .snapbill.cfg file: [api] username=me password=1234
Создает новый Connection. $options может содержать следующие поля: host Доменное имя API SnapBill. По умолчанию: api.snapbill.com. secure Флаг, указывающий, использовать ли соединение SSL. По умолчанию: true. username Имя пользователя для подключения. Нужно предоставить пароль вместе с именем пользователя. password Пароль для аутентификации. config Конфигурационный файл, из которого загружаются данные аутентификации, если username и password не указаны. По умолчанию: .snapbill.cfg, находящийся в домашней директории текущего пользователя. Пример файла .snapbill.cfg: [api] username=me password=1234
function __construct($options=array()) { $host = 'api.snapbill.com'; if (isset($options['host'])) $host = $options['host']; $secure = true; if (isset($options['secure'])) $secure = $options['secure']; $this->url = ($secure ? 'https' : 'http').'://'.$host.'/v1'; if (isset($options['username']) && isset($options['password'])) { $this->username = $options['username']; $this->password = $options['password']; } else { // Attempt to load from user's .snapbill.cfg file $config = $_SERVER['HOME'].'/.snapbill.cfg'; if (isset($options['config'])) $config = $options['config']; list($this->username, $this->password) = self::loadAuthFromConfig($config); } if (isset($options['headers'])) { $this->headers = $options['headers']; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createDatabaseConnection($options) {\r\n $required_values = array(\"h\" => \"Host name (-h)\",\r\n \"u\" => \"Username (-u)\",\r\n \"p\" => \"Password (-p)\");\r\n\r\n // iterate and check we have each property\r\n f...
[ "0.6692131", "0.6655115", "0.65076816", "0.65054435", "0.641334", "0.6367807", "0.63539195", "0.6285648", "0.61000305", "0.6091464", "0.60910153", "0.59778523", "0.5943142", "0.5898338", "0.58903456", "0.5857794", "0.58011556", "0.5789477", "0.5787394", "0.577638", "0.5753099...
0.77548176
0
POSTs a request to the API using the given action (which will be added to the URL) and arguments. Returns the results of the API call, after they have been JSON decoded.
Отправляет запрос в API с использованием заданного действия (которое будет добавлено в URL) и аргументов. Возвращает результаты вызова API после их декодирования в JSON.
function post($action, $args=array()) { $curl = $this->initializeCurl($action, $args); $result = curl_exec($curl); if ($result === false) { $error = curl_error($curl); curl_close($curl); throw new Exception($error); } curl_close($curl); $result = json_decode($result, true); if ($result == NULL) { throw new Exception("Could not JSON-decode result"); } if ($result['code'] != 200) { throw new Exception("Received code ".$result['code']." from SnapBill"); } return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function request($action, $body_args=null, $args=null) \n {\n if (!isset($body_args)) $body_args = array();\n if (!isset($args)) $args = array();\n $args = $this->build_request_args($action, array_merge_recursive($args, array('body' => $body_args)));\n\n $raw_response = wp_remote_post($this->a...
[ "0.6940243", "0.6661556", "0.665985", "0.66345084", "0.65064573", "0.64871395", "0.6458438", "0.64113855", "0.62612015", "0.6257237", "0.6242018", "0.61655384", "0.61193246", "0.6110584", "0.6108104", "0.6106816", "0.6071092", "0.60581905", "0.60345954", "0.6030284", "0.60044...
0.74733335
0
Display a listing of the ExpensesSubCategory.
Показать список ExpensesSubCategory.
public function index(ExpensesSubCategoryDataTable $expensesSubCategoryDataTable) { return $expensesSubCategoryDataTable->render('admin.expenses_sub_categories.index'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function subCategoryAction() {\r\n\r\n //GET CATEGORY ID\r\n $category_id_temp = $this->_getParam('category_id_temp');\r\n\r\n //INTIALIZE ARRAY\r\n $this->view->subcats = $data = array();\r\n\r\n //RETURN IF CATEGORY ID IS EMPTY\r\n if (empty($category_id_temp))\r\...
[ "0.7328046", "0.72285277", "0.70808256", "0.6969065", "0.679132", "0.6784096", "0.6778232", "0.6778232", "0.6765282", "0.67611533", "0.67610765", "0.6722545", "0.6720191", "0.67077255", "0.6705642", "0.6689935", "0.66544896", "0.66539115", "0.6645591", "0.6618462", "0.6607431...
0.72360474
1
Show the form for creating a new ExpensesSubCategory.
Показать форму для создания новой подкатегории расходов.
public function create() { $categories = $this->expensesSubCategoryRepository->GetDataForSelect('expenses_categories'); return view('admin.expenses_sub_categories.create',compact('categories')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store(CreateExpensesSubCategoryRequest $request)\n {\n $input = $request->all();\n\n $expensesSubCategory = $this->expensesSubCategoryRepository->create($input);\n\n Flash::success('Expenses Sub Category saved successfully.');\n\n return redirect(route('admin.expenses...
[ "0.72070724", "0.70315605", "0.7002969", "0.6960463", "0.6938514", "0.6927722", "0.68973696", "0.68960285", "0.6869095", "0.68601865", "0.68558764", "0.6854169", "0.6835467", "0.6832695", "0.6827072", "0.6803128", "0.67978185", "0.6795422", "0.67737246", "0.677058", "0.675949...
0.79638183
0
Store a newly created ExpensesSubCategory in storage.
Храните ново созданную ExpensesSubCategory в хранилище.
public function store(CreateExpensesSubCategoryRequest $request) { $input = $request->all(); $expensesSubCategory = $this->expensesSubCategoryRepository->create($input); Flash::success('Expenses Sub Category saved successfully.'); return redirect(route('admin.expensesSubCategories.index')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store(StoreSubcategory $request)\n {\n $request->saveSubcategory();\n\n return back()->with('flash', 'Sub-Category has been added!');\n }", "public function store(StoreSubcategory $request)\n {\n // dd($request->all());\n try {\n \n DB::be...
[ "0.6593663", "0.655088", "0.65343976", "0.6473632", "0.6442522", "0.6380017", "0.6309205", "0.6274532", "0.62533015", "0.6226467", "0.62189394", "0.61956537", "0.61951053", "0.6186111", "0.6181856", "0.6159251", "0.61096305", "0.60999805", "0.60784113", "0.6071185", "0.602693...
0.756329
0
Rertorna un listado de cocheras con los elementos que coincida con la fecha
Возвращает список парковок с элементами, соответствующими дате
public static function TraerCocherasFiltrados($fecha) { $Pdo = new PDO("mysql:host=localhost;dbname=tp-estacionamiento","root",""); $PdoST = $Pdo->prepare("SELECT * FROM cocheras WHERE Fecha = :fecha"); $PdoST->bindValue(":fecha",$fecha); $PdoST->execute(); $ListaCocheras= array(); foreach($PdoST as $registro) //devuelve los valores de la base fila por fila { $ListaCocheras[] = new Cochera($registro['Fecha'],$registro['Cochera']); } return $ListaCocheras; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function listarCobradas($fecha){\n\t\t\n\t\t$bd = conectarBD();\n\t\t\n\t\t$inicio = date('Y-m-01',strtotime($fecha));\n\t\t$fin = date('Y-m-t',strtotime($fecha));\n\t\t\n\t\t$sql = \"SELECT * FROM Factura INNER JOIN Cliente_Externo WHERE Factura.Pagada NOT IN('No') AND (Factura.Fecha_Cobro BETWEEN '\".$inicio.\"'...
[ "0.6499585", "0.6295971", "0.6216519", "0.59898114", "0.5832819", "0.58246934", "0.5660968", "0.56331396", "0.5628576", "0.5619356", "0.56156945", "0.561437", "0.56065613", "0.5606034", "0.56033665", "0.55818534", "0.5556193", "0.55475664", "0.55444187", "0.55378234", "0.5532...
0.70409113
0
Finds the Attachment model based on its primary key value. If the model is not found, a 404 HTTP exception will be thrown.
Находит модель Attachment на основе значения первичного ключа. Если модель не найдена, будет выброшено исключение HTTP 404.
protected function findAttachment($id) { if (($model = AttachmentModel::findOne($id)) !== null) { return $model; } else { throw new NotFoundHttpException('The requested page does not exist.'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function findModel($id)\n {\n if (($model = Attachment::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "protected function findModel($id)\n {\n if (($mode...
[ "0.70240974", "0.69352645", "0.65282816", "0.6521382", "0.6326377", "0.6296791", "0.6295961", "0.6263727", "0.6219882", "0.6211231", "0.6204274", "0.62031066", "0.6200243", "0.61794037", "0.6163959", "0.6114968", "0.61120915", "0.60500443", "0.6047432", "0.60252124", "0.59797...
0.7355099
0
[getSellerCommission get applied commission by particular seller]
[getSellerCommission получить применяемую комиссию по определенному продавцу]
public function getCommissionRateBySeller() { return Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue('SELECT `commision` FROM `'._DB_PREFIX_.'marketplace_commision` WHERE customer_id = '.(int)$this->customer_id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function exchangeCommissions()\n {\n return $this->getRequest('exchange/commission', []);\n }", "public function getCommission()\n {\n return $this->get(self::commission);\n }", "public function getSellerNotHaveCommissionSet()\n\t{\n\t\t$mp_seller_info = Db::getInstance()->exec...
[ "0.61969", "0.61463976", "0.5814581", "0.57908475", "0.5738136", "0.5533632", "0.5448721", "0.53644985", "0.5364142", "0.5304099", "0.52982855", "0.52670175", "0.5252438", "0.5227434", "0.520947", "0.520947", "0.5182177", "0.5167689", "0.51510286", "0.51474506", "0.51305497",...
0.74642736
0
Set Data Provider Manager. NOTE: This is a hack because Symfony DiC cannot handle passing Data Provider Manager via constructor injection as some data providers might also rely on formatter. Hurray for circular dependencies. :(
Установите Data Provider Manager. ЗАМЕЧАНИЕ: это хак, потому что Symfony DiC не может обрабатывать передачу Data Provider Manager через внедрение зависимостей в конструктор, так как некоторые данные провайдеры могут также зависеть от форматера. Ура за циклические зависимости. :()
public function setDataProviderManager(DataProviderManager $dataProviderManager = null) { $this->dataProviderManager = $dataProviderManager; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set_data_provider($dataProvider)\n {\n $this->data_provider = $dataProvider;\n }", "final protected function setDataManager(string $dataManager): self\n\t{\n\t\tif (!is_a($dataManager, DataManager::class, true))\n\t\t{\n\t\t\tthrow new ArgumentTypeException('dataManager', DataManager...
[ "0.6682282", "0.6522459", "0.63266504", "0.62041694", "0.6074951", "0.5897005", "0.5895462", "0.5852402", "0.5808194", "0.5793582", "0.57887393", "0.57887393", "0.57629895", "0.5753019", "0.5736498", "0.5687941", "0.56863534", "0.56770355", "0.56587857", "0.56450003", "0.5642...
0.704039
0
get Suburb list by state id
получить список районов по идентификатору штата
public function getSuburbList($stateID='') { $arrResult = null; $sqlQuery = ''; if ($stateID != '') { $sqlQuery = " AND state_id ='$stateID' "; $QUERY = "SELECT DISTINCT suburb FROM " . $this->table . "suburb WHERE suburb <>'' $sqlQuery ORDER BY suburb"; $this->dbcon->execute_query($QUERY); $arrResult = $this->dbcon->fetch_records(true); } //$arrResult['query'] = $QUERY; return $arrResult; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllsuburbsByPostcode($postcode_id) {\n $stmt = $this->conn->prepare(\"SELECT s.*,p.postcode_id,p.postcode_name,st.state_id,st.state_name,c.country_id,c.country_name FROM suburbs s INNER JOIN postcodes p ON p.postcode_id=s.postcode_id INNER JOIN states st ON p.state_id=st.state_id INNER JO...
[ "0.7311614", "0.69449997", "0.65681434", "0.6532635", "0.64948255", "0.64445513", "0.63993824", "0.6378326", "0.6377899", "0.6372817", "0.63057953", "0.62688845", "0.62135845", "0.61969453", "0.6170874", "0.6158825", "0.6140904", "0.61387324", "0.6107316", "0.61029595", "0.60...
0.7832508
0
Get Free Listing information from CSV file
Получить информацию о бесплатной публикации из файла CSV
function getFreeListingCSV($csv) { $file = fopen($csv['tmp_name'], 'r'); $listings = array(); while (($row = fgetcsv($file, 0, ',', '"')) !== false) { $listings[] = $row; } fclose($file); return $listings; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function importFreeListingInfo($listings) {\n\n $field = $listings[0];\n $freelisting_csv = $GLOBALS['freelisting_csv'];\n $foodwine_seller_lang = &$GLOBALS['_LANG']['seller']['attribute'][5]['subattrib'];\n //print_r($foodwine_seller_lang);\n //exit();\n $success = 0;\n ...
[ "0.6176735", "0.58533245", "0.5833879", "0.57984316", "0.5668335", "0.5665165", "0.56225145", "0.55817103", "0.5505188", "0.5475285", "0.5447386", "0.54401225", "0.5428453", "0.5426606", "0.5420545", "0.54197174", "0.5400144", "0.5390179", "0.53899366", "0.5387509", "0.537139...
0.7450477
0
Import Free Listing information
Импорт информации о бесплатном списке
function importFreeListingInfo($listings) { $field = $listings[0]; $freelisting_csv = $GLOBALS['freelisting_csv']; $foodwine_seller_lang = &$GLOBALS['_LANG']['seller']['attribute'][5]['subattrib']; //print_r($foodwine_seller_lang); //exit(); $success = 0; $fail = 0; $fail_detail = ''; $attribute = 5; $state_id = $postcode = ''; $field_list = array('#', 'website_name', 'url_string', 'nickname', 'attribute', 'sub_attrib', 'state', 'suburb', 'address', 'postcode', 'phone', 'mobile'); unset($_SESSION['multi_fl_import']); if (count(array_unique($field)) != count($field_list)) { return array(0, 'all'); } //check images and save products information to database $sql = "insert into " . $this->table . "bu_detail ("; #, productCode, itemName, price, unit, OBO, onSale, category, deliveryCost, deliveryMethod, mainImage, image1, image2, imge3, description for ($i = 1; $i < count($field); $i++) { //echo "field:[".$field[$i]."]<br>"; $field[$i] = trim($field[$i]); $field[$i] = strtolower($field[$i]); if ($field[$i] != "") { if (!in_array(strtolower($field[$i]), $field_list)) { exit('Error 1:' . 'field:' . $field[$i] . ' i:' . $i . 'csv field:' . $freelisting_csv[$field[$i]]); return array(0, 'all'); } } else { exit('Error 2:' . 'field:' . $field[$i] . ' i:' . $i . 'csv field:' . $freelisting_csv[$field[$i]]); return array(0, 'all'); } if (isset($freelisting_csv[$field[$i]]) && $freelisting_csv[$field[$i]] != "") { $sql.= $freelisting_csv[$field[$i]] . ','; } else { exit('Error 3:' . 'field:' . $field[$i] . ' i:' . $i . 'csv field:' . $freelisting_csv[$field[$i]]); return array(0, 'all'); } } $sql.= "PayDate,renewalDate,CustomerType,is_popularize_store) values("; $counter_i = count($listings); for ($i = 1, $k = 0; $i <= $counter_i; $i++) { if (count($listings[$i]) < count($field)) { continue; } $values = ''; $invalid = 0; $num = 1; $counter_j = count($listings[$i]); $website_name = ''; for ($j = 0; $j < $counter_j; $j++) { $listings[$i][$j] = trim($listings[$i][$j]); $field[$j] = trim($field[$j]); if ($field[$j] == 'website_name' || $field[$j] == 'url_string') { $invalid = (empty($listings[$i][$j]) && $field[$j] == 'website_name') ? 1 : $invalid; if (empty($listings[$i][$j])) { $_SESSION['multi_fl_import'][$i]['msg'][$j] = $GLOBALS['multi_msg'][26]; } if ($field[$j] == 'website_name') { $website_name = $listings[$i][$j]; } elseif ($field[$j] == 'url_string') { $listings[$i][$j] = $this->getFieldValue($listings[$i][$j], $website_name); } /* * *if same item name auto renew the item url*** */ /* * *2011 08 18 Kevin.liu** */ $n = 0; $item_url = $field[$j] == 'url_string' ? clean_url_name($listings[$i][$j]) : $listings[$i][$j]; do { if ($n > 0) { $item_url = clean_url_name($listings[$i][$j]) . (date("His", time() + $i)); } $ckname_bl = $this->checkStoreInfo($item_url, $freelisting_csv[$field[$j]]); $n++; } while ($ckname_bl); if ($ckname_bl) { $invalid = 1; switch ($field[$j]) { case 'website_name': $_SESSION['multi_fl_import'][$i]['msg'][$j] = $GLOBALS['multi_msg'][29]; break; case 'url_string': $_SESSION['multi_fl_import'][$i]['msg'][$j] = $GLOBALS['multi_msg'][30]; break; case 'nickname': $_SESSION['multi_fl_import'][$i]['msg'][$j] = $GLOBALS['multi_msg'][31]; break; default: break; } } $values .= "'" . addslashes($item_url) . "',"; } elseif ($field[$j] == 'attribute') { $values.= "'$attribute',"; } elseif ($field[$j] == 'sub_attrib') { $has = false; foreach ($foodwine_seller_lang as $key => $value) { if (strtolower(trim($value)) == strtolower(trim($listings[$i][$j]))) { $listings[$i][$j] = $key; $has = true; break; } } $listings[$i][$j] = $has ? $listings[$i][$j] : 1; $values.= $listings[$i][$j] . ","; } elseif ($field[$j] == 'email') { $check_email = $this->checkStoreInfo($listings[$i][$j], $freelisting_csv[$field[$j]]); if ($check_email) { $invalid = 1; $_SESSION['multi_fl_import'][$i]['msg'][$j] = $GLOBALS['multi_msg'][25]; } $values.= "'" . $listings[$i][$j] . "',"; } elseif ($field[$j] == 'state') { $listings[$i][$j] = $this->getStateIdByName($listings[$i][$j]); $values.="'" . $listings[$i][$j] . "',"; $state_id = $listings[$i][$j]; } elseif ($field[$j] == 'postcode') { $listings[$i][$j] = $listings[$i][$j] ? $listings[$i][$j] : $postcode; $values.="'" . $listings[$i][$j] . "',"; } elseif ($field[$j] != '' && $field[$j] != '#') { $values.="'" . addslashes($listings[$i][$j]) . "',"; if ($field[$j] == 'suburb') { $postcode = $this->getPostcodeBySuburb($state_id, '', $listings[$i][$j]); } } elseif ($field[$j] == '#') { $num = $listings[$i][$j]; } } //echo "invalid:$invalid<br>"; //exit; if ($invalid == 1) { $fail+= 1; $_SESSION['multi_fl_import'][$i]['ID'] = $num; continue; } $values.= time() . "," . (time() + 365 * 24 * 3600) . ",'seller',1)"; if ($this->dbcon->execute_query($sql . $values)) { $success+= 1; if (!empty($imageinfo[$i])) { $imageinfo[$i]['pid'] = $this->dbcon->insert_id(); $imageinfo[$i]['StoreID'] = $_SESSION['ShopID']; } } else { $_SESSION['multi_fl_import'][$i]['msg'][$j] = $GLOBALS['multi_msg'][17]; $fail+= 1; } $invalid = 0; } //echo "succ:$success; fail:$fail;"; //print_r($_SESSION['multi_fl_import']); //exit; return array($success, $fail); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function importFreeListingByCSV() {\n //echo \"Starting Import\";\n // upload the Free Listing with csv\n $csvfile = $_REQUEST['swf_csv'];\n\n if (is_file($csvfile)) {\n $_FILES['csv']['size'] = filesize($csvfile);\n }\n if ($csvfile == '') {\n $msg =...
[ "0.56212306", "0.5535881", "0.54413676", "0.5437962", "0.5383973", "0.53606063", "0.5341209", "0.53167766", "0.52937394", "0.5271267", "0.52626514", "0.52207804", "0.5207205", "0.52039427", "0.5194387", "0.51444906", "0.5110177", "0.5103717", "0.5103425", "0.50812656", "0.507...
0.7100414
0
Get State ID By Name
Получить ID состояния по имени
function getStateIdByName($name) { if (empty($name)) { return 1; } if (is_int($name)) { return $name; } $name = strtolower($name); $sql = "select id from " . $this->table . "state where lower(stateName)='$name' OR lower(description)='$name'"; $res = $this->dbcon->getOne($sql); return $res ? $res['id'] : 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getStateIdByName($stateName) {\n $sql = \"SELECT state_id\n FROM %s\n WHERE state_name = '%s'\";\n $sqlParams = array($this->tableStates, $stateName);\n\n if ($res = $this->databaseQueryFmt($sql, $sqlParams)) {\n return $res->fetchField();\n }\n return FALSE;\n...
[ "0.80834883", "0.71371335", "0.70238495", "0.6963758", "0.6932086", "0.6897948", "0.68858033", "0.6875423", "0.6814881", "0.6799497", "0.6760017", "0.6718708", "0.6717738", "0.66058874", "0.66042364", "0.6555163", "0.64475715", "0.6442202", "0.642637", "0.6385555", "0.6379671...
0.8518981
0
Get Postcode By Suburb Name
Получить почтовый индекс по названию районов
function getPostcodeBySuburb($state_id='', $suburb_id='', $suburb_name='') { if (empty($state_id) || (empty($suburb_id) && empty($suburb_name))) { return ''; } $suburb_name = clean_url_name(strtolower($suburb_name)); $sql = "select zip from " . $this->table . "suburb where state_id='$state_id' AND (lower(suburb)='$suburb_name' OR suburb_id='$suburb_id')"; $res = $this->dbcon->getOne($sql); return $res ? $res['zip'] : ''; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function searchPostalCode(string $postalCode): array;", "function getSearchPostcodemain($lat,$lng) {\n\n $returnValue = NULL;\n $ch = curl_init();\n $url = \"https://maps.googleapis.com/maps/api/geocode/json?latlng=${lat},${lng}&sensor=false\";\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch...
[ "0.69573766", "0.690292", "0.6894202", "0.6748078", "0.6386013", "0.63440305", "0.62951314", "0.62931794", "0.6292129", "0.6112701", "0.60416913", "0.59928393", "0.5991647", "0.5976201", "0.5963656", "0.5963656", "0.5963656", "0.5962092", "0.59450555", "0.59395355", "0.593914...
0.81457347
0
/ xajax function xajax get store list
Функция xajax xajax получать список хранилищ
function getStoreList($pageno, $objForm, $notOld = true, $field="", $orders='ASC') { $objResponse = new xajaxResponse(); $objAdminStore = &$GLOBALS['objAdminStore']; $req['list'] = $objAdminStore->getStoreList($pageno, $objForm['searchparam'], $notOld, $field, $orders); $req['nofull'] = true; $objAdminStore->smarty->assign('req', $req); $content = $objAdminStore->smarty->fetch('admin_store.tpl'); $objResponse->assign("tabledatalist", 'innerHTML', $content); $objResponse->assign("pageno", 'value', $pageno); return $objResponse; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getStoreListSearch($objForm) {\n $objResponse = new xajaxResponse();\n $objAdminStore = &$GLOBALS['objAdminStore'];\n $strParam = serialize($objForm);\n $req['list'] = $objAdminStore->getStoreList(1, $strParam);\n $req['nofull'] = true;\n $objAdminStore->smarty->assign('req', $req);\n ...
[ "0.7022042", "0.6667081", "0.6581378", "0.6464978", "0.6392219", "0.63703984", "0.63485205", "0.63476276", "0.63211083", "0.63088185", "0.620663", "0.6205428", "0.619247", "0.61890006", "0.6172259", "0.61518824", "0.6138263", "0.6116198", "0.60522425", "0.60233957", "0.601790...
0.7303922
0
xajax get store list of search
xajax получить список хранилищ поиска
function getStoreListSearch($objForm) { $objResponse = new xajaxResponse(); $objAdminStore = &$GLOBALS['objAdminStore']; $strParam = serialize($objForm); $req['list'] = $objAdminStore->getStoreList(1, $strParam); $req['nofull'] = true; $objAdminStore->smarty->assign('req', $req); $content = $objAdminStore->smarty->fetch('admin_store.tpl'); $objResponse->assign("tabledatalist", 'innerHTML', $content); $objResponse->assign("searchparam", 'value', $strParam); $objResponse->assign("pageno", 'value', 1); return $objResponse; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getStoreList($pageno, $objForm, $notOld = true, $field=\"\", $orders='ASC') {\n $objResponse = new xajaxResponse();\n $objAdminStore = &$GLOBALS['objAdminStore'];\n $req['list'] = $objAdminStore->getStoreList($pageno, $objForm['searchparam'], $notOld, $field, $orders);\n $req['nofull'] = true;...
[ "0.67008334", "0.65757775", "0.6560677", "0.6297605", "0.62023324", "0.619543", "0.61276877", "0.60534257", "0.60402566", "0.6015383", "0.6011349", "0.6008116", "0.600579", "0.5974713", "0.5944543", "0.59412324", "0.5934728", "0.59321165", "0.59309864", "0.5930807", "0.591093...
0.74639064
0
xajax get suburb list
xajax получить список районов
function getSuburbList($stateID, $objHTML) { $objResponse = new xajaxResponse(); $objAdminStore = &$GLOBALS['objAdminStore']; $req['suburb'] = $objAdminStore->getSuburbList($stateID); $req['display'] = 'suburb'; $objAdminStore->smarty->assign('req', $req); $content = $objAdminStore->smarty->fetch('admin_store.tpl'); $objResponse->assign("$objHTML", 'innerHTML', $content); return $objResponse; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getsublocations()\n\t{\n\t\t if($this->get_request_method() != \"GET\"){\n\t\t\t$this->response('',406,\"\");\n\t\t }\t\n\t\t //set the xml nodes just in case xml is requested\t\n\t\t$this->pnode = 'sublocations';\n\t\t$this->cnode = 'sublocation'; \n\t\t $sql = \"SELECT * FROM sublocations or...
[ "0.62995243", "0.6016083", "0.5955971", "0.5909021", "0.5815374", "0.56972754", "0.5672799", "0.56619805", "0.5621886", "0.56027836", "0.55876434", "0.55314773", "0.55181444", "0.54751176", "0.5459748", "0.54446834", "0.54355943", "0.5435181", "0.5424226", "0.5422351", "0.542...
0.7346426
0
Quotes fields, also handles aliased fields.
Поле цитат, также обрабатывает поля с псевдонимами.
protected function _fieldsQuote($alias, $field) { list($open, $close) = $this->_quotes; $aliasing = preg_split("/\s+as\s+/i", $field); if (isset($aliasing[1])) { list($aliasname, $fieldname) = $this->_splitFieldname($aliasing[0]); $alias = $aliasname ? : $alias; return "{$open}{$alias}{$close}.{$open}{$fieldname}{$close} as {$aliasing[1]}"; } elseif ($alias) { return "{$open}{$alias}{$close}.{$open}{$field}{$close}"; } else { return "{$open}{$field}{$close}"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function quoteField($name)\n {\n $first = substr($name, 0, 1);\n $last = substr($name, -1, 1);\n\n if ($first === '\"' && $last === '\"') {\n return $name; // already \"quoted\"\n }\n if ($first === \"'\" && $last === \"'\") {\n return $name...
[ "0.6742082", "0.6659516", "0.6353342", "0.6343311", "0.6290151", "0.61550623", "0.6113706", "0.6020632", "0.5994658", "0.5982313", "0.5981167", "0.5981167", "0.59175074", "0.58607006", "0.5772592", "0.57199574", "0.568436", "0.5672767", "0.5645353", "0.56444085", "0.5635154",...
0.75756264
0
Build the command for the given event.
Создайте команду для заданного события.
public function buildCommand(Event $event) { if ($event->runInBackground) { return $this->buildBackgroundCommand($event); } return $this->buildForegroundCommand($event); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function buildCommand(Event $event)\n {\n $command = $this->generateCWD($event);\n $command .= $this->sudo($event);\n $command .= $this->generateEventCommand($event);\n\n return \\trim($command, '& ');\n }", "function &_createEventCommand($command)\n {\n // get ...
[ "0.7926533", "0.7031102", "0.6723554", "0.65613437", "0.6132878", "0.60725665", "0.59074235", "0.5864478", "0.58045286", "0.57682645", "0.5584059", "0.55014706", "0.5432068", "0.53946304", "0.53727937", "0.53104246", "0.5294044", "0.5263301", "0.5227357", "0.5211982", "0.5203...
0.81271553
0
Build the command for running the event in the foreground.
Создайте команду для запуска события в фоновом режиме.
protected function buildForegroundCommand(Event $event) { $output = ProcessUtils::escapeArgument($event->output); return $this->ensureCorrectUser( $event, $event->command.($event->shouldAppendOutput ? ' >> ' : ' > ').$output.' 2>&1' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function buildCommand(Event $event)\n {\n if ($event->runInBackground) {\n return $this->buildBackgroundCommand($event);\n }\n\n return $this->buildForegroundCommand($event);\n }", "protected function buildBackgroundCommand(Event $event)\n {\n $output = Proc...
[ "0.66141504", "0.61339", "0.57371175", "0.5559989", "0.5552326", "0.546477", "0.5453338", "0.5398166", "0.5244729", "0.52355665", "0.5223524", "0.5199755", "0.51542884", "0.5114187", "0.51131725", "0.5099917", "0.50958955", "0.50958955", "0.50727636", "0.5070722", "0.5063065"...
0.7667646
0
Build the command for running the event in the background.
Создайте команду для запуска события в фоновом режиме.
protected function buildBackgroundCommand(Event $event) { $output = ProcessUtils::escapeArgument($event->output); $redirect = $event->shouldAppendOutput ? ' >> ' : ' > '; $finished = Application::formatCommandString('schedule:finish').' "'.$event->mutexName().'"'; if (windows_os()) { return 'start /b cmd /v:on /c "('.$event->command.' & '.$finished.' ^!ERRORLEVEL^!)'.$redirect.$output.' 2>&1"'; } return $this->ensureCorrectUser($event, '('.$event->command.$redirect.$output.' 2>&1 ; '.$finished.' "$?") > ' .ProcessUtils::escapeArgument($event->getDefaultOutput()).' 2>&1 &' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function buildCommand(Event $event)\n {\n if ($event->runInBackground) {\n return $this->buildBackgroundCommand($event);\n }\n\n return $this->buildForegroundCommand($event);\n }", "protected function buildForegroundCommand(Event $event)\n {\n $output = Proc...
[ "0.69917166", "0.65249443", "0.6281711", "0.5486898", "0.5450662", "0.5431586", "0.5423221", "0.54202026", "0.5351219", "0.53433263", "0.53063744", "0.52766347", "0.52608705", "0.5148917", "0.51254904", "0.50892425", "0.50862503", "0.5076039", "0.50031644", "0.495194", "0.495...
0.73577464
0
Store a new pending batch.
Храните новый ожидающий пакет.
public function store(PendingBatch $batch);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function recordPendingBatch($pendingBatch)\n {\n /** @var \\Illuminate\\Support\\Testing\\Fakes\\BusFake $instance */\n return $instance->recordPendingBatch($pendingBatch);\n }", "public function persist($batch) {\n\t\t$connection = new AMQPConnection('localhost'...
[ "0.6058127", "0.60161394", "0.5923668", "0.58331555", "0.581897", "0.5789083", "0.5788427", "0.5751205", "0.574891", "0.5701879", "0.5612198", "0.55579126", "0.5525646", "0.5497498", "0.54835945", "0.5439533", "0.54201525", "0.534926", "0.53486884", "0.53399587", "0.53271735"...
0.8709006
0
Increment the total number of sportevents within the batch.
Увеличьте общее количество спортивных событий в партии.
public function incrementTotalsportevents(string $batchId, int $amount);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function incrementFailedsportevents(string $batchId, string $sporteventId);", "public function increment() {\n $this->count++;\n }", "public function incrementCount()\n \t{\n \t\t++$this->countValue;\n \t}", "public function increment() {\n $this->synapseCounter ++;\n }", "public funct...
[ "0.7214311", "0.6366181", "0.6213474", "0.6180189", "0.6063609", "0.5839625", "0.5684425", "0.5671469", "0.56029266", "0.55403066", "0.55179644", "0.54955965", "0.5483194", "0.5427609", "0.5406442", "0.53994364", "0.5396846", "0.5372352", "0.5372118", "0.5371396", "0.5369695"...
0.7866149
0
Decrement the total number of pending sportevents for the batch.
Уменьшите общее количество ожидающих спортивных событий для пакета.
public function decrementPendingsportevents(string $batchId, string $sporteventId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function incrementFailedsportevents(string $batchId, string $sporteventId);", "public function incrementTotalsportevents(string $batchId, int $amount);", "public function decrementAttempts();", "function decrement_position() {\n\t\t$this->data[$this->position_field] --;\t\t\n\t\t$this->update_over();\...
[ "0.62336695", "0.57592595", "0.5622355", "0.55340725", "0.53212404", "0.5312431", "0.5198239", "0.5189076", "0.51818144", "0.51677424", "0.515615", "0.5151677", "0.5135784", "0.51167446", "0.50923806", "0.50916094", "0.50911134", "0.50821716", "0.50594926", "0.5044832", "0.50...
0.77602553
0
Increment the total number of failed sportevents for the batch.
Увеличьте общее количество неудачных спортивных событий для пакета.
public function incrementFailedsportevents(string $batchId, string $sporteventId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function incrementTotalsportevents(string $batchId, int $amount);", "public function incrementFailAttempt();", "public function failure()\n {\n $this->_failures++;\n }", "public function incrementFailures(int $amount = 1): int;", "public function incrementTestCount()\n {\n ++$...
[ "0.7034548", "0.65707344", "0.62753075", "0.6038293", "0.56276524", "0.56056225", "0.56033003", "0.5595", "0.5544311", "0.5541467", "0.55089366", "0.54578227", "0.5436769", "0.5433532", "0.5432688", "0.5402369", "0.5398081", "0.53942627", "0.53937405", "0.5365564", "0.5352528...
0.8316067
0
Mark the batch that has the given ID as finished.
Отметьте партию с заданным ID как завершенную.
public function markAsFinished(string $batchId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function batchFinish($batchId)\n {\n // for increased compatability for models that expect an ajax request.\n Mage::app()->getRequest()->setParam('id',$batchId);\n if ($batchId) {\n $batchModel = Mage::getModel('dataflow/batch')->load($batchId);\n /* @var $batch...
[ "0.64749813", "0.6214092", "0.62104106", "0.6199429", "0.6126055", "0.5940875", "0.58625937", "0.58376116", "0.5755516", "0.5740708", "0.571401", "0.56933343", "0.5620964", "0.5616556", "0.5534733", "0.55207986", "0.5515404", "0.5499009", "0.54554915", "0.54527146", "0.543604...
0.8318046
0
Cancel the batch that has the given ID.
Отменить пакет с указанным идентификатором.
public function cancel(string $batchId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cancel($id);", "public function cancel($id);", "public function cancelJob(string $id);", "public function cancel($id)\r\n {\r\n $q = new Upload_queue($id);\r\n\r\n // Todo access rights\r\n \r\n if(!$q->id)\r\n {\r\n $this->alert->error('Record...
[ "0.76826596", "0.76826596", "0.7543806", "0.70136595", "0.68929964", "0.66259", "0.65440744", "0.6471032", "0.64273685", "0.64259547", "0.64171594", "0.6397344", "0.638615", "0.6378396", "0.63637984", "0.63388216", "0.6322655", "0.62777", "0.6244936", "0.6177479", "0.61447024...
0.87193805
0
Delete the batch that has the given ID.
Удалить батч с заданным ID.
public function delete(string $batchId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteHistoricBatch(?string $id): void;", "public function destroy($id)\n {\n $batch = Batch::findOrFail($id);\n\n if ($batch->delete()) {\n return response(new BatchCollection($batch), 200);\n } else {\n return response(new BatchCollection($batch), 5...
[ "0.7259794", "0.7184551", "0.69979656", "0.6929004", "0.6900742", "0.6816026", "0.6812295", "0.6806756", "0.6805676", "0.6805676", "0.6805676", "0.6805676", "0.6805676", "0.6805676", "0.6805676", "0.6805676", "0.6805676", "0.6805676", "0.6805676", "0.6805676", "0.6805676", ...
0.8267969
0
Execute the given Closure within a storage specific transaction.
Выполните заданный Closure в транзакции, специфичной для хранилища.
public function transaction(Closure $callback);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function transaction(Closure $fn);", "public function transaction($callback) {}", "function db_transaction(Closure $callback)\r\n{\r\n return Database::transaction($callback);\r\n}", "final protected function transaction(\\Closure $callback)\n\t{\n\t\ttry {\n\t\t\treturn $this->transaction->transac...
[ "0.71141124", "0.633551", "0.6312921", "0.6257771", "0.6228985", "0.6166495", "0.6166495", "0.60838264", "0.5975001", "0.5937189", "0.58573914", "0.5844632", "0.5744831", "0.5739748", "0.56834316", "0.56458336", "0.56380266", "0.5565554", "0.54728645", "0.53155744", "0.523297...
0.7009107
1
use this function for output all success responses it has a log parameters just incase you want to log the response (bonus) $data could be any thing you send but mostlikely it will be an array or a confirmation message
используйте эту функцию для вывода всех успешных ответов, у нее есть параметр log, который позволяет вам логировать ответ (дополнительно). $data может быть любым значением, которое вы отправляете, но, скорее всего, это будет массив или сообщение подтверждения
public static function output_with_success($data, $success_code = 200, $log = null) { header("Content-Type: application/json"); $output = json_encode($data); if(!$output) { self::output_with_error(406,array("error"=>"Resources not acceptable")); } else { http_response_code($success_code); echo $output; } // if(is_null($log)) // { // $log->info("############# Request Sent ####################"); // exit(); // } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static function Success($data = true) {\n\t\theader('Content-Type: application/json');\n\t\tdie(json_encode($data));\n\t}", "static function Response_Successfull($data)\n {\n echo json_encode($data, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);\n }", "public function send_response($data)\n {\n...
[ "0.7400967", "0.7288914", "0.72889036", "0.72378767", "0.7183772", "0.7149985", "0.7057243", "0.7049943", "0.7001781", "0.6991463", "0.6979792", "0.6875998", "0.6790676", "0.67589957", "0.67549044", "0.67334306", "0.6700371", "0.6691762", "0.6682925", "0.6670806", "0.6667208"...
0.7894989
0
use this function for output and log any error it has a log parameters just incase you want to log the response (bonus) $error message is the text you want to display for the client of your API
используйте эту функцию для вывода и логирования любой ошибки, она имеет параметр log, просто в случае, если вы хотите логировать ответ (бонус). $error message — это текст, который вы хотите отобразить клиенту вашей API
public static function output_with_error($code = 400, $error_msg, $log = null) { header("Content-Type: application/json"); http_response_code($code); $error = array("error"=>$error_msg); echo json_encode($error); // if(is_null($log)) // { // $log->info("############# Request Sent ####################"); // exit(); // } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function printErrorLog() {}", "public function logError() {}", "function _error($message = null) {\r\n\t\tif ($message === null) $message = $this->lang->line('Invalid API request');\r\n\t\t$this->_output(array('error' => $message));\r\n\t}", "static function error(){\n $date = \"Y n j, g:i ...
[ "0.74193096", "0.7353603", "0.71627045", "0.71081465", "0.7044252", "0.7001006", "0.6999516", "0.69060624", "0.68581915", "0.6844718", "0.6836716", "0.67900836", "0.6786894", "0.678277", "0.67448837", "0.6715776", "0.668455", "0.66580415", "0.66492057", "0.66450495", "0.66418...
0.73773336
1
use this function to handle the GET HTTP Verb $id is the resource_id
используйте эту функцию для обработки HTTP-метода GET, $id — это resource_id
public function handle_get($id) { $handler = $this->db; $response[0] = $handler->get_record_by_id($id); if(!empty($response[0])) { self::output_with_success(array("data"=>$response[0])); } else { self::output_with_error(404,array("error"=>"Resource not found")); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get($id){}", "public function get($id)\n {\n }", "public function get($id)\n {\n }", "abstract protected function doGet($id, $opt=0);", "function get($id)\n {\n }", "public function get($id) ;", "public function get( $id )\n {\n $className = get_class( $this ...
[ "0.6873937", "0.6768441", "0.6768441", "0.6744379", "0.6581044", "0.65198207", "0.6477746", "0.6389642", "0.638154", "0.6381506", "0.6358939", "0.63153243", "0.63129365", "0.63062525", "0.63062525", "0.63062525", "0.63062525", "0.63062525", "0.63062525", "0.63062525", "0.6306...
0.7141402
0
use this function to handle the POST HTTP Verb $params is sent params for a new resource
используйте эту функцию для обработки HTTP-метода POST $params — параметры, отправляемые для нового ресурса
public function handle_post($params) { $handler = $this->db; if($handler->save($params)) { self::output_with_success(array("status"=>"Resource was added"),201); } else { self::output_with_error(400,array("error"=>"Bad request")); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function POST() {}", "public function post($resource, $body, $params);", "public function post(\n array $params\n ): Response;", "abstract public function post();", "public function handlePostResource(Request $request, array $data);", "protected abstract function post();", "public func...
[ "0.68697435", "0.67334116", "0.6722443", "0.6680049", "0.66700333", "0.6528287", "0.6392273", "0.63565004", "0.630916", "0.6292276", "0.620516", "0.6199306", "0.6192614", "0.61666375", "0.61482096", "0.6137636", "0.61125594", "0.6111827", "0.6081561", "0.6064514", "0.60400975...
0.7613805
0
use this function to handle the PUT HTTP Verb $params is sent params for a new resource $id is the resource_id
используйте эту функцию для обработки HTTP-метода PUT $params — параметры, отправленные для нового ресурса $id — идентификатор ресурса
public function handle_put($params, $id) { $handler= $this->db; $response[0] = $handler->get_record_by_id($id); if(!empty($response[0])) { if($handler->update($params, $id)) { self::output_with_success(array("status"=>"Resource was added"),201); $this->handle_get($id); } else { self::output_with_error(204,array("error"=>"No Content")); } } else{ self::output_with_error(404,array("error"=>"Not Found")); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function put($params)\n {\n\n }", "public function put($params = [])\n {\n }", "public function put($params = [])\n {\n }", "public function put($params = [])\n {\n }", "public function put($id){\t}", "private function setPutMethod() {\n\t\t$this->_action = 'update'...
[ "0.73686", "0.7191", "0.7191", "0.7191", "0.6939278", "0.6936329", "0.67918026", "0.6746011", "0.6698004", "0.66624236", "0.6660013", "0.6660013", "0.6649649", "0.6619504", "0.6608437", "0.6536585", "0.65103537", "0.64700115", "0.6399495", "0.6386492", "0.6358485", "0.63576...
0.8022789
0
Fire Webhook to build Netlify
Fire Webhook для построения Netlify
function wordpress_netlify_enqueue($hook) { $options = get_option( 'wp_trigger_netlify_build_settings' ); wp_enqueue_script( 'wp-trigger-netlify-build', plugin_dir_url( __FILE__ ) . '/js/wp-trigger-netlify-build.js', array(), '20190228', true ); wp_enqueue_style( 'wp-trigger-netlify-build-styles', plugin_dir_url( __FILE__ ) . '/css/wp-trigger-netlify-build.css'); if($options){ wp_localize_script( 'wp-trigger-netlify-build', 'wpTriggerNetlifyBuildVars', $options['wp_trigger_netlify_build_webhook_url'] ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function webhook() {\n \n\t\t\n\t \t}", "function devshop_pull_default_webhook($project_node) {\n $project = $project_node->project;\n\n // Check if body corresponds to a JSON object. \n // This is for GitLab Payloads.\n // @TODO: We should move this to it's own module. There's more GitLab integration...
[ "0.6417855", "0.6318327", "0.62381554", "0.6132428", "0.59156096", "0.58575046", "0.5856183", "0.58041316", "0.5784507", "0.5780495", "0.57624567", "0.57351875", "0.5724932", "0.57202053", "0.56252986", "0.5610069", "0.55586827", "0.54966736", "0.5444851", "0.54109305", "0.53...
0.7076035
0
Create Dashboard Widget for netlify deploy status
Создать виджет панели управления для статуса развертывания netlify
function wp_trigger_netlify_build_dashboard_widgets() { global $wp_meta_boxes; wp_add_dashboard_widget('netlify_dashboard_status', 'Netlify Status', 'wp_trigger_netlify_build_dashboard_status'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function nsp_build_dashboard_widget() {\n\tglobal $newstatpress_dir;\n\tglobal $_newstatpress;\n\n\t$api_key = get_option( 'newstatpress_apikey' );\n\t$newstatpress_url = nsp_plugin_url();\n\n\twp_enqueue_script( 'wp_ajax_nsp_js_dashbord', plugins_url( './js/nsp_dashboard.js', __FILE__ ), array( 'jquery' ...
[ "0.6903923", "0.6870174", "0.6621098", "0.65359175", "0.64789397", "0.64693314", "0.64108133", "0.63617593", "0.63388985", "0.63228106", "0.6306687", "0.6304342", "0.6302544", "0.6266218", "0.62661886", "0.62650865", "0.62635905", "0.6241938", "0.62217623", "0.62102157", "0.6...
0.825357
0
CREAR MENU PARA DESCARGAR CSV
СОЗДАТЬ МЕНЮ ДЛЯ СКАЧИВАНИЯ CSV
function crear_menu(){ add_menu_page('Descarga CSV', 'Descarga Encuesta', 'activate_plugins', 'descarga_csv', 'funcion_descarga', ' dashicons-download', 7); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function csv_to_menu() {\n\t\trequire_once ('Csv_to_array.php');\n\t\t$csv = new Csv_to_array($this->file, ';');\n\t\t$csv->initialize();\n\t\t$csv->remove_header();\n\t\t$this->menu = $csv->get_data();\n\t}", "public function csv();", "private function parseCSVFile() {\n $file = $this->parameters->...
[ "0.72619694", "0.6831892", "0.6786721", "0.67548233", "0.657474", "0.65617096", "0.6356087", "0.63278747", "0.62824076", "0.6260924", "0.6227821", "0.6207462", "0.62002707", "0.6169626", "0.61661875", "0.61480147", "0.61232775", "0.60985905", "0.6074648", "0.6065915", "0.6049...
0.7225082
1
Retrieve the modelId property
Получить свойство modelId
public function getModelId() { return $this->modelId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getModelId()\n {\n return $this->model_id;\n }", "public function getModelId()\n {\n return $this->model_id;\n }", "public function getModelId()\n {\n return $this->model_id;\n }", "public function getModelId()\n {\n return \\XLite\\Core\\Reque...
[ "0.85285634", "0.85285634", "0.85285634", "0.81136435", "0.7988866", "0.7988866", "0.7924489", "0.7741974", "0.77108204", "0.75235736", "0.7428273", "0.73209405", "0.7282236", "0.72648364", "0.7240704", "0.72198385", "0.71646714", "0.7163017", "0.71507215", "0.7148028", "0.71...
0.8592346
0
Retrieve the cpa property
Получить свойство cpa
public function getCpa() { return $this->cpa; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProperty();", "public function getProperty();", "protected function getPropertyValue() {}", "public function getCp()\n {\n return $this->cp;\n }", "public function getCp()\n {\n return $this->cp;\n }", "public function getColeccionPropio()\n\t{\n\t\treturn $th...
[ "0.66354454", "0.66354454", "0.63435", "0.6188628", "0.6188628", "0.6127584", "0.6105462", "0.6105462", "0.6101678", "0.61008686", "0.60760504", "0.60637283", "0.60384595", "0.6027487", "0.6027487", "0.6027487", "0.6027487", "0.6027487", "0.6027487", "0.6027487", "0.6027487",...
0.7928162
0
Retrieve the variationsCount property
Получить свойство variationsCount
public function getVariationsCount() { return $this->variationsCount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getVariantsCountAttribute(): array\n {\n if (array_key_exists('variants_count', $this->cachedAttributes)) {\n return $this->cachedAttributes['variants_count'];\n }\n\n $r = (new AggregateRequest('pageviews', 'load'))\n ->setTime($this->published_at, Car...
[ "0.6940073", "0.69319725", "0.6893271", "0.6661317", "0.6641632", "0.6533132", "0.6478173", "0.6478173", "0.64708346", "0.64692426", "0.64528626", "0.6431898", "0.64006394", "0.63916516", "0.63879967", "0.63879967", "0.6383542", "0.6364811", "0.63577956", "0.6355331", "0.6352...
0.82526356
0
Retrieve the shopInfo property
Получить свойство shopInfo
public function getShopInfo() { return $this->shopInfo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _getShopInfo()\n {\n // Load the shopify model\n $this->_loadShopify();\n\n return $this->Shopify_model->accessAPI( 'shop.json' );\n }", "public function getShopInfo()\n {\n $path = '/api/v2/shop/get_shop_info';\n $timestamp = time();\n $sign = $this->signature...
[ "0.83441275", "0.78965646", "0.7628968", "0.7536807", "0.73737615", "0.7246629", "0.68882555", "0.6887422", "0.68785095", "0.6856278", "0.68422365", "0.6832027", "0.68314105", "0.68048275", "0.67988515", "0.679746", "0.679746", "0.679746", "0.679746", "0.679746", "0.679746", ...
0.8871043
0
Retrieve the onStock property
Получить свойство onStock
public function getOnStock() { return $this->onStock; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getStock()\n {\n return $this->stock;\n }", "public function getStock()\n {\n return $this->stock;\n }", "public function getStock()\n {\n return $this->stock;\n }", "public function getStock()\n {\n return $this->stock;\n }", "public func...
[ "0.7666773", "0.7666773", "0.7666773", "0.7666773", "0.7666773", "0.75931585", "0.7459102", "0.7339771", "0.73123664", "0.72976434", "0.70649767", "0.6783076", "0.6777396", "0.67435336", "0.6719433", "0.6537679", "0.6493904", "0.6493022", "0.647809", "0.64727044", "0.643557",...
0.83481747
0
Retrieve the delivery property
Получить свойство доставки
public function getDelivery() { return $this->delivery; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDelivery(): ?string\n {\n return $this->delivery;\n }", "function getDeliveryName() {\n\t\treturn $this->m_deliveryName;\n\t}", "public function getDeliveryOption()\n {\n return $this->deliveryOption;\n }", "public function delivery_id()\n {\n return $th...
[ "0.75779396", "0.7390862", "0.7333427", "0.71539855", "0.70559806", "0.7052163", "0.7015894", "0.69698256", "0.6944073", "0.69087744", "0.67704326", "0.6734369", "0.67306554", "0.67228085", "0.6711693", "0.6697973", "0.66487134", "0.6599237", "0.6580304", "0.65678775", "0.656...
0.82051945
0
Retrieve the photos property
Получить свойство photos
public function getPhotos() { return $this->photos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPhotos(){\n \n }", "public function getPhotos(): array\n\t{\n\t\treturn $this->photos;\n\t}", "public function getPhotos(): array\n {\n return $this->get('photos');\n }", "public function getPhotos()\n {\n return Photo::getAllPhotosForCongratulation($this->...
[ "0.7713646", "0.76428145", "0.75854635", "0.74767613", "0.72872615", "0.72109354", "0.7201754", "0.71696675", "0.7169426", "0.71523", "0.71523", "0.71523", "0.71523", "0.71523", "0.7133548", "0.7072523", "0.70583415", "0.7021108", "0.69397056", "0.69389105", "0.6922091", "0...
0.810876
0
Retrieve the previewPhotos property
Получить свойство previewPhotos
public function getPreviewPhotos() { return $this->previewPhotos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPhotos()\n {\n return $this->photos;\n }", "public function getPhotos()\n {\n return $this->photos;\n }", "public function getPhotos()\n {\n return $this->photos;\n }", "public function getPhotos(): array\n\t{\n\t\treturn $this->photos;\n\t}", "publ...
[ "0.7470918", "0.7470918", "0.7470918", "0.7163979", "0.6862399", "0.6766133", "0.67353344", "0.67105454", "0.6692467", "0.66696423", "0.666455", "0.66579837", "0.65653116", "0.6482921", "0.6448819", "0.6448819", "0.6367084", "0.63601536", "0.6352316", "0.63474685", "0.6291491...
0.8717982
0
Retrieve the bigPhoto property
Получить свойство bigPhoto
public function getBigPhoto() { return $this->bigPhoto; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPhoto()\r\n {\r\n return $this->photo;\r\n }", "public function getPhoto()\n {\n return $this->photo;\n }", "public function getPhoto()\n {\n return $this->photo;\n }", "public function getPhoto()\n {\n return $this->photo;\n }", "public fu...
[ "0.74448407", "0.74302506", "0.74181753", "0.74181753", "0.74181753", "0.74181753", "0.74181753", "0.74055", "0.71608347", "0.7135184", "0.7003247", "0.69276565", "0.69185877", "0.69016737", "0.69016737", "0.69016737", "0.6768141", "0.6758821", "0.6698196", "0.668572", "0.667...
0.87635803
0