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
Get the last 4 digits
Получить последние 4 цифры
public function getLast4() { return $this->last4; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNumberLastFour()\n {\n return substr($this->getNumber(), -4, 4) ?: null;\n }", "public function getLast4(): ?string\n {\n return $this->last4;\n }", "public function lastFour();", "function mswReverseTicketNumber($num) {\n return ltrim($num,'0');\n}", "public f...
[ "0.83754116", "0.66299206", "0.65090394", "0.6470222", "0.5889983", "0.58706045", "0.5751669", "0.5739986", "0.5738026", "0.5626747", "0.55883497", "0.55612344", "0.5559225", "0.5536912", "0.5530146", "0.55300003", "0.5505192", "0.5489729", "0.5474046", "0.54669124", "0.54497...
0.7043308
1
Get the BinInfo This will consume an external service. It will use the Binlist helper
Получить BinInfo Это будет использовать внешний сервис. Он будет использовать Binlist helper
public function getBinInfo() { if ($this->binInfo === null) { $binInfo = Binlist::get($this->getBin()); $this->binInfo = $binInfo; } return $this->binInfo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getinfo() { \n return $this->bitcoin->getinfo();\n }", "public function raw($bin)\n {\n $fields = $this->fields;\n $fields_query = '';\n if (!empty($fields)) {\n $fields_query = '?fields=';\n foreach ($fields as $field)\n $f...
[ "0.62447894", "0.61306787", "0.6013611", "0.59945554", "0.58691835", "0.5858042", "0.58382255", "0.57989544", "0.57628846", "0.5672831", "0.5636324", "0.56148195", "0.5595069", "0.5574575", "0.5574575", "0.55561835", "0.5535375", "0.5530085", "0.552714", "0.5522978", "0.54809...
0.7646869
0
Return the country code based on the bin. This will consume an external service. It will use the Binlist helper
Верните код страны на основе BIN. Это будет использовать внешний сервис. Он будет использовать помощника Binlist
public function getCountryCode() { if ($this->countryCode === null) { $binInfo = $this->getBinInfo(); if ($binInfo) $this->countryCode = strtoupper($binInfo->countryCode); } return $this->countryCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_country_code_by_bin(string $bin)\n {\n if (!empty($result = api_request(\"https://lookup.binlist.net/${bin}\"))\n && !empty($result['country']['alpha2'])) {\n return $result['country']['alpha2'];\n }\n\n return null;\n }", "public function coun...
[ "0.7667611", "0.69723207", "0.6939835", "0.65765184", "0.64904463", "0.63911295", "0.62834287", "0.62692285", "0.62674534", "0.6251976", "0.623991", "0.623991", "0.6235599", "0.62270087", "0.6225379", "0.61955583", "0.61715555", "0.61145854", "0.61145854", "0.6106203", "0.608...
0.7083919
1
Determine if the length of the credit card number is valid
Определите, является ли длина номера кредитной карты допустимой
public function isValidLength() { if ($this->ccNumber === null) return false; $ccNumberLength = strlen($this->ccNumber); $ccType = $this->getType(); if ($ccType === null) return false; // Check length return in_array($ccNumberLength, $this->cardLength[$ccType]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_valid_bank_card_number($number)\n{\n if (is_null($number) || strlen($number) < 16 || strlen($number) > 19)\n {\n return false;\n }\n $pattern = \"/^\\d{16,19}$/\";\n return (preg_match($pattern, $number) == 1);\n}", "private function isValid(): bool\n {\n $this->generateChecksum();\...
[ "0.73747456", "0.7188931", "0.7173553", "0.7023144", "0.69209266", "0.6856622", "0.6838645", "0.6785059", "0.6746125", "0.66936976", "0.6679283", "0.66473716", "0.66366917", "0.66152406", "0.6597189", "0.65366495", "0.6527042", "0.65013003", "0.6456926", "0.64042544", "0.6403...
0.791776
0
Determine if the checksum is valid
Определите, является ли контрольная сумма корректной
public function isValidChecksum() { $length = strlen($this->number); $value = $this->ccNumber; $sum = 0; $weight = 2; for ($i = $length - 2; $i >= 0; $i--) { $digit = $weight * $value[$i]; $sum += floor($digit / 10) + $digit % 10; $weight = $weight % 2 + 1;...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function validateChecksum() {\n\t}", "private function isValid(): bool\n {\n $this->generateChecksum();\n return (($this->luhnValue % $this->base == 0) && ($this->luhnValue != 0));\n }", "public static function verifyChecksum(): bool\n {\n $checksumFile = static::getChec...
[ "0.81404275", "0.73903674", "0.7319087", "0.712166", "0.69918114", "0.69918114", "0.69786966", "0.6942518", "0.66718996", "0.66687745", "0.66409886", "0.66409886", "0.6591284", "0.6591284", "0.6406728", "0.63726526", "0.6362474", "0.6306898", "0.6290683", "0.62355137", "0.623...
0.7809408
1
Company is reseller if yes than check main reseller account is block or not
Компания является дистрибьютором, если да, то проверьте, заблокирован ли основной дистрибьюторский аккаунт
public static function isResellerAndAccountBlock($CompanyID){ $Blocked = 0; $Reseller = Reseller::where(['ChildCompanyID'=>$CompanyID,'Status'=>1])->first(); if(!empty($Reseller) && count($Reseller)>0){ $Blocked = Account::where(['AccountID'=>$Reseller->AccountID,'Blocked'=>1])->coun...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function chekcingForMarketplaceSellerOrNot() {\n /**\n * Initilize customer and seller group id\n */\n $customerGroupIdVal = $sellerGroupIdVal = $customerStatusValue = '';\n /**\n * Get customer group id\n * @var int\n */\n $customerGroupId...
[ "0.7213912", "0.64622843", "0.6455877", "0.63914883", "0.6371869", "0.631443", "0.61858165", "0.6174443", "0.6128029", "0.61060923", "0.61043173", "0.606956", "0.6061751", "0.59804493", "0.5955446", "0.59412503", "0.5938344", "0.59206146", "0.5875717", "0.58734906", "0.585515...
0.74504066
0
Get the value of DOCUMENT_PRODUCT_COD
Получить значение DOCUMENT_PRODUCT_COD
public function getDocumentProductCod() { return (string) $this->document_product_cod; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductTaxCod()\n {\n return (string) $this->document_product_tax_cod;\n }", "public function getCodProducto()\n {\n return $this->codProducto;\n }", "public function getProduct_code () {\n\t$preValue = $this->preGetValue(\"product_code\"); \n\tif($preValue ...
[ "0.70886934", "0.7078167", "0.7032005", "0.67955357", "0.67727965", "0.67649156", "0.6614036", "0.65372866", "0.6496565", "0.6485905", "0.6436709", "0.6409009", "0.633729", "0.63270354", "0.6316438", "0.62570655", "0.6252855", "0.6243742", "0.6233239", "0.6192485", "0.6179361...
0.8405264
0
Get the value of DOCUMENT_PRODUCT_TAX_COD
Получить значение DOCUMENT_PRODUCT_TAX_COD
public function getDocumentProductTaxCod() { return (string) $this->document_product_tax_cod; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_tax_number()\n {\n if (!empty($this->business_center_id)) {\n $tax_number = $this->db->query_field(DISTRIBUTOR_TAX_NUMBER_SQL, array($this->business_center_id));\n if (!empty($tax_number)) {\n re...
[ "0.6858557", "0.67300886", "0.6703828", "0.64058685", "0.6342145", "0.63100535", "0.6241133", "0.6219471", "0.611676", "0.603875", "0.6038685", "0.60145015", "0.60071737", "0.5994364", "0.5985622", "0.59708077", "0.59659296", "0.59601104", "0.592522", "0.59091187", "0.5887189...
0.8360842
0
Get the value of DOCUMENT_PRODUCT_EAN
Получить значение DOCUMENT_PRODUCT_EAN
public function getDocumentProductEan() { return (string) $this->document_product_ean; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProductEan(): ?string\n {\n return isset($this->ProductEan) ? $this->ProductEan : null;\n }", "public function getProductEan(): ?string\n {\n return isset($this->ProductEan) ? $this->ProductEan : null;\n }", "public function getProductEan(): ?string\n {\n ...
[ "0.67810625", "0.67810625", "0.67810625", "0.6373027", "0.6343185", "0.63141245", "0.62704283", "0.6144007", "0.61240923", "0.6076268", "0.6012841", "0.6012428", "0.5948489", "0.59042156", "0.58385324", "0.57786787", "0.57461154", "0.5739561", "0.5716368", "0.57097673", "0.56...
0.8218687
0
Get the value of DOCUMENT_PRODUCT_NAME
Получить значение DOCUMENT_PRODUCT_NAME
public function getDocumentProductName() { return (string) $this->document_product_name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProduct_name () {\n\t$preValue = $this->preGetValue(\"product_name\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_name;\n\treturn $data;\n}", "public function getProductName() {\n //return the value product name\n ...
[ "0.7640602", "0.7332767", "0.7137405", "0.70744264", "0.68116105", "0.677168", "0.67213136", "0.6633651", "0.645404", "0.645404", "0.645404", "0.64506495", "0.6426123", "0.637185", "0.6345442", "0.6321905", "0.6311883", "0.63108367", "0.63108367", "0.6299598", "0.6297939", ...
0.8192818
0
Get the value of DOCUMENT_PRODUCT_QTD
Получить значение DOCUMENT_PRODUCT_QTD
public function getDocumentProductQtd() { return (string) $this->document_product_qtd; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductName()\n {\n return (string) $this->document_product_name;\n }", "protected function get_kit_product_xref() {\n return $this->kit_product_xref;\n }", "public function getDocumentProductUnitaryValue()\n {\n return (string) $this->document_produc...
[ "0.60668916", "0.5990909", "0.59300536", "0.58928037", "0.5843058", "0.58175474", "0.5812644", "0.5714473", "0.57050836", "0.56999874", "0.566559", "0.56575423", "0.56526875", "0.55947083", "0.55732787", "0.5540638", "0.5502583", "0.5502583", "0.5500493", "0.5495978", "0.5494...
0.7858672
0
Get the value of DOCUMENT_PRODUCT_UNITARY_VALUE
Получить значение DOCUMENT_PRODUCT_UNITARY_VALUE
public function getDocumentProductUnitaryValue() { return (string) $this->document_product_unitary_value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductQtd()\n {\n return (string) $this->document_product_qtd;\n }", "function getProductValue($ms3Oid, $featureName, $raw = false) {\n\t\t$this->dbgstart();\n\t\t$FeatureId = $this->calc->dbutils->getFeatureIdByName($featureName);\n\t\t$pid = $this->calc->getProdIdForMs3...
[ "0.6129802", "0.5982759", "0.5934245", "0.59032756", "0.5890836", "0.58025223", "0.58025223", "0.58012515", "0.5747697", "0.5681665", "0.5675808", "0.56253016", "0.5596031", "0.55907005", "0.5539242", "0.54866797", "0.5453702", "0.5453702", "0.5451396", "0.54511005", "0.54449...
0.80409646
0
Get the value of DOCUMENT_PRODUCT_NCM
Получить значение DOCUMENT_PRODUCT_NCM
public function getDocumentProductNcm() { return (string) $this->document_product_ncm; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductCod()\n {\n return (string) $this->document_product_cod;\n }", "public function getNcm()\n {\n return $this->ncm;\n }", "public function getDocumentProductName()\n {\n return (string) $this->document_product_name;\n }", "public function...
[ "0.67364234", "0.6507221", "0.65016043", "0.6466501", "0.63982826", "0.62910455", "0.6239672", "0.6149253", "0.6134242", "0.6134178", "0.600868", "0.5993247", "0.5928144", "0.58912337", "0.5813766", "0.5804276", "0.58012134", "0.5793698", "0.57884246", "0.5769994", "0.5762754...
0.81500036
0
Set the value of DOCUMENT_PRODUCT_NCM
Задайте значение DOCUMENT_PRODUCT_NCM
public function setDocumentProductNcm(int $document_product_ncm) { $this->collection->put('document_product_ncm', (string) $document_product_ncm); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductNcm()\n {\n return (string) $this->document_product_ncm;\n }", "public function setDocumentProductCest(int $document_product_cest)\n {\n $this->collection->put('document_product_cest', (string) $document_product_cest);\n }", "public function setDocume...
[ "0.67328125", "0.61772215", "0.5627565", "0.5577425", "0.5528688", "0.55231017", "0.55229497", "0.5301814", "0.52691275", "0.5263133", "0.5242944", "0.52088046", "0.51964444", "0.5172375", "0.5153499", "0.50758654", "0.5073894", "0.5042423", "0.50414395", "0.5038642", "0.5024...
0.7783967
0
Get the value of DOCUMENT_PRODUCT_CEST
Получить значение DOCUMENT_PRODUCT_CEST
public function getDocumentProductCest() { return (string) $this->document_product_cest; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductCofinsCst()\n {\n return (string) $this->document_product_cofins_cst;\n }", "public function getDocumentProductIcmsCst()\n {\n return $this->document_product_icms_cst;\n }", "public function getDocumentProductEan()\n {\n return (string) $thi...
[ "0.70420736", "0.69468904", "0.67904675", "0.6736606", "0.66338587", "0.65226346", "0.6506373", "0.65007895", "0.6497574", "0.6393742", "0.6194189", "0.609255", "0.5992611", "0.5832863", "0.5760884", "0.5735403", "0.57184523", "0.56797934", "0.5654433", "0.56490946", "0.55460...
0.79646033
0
Set the value of DOCUMENT_PRODUCT_CEST
Задайте значение DOCUMENT_PRODUCT_CEST
public function setDocumentProductCest(int $document_product_cest) { $this->collection->put('document_product_cest', (string) $document_product_cest); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDocumentProductCofinsCst(string $document_product_cofins_cst)\n {\n $this->collection->put('document_product_cofins_cst', (string) $document_product_cofins_cst);\n }", "public function setDocumentProductIcmsCst(string $document_product_icms_cst)\n {\n $this->collection->...
[ "0.6345856", "0.62950885", "0.5908075", "0.5731057", "0.5718032", "0.5715447", "0.5651033", "0.55116856", "0.54393", "0.5427995", "0.5427111", "0.53686357", "0.5306004", "0.51891226", "0.51050806", "0.5090301", "0.5087608", "0.5063357", "0.50600106", "0.5050315", "0.50469404"...
0.758849
0
Get the value of DOCUMENT_PRODUCT_CFOP
Получить значение DOCUMENT_PRODUCT_CFOP
public function getDocumentProductCfop() { return (string) $this->document_product_cfop; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductCest()\n {\n return (string) $this->document_product_cest;\n }", "public function setDocumentProductCfop(int $document_product_cfop)\n {\n $this->collection->put('document_product_cfop', (string) $document_product_cfop);\n }", "public function getCfop...
[ "0.64385766", "0.6410077", "0.63474876", "0.6285445", "0.6139216", "0.60628617", "0.604928", "0.6034629", "0.5986121", "0.5904679", "0.58149004", "0.5776538", "0.5666895", "0.56599075", "0.5614573", "0.5595402", "0.557422", "0.5564377", "0.5537588", "0.5522951", "0.5495327", ...
0.79477
0
Set the value of DOCUMENT_PRODUCT_CFOP
Задайте значение DOCUMENT_PRODUCT_CFOP
public function setDocumentProductCfop(int $document_product_cfop) { $this->collection->put('document_product_cfop', (string) $document_product_cfop); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductCfop()\n {\n return (string) $this->document_product_cfop;\n }", "public function setDocumentProductCest(int $document_product_cest)\n {\n $this->collection->put('document_product_cest', (string) $document_product_cest);\n }", "public function SetDefa...
[ "0.59732383", "0.58558756", "0.5855747", "0.5799486", "0.5625406", "0.5438423", "0.5410929", "0.53820336", "0.5381488", "0.53658", "0.5317677", "0.52845883", "0.5272279", "0.5245608", "0.51691204", "0.51349854", "0.5071993", "0.507122", "0.50563115", "0.50507486", "0.5018418"...
0.8046122
0
Get the value of DOCUMENT_PRODUCT_DISCOUNT
Получить значение DOCUMENT_PRODUCT_DISCOUNT
public function getDocumentProductDiscount() { return (string) $this->document_product_discount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductNcm()\n {\n return (string) $this->document_product_ncm;\n }", "public function getDiscount()\n\t{\n\t\treturn $this->getKeyValue('Discount'); \n\n\t}", "public function getDocumentProductCod()\n {\n return (string) $this->document_product_cod;\n }",...
[ "0.6296907", "0.6009677", "0.60028696", "0.58579147", "0.5838624", "0.58078605", "0.5730429", "0.5718409", "0.56736743", "0.5661221", "0.56548846", "0.5619972", "0.557242", "0.5563782", "0.5551255", "0.55429363", "0.5539255", "0.5536989", "0.5536989", "0.55282253", "0.5519822...
0.7122667
0
Get the value of DOCUMENT_PRODUCT_ICMS_CST
Получить значение DOCUMENT_PRODUCT_ICMS_CST
public function getDocumentProductIcmsCst() { return $this->document_product_icms_cst; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductIpiCst()\n {\n return (string) $this->document_product_ipi_cst;\n }", "public function getDocumentProductPisCst()\n {\n return (string) (string) $this->document_product_pis_cst;\n }", "public function getDocumentProductCofinsCst()\n {\n retu...
[ "0.76014584", "0.68476796", "0.66269094", "0.6495449", "0.6368592", "0.6332875", "0.6241685", "0.5974501", "0.5929815", "0.578915", "0.57847613", "0.5755456", "0.56317174", "0.54890496", "0.5474392", "0.5465126", "0.54166514", "0.5415783", "0.53968126", "0.53968126", "0.53803...
0.81093717
0
Set the value of DOCUMENT_PRODUCT_ICMS_CST
Установите значение DOCUMENT_PRODUCT_ICMS_CST
public function setDocumentProductIcmsCst(string $document_product_icms_cst) { $this->collection->put('document_product_icms_cst', (string) $document_product_icms_cst); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductIcmsCst()\n {\n return $this->document_product_icms_cst;\n }", "public function setDocumentProductIpiCst(int $document_product_ipi_cst)\n {\n $this->collection->put('document_product_ipi_cst', (string) $document_product_ipi_cst);\n }", "public functio...
[ "0.7181086", "0.70867074", "0.6230185", "0.59676886", "0.59606594", "0.5876622", "0.5527107", "0.55088997", "0.5488337", "0.5203582", "0.5193613", "0.51403403", "0.51362604", "0.50937307", "0.5000548", "0.4975171", "0.4975171", "0.489001", "0.47388262", "0.46920273", "0.46920...
0.78779256
0
Get the value of DOCUMENT_PRODUCT_ICMS_ALIQUOTA
Получить значение DOCUMENT_PRODUCT_ICMS_ALIQUOTA
public function getDocumentProductIcmsAliquota() { return (string) $this->document_product_icms_aliquota; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductIpiAliquota()\n {\n return (string) $this->document_product_ipi_aliquota;\n }", "public function getDocumentProductPisAliquota()\n {\n return (string) $this->document_product_pis_aliquota;\n }", "public function getDocumentProductCofinsAliquota()\n ...
[ "0.7748148", "0.7477283", "0.73343956", "0.6202208", "0.6026077", "0.5936274", "0.5920357", "0.5764523", "0.5719433", "0.5678696", "0.56755286", "0.5661612", "0.55641234", "0.55479956", "0.5541804", "0.55076456", "0.5444175", "0.53773165", "0.5349883", "0.5271518", "0.523727"...
0.80387366
0
Set the value of DOCUMENT_PRODUCT_ICMS_ALIQUOTA
Установите значение DOCUMENT_PRODUCT_ICMS_ALIQUOTA
public function setDocumentProductIcmsAliquota(float $document_product_icms_aliquota) { $this->collection->put('document_product_icms_aliquota', (string) $document_product_icms_aliquota); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDocumentProductIpiAliquota(float $document_product_ipi_aliquota)\n {\n $this->collection->put('document_product_ipi_aliquota', (string) $document_product_ipi_aliquota);\n }", "public function getDocumentProductIcmsAliquota()\n {\n return (string) $this->document_product_...
[ "0.7022972", "0.69151837", "0.6708596", "0.63255256", "0.61990136", "0.61616904", "0.60150886", "0.5663729", "0.5366067", "0.5205891", "0.5130014", "0.5099317", "0.49651566", "0.49491405", "0.48345387", "0.4817023", "0.4700523", "0.4700523", "0.46926457", "0.46026295", "0.458...
0.7439476
0
Get the value of DOCUMENT_PRODUCT_IPI_CST
Получить значение DOCUMENT_PRODUCT_IPI_CST
public function getDocumentProductIpiCst() { return (string) $this->document_product_ipi_cst; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductIcmsCst()\n {\n return $this->document_product_icms_cst;\n }", "public function getDocumentProductPisCst()\n {\n return (string) (string) $this->document_product_pis_cst;\n }", "public function setDocumentProductIpiCst(int $document_product_ipi_cst)\n...
[ "0.68182784", "0.6707252", "0.62440854", "0.5940464", "0.59319866", "0.58903027", "0.5866564", "0.5865579", "0.5549312", "0.5468522", "0.5466877", "0.54611975", "0.5437773", "0.5430682", "0.54193753", "0.5394915", "0.5301958", "0.5298055", "0.52868176", "0.52262765", "0.51123...
0.7846604
0
Set the value of DOCUMENT_PRODUCT_IPI_CST
Задайте значение DOCUMENT_PRODUCT_IPI_CST
public function setDocumentProductIpiCst(int $document_product_ipi_cst) { $this->collection->put('document_product_ipi_cst', (string) $document_product_ipi_cst); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDocumentProductIcmsCst(string $document_product_icms_cst)\n {\n $this->collection->put('document_product_icms_cst', (string) $document_product_icms_cst);\n }", "public function setDocumentProductPiscst(string $document_product_pis_cst)\n {\n $this->collection->put('docum...
[ "0.67029035", "0.6339274", "0.6062076", "0.5832119", "0.5670909", "0.555258", "0.53851664", "0.51954", "0.51451474", "0.5116685", "0.50754505", "0.5053566", "0.50219256", "0.4935607", "0.48674855", "0.48674855", "0.48388153", "0.48168135", "0.4804078", "0.47882086", "0.477291...
0.7667752
0
Get the value of DOCUMENT_PRODUCT_IPI_ALIQUOTA
Получить значение DOCUMENT_PRODUCT_IPI_ALIQUOTA
public function getDocumentProductIpiAliquota() { return (string) $this->document_product_ipi_aliquota; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductIcmsAliquota()\n {\n return (string) $this->document_product_icms_aliquota;\n }", "public function getDocumentProductPisAliquota()\n {\n return (string) $this->document_product_pis_aliquota;\n }", "public function getDocumentProductCofinsAliquota()\n ...
[ "0.76989377", "0.7676531", "0.7001205", "0.63785225", "0.63692695", "0.58422005", "0.5589974", "0.55463535", "0.5536588", "0.55030614", "0.54961556", "0.54907507", "0.54490364", "0.53629017", "0.5356127", "0.53451765", "0.5330909", "0.5291521", "0.5284586", "0.5236343", "0.51...
0.81257683
0
Set the value of DOCUMENT_PRODUCT_IPI_ALIQUOTA
Установите значение DOCUMENT_PRODUCT_IPI_ALIQUOTA
public function setDocumentProductIpiAliquota(float $document_product_ipi_aliquota) { $this->collection->put('document_product_ipi_aliquota', (string) $document_product_ipi_aliquota); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDocumentProductIcmsAliquota(float $document_product_icms_aliquota)\n {\n $this->collection->put('document_product_icms_aliquota', (string) $document_product_icms_aliquota);\n }", "public function getDocumentProductIpiAliquota()\n {\n return (string) $this->document_produ...
[ "0.7108706", "0.7073608", "0.65636307", "0.64673686", "0.6358375", "0.61048526", "0.5561543", "0.55568546", "0.5506728", "0.5445127", "0.53600866", "0.49788535", "0.49465716", "0.49465716", "0.4905343", "0.4905343", "0.48415685", "0.48237023", "0.47509137", "0.46919742", "0.4...
0.7632168
0
Get the value of DOCUMENT_PRODUCT_PIS_CST
Получить значение DOCUMENT_PRODUCT_PIS_CST
public function getDocumentProductPisCst() { return (string) (string) $this->document_product_pis_cst; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductIpiCst()\n {\n return (string) $this->document_product_ipi_cst;\n }", "public function getDocumentProductIcmsCst()\n {\n return $this->document_product_icms_cst;\n }", "public function getPIS()\n {\n return $this->pIS;\n }", "public fun...
[ "0.7598149", "0.6693505", "0.63605064", "0.6030234", "0.59615695", "0.59219176", "0.58843046", "0.57073796", "0.5706667", "0.5688387", "0.5588754", "0.55771387", "0.5571512", "0.5544027", "0.54149705", "0.54082924", "0.5375663", "0.533855", "0.52789134", "0.52406347", "0.5232...
0.74078065
1
Set the value of DOCUMENT_PRODUCT_PIS_CST
Установите значение DOCUMENT_PRODUCT_PIS_CST
public function setDocumentProductPiscst(string $document_product_pis_cst) { $this->collection->put('document_product_pis_cst', (string) $document_product_pis_cst); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDocumentProductIpiCst(int $document_product_ipi_cst)\n {\n $this->collection->put('document_product_ipi_cst', (string) $document_product_ipi_cst);\n }", "public function setDocumentProductIcmsCst(string $document_product_icms_cst)\n {\n $this->collection->put('document_p...
[ "0.72350395", "0.656024", "0.5880204", "0.57285804", "0.5723442", "0.5607413", "0.5573917", "0.5319703", "0.5291768", "0.52509326", "0.50441164", "0.49307394", "0.49186003", "0.4722158", "0.47080618", "0.4701123", "0.46990576", "0.46814469", "0.46468633", "0.46373168", "0.462...
0.72766274
0
Get the value of DOCUMENT_PRODUCT_PIS_ALIQUOTA
Получить значение DOCUMENT_PRODUCT_PIS_ALIQUOTA
public function getDocumentProductPisAliquota() { return (string) $this->document_product_pis_aliquota; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductIpiAliquota()\n {\n return (string) $this->document_product_ipi_aliquota;\n }", "public function getDocumentProductIcmsAliquota()\n {\n return (string) $this->document_product_icms_aliquota;\n }", "public function getDocumentProductCofinsAliquota()\n ...
[ "0.7746799", "0.7274966", "0.6792936", "0.65718615", "0.5923601", "0.58215785", "0.5794177", "0.57673514", "0.57008153", "0.5592656", "0.5556852", "0.55527586", "0.55491024", "0.5526643", "0.5519039", "0.55091786", "0.5413571", "0.5403986", "0.5393269", "0.5386488", "0.535748...
0.76541287
1
Get the value of DOCUMENT_PRODUCT_COFINS_CST
Получить значение DOCUMENT_PRODUCT_COFINS_CST
public function getDocumentProductCofinsCst() { return (string) $this->document_product_cofins_cst; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductIcmsCst()\n {\n return $this->document_product_icms_cst;\n }", "public function getCstCofins()\n {\n return $this->cst_cofins;\n }", "public function getDocumentProductCest()\n {\n return (string) $this->document_product_cest;\n }", "pu...
[ "0.6927473", "0.6868773", "0.6568281", "0.6495302", "0.64735186", "0.6472246", "0.6447161", "0.64454985", "0.63001484", "0.6154556", "0.6144235", "0.5917708", "0.5855762", "0.5797576", "0.5787883", "0.5758336", "0.57354844", "0.57293695", "0.56427044", "0.5641518", "0.5637753...
0.80786407
0
Set the value of DOCUMENT_PRODUCT_COFINS_CST
Установите значение DOCUMENT_PRODUCT_COFINS_CST
public function setDocumentProductCofinsCst(string $document_product_cofins_cst) { $this->collection->put('document_product_cofins_cst', (string) $document_product_cofins_cst); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDocumentProductCest(int $document_product_cest)\n {\n $this->collection->put('document_product_cest', (string) $document_product_cest);\n }", "public function setDocumentProductIcmsCst(string $document_product_icms_cst)\n {\n $this->collection->put('document_product_icms...
[ "0.6640624", "0.6639885", "0.66164434", "0.65267414", "0.60607076", "0.5908602", "0.57555777", "0.57115674", "0.56976277", "0.5514128", "0.53617257", "0.5217201", "0.5161775", "0.5151112", "0.5091954", "0.5068208", "0.5053028", "0.5035455", "0.49965444", "0.49686086", "0.4956...
0.7816083
0
Get the value of DOCUMENT_PRODUCT_COFINS_ALIQUOTA
Получить значение DOCUMENT_PRODUCT_COFINS_ALIQUOTA
public function getDocumentProductCofinsAliquota() { return (string) $this->document_product_cofins_aliquota; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductIcmsAliquota()\n {\n return (string) $this->document_product_icms_aliquota;\n }", "public function getDocumentProductPisAliquota()\n {\n return (string) $this->document_product_pis_aliquota;\n }", "public function getDocumentProductIpiAliquota()\n ...
[ "0.7069205", "0.69054484", "0.6759853", "0.62343174", "0.6082119", "0.592756", "0.59221387", "0.5869005", "0.5699457", "0.566505", "0.56565154", "0.5637489", "0.56222486", "0.54967225", "0.5481819", "0.544269", "0.54211444", "0.5414359", "0.536564", "0.53562856", "0.53233665"...
0.7932899
0
Set the value of DOCUMENT_PRODUCT_COFINS_ALIQUOTA
Задайте значение DOCUMENT_PRODUCT_COFINS_ALIQUOTA
public function setDocumentProductCofinsAliquota(float $document_product_cofins_aliquota) { $this->collection->put('document_product_cofins_aliquota', (string) $document_product_cofins_aliquota); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDocumentProductIcmsAliquota(float $document_product_icms_aliquota)\n {\n $this->collection->put('document_product_icms_aliquota', (string) $document_product_icms_aliquota);\n }", "public function getDocumentProductCofinsAliquota()\n {\n return (string) $this->document_pr...
[ "0.6750867", "0.65985334", "0.6318673", "0.5918599", "0.58983606", "0.5870606", "0.56730485", "0.56056935", "0.53566444", "0.52897686", "0.51968235", "0.5142676", "0.51390696", "0.49675822", "0.4945191", "0.47667527", "0.4754607", "0.47456142", "0.47118095", "0.46851468", "0....
0.7460945
0
this update replaces diverse old navigation modules with conny's new "navigation" module
этот обновление заменяет разнообразные старые модули навигации на новый модуль "navigation" конни
function sitemgr_upgrade1_0_1_001() { $modules2nav_type = array('currentsection' => 1,'index' => 2,'index_block' => 3,'navigation' => 4,'sitetree' => 5,'toc' => 6,'toc_block' => 7); $db = clone($GLOBALS['egw_setup']->db); $db->set_app('sitemgr'); $db2 = clone($db); // get the module_id of all navigation modules ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function contactmod_extend_navigation(navigation_node $navref, stdclass $course, stdclass $module, cm_info $cm) {\n}", "function vitero_extend_navigation(navigation_node $navref, stdclass $course, stdclass $module, cm_info $cm) {\n\n}", "function roshine_extend_navigation(navigation_node $navref, stdclass $cou...
[ "0.7273478", "0.7230432", "0.7149625", "0.7123502", "0.7047796", "0.6939628", "0.67859316", "0.652289", "0.6364496", "0.63575345", "0.6314106", "0.63031256", "0.62661844", "0.6262463", "0.6255353", "0.610678", "0.6106527", "0.61028993", "0.6099241", "0.6099241", "0.6099241", ...
0.732579
0
/ Returns a repository instance by id.
Возвращает экземпляр репозитория по идентификатору.
public function getRepository($id) { foreach ($this->repositories as $repository) { if ($repository->id == $id) { return $repository; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function byId($id)\n\t{\n\t\treturn $this->getMyRepository()->find($id);\n\t}", "public function get($id) {\r\n\treturn $this->getRepository()->find($id);\r\n }", "public function show($id)\n {\n return Repository::find($id);\n }", "public function find($id)\n {\n return $this-...
[ "0.725769", "0.7173772", "0.71196014", "0.7075042", "0.7075042", "0.70541096", "0.69994557", "0.6977102", "0.69726616", "0.6947673", "0.6920996", "0.6920996", "0.6920996", "0.6916889", "0.6892027", "0.6853716", "0.6827931", "0.6827027", "0.6824176", "0.6824176", "0.6824176", ...
0.7418153
0
/ Returns a unique list of available search fields in all datasets.
Возвращает уникальный список доступных полей поиска во всех наборах данных.
public function getSearchFields() { //return $this->searchFields; return ['_all']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSearchFields();", "public function getAllFields();", "public function getFullSearchFields()\r\n\t{\r\n\t\t$file = AKHelper::_('path.get', null, $this->option) . '/models/forms/' . $this->list_name . '/search.xml';\r\n\t\t$file = JFile::exists($file) ? $file : AKHelper::_('path.get', null, $t...
[ "0.73796004", "0.70285296", "0.70238507", "0.6854407", "0.680406", "0.6762993", "0.6738278", "0.66606236", "0.6647226", "0.6607291", "0.6501437", "0.64789635", "0.64746374", "0.64666265", "0.64614743", "0.6434207", "0.641082", "0.64079624", "0.63799804", "0.6353853", "0.63381...
0.72154
1
Returns the time a given `$id` was last modified.
Возвращает время последнего изменения заданного `$id`.
public function getModifiedSince($id) { return $this->_engine->read($id . '.time'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLastChangeTime($id)\n\t{\n\t\t$info = apc_cache_info('user');\n\n\t\tforeach ($info['cache_list'] as $cache) {\n\t\t\tif ($cache['info'] == $id) {\n\t\t\t\treturn $cache['mtime'];\n\t\t\t}\n\t\t}\n\t}", "public function get_post_last_modified_date( $post_id ) {\n\t\t// sanitize the data\n\t\t$...
[ "0.8193143", "0.6926606", "0.691852", "0.67683536", "0.6714139", "0.67109764", "0.669233", "0.6622947", "0.6622947", "0.66020375", "0.66020375", "0.66020375", "0.66020375", "0.6586152", "0.6571084", "0.6562785", "0.6516184", "0.6492995", "0.6491303", "0.6474048", "0.64586145"...
0.84267336
0
Add a new result.
Добавить новый результат.
public function add(ResultInterface $result): void { $this->results[] = $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function addResult($result) {\n //Adds a result to the results array\n $this->results[] = $result;\n }", "public function add_result(array $request, $result) {\n $this->__results[] = array('action' => $request['action'],\n 'method' => $request['method'],\...
[ "0.8433294", "0.7562231", "0.7281013", "0.72187537", "0.7063853", "0.6958396", "0.6875612", "0.67568964", "0.6689229", "0.6564261", "0.63921607", "0.62920845", "0.62433165", "0.6230348", "0.6208291", "0.61159396", "0.6111356", "0.6082091", "0.6045154", "0.6043392", "0.6039806...
0.7675816
1
Get the name of the check that this result was produced from, most likely the CGI Runner.
Получите имя проверки, из которой был создан этот результат, скорее всего, CGI Runner.
public function getCheckName(): string { return $this->name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCheckName()\n {\n return $this->checkName;\n }", "public function getCheckName()\n {\n return $this->checkName;\n }", "public function getCheck()\n {\n return $this->check;\n }", "public function getCheckType()\n {\n return $this->check_type;\n }", "public fun...
[ "0.76915026", "0.76915026", "0.6293923", "0.60093373", "0.59813935", "0.5929647", "0.5929647", "0.5919084", "0.5889784", "0.5855926", "0.5843865", "0.5832248", "0.5827538", "0.5827416", "0.5809944", "0.57702", "0.5727341", "0.56978935", "0.5687933", "0.56351775", "0.56310296"...
0.77728397
0
get tables from sql.
получить таблицы из sql.
public function getTablesFromSQL($sql) { $p = '/CREATE\s+TABLE\s+(IF\s+NOT\s+EXISTS\s+)?([^\(]+)/mi'; $tables = []; $views = []; if (preg_match_all($p, $sql, $ms, PREG_SET_ORDER)) { foreach ($ms as $m) { if (count($m) == 3) { $table =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static function extractTableFromSQL($sql)\n {\n $exp = '/FROM `([^ \\(]*)`/ms';\n $returnArray = array();\n preg_match_all($exp, $sql, $matches);\n \n if(sizeof($matches) > 0 && sizeof($matches[0]) > 0)\n {\n foreach($matches[0] as $index => $value)\n {\n $returnArray ...
[ "0.725672", "0.71201646", "0.70468926", "0.6941071", "0.6924225", "0.6909306", "0.6909306", "0.6909306", "0.68523043", "0.6825294", "0.6823202", "0.67989224", "0.6797344", "0.67838955", "0.677448", "0.6745986", "0.6706683", "0.6692747", "0.66828156", "0.6672765", "0.6665319",...
0.78507185
0
Load fixtures of these bundles.
Загрузите фикстуры этих пакетов.
protected static function loadFixturesBundles() { return [ 'ElcodiCartBundle', 'ElcodiCouponBundle', 'ElcodiProductBundle', 'ElcodiCurrencyBundle', ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function myLoadFixtures()\n {\n $em = $this->getDatabaseManager();\n\n // load fixtures\n $client = static::createClient();\n $classes = array(\n // classes implementing Doctrine\\Common\\DataFixtures\\FixtureInterface\n 'Demofony2\\AppBundle\\DataFixtur...
[ "0.78945607", "0.77032495", "0.7677805", "0.72640926", "0.71303284", "0.712486", "0.7074356", "0.70469743", "0.7042796", "0.7001662", "0.69973683", "0.6990141", "0.6967831", "0.6829711", "0.679635", "0.6784148", "0.6706207", "0.6706207", "0.6699147", "0.6697859", "0.66949654"...
0.78686774
1
Ensures that the passed value is a PdfStream instance.
Гарантирует, что переданное значение является экземпляром PdfStream.
public static function ensure($stream) { return PdfType::ensureType(self::class, $stream, 'Stream value expected.'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function ConvertToPdfStreamRequest(Requests\\ConvertToPdfStreamRequest $request)\n {\n\n $resourcePath = '/conversion/pdf/stream';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = \"\";\n $multipart = false;\n \n\n \n \n ...
[ "0.574167", "0.5731236", "0.56550896", "0.56354856", "0.55255866", "0.5467348", "0.5439911", "0.5428058", "0.53896797", "0.53867954", "0.5348402", "0.53067696", "0.52987117", "0.52778244", "0.5272244", "0.52694595", "0.5248058", "0.5229675", "0.5211279", "0.51727045", "0.5106...
0.78312606
0
Sets and resolves a new connection to redis. It accepts a previously instatiated Predis\Client or anything that the Predis\Client constructor deals with: A parameters array or a connection string.
Устанавливает и разрешает новое соединение с redis. Принимает ранее инициализированный экземпляр Predis\Client или что-либо, с которым может справиться конструктор Predis\Client: массив параметров или строка подключения.
public function setConnection($client) { if ( is_string($client) || is_array($client) ) { $this->redis = null; $this->parameters = $client; } else { $this->redis = $client; } return $this->resolveConnection(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function resolveConnection() {\n if ( !is_null($this->redis) ) return $this->redis;\n\n $parameters = $this->parameters ?: getenv('REDIS_URL') ?: 'tcp://127.0.0.1/6379?database=0';\n\n $this->redis = new Client($parameters);\n\n return $this->redis;\n }", "public function connect() : \\Redis\...
[ "0.78445566", "0.68931377", "0.67441773", "0.6663515", "0.66229135", "0.65599686", "0.65450484", "0.64992803", "0.6485804", "0.64519453", "0.64311147", "0.6430254", "0.6411408", "0.63116777", "0.6186056", "0.61276877", "0.6113228", "0.60947824", "0.60947824", "0.6061913", "0....
0.7552729
1
Adds a class to the links associated with the default navigation. This class is required for the autoScrolling. 1 will effect all links.
Добавляет класс к ссылкам, связанным с основной навигацией. Этот класс необходим для автопрокрутки. 1 повлияет на все ссылки.
function add_menu_link_class( $ulclass ){ return preg_replace('/<a/', '<a class="autoScroll"', $ulclass, -1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function montheme_link_class($attr)\n{\n $attr['class'] = 'nav-link';\n\n return $attr;\n}", "function set_active_nav_class ($classes, $item) {\n if (in_array('current-menu-item', $classes) ){\n $classes[] = 'activemenu ';\n }\n return $classes;\n}", "function launchpad_modify_nav_class($...
[ "0.63640565", "0.63200337", "0.63129985", "0.6191554", "0.6190871", "0.61583066", "0.61058754", "0.6093881", "0.60742766", "0.60561705", "0.60428977", "0.5960877", "0.5957633", "0.59575397", "0.5897958", "0.58969945", "0.5893277", "0.5849162", "0.5840612", "0.5840043", "0.583...
0.70158476
0
Run the query as a "select" statement against the connection.
Запустите запрос как "select" - инструкцию в отношении соединения.
protected function runSelect() { return $this->connection->select( $this->toSql(), $this->getBindings(), $this->option->setUseWrite($this->useWritePdo) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function runSelect()\n {\n return $this->connection->select($this->toCypher(), $this->getBindings());\n }", "protected function runSelectWithMeta()\n {\n return $this->connection->selectWithMeta(\n $this->toSql(),\n $this->getBindings(),\n ! $this...
[ "0.785141", "0.70949924", "0.69674146", "0.6802477", "0.6745786", "0.6729542", "0.6724782", "0.6724782", "0.6724782", "0.6654362", "0.6654362", "0.6625513", "0.6491586", "0.64693105", "0.6467199", "0.64576", "0.64336884", "0.640334", "0.63469887", "0.6339372", "0.63146037", ...
0.78912383
0
Check whether the user is followed by the authenticated user.
Проверьте, следует ли пользователь за аутентифицированным пользователем.
public function getFollowedByAuthUserAttribute(): bool { return $this->isFollowedBy(auth()->user()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function followedBy() {\n return $this->following()\n ->where('followed_user_id', $user->id)\n ->exists();\n }", "public function isFollowBy($user)\n {\n if(!$user->dramas->first()){\n return false;\n }\n\n if ($user->dramas->contains('id'...
[ "0.7508894", "0.68471485", "0.6741216", "0.6659052", "0.663927", "0.6607084", "0.65804416", "0.65804416", "0.6522664", "0.65069395", "0.6406571", "0.6374567", "0.633452", "0.6301231", "0.62850225", "0.6263426", "0.62478536", "0.62437886", "0.61110777", "0.61099374", "0.609731...
0.7348296
1
Show the form for creating a new ipcontaip_10.
Показать форму для создания нового ipcontaip_10.
public function create() { return view('ipcontaip_10s.create'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newAction() {\n\t\t\n\t\t$this->view->form = $this->getForm ( \"/admin/invoices/process\" );\n\t\t$this->view->title = $this->translator->translate(\"New Invoice\");\n\t\t$this->view->description = $this->translator->translate(\"Create a new invoice using this form.\");\n\t\t$this->view->buttons = ...
[ "0.69500047", "0.69191283", "0.6855608", "0.6819723", "0.6764854", "0.6723429", "0.6625553", "0.66110075", "0.6605991", "0.6575237", "0.6574707", "0.65532243", "0.65441114", "0.6486382", "0.6480184", "0.6448292", "0.6428608", "0.6418632", "0.6399656", "0.63943464", "0.6382717...
0.7701765
0
Store a newly created ipcontaip_10 in storage.
Храните только что созданную ipcontaip_10 в хранилище.
public function store(Createipcontaip_10Request $request) { $input = $request->all(); $ipcontaip10 = $this->ipcontaip10Repository->create($input); Flash::success(__('messages.saved', ['model' => __('models/ipcontaip10s.singular')])); return redirect(route('ipcontaip10s.index')); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _addIpToStorage($ip)\n {\n if(isset($this->_ipStorage[$ip]))\n {\n $this->_ipStorage[$ip]++;\n }\n else\n {\n $this->_ipStorage[$ip] = 1;\n } ...
[ "0.6211142", "0.55435055", "0.55076563", "0.55076563", "0.55076563", "0.5473274", "0.5470236", "0.54609966", "0.54609966", "0.54609966", "0.54285103", "0.54285103", "0.54285103", "0.54034954", "0.54034954", "0.54034954", "0.54034954", "0.54034954", "0.54034954", "0.54034954", ...
0.73190695
0
Show the form for editing the specified ipcontaip_10.
Показать форму для редактирования указанного ipcontaip_10.
public function edit($id) { $ipcontaip10 = $this->ipcontaip10Repository->find($id); if (empty($ipcontaip10)) { Flash::error(__('messages.not_found', ['model' => __('models/ipcontaip10s.singular')])); return redirect(route('ipcontaip10s.index')); } return vi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit()\n {\n $where = array('id_isi_paket');\n $data['isi_paket'] = $this->M_isipaket->getEdit($where, 'isi_paket')->result();\n $this->load->view('templates/header');\n $this->load->view('templates/sidebar');\n $this->load->view('admin/isipaket/v_edit_ip', $data);\n $this->load-...
[ "0.7207165", "0.69560516", "0.6881389", "0.68636143", "0.68000615", "0.6777425", "0.66797626", "0.6657619", "0.66482484", "0.66438645", "0.66328996", "0.66157955", "0.660714", "0.6590863", "0.65492976", "0.6547698", "0.65195334", "0.65179294", "0.64886796", "0.6480509", "0.64...
0.74368215
0
Gets the key from default environment.
Получает ключ из среды по умолчанию.
public function getEnvironmentKey(string $key) { return self::$defaultEnv[$key] ?? null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function env($key, $default = NULL)\n\t{\n\t\treturn Env::get($key, $default);\n\t}", "protected static function getDefaultKey()\n {\n $aliases = self::getAliases();\n return reset($aliases);\n }", "function env(string $key, $default = null)\n{\n return Env::get($key, $default);\n}", "...
[ "0.7443136", "0.7277933", "0.72032195", "0.715204", "0.69998187", "0.67167616", "0.66829705", "0.66418755", "0.65839034", "0.65781677", "0.65497625", "0.6549127", "0.65316975", "0.6514181", "0.6506154", "0.6480379", "0.6421464", "0.64208657", "0.64068097", "0.64052266", "0.63...
0.74464834
0
Get the host and port, but only if the port is not the standard port for the request scheme.
Получите хост и порт, но только в том случае, если порт не является стандартным портом для схемы запроса.
public function getHostAndPort(): string { $host = $this->getHost(); $port = $this->getPort(); // Only append the port if it is non-standard. if (($port === 80 && $this->getScheme() === 'http') || ($port === 443 && $this->getScheme() === 'https')) { $port = ''; }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getRequestUrl()\n {\n $url = get_request_url_schema() . '://' . app()->request()->getHost();\n if ((app()->request()->getScheme() === 'https' && app()->request()->getPort() !== 443) || (app()->request()->getScheme() === 'http' && app()->request()->getPort() !== 80)) {\n ...
[ "0.6940787", "0.6725435", "0.66645265", "0.6634024", "0.6617154", "0.6539841", "0.65330136", "0.6501285", "0.64626354", "0.63896424", "0.6353074", "0.6286236", "0.6281017", "0.62698424", "0.6262509", "0.62529975", "0.6243503", "0.6242657", "0.6171807", "0.6171807", "0.6135079...
0.70863867
0
Get the path and file extenstion.
Получите путь и расширение файла.
public function getPathExt(): string { return $this->env['PATH_INFO'] . $this->env['EXT']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getExt()\n {\n $filename = $this->getPath(); \n return pathinfo($filename, PATHINFO_EXTENSION);\n }", "public function getExtension()\n {\n return $this->_path['extension'];\n }", "function cmfcFile_getFileExtension($path) {\n\t\t$path_parts = pathinfo($path);\n...
[ "0.75995404", "0.7561805", "0.74853176", "0.7477782", "0.74633014", "0.73658264", "0.73412746", "0.7324947", "0.7301123", "0.7259444", "0.71589845", "0.7151792", "0.71419865", "0.71225935", "0.710253", "0.7084196", "0.7074991", "0.7073601", "0.70526123", "0.7050882", "0.70506...
0.768989
0
Set the path with file extension.
Установите путь с расширением файла.
public function setPathExt($path) { // Strip the extension from the path. if (substr($path, -1) !== '/' && ($pos = strrpos($path, '.')) !== false) { $ext = substr($path, $pos); $path = substr($path, 0, $pos); $this->env['EXT'] = $ext; } else { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setExtensionsPath($value)\r\n\t\t{\r\n\t\t\t$this->_extensionsPath = $value;\r\n\t\t}", "function setFilenameExtension()\n\t{\n\t\t$sOldFilenameExtension = substr($this->filename, strlen($this->filename) - 4, 4);\n\t\tif (($sOldFilenameExtension != '.gif') &&\n\t\t\t\t($sOldFilenameExtension != '.jpg') ...
[ "0.7662134", "0.6956954", "0.6884025", "0.6865424", "0.68201274", "0.68159586", "0.68116343", "0.67807174", "0.67807174", "0.67807174", "0.67807174", "0.6763521", "0.6748533", "0.6747188", "0.6700717", "0.6686993", "0.6649607", "0.6637435", "0.6561455", "0.65526015", "0.65381...
0.7047946
1
Sets the port. Setting the port to 80 or 443 will also set the scheme to http or https respectively.
Устанавливает порт. Установка порта в значение 80 или 443 также установит схему в http или https соответственно.
public function setPort($port) { $this->env['SERVER_PORT'] = $port; // Override the scheme for standard ports. if ($port === 80) { $this->setScheme('http'); } elseif ($port === 443) { $this->setScheme('https'); } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setPort($port = 80) {\n $this->_port = $port;\n }", "public function setPort($port) {\n\n $this->port = $port;\n }", "function resetPort() {\n\t\t$this->port = 80;\n\t}", "public function setPort($port);", "public function setPort($port);", "protected function _setPort($uri)...
[ "0.79374236", "0.7243715", "0.7236918", "0.7216893", "0.7216893", "0.71609414", "0.70623255", "0.7055828", "0.7017118", "0.6958305", "0.6948222", "0.6948222", "0.68859076", "0.68381274", "0.681002", "0.67549926", "0.66723573", "0.65731156", "0.6547785", "0.64400315", "0.63999...
0.7482284
1
Get the root directory (SCRIPT_NAME) of the request.
Получите корневую директорию (SCRIPT_NAME) запроса.
public function getRoot(): string { return (string)$this->env['SCRIPT_NAME']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function root()\n {\n if ($this['environment']->has('SCRIPT_FILENAME') === false) {\n throw new \\RuntimeException(\n 'The \"`\"SCRIPT_FILENAME\" server variable could not be found.\n It is required by \"Workbench::root()\".'\n );\n }\n\n...
[ "0.7580802", "0.7493933", "0.7452792", "0.7403596", "0.72699195", "0.7243799", "0.72409457", "0.7224431", "0.7128864", "0.7122279", "0.69957715", "0.6993056", "0.69245964", "0.6921302", "0.6858084", "0.6807156", "0.6761991", "0.6761525", "0.6759399", "0.67573005", "0.6745137"...
0.7821537
0
Set the root directory (SCRIPT_NAME) of the request. This method will modify the set root to include a leading slash if it does not have one. A root of just "/" will be coerced to an empty string.
Установите корневую директорию (SCRIPT_NAME) запроса. Этот метод изменит установленную корневую директорию, добавив ведущий слеш, если он отсутствует. Корневая директория, состоящая только из "/", будет преобразована в пустую строку.
public function setRoot($root) { $value = trim($root, '/'); if ($value) { $value = '/' . $value; } $this->env['SCRIPT_NAME'] = $value; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function setDocRoot($docRoot = '')\n {\n self::$isDocRootSet = true;\n if ($docRoot) {\n $_SERVER['DOCUMENT_ROOT'] = $docRoot;\n } elseif (isset($_SERVER['SERVER_SOFTWARE'])\n && 0 === strpos($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS/')) {\n ...
[ "0.6698858", "0.6652532", "0.6652271", "0.6464929", "0.639666", "0.6332436", "0.6206512", "0.61203665", "0.60930043", "0.60909283", "0.605667", "0.6043896", "0.60407007", "0.60255295", "0.6020014", "0.60084206", "0.6006866", "0.5964469", "0.5919261", "0.58934736", "0.5877117"...
0.7184873
0
Split the file extension off a path.
Отделите расширение файла от пути.
protected static function splitPathExt(string $path): array { if (substr($path, -1) !== '/' && ($pos = strrpos($path, '.')) !== false) { $ext = substr($path, $pos); $path = substr($path, 0, $pos); return [$path, $ext]; } return [$path, '']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getextension($path){\n return strtolower(pathinfo($path, PATHINFO_EXTENSION)); // extension only, no period\n}", "protected function getFileExtension($path)\n\t{\n\t\t$exp = explode('.', $path);\n\t\treturn end($exp);\n\t}", "public static function getExtension($path)\r\n\t{\r\n\t\t$filename=self::...
[ "0.71330637", "0.71044135", "0.69933677", "0.69915026", "0.68960947", "0.6814501", "0.6808447", "0.67423433", "0.67423433", "0.67423433", "0.6727039", "0.67166877", "0.67149675", "0.67112654", "0.6706149", "0.66866744", "0.6652338", "0.66074353", "0.6601057", "0.6589914", "0....
0.7546478
0
Get current render type
Получить текущий тип рендера
public function renderType(): string { $type = strtolower(Arr::get($_REQUEST, 'renderType', 'all')); if ($type === self::RENDER_VIEW) { return self::RENDER_VIEW; } if ($type === self::RENDER_JSON && $this->allowRenderJson) { return self::RENDER_JSON; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getCurrentRenderingType() {}", "public function getContentType()\n {\n return self::RENDERER_CONTENT_TYPE;\n }", "function _get_type() {\n\t\treturn $this->type();\n\n\t}", "function get_type() {\n\t\treturn $this->get_data( 'type' );\n\t}", "public function type() {\n\t\t\t...
[ "0.8919033", "0.7194314", "0.7146243", "0.7075005", "0.69706655", "0.69677234", "0.694036", "0.694036", "0.694036", "0.6928109", "0.6900995", "0.6891592", "0.6890317", "0.68089515", "0.6806838", "0.6805817", "0.68015575", "0.6798868", "0.6796989", "0.6776739", "0.6775236", ...
0.7848222
1
Set current render type
Установить текущий тип рендера
public function setRenderType($type) { if ($type === self::RENDER_JSON) { $this->allowRenderJson = true; } $_REQUEST['renderType'] = $type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getCurrentRenderingType() {}", "protected function set_type() {\n\n\t\t\t$this->type = 'kirki-editor';\n\n\t\t}", "protected function set_type() {\n\t\t$this->type = 'kirki-color';\n\t}", "public function renderType(): string\n {\n $type = strtolower(Arr::get($_REQUEST, 'renderTy...
[ "0.7719655", "0.72059864", "0.70931506", "0.6578186", "0.6428203", "0.6336688", "0.630064", "0.62827736", "0.62827736", "0.6229062", "0.6229062", "0.6229062", "0.6229062", "0.6229062", "0.6229062", "0.6229062", "0.6229062", "0.6225332", "0.62018394", "0.6165206", "0.6154448",...
0.75706804
1
Get nuCNPJ value An additional test has been added (isset) before returning the property value as this property may have been unset before, due to the fact that this property is removable from the request (nillable=true+minOccurs=0)
Получить значение nuCNPJ. Добавлено дополнительное тестирование (isset) перед возвращением значения свойства, так как это свойство может быть unset'ed ранее, поскольку это свойство может быть удалено из запроса (nillable=true+minOccurs=0)
public function getNuCNPJ() { return isset($this->nuCNPJ) ? $this->nuCNPJ : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCNPJ()\n {\n return $this->CNPJ;\n }", "public function setNuCNPJ($nuCNPJ = null)\n {\n // validation for constraint: string\n if (!is_null($nuCNPJ) && !is_string($nuCNPJ)) {\n throw new \\InvalidArgumentException(sprintf('Invalid value %s, please provi...
[ "0.7387478", "0.6545874", "0.6433879", "0.60878026", "0.57857925", "0.5743779", "0.5743077", "0.5651185", "0.5620619", "0.5589523", "0.5582703", "0.55487883", "0.5537565", "0.54640776", "0.5449707", "0.5344199", "0.5342418", "0.5286678", "0.52621996", "0.5240857", "0.5155952"...
0.81627965
0
Set nuCNPJ value This property is removable from request (nillable=true+minOccurs=0), therefore if the value assigned to this property is null, it is removed from this object
Задайте значение nuCNPJ. Эта свойство может быть удалено из запроса (nillable=true+minOccurs=0), поэтому если значение, назначенное этой свойству, равно null, оно удаляется из этого объекта.
public function setNuCNPJ($nuCNPJ = null) { // validation for constraint: string if (!is_null($nuCNPJ) && !is_string($nuCNPJ)) { throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($nuCNPJ, true), gettype($nuCNPJ)), __LINE__); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNuCNPJ()\n {\n return isset($this->nuCNPJ) ? $this->nuCNPJ : null;\n }", "public function setNuCpf($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->nu_cpf !== $v) {\n\t\t\t$this->nu_cpf = $v;\n\t\t\t$this->modifiedColumns[] = UsuarioPeer::NU_CPF;\...
[ "0.70318806", "0.6352188", "0.63390356", "0.6264461", "0.605475", "0.5691088", "0.56090206", "0.54547113", "0.5376895", "0.53452873", "0.5060438", "0.5053082", "0.50386286", "0.4998144", "0.49142256", "0.48971048", "0.48848438", "0.48531184", "0.48383355", "0.4787304", "0.474...
0.77720994
0
Devuelve el valor del campo servicio_id
Возвращает значение поля service_id
public function getServicioId() { return $this->servicio_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIdSolicitudServicio()\n {\n return $this->idSolicitudServicio;\n }", "public function getIdproducto()\n {\n return $this->idproducto;\n }", "public function getserviceId()\n {\n return $this->service_id;\n }", "public function getId_producto()\n {\...
[ "0.68689317", "0.6775176", "0.6761141", "0.67437375", "0.6721266", "0.6643114", "0.6622726", "0.65125185", "0.6310367", "0.6310367", "0.63039243", "0.6297251", "0.6289365", "0.6287069", "0.6240191", "0.6200611", "0.6130357", "0.61295295", "0.6125777", "0.6054084", "0.600361",...
0.781281
0
Devuelve el valor del campo fecha_emision
Возвращает значение поля fecha_emision
public function getFechaEmision() { return $this->fecha_emision; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDateEmbauche() \n {\n return $this->dateEmbauche;\n }", "public function getDateEmbauche() {\n return $this->dateEmbauche;\n }", "public function getDataEmissao()\n {\n if ($this->data_emissao) {\n return $this->data_emissao->format('d/...
[ "0.7006998", "0.6980797", "0.6960361", "0.6689627", "0.6555423", "0.6460024", "0.64390945", "0.6432203", "0.64205927", "0.6409014", "0.64067", "0.6393756", "0.63772196", "0.6345658", "0.6345658", "0.6340427", "0.6340427", "0.6334763", "0.6334763", "0.62975705", "0.62692297", ...
0.8239672
0
Devuelve el valor del campo hora_emision
Возвращает значение поля hora_emision
public function getHoraEmision() { return $this->hora_emision; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFechaEmision() {\n return $this->fecha_emision;\n }", "public function getHora () {\n return $this->sHora;\n }", "public function getHora() {\n\t\treturn $this->Hora;\n\t}", "public function vr_hora()\n {\n\n $valor=$this->vr_hora;\n\n if ($this->id_tipotitul...
[ "0.65435153", "0.6455479", "0.6292575", "0.62881976", "0.6161635", "0.61513877", "0.6105583", "0.6012341", "0.5978272", "0.59748137", "0.59319216", "0.5927506", "0.58448136", "0.5804721", "0.579182", "0.5748508", "0.5707179", "0.56610614", "0.560726", "0.55873615", "0.5587092...
0.7202685
0
Devuelve el valor del campo caja_id
Возвращает значение поля caja_id
public function getCajaId() { return $this->caja_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function CajaPorId()\n{\n\tself::SetNames();\n\t$sql = \" select * from cajas LEFT JOIN usuarios ON cajas.codigo = usuarios.codigo WHERE cajas.codcaja = ?\";\n\t$stmt = $this->dbh->prepare($sql);\n\t$stmt->execute( array(base64_decode($_GET[\"codcaja\"])) );\n\t$num = $stmt->rowCount();\n\tif($num==0)\n\t{\...
[ "0.6852763", "0.6831697", "0.67713815", "0.6664029", "0.6540013", "0.63944626", "0.6358018", "0.62957287", "0.6293707", "0.62210506", "0.6147427", "0.6134091", "0.6108021", "0.60921806", "0.6081169", "0.607114", "0.6070595", "0.60423636", "0.604104", "0.60222363", "0.59539795...
0.78930396
0
Devuelve el valor del campo por_atender
Возвращает значение поля por_atender
public function getPorAtender() { return $this->por_atender; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAtendido() {\n return $this->atendido;\n }", "public function getAtualizadoEm()\n {\n return $this->atualizadoEm;\n }", "public function getValor($atributo){//retornar algún valor\n \treturn $this->$atributo;\n }", "public function getPeriodeAu() {\n ret...
[ "0.59466577", "0.5935895", "0.5692869", "0.5691022", "0.56848425", "0.56571907", "0.55415165", "0.5536568", "0.5531506", "0.5531506", "0.5531506", "0.54861516", "0.5406041", "0.5402657", "0.5389934", "0.5374603", "0.5351827", "0.5346965", "0.5331697", "0.5328608", "0.5327942"...
0.72013026
0
Devuelve el valor del campo fecha_inicio_atencion
Возвращает значение поля дата_начала_внимания
public function getFechaInicioAtencion() { return $this->fecha_inicio_atencion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHoraInicioAtencion() {\n return $this->hora_inicio_atencion;\n }", "public function getFecha_inicio_joven() {\n return $this->fecha_inicio_joven;\n }", "public function getFechaInicio()\n {\n $fechaInicio = null;\n if (count($this->objetivos)==0) return $...
[ "0.73275936", "0.73154277", "0.73121965", "0.6783579", "0.6724466", "0.6679665", "0.66117424", "0.65899104", "0.65748334", "0.6535769", "0.6510804", "0.6471809", "0.63673246", "0.63495433", "0.6236124", "0.623261", "0.62192476", "0.6170988", "0.61702806", "0.6131831", "0.6120...
0.8193018
0
Devuelve el valor del campo hora_inicio_atencion
Возвращает значение поля hora_inicio_atencion
public function getHoraInicioAtencion() { return $this->hora_inicio_atencion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTimeInicioHora()\n {\n return $this->timeInicioHora;\n }", "public function getFechaInicioAtencion() {\n return $this->fecha_inicio_atencion;\n }", "function convertir_hora_militar($seg_ini) {\n\n\t\t\t$horas = floor($seg_ini/3600);\n\t\t\t$minutos = floor(($seg_ini-($...
[ "0.7474662", "0.6772698", "0.63502955", "0.61945087", "0.6184931", "0.6107615", "0.6102455", "0.60586506", "0.60097235", "0.5968521", "0.5827638", "0.5734476", "0.5650245", "0.55953014", "0.55205995", "0.551672", "0.54624814", "0.54545605", "0.54406494", "0.54281694", "0.5422...
0.80287415
0
Devuelve el valor del campo fecha_fin_atencion
Возвращает значение поля дата_окончания_обслуживания
public function getFechaFinAtencion() { return $this->fecha_fin_atencion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDateFinContrat() {\n return $this->dateFinContrat;\n }", "public function getDateFin();", "public function getDtValiditeFin() {\n return $this->dtValiditeFin;\n }", "public function getDateFin(): ?DateTime {\n return $this->dateFin;\n }", "public function ge...
[ "0.7289195", "0.72578466", "0.71816194", "0.705166", "0.705166", "0.69279367", "0.68171304", "0.6730832", "0.6528511", "0.64464116", "0.6348788", "0.6329321", "0.62511325", "0.6233209", "0.6233209", "0.6204804", "0.61754537", "0.6101448", "0.60763043", "0.6026181", "0.6009044...
0.78170794
0
Devuelve el valor del campo hora_fin_atencion
Возвращает значение поля hora_fin_atencion
public function getHoraFinAtencion() { return $this->hora_fin_atencion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTimeFinHora()\n {\n return $this->timeFinHora;\n }", "public function getHeureFin(): ?DateTime {\n return $this->heureFin;\n }", "public function getHeureFin(): ?DateTime {\n return $this->heureFin;\n }", "function Hora_prog($valor){\t\n\n return date(\"H:i...
[ "0.7428927", "0.59811115", "0.59811115", "0.59632075", "0.5957478", "0.5921583", "0.57658756", "0.57178104", "0.5706551", "0.5645556", "0.5608898", "0.56039476", "0.56012124", "0.5557647", "0.5543145", "0.5500118", "0.54797", "0.5477522", "0.54439497", "0.5356652", "0.5313261...
0.71295345
1
Verifies setting a bad mode will result in a false return
Проверяет, что установка неправильного режима приведет к возврату ложного значения
public function testBadMode() { $client = new Client($this->options); $this->assertFalse($client->setMode('mittens')); $this->assertTrue($client->getMode() === 'testing'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function failNoisily() :bool{\n\t\treturn !$this->failSilently;\n\t}", "public function testUnsupportedMode()\n {\n $request = new Request('', '');\n $request->setMode('invalid-mode');\n }", "public function errorMode(){}", "public function isRisky()\r\n {\r\n $this->case...
[ "0.6583825", "0.64780194", "0.6459585", "0.63105553", "0.61969745", "0.6155871", "0.6149566", "0.6125784", "0.61187524", "0.6003309", "0.5939525", "0.5938211", "0.59324205", "0.591493", "0.5914624", "0.5910613", "0.5905663", "0.5898466", "0.5876846", "0.5858442", "0.58456284"...
0.72837514
0
Let's try to make a call to the sendwithus API We'll call for a list of emails and verify they're an array from their api
Давайте попробуем сделать вызов API sendwithus. Мы вызовем список электронных адресов и проверим, что они представляют собой массив из их API.
public function testMagicCall() { $client = new Client($this->options); $emails = $client->emails(); $this->assertTrue(is_array($emails)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function validateEmails($apiPublicKey, $emailAddressArray) {\n\n $emailsAddresses = implode(\",\", $emailAddressArray);\n\n $fields = array(\n 'addresses' => $emailsAddresses,\n 'api_key' => $apiPublicKey,\n );\n\n\n $getFields = http_build_query($fields);\n $url = \"https://api.mailgu...
[ "0.70612866", "0.6870888", "0.66912246", "0.6623433", "0.64342874", "0.6317842", "0.62271696", "0.62232995", "0.6178734", "0.6142892", "0.6132692", "0.60715073", "0.6045889", "0.6017472", "0.6014816", "0.6012517", "0.59815806", "0.5980452", "0.59439987", "0.592657", "0.591795...
0.7185807
0
A test that timeouts
Тест с таймаутами
#[@test, @limit(time= 0.010)] public function timeouts() { $start= gettimeofday(); $end= (1000000 * $start['sec']) + $start['usec'] + 1000 * 50; // 0.05 seconds do { $now= gettimeofday(); } while ((1000000 * $now['sec']) + $now['usec'] < $end); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_refreshMessageTimeout() {\n\n }", "public function timeout();", "#[@test, @limit(time= 1.0)]\n public function noTimeout() {\n }", "private function skipTimeoutTest()\n {\n static::fail('API timeouts detected. We will probably not be able to complete this test suite.')...
[ "0.7561078", "0.7497891", "0.72912186", "0.72688377", "0.66882604", "0.6644517", "0.6635606", "0.6625729", "0.65839547", "0.6556796", "0.6513962", "0.6467422", "0.6376875", "0.6376875", "0.6376875", "0.6376875", "0.6376875", "0.6376875", "0.6361043", "0.6285883", "0.6273379",...
0.77514756
0
A test that does not timeout
Тест, который не завершается тайм-аутом
#[@test, @limit(time= 1.0)] public function noTimeout() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function skipTimeoutTest()\n {\n static::fail('API timeouts detected. We will probably not be able to complete this test suite.');\n }", "public function test_refreshMessageTimeout() {\n\n }", "#[@test, @limit(time= 0.010)]\n public function timeouts() {\n $start= gettimeofday()...
[ "0.71282625", "0.71238416", "0.69717467", "0.68601376", "0.67325175", "0.64936215", "0.64759433", "0.6422904", "0.63027275", "0.6194057", "0.61938256", "0.6117025", "0.6117025", "0.6117025", "0.6117025", "0.610324", "0.6085429", "0.60808164", "0.60482436", "0.6030745", "0.603...
0.73165244
0
Returns template for operator.
Возвращает шаблон для оператора.
public function getOperatorTemplateName(string $operator = '') { return 'ConditionBuilder/Picklist.tpl'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOperatorTemplateName(string $operator = '')\n\t{\n\t\tif ('bw' === $operator) {\n\t\t\treturn 'ConditionBuilder/DateTimeRange.tpl';\n\t\t}\n\t\treturn 'ConditionBuilder/Date.tpl';\n\t}", "abstract public function get_operator();", "public function __toString()\n {\n return 'operato...
[ "0.7345979", "0.64844066", "0.63174295", "0.6312468", "0.6312468", "0.63075596", "0.62559026", "0.62559026", "0.621824", "0.6126225", "0.61262196", "0.6104961", "0.60226893", "0.60226893", "0.60226893", "0.60226893", "0.60226893", "0.60226893", "0.6015157", "0.60029745", "0.5...
0.7124945
1
Return json array containing auth URL.
Вернуть json-массив, содержащий URL авторизации.
public function authUrlJson(Request $request) { return response()->json(['status' => 'success', 'url' => $this->generateAuthUrl($request)]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAuthUrl();", "abstract public function getAuthUrlComponents();", "public function get_auth_url()\r\n\t{\r\n\t\treturn PicasaAPI::$QUERY_URLS['auth'];\r\n\t}", "public function getAuthUrl()\n {\n return $this->authUrl;\n }", "public function getAuthUrl()\n {\n retur...
[ "0.7433394", "0.70290685", "0.69467485", "0.688772", "0.688772", "0.68653536", "0.68499607", "0.6722567", "0.66622895", "0.6520634", "0.64875394", "0.6457607", "0.6405803", "0.64028656", "0.6402268", "0.63674796", "0.63165677", "0.63046795", "0.6274431", "0.6237892", "0.62378...
0.7116237
1
Description: Create input text tag
Описание: Создать элемент ввода текста
public static function inputText($model,$attribute,$properties=array()) { // $attr = self::getNameValueID($model, $attribute); // $input_attributes = self::getInputAttributes($attr,$properties); // return '<input type="text" ' . $input_attributes . ' />'; return self::inputTag('text', $mode...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function text_field_tag($name, $value, array $attributes = array())\r\n{\r\n array_add($attributes, array(\r\n 'id' => $name,\r\n 'name' => $name,\r\n 'type' => 'text',\r\n 'value' => $value\r\n ));\r\n return tag('input', $attributes);\r\n}", "public function input($text,$na...
[ "0.7588824", "0.7252613", "0.6989172", "0.6860051", "0.6799675", "0.67990595", "0.6778485", "0.6730297", "0.67080694", "0.6706332", "0.66784775", "0.6614974", "0.6590897", "0.6585585", "0.6561726", "0.65484965", "0.65215015", "0.65103036", "0.650378", "0.6492591", "0.64729834...
0.74408895
1
Description: Create input password tag
Описание: Создать элемент ввода пароля
public static function inputPassword($model,$attribute,$properties=array()) { // $attr = self::getNameValueID($model, $attribute); // $input_attributes = self::getInputAttributes($attr,$properties); // return '<input type="password" ' . $input_attributes . ' />'; return self::inputTag('pass...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function password( \n\t $name, $title = null, $value = null, \n\t $required = false, \n\t $attributes = null\n\t){\n return $this->input(\n\t $name, \n\t Form::TYPE_PASSWORD,\n\t $title, \n\t $value, \n\t $required, \n\t $attributes,\n\t null,\n\t ...
[ "0.7842511", "0.7687786", "0.7304307", "0.7254869", "0.723186", "0.72289205", "0.7223784", "0.7212298", "0.71788365", "0.7164544", "0.7159341", "0.7137082", "0.70442927", "0.70377576", "0.70061755", "0.6991065", "0.69774824", "0.69477814", "0.69361615", "0.69281596", "0.68992...
0.78613406
0
Returns user's dashboard ids
Возвращает идентификаторы дашбордов пользователя
public static function getAllDashboards($user_id) { //get all dashboard objects $dashboards = Dashboard::select('id')->where('user_id', '=', $user_id)->get(); //get only the ids and return them $ids = false; if( !empty( $dashboards ) ) { $ids = array(); foreach ($dashboards as $dashboard) { $ids...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function findAdministratorsIds($exclude_user = null) {\n $users_table = TABLE_PREFIX . 'users';\n if($exclude_user instanceof User) {\n return DB::executeFirstColumn(\"SELECT id FROM $users_table WHERE type = ? AND id != ? AND state = ?\", 'Administrator', $exclude_user->getId(), STATE_VISI...
[ "0.663758", "0.6559532", "0.6559532", "0.6171663", "0.61053985", "0.6103157", "0.60959584", "0.6067641", "0.6035614", "0.5969647", "0.59340096", "0.5927605", "0.58585197", "0.5847864", "0.5739323", "0.5735419", "0.5724981", "0.5695688", "0.56863546", "0.56621534", "0.56577367...
0.73541325
0
Add people form creator.
Форма добавления людей создателя.
private function createAddPeopleForm($people) { $form = $this->createForm(PeopleType::class, $people, array( 'action' => $this->generateUrl('product_people_save'), )); $form->add('save', SubmitType::class, array( 'label' => 'Save', 'attr' => array('class' => '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function firstentity_addperson($form , &$form_state , $personality) {\n $form['name'] = array(\n '#type' => 'textfield',\n '#title' => 'name'\n );\n\n $person = new stdClass();\n $person->personality = $personality;\n $person->id = 0;\n\n $form['person'] = array(\n '#type' => 'value',\n '#value' ...
[ "0.6946541", "0.6343106", "0.6318721", "0.62964433", "0.6273601", "0.6223717", "0.6184965", "0.6179786", "0.61243737", "0.61243737", "0.61242294", "0.6113446", "0.61123276", "0.6101034", "0.6098504", "0.6094216", "0.6045402", "0.60404265", "0.60391814", "0.603287", "0.6001425...
0.7013418
0
Add a like action to a message
Добавить действие "лайк" к сообщению
function like_message($userId, $messages, $action) { log_message('debug', '_message/like_message'); log_message('debug', '_message/like_message:: [1] userId='.$userId.' message='.json_encode($messages).' action='.$action); $result = $this->_query_reader->run('record_like_messages', array( 'user_id'=>$userId...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function likePostAction() {\n\n }", "function action_like () {\n\t\t\t$this->module->indexLike($_POST['id']);\n\t\n\t\t}", "public function like()\n\t{\n\t\tFoundry::checkToken();\n\n\t\t// Only registered users are allowed here.\n\t\tFoundry::requireLogin();\n\n\t\t// Check permission\n\t\t$access =...
[ "0.6353923", "0.6351229", "0.60445964", "0.59779394", "0.5911701", "0.5832411", "0.5829591", "0.58229434", "0.5737164", "0.5731947", "0.5723647", "0.5718696", "0.5704554", "0.5701344", "0.5689527", "0.56562626", "0.56498635", "0.5639372", "0.5617229", "0.56112", "0.5547009", ...
0.70177615
0
get users for the given filter code
получить пользователей для заданного кода фильтра
function get_users_by_filter($filterCode,$users_id = '') { log_message('debug', '_message/get_users_by_filter'); log_message('debug', '_message/get_users_by_filter:: [1] filterCode='.$filterCode); switch($filterCode){ case "all_users": return $this->get_types(array('invited_shopper','random_shopper','clo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getUserIds($filter_name, $filter_values)\n {\n switch ($filter_name) {\n case 'common':\n $list = user_auth_peer::instance()->get_list(['del' => 0], [], ['id ASC']);\n break;\n\n case 'group':\n\n $list = db::get_cols(\n ...
[ "0.67593807", "0.63555264", "0.6229423", "0.6163246", "0.61575973", "0.61575973", "0.61357063", "0.612442", "0.60883826", "0.60717213", "0.60717213", "0.60717213", "0.6055616", "0.6055616", "0.6055616", "0.6055616", "0.6055616", "0.6055616", "0.6055616", "0.6053451", "0.60021...
0.80877525
0
Can transform array to response
Можно преобразовать массив в ответ
public function canTransformArrayToResponse() { $resourceTransformer = new DummyResourceTransformer(); $dummyArray = [ [ 'id' => 'test' ], [ 'id' => 'super' ] ]; $transformed = $resourceTransformer->tra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function toArray() {\r\n \treturn array(\"response\"=>$this->_response);\r\n }", "public function transform($array) {\n//\t\t\tld(\"transform\");\n//\t\t\tld(json_encode($array));\n\t\t\treturn json_encode($array);\n\t\t}", "public function getResponse(): array;", "public function transformAll()...
[ "0.6672796", "0.66207254", "0.6417293", "0.6384337", "0.63603145", "0.63163173", "0.63163173", "0.63163173", "0.63163173", "0.63163173", "0.63163173", "0.63163173", "0.6299522", "0.6271621", "0.6265876", "0.6207633", "0.6140015", "0.6112922", "0.6095773", "0.60913336", "0.601...
0.7291185
0
function webform2html_edit_form() / webform2html_edit_form_validate: Implements validate hook
функция webform2html_edit_form() / webform2html_edit_form_validate: Реализует хук проверки
function webform2html_edit_form_validate($form, &$form_state) { if ($form_state['values']['op'] == t('Save')) { /* if (!empty($form_state['values']['h_txt'])) { $header = explode('<br />', nl2br( str_replace('<br>', '<br />', $form_state['values']['h_txt']) ) ); if ( count($header) > 5) { form_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cps_changeset_edit_form_validate($form, &$form_state) {\n}", "function pdfbulletin_settings_form_validate(&$form, &$form_state) {\n // @todo SERIOUSLY\n}", "function inscription_jesa_manage_validate($form, &$form_state) {\n \n}", "function openlayers_component_form_start_validate($form, &$form_sta...
[ "0.7394334", "0.7088699", "0.7042319", "0.7015811", "0.6985426", "0.6826592", "0.672792", "0.67194927", "0.6664427", "0.6565724", "0.6508049", "0.64651674", "0.64040256", "0.6382086", "0.6364699", "0.6315669", "0.62987787", "0.62357616", "0.6213225", "0.61988646", "0.61932755...
0.7531355
0
This hook method handles all tasks that should be performed at the end of the execution flow. In practise this means pushing new commits to a remote repository, which needs to be done as a batch job, not repeatedly after each commit.
Этот метод-хук обрабатывает все задачи, которые должны выполняться в конце потока выполнения. На практике это означает отправку новых коммитов в удалённый репозиторий, что необходимо выполнять как пакетную задачу, а не повторно после каждого коммита.
public function afterCallActionHandler() { $committer = AssetCommitterFactory::getCommitter(); // Check if there are any pushable commits if ($committer->isPushingEnabled() && $committer->hasCreatedNewCommits()) { $committer->PushToRemoteRepository(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function commitAndPush()\n {\n try {\n // Add files to git index, commit and push to client remote\n $this->git->add()->all()->execute();\n $this->git->commit()->message($this->commit_msg)->execute();\n $this->git->push()->execute($this->client_remote, $...
[ "0.61120784", "0.6105573", "0.5965105", "0.58929", "0.5852995", "0.57792735", "0.5765373", "0.5765373", "0.57640105", "0.571736", "0.5713891", "0.56913763", "0.56624764", "0.5599825", "0.5597397", "0.558323", "0.5551112", "0.55437493", "0.55187833", "0.55156", "0.55105436", ...
0.7177815
0
Tests customer login form GET /cliente/login HTTP/1.1 200 OK
Тест формы входа клиента GET /cliente/login HTTP/1.1 200 OK
public function testLogin() { $crawler = $this->client->request('GET', '/cliente/'); $crawler = $this->client->followRedirect(); $this->assertTrue($this->client->getContainer()->get('security.context')->isGranted('IS_AUTHENTICATED_ANONYMOUSLY')); $this->assertEquals(200, $this->clie...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testLogin()\n {\n $response = $this->call('GET', '/api/v1/login?email=surganda@gmail.com&password=123456');\n \n $this->assertEquals(200, $response->status());\n }", "public function testUsuarioPodeVerTelaDeLogin()\n {\n $response = $this->get('/login');\n ...
[ "0.75735", "0.7496215", "0.74310035", "0.7314078", "0.73102194", "0.7284351", "0.7261862", "0.7260719", "0.72391355", "0.72175056", "0.71188223", "0.71145046", "0.70925707", "0.70635307", "0.7059661", "0.7031271", "0.7013647", "0.69956774", "0.6995267", "0.69913834", "0.69800...
0.8084083
0
Tests customer register form POST /cliente/doRegister HTTP/1.1 200 OK
Тесты формы регистрации клиента POST /cliente/doRegister HTTP/1.1 200 OK
public function testRegister() { $crawler = $this->client->request('GET', '/cliente/'); $crawler = $this->client->followRedirect(); $this->assertTrue($this->client->getContainer()->get('security.context')->isGranted('IS_AUTHENTICATED_ANONYMOUSLY')); $this->assertEquals(200, $this->c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testRegisterForm()\n {\n \\Cake\\Core\\Configure::write('CM.Register', true);\n\n $this->get('/register');\n\n $this->assertResponseSuccess();\n\n $this->assertNoRedirect();\n\n $this->assertResponseContains('<input type=\"email\" name=\"email\" required=\"requ...
[ "0.72371894", "0.71953756", "0.7173842", "0.71236277", "0.6941527", "0.6939168", "0.6908118", "0.6877238", "0.6853614", "0.6837729", "0.67928225", "0.67910266", "0.6778927", "0.6754044", "0.6739729", "0.67344344", "0.67146415", "0.67098325", "0.6708874", "0.6692196", "0.66857...
0.83245426
0
disables the automatic SetupFabric when using a consumer or producer
отключает автоматическое SetupFabric при использовании потребителя или производителя
public function disableAutoSetupFabric() { $this->autoSetupFabric = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function disable() {}", "function disableConfigurableSwatches()\n\t {\n\t \t $configModel = new Mage_Core_Model_Config();\n\t \t $configModel->saveConfig('configswatches/general/enabled', \"0\", 'default', 0);\n\t \t $configModel->saveConfig('configswatches/general/swatch_attributes', \"\", 'default', 0);...
[ "0.54350936", "0.53870934", "0.5374653", "0.5257682", "0.5127038", "0.5113087", "0.5095935", "0.5083433", "0.5071188", "0.50430644", "0.49940437", "0.4992287", "0.49482974", "0.49126008", "0.49083713", "0.49054193", "0.4874082", "0.48616084", "0.4857427", "0.48466808", "0.484...
0.8226719
0
Get Active Category Id
Получить идентификатор активной категории
public function getActiveCategoryId() { if ($this->request->hasArgument(LinkUtility::CATEGORY)) { $categoryId = $this->request->getArgument(LinkUtility::CATEGORY); if (ctype_digit($categoryId)) { return $categoryId; } } return FALSE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getActiveCategory()\n {\n return $this->_activeCategory;\n }", "public function getCurrentCat()\n {\n if (empty($this->multifilterSession->getTopCategory()) && empty($this->multifilterSession->getCategories())) {\n $currentCat = $this->coreRegistry->registry('cur...
[ "0.76170135", "0.7539002", "0.7396292", "0.7381508", "0.7381508", "0.7381508", "0.7256224", "0.7245214", "0.7189422", "0.7168311", "0.70960677", "0.7087487", "0.6968868", "0.69606626", "0.6885493", "0.6856896", "0.68035865", "0.6799263", "0.6789495", "0.67311895", "0.67112714...
0.77514625
0
Handles action result, derived classes must implement this but leave it empty.
Обрабатывает результат действия, производные классы должны реализовать этот метод, но оставить его пустым.
abstract protected function handleResult();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function process() {\n\t\t$action = $this->get_action();\n\n\t\t$result = $this->$action();\n\n\t\t$this->set_processed_item( $result );\n\n\t\treturn $result;\n\t}", "protected function executeAction() {}", "protected function executeAction() {}", "protected function executeAction() {}", "protected...
[ "0.70870996", "0.6901446", "0.69000465", "0.69000465", "0.69000465", "0.66870224", "0.6610696", "0.6464078", "0.64616317", "0.6386998", "0.63827604", "0.6343364", "0.63338304", "0.6299468", "0.62936884", "0.62524915", "0.6231566", "0.617491", "0.6158104", "0.6156485", "0.6143...
0.7359595
0
/ Override this method to define which of the top menu items is active, e.g. return 'forums';
Переопределите этот метод, чтобы указать, какой из элементов верхнего меню активен, например, верните 'forums';
protected function getTopmenuActiveItem() { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function menu_get_active_title()\n {\n return menu_get_active_title();\n }", "function mro_menu_top_item_classes( $classes, $item, $args ) {\n\n\tif( 'primary' !== $args->theme_location )\n\t\treturn $classes;\n\n\tif( is_front_page() && ( 'Clases de Yoga' == $item->title || 'Clases de yoga'...
[ "0.68455106", "0.6730559", "0.67231405", "0.667018", "0.667018", "0.6603555", "0.6572901", "0.6485088", "0.64622724", "0.64617693", "0.64487076", "0.6418444", "0.6402113", "0.63590837", "0.6340342", "0.6332925", "0.62898004", "0.6249991", "0.624612", "0.6211232", "0.6153692",...
0.73892033
0
Renders the page buttons with nextprev style.
Отображает кнопки страниц с стилем nextprev.
protected function renderPageNextPrev() { $pageCount = $this->pagination->getPageCount(); if ($pageCount < 2 && $this->hideOnSinglePage) { return ''; } $buttons = []; $currentPage = $this->pagination->getPage(); // first page $firstPageLabel = $t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function prepareNextPrevButtons() \n\t{\n\t}", "function pb_single_next_prev() {\n\t// Only show on single post pages (not plants)\n\tif( !is_singular('post') ) {\n\t\treturn;\n\t}\n\n\t$previouspost_text = __( 'Older Posts', 'lean-kickstart' );\n\t$nextpost_text = __( 'Newer Posts', 'lean-kickst...
[ "0.7283419", "0.70098835", "0.6921343", "0.6905851", "0.6883602", "0.6816182", "0.66607475", "0.6646632", "0.6599387", "0.6591417", "0.6534241", "0.65254474", "0.6484229", "0.6475509", "0.6452173", "0.64464504", "0.6406807", "0.6354285", "0.6316321", "0.63096076", "0.62908316...
0.771509
0
Renders the page buttons with nextinputprev style.
Отображает кнопки страниц с стилем nextinputprev.
protected function renderPageNextPrevInput() { $pageCount = $this->pagination->getPageCount(); if ($pageCount < 2 && $this->hideOnSinglePage) { return ''; } $currentPage = $this->pagination->getPage(); $buttonLeft = []; // first page $firstPageLab...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function renderPageNextPrev()\n {\n $pageCount = $this->pagination->getPageCount();\n if ($pageCount < 2 && $this->hideOnSinglePage) {\n return '';\n }\n\n $buttons = [];\n $currentPage = $this->pagination->getPage();\n\n // first page\n $fir...
[ "0.73163915", "0.7226982", "0.7066613", "0.6775199", "0.65942085", "0.6593413", "0.65222245", "0.6504612", "0.6480686", "0.64095324", "0.6366717", "0.6280605", "0.62725717", "0.62343156", "0.6203624", "0.6190953", "0.6168313", "0.6167485", "0.6162554", "0.61526114", "0.608258...
0.7583145
0
get child order acceptance id(child order id)
получить идентификатор принятия дочернего заказа (идентификатор дочернего заказа)
public function getChildOrderAcceptanceId() : string { return $this->child_order_acceptance_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getChildId(): int {\n return $this->child_id;\n }", "public function getRelationChildId();", "public function getOrderid() {\n\t\treturn $this->orderid;\n\t}", "public function getParentPaymentId()\n {\n return $this->getParameter('parentPaymentId');\n }", "public fun...
[ "0.6455013", "0.62401676", "0.61677635", "0.58969563", "0.58585125", "0.58585125", "0.58585125", "0.58585125", "0.58582723", "0.58426857", "0.5784988", "0.5762883", "0.5762883", "0.5762883", "0.5762883", "0.5720755", "0.56511235", "0.5643895", "0.56437266", "0.56425214", "0.5...
0.7808404
0
/ Generator that prints a value from a buffer and then defers to nested_printer
Генератор, который печатает значение из буфера, а затем передает управление в nested_printer
function printer(Buffer $buffer) { while( true ) { // Yield a promise task and wait for the result - this is non-blocking $value = ( yield Util::async($buffer->read()) ); echo "Printer: ", $value, PHP_EOL; // Yield a generator task for nested_printer and wait for it to complete ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function nested_printer(Buffer $buffer) {\n for( $i = 0; $i < 5; $i++ ) {\n // Yield a promise task and wait for the result - this is non-blocking\n $value = ( yield Util::async($buffer->read()) );\n\n echo \"Nested printer: \", $value, PHP_EOL;\n }\n}", "function tf_print($value, $die...
[ "0.7435115", "0.5702408", "0.51392883", "0.5002499", "0.4982329", "0.49692708", "0.4891196", "0.4801701", "0.4762736", "0.4757814", "0.4742541", "0.4741078", "0.4727132", "0.47193176", "0.47047517", "0.47045335", "0.47033015", "0.4697297", "0.46915802", "0.46589178", "0.46533...
0.75174695
0
The name of the reference associated with this reference bound. string reference_name = 1;
Имя ссылки, связанной с этой ссылкой. string reference_name = 1;
public function getReferenceName() { return $this->reference_name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getReference():string\n {\n return $reference;\n }", "public function setReferenceName($var)\n {\n GPBUtil::checkString($var, True);\n $this->reference_name = $var;\n }", "public function getReference()\r\n {\r\n return $this->reference;\r\n }", "...
[ "0.70987874", "0.70718575", "0.66805595", "0.6676242", "0.66630894", "0.66611767", "0.66226333", "0.66226333", "0.66226333", "0.66226333", "0.6580578", "0.6572369", "0.6526229", "0.6472721", "0.63961315", "0.63623583", "0.63171136", "0.62633324", "0.62441814", "0.6238631", "0...
0.8294203
0
Set a customer for this invoice
Задайте клиента для этой счета
public function setCustomer(\Fastbill\Customer\Customer $customer) { $this->customer = $customer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setCustomerId(?string $customerId): void\n {\n $this->customerId['value'] = $customerId;\n }", "public function setCustomerName($customerName);", "public static function set_customer_data( $customer ) {\n\t\t$customer->update_meta_data( 'vat_number', self::$data['vat_number'] );\n\...
[ "0.7674036", "0.723333", "0.72134084", "0.7084824", "0.7074182", "0.7048333", "0.697668", "0.69535804", "0.6920322", "0.6920322", "0.69131637", "0.6911894", "0.68999577", "0.68772143", "0.6850639", "0.6811967", "0.678991", "0.67788076", "0.67709863", "0.67534626", "0.67436236...
0.7861933
0
Get the customer associated with this invoice
Получить клиента, связанного с этой счетом
public function getCustomer() { if (null === $customer && isset($this['CUSTOMER_ID'])) { $this->customer = \Fastbill\Customer\Finder::findOneById($this['CUSTOMER_ID']); } return $this->customer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function customer()\n {\n return Customer::retrieve($this->customer);\n }", "public function getCustomer()\n {\n $customer = $this->ticketData->getCustomer();\n return $customer;\n }", "public function getCustomer()\n {\n return $this->customer;\n }", "pub...
[ "0.8141197", "0.81406474", "0.8123528", "0.8123528", "0.8123528", "0.8081658", "0.8063164", "0.79026496", "0.78899884", "0.78215957", "0.78215957", "0.77836555", "0.77378434", "0.764688", "0.7611097", "0.7610246", "0.75516194", "0.75254023", "0.74972785", "0.7411231", "0.7346...
0.8325363
0
Returns the total number of documents available for the most recently call to execute_query.
Возвращает общее количество документов, доступных для последнего вызова execute_query.
public function get_query_total_count() { // Return the total engine count minus the docs we have determined are bad. return $this->totalenginedocs - $this->skippeddocs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function count()\n {\n return $this->queryResult->getSize();\n }", "function NumQueries() {\n\t\t\treturn $this->querycount;\n\t\t}", "public function getCount()\n {\n if ($this->_queryResult === null) {\n return 0;\n }\n\n return $this->_queryResult->coun...
[ "0.72431463", "0.7209811", "0.7175309", "0.7146407", "0.71182436", "0.71078455", "0.707367", "0.7057797", "0.70520294", "0.7045663", "0.7040103", "0.70289415", "0.70262754", "0.7023645", "0.701058", "0.6989436", "0.69712555", "0.696854", "0.687157", "0.68709016", "0.68695116"...
0.74868333
0