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
Create request for operation 'addParcelInvoiceFile'
Создать запрос для операции 'addParcelInvoiceFile'
protected function addParcelInvoiceFileRequest($parcel_invoice_id, $file_name) { // verify the required parameter 'parcel_invoice_id' is set if ($parcel_invoice_id === null) { throw new \InvalidArgumentException( 'Missing the required parameter $parcel_invoice_id when cal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function addParcelInvoiceFileByURLRequest($body, $parcel_invoice_id)\n {\n // verify the required parameter 'body' is set\n if ($body === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $body when calling addParcelInvoiceFileByU...
[ "0.6422226", "0.6244116", "0.60163766", "0.57960963", "0.57846886", "0.5672555", "0.56466305", "0.5641323", "0.55027026", "0.54920155", "0.54829013", "0.54738986", "0.5449011", "0.544343", "0.5425805", "0.54099417", "0.54043406", "0.53777605", "0.5323352", "0.53176326", "0.52...
0.7350777
0
Operation addParcelInvoiceFileByURLWithHttpInfo Attach a file to a parcelInvoice by URL.
Операция addParcelInvoiceFileByURLWithHttpInfo Прикрепление файла к parcelInvoice по URL.
public function addParcelInvoiceFileByURLWithHttpInfo($body, $parcel_invoice_id) { $returnType = ''; $request = $this->addParcelInvoiceFileByURLRequest($body, $parcel_invoice_id); try { $options = $this->createHttpClientOption(); try { $response = $th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addParcelInvoiceFileByURL($body, $parcel_invoice_id)\n {\n $this->addParcelInvoiceFileByURLWithHttpInfo($body, $parcel_invoice_id);\n }", "public function addParcelInvoiceFileByURLAsyncWithHttpInfo($body, $parcel_invoice_id)\n {\n $returnType = '';\n $request = $this...
[ "0.70916724", "0.5868103", "0.5824234", "0.550331", "0.533412", "0.52822083", "0.5166883", "0.5018645", "0.47812286", "0.47040316", "0.44146636", "0.43425223", "0.42336127", "0.4188513", "0.41429433", "0.40943927", "0.4072027", "0.40343696", "0.40214786", "0.39992073", "0.387...
0.7050207
1
Operation addParcelInvoiceFileByURLAsync Attach a file to a parcelInvoice by URL.
Операция addParcelInvoiceFileByURLAsync Прикрепление файла к parcelInvoice по URL.
public function addParcelInvoiceFileByURLAsync($body, $parcel_invoice_id) { return $this->addParcelInvoiceFileByURLAsyncWithHttpInfo($body, $parcel_invoice_id) ->then( function ($response) { return $response[0]; } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addParcelInvoiceFileByURLAsyncWithHttpInfo($body, $parcel_invoice_id)\n {\n $returnType = '';\n $request = $this->addParcelInvoiceFileByURLRequest($body, $parcel_invoice_id);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ...
[ "0.6779425", "0.6190913", "0.60643244", "0.54013294", "0.5273381", "0.5247244", "0.50221646", "0.49760118", "0.4920791", "0.47522047", "0.4732657", "0.46661115", "0.46113476", "0.45931146", "0.4537608", "0.45318553", "0.4456688", "0.44148645", "0.4370538", "0.43662825", "0.43...
0.7752019
0
Operation addParcelInvoiceFileByURLAsyncWithHttpInfo Attach a file to a parcelInvoice by URL.
Операция addParcelInvoiceFileByURLAsyncWithHttpInfo Прикрепление файла к parcelInvoice по URL.
public function addParcelInvoiceFileByURLAsyncWithHttpInfo($body, $parcel_invoice_id) { $returnType = ''; $request = $this->addParcelInvoiceFileByURLRequest($body, $parcel_invoice_id); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ->then...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addParcelInvoiceFileByURLAsync($body, $parcel_invoice_id)\n {\n return $this->addParcelInvoiceFileByURLAsyncWithHttpInfo($body, $parcel_invoice_id)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n ...
[ "0.758257", "0.6171426", "0.6053035", "0.59995806", "0.57236576", "0.5557608", "0.53053224", "0.5110739", "0.51091915", "0.4959061", "0.4824349", "0.469968", "0.46668386", "0.4469544", "0.43525392", "0.42937154", "0.4239257", "0.40738973", "0.3985667", "0.39313197", "0.389827...
0.75480354
1
Operation addParcelInvoiceTag Add new tags for a parcelInvoice.
Операция addParcelInvoiceTag Добавляет новые теги для parcelInvoice.
public function addParcelInvoiceTag($parcel_invoice_id, $parcel_invoice_tag) { $this->addParcelInvoiceTagWithHttpInfo($parcel_invoice_id, $parcel_invoice_tag); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addParcelInvoiceTagWithHttpInfo($parcel_invoice_id, $parcel_invoice_tag)\n {\n $returnType = '';\n $request = $this->addParcelInvoiceTagRequest($parcel_invoice_id, $parcel_invoice_tag);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n ...
[ "0.6460838", "0.5678898", "0.5590925", "0.552905", "0.54926056", "0.5368215", "0.5337446", "0.5215485", "0.51675427", "0.514441", "0.5106724", "0.49972492", "0.4982513", "0.48024893", "0.4730674", "0.465652", "0.45804062", "0.44729298", "0.4345306", "0.4328803", "0.43229973",...
0.7547221
0
Operation addParcelInvoiceTagWithHttpInfo Add new tags for a parcelInvoice.
Операция addParcelInvoiceTagWithHttpInfo Добавление новых тегов для parcelInvoice.
public function addParcelInvoiceTagWithHttpInfo($parcel_invoice_id, $parcel_invoice_tag) { $returnType = ''; $request = $this->addParcelInvoiceTagRequest($parcel_invoice_id, $parcel_invoice_tag); try { $options = $this->createHttpClientOption(); try { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getParcelInvoiceTagsWithHttpInfo($parcel_invoice_id)\n {\n $returnType = '';\n $request = $this->getParcelInvoiceTagsRequest($parcel_invoice_id);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client-...
[ "0.58025485", "0.5704476", "0.55679876", "0.55602986", "0.5477565", "0.5365326", "0.53307956", "0.5144726", "0.49082527", "0.49076957", "0.48237848", "0.4745803", "0.47119737", "0.4645613", "0.45681587", "0.4471179", "0.44660673", "0.4401272", "0.43647614", "0.42460775", "0.4...
0.7423645
0
Create request for operation 'addParcelInvoiceTag'
Создать запрос для операции 'addParcelInvoiceTag'
protected function addParcelInvoiceTagRequest($parcel_invoice_id, $parcel_invoice_tag) { // verify the required parameter 'parcel_invoice_id' is set if ($parcel_invoice_id === null) { throw new \InvalidArgumentException( 'Missing the required parameter $parcel_invoice_id ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getParcelInvoiceTagsRequest($parcel_invoice_id)\n {\n // verify the required parameter 'parcel_invoice_id' is set\n if ($parcel_invoice_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $parcel_invoice_id when call...
[ "0.6463091", "0.62873363", "0.5463364", "0.53813016", "0.5355539", "0.5252574", "0.5150936", "0.5088006", "0.5030723", "0.50151074", "0.4984725", "0.49739408", "0.492133", "0.49174494", "0.48875293", "0.4881621", "0.4873161", "0.48706537", "0.4869096", "0.48603913", "0.482814...
0.7396981
0
Create request for operation 'deleteParcelInvoice'
Создать запрос для операции 'deleteParcelInvoice'
protected function deleteParcelInvoiceRequest($parcel_invoice_id) { // verify the required parameter 'parcel_invoice_id' is set if ($parcel_invoice_id === null) { throw new \InvalidArgumentException( 'Missing the required parameter $parcel_invoice_id when calling deletePa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function deleteParcelInvoiceTagRequest($parcel_invoice_id, $parcel_invoice_tag)\n {\n // verify the required parameter 'parcel_invoice_id' is set\n if ($parcel_invoice_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $parc...
[ "0.63885784", "0.62389964", "0.6028345", "0.59773684", "0.5799711", "0.5701306", "0.569686", "0.569686", "0.569686", "0.569686", "0.569686", "0.569686", "0.56687456", "0.5657388", "0.5581412", "0.5534879", "0.5491576", "0.5469422", "0.5459653", "0.5455215", "0.543571", "0.5...
0.7232893
0
Operation deleteParcelInvoiceFile Delete a file for a parcelInvoice.
Операция deleteParcelInvoiceFile Удаление файла для parcelInvoice.
public function deleteParcelInvoiceFile($parcel_invoice_id, $file_id) { $this->deleteParcelInvoiceFileWithHttpInfo($parcel_invoice_id, $file_id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteParcelInvoiceFileWithHttpInfo($parcel_invoice_id, $file_id)\n {\n $returnType = '';\n $request = $this->deleteParcelInvoiceFileRequest($parcel_invoice_id, $file_id);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n ...
[ "0.6828356", "0.6238134", "0.6038204", "0.5887289", "0.57207614", "0.57139206", "0.5654132", "0.5602593", "0.5554877", "0.54170644", "0.538819", "0.53808814", "0.53745705", "0.53531975", "0.5340282", "0.5334422", "0.52925414", "0.52277696", "0.52099305", "0.51871234", "0.5180...
0.82652533
0
Operation deleteParcelInvoiceFileWithHttpInfo Delete a file for a parcelInvoice.
Операция deleteParcelInvoiceFileWithHttpInfo Удаление файла для parcelInvoice.
public function deleteParcelInvoiceFileWithHttpInfo($parcel_invoice_id, $file_id) { $returnType = ''; $request = $this->deleteParcelInvoiceFileRequest($parcel_invoice_id, $file_id); try { $options = $this->createHttpClientOption(); try { $response = $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteParcelInvoiceFile($parcel_invoice_id, $file_id)\n {\n $this->deleteParcelInvoiceFileWithHttpInfo($parcel_invoice_id, $file_id);\n }", "public function deleteParcelInvoiceFileAsyncWithHttpInfo($parcel_invoice_id, $file_id)\n {\n $returnType = '';\n $request = $t...
[ "0.62913316", "0.62597543", "0.5940489", "0.58426714", "0.5494819", "0.5193398", "0.5110533", "0.5102709", "0.49906787", "0.4957486", "0.49119827", "0.49057418", "0.48614103", "0.48335743", "0.4800587", "0.47571284", "0.47287932", "0.471013", "0.471013", "0.471013", "0.471013...
0.7413201
0
Operation deleteParcelInvoiceFileAsync Delete a file for a parcelInvoice.
Операция deleteParcelInvoiceFileAsync Удаление файла для parcelInvoice.
public function deleteParcelInvoiceFileAsync($parcel_invoice_id, $file_id) { return $this->deleteParcelInvoiceFileAsyncWithHttpInfo($parcel_invoice_id, $file_id) ->then( function ($response) { return $response[0]; } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteParcelInvoiceFile($parcel_invoice_id, $file_id)\n {\n $this->deleteParcelInvoiceFileWithHttpInfo($parcel_invoice_id, $file_id);\n }", "public function deleteParcelInvoiceFileAsyncWithHttpInfo($parcel_invoice_id, $file_id)\n {\n $returnType = '';\n $request = $t...
[ "0.6759942", "0.64466435", "0.6055535", "0.56937075", "0.54028046", "0.5266475", "0.5148844", "0.5061868", "0.50493187", "0.49718556", "0.49700293", "0.48692906", "0.4853144", "0.48440796", "0.47951683", "0.47757253", "0.4727561", "0.46758348", "0.46721387", "0.46677464", "0....
0.72056544
0
Operation deleteParcelInvoiceFileAsyncWithHttpInfo Delete a file for a parcelInvoice.
Операция deleteParcelInvoiceFileAsyncWithHttpInfo Удаление файла для parcelInvoice.
public function deleteParcelInvoiceFileAsyncWithHttpInfo($parcel_invoice_id, $file_id) { $returnType = ''; $request = $this->deleteParcelInvoiceFileRequest($parcel_invoice_id, $file_id); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ->th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteParcelInvoiceFileWithHttpInfo($parcel_invoice_id, $file_id)\n {\n $returnType = '';\n $request = $this->deleteParcelInvoiceFileRequest($parcel_invoice_id, $file_id);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n ...
[ "0.6686722", "0.631489", "0.58668566", "0.581186", "0.5747013", "0.5671516", "0.54090345", "0.5393886", "0.53332955", "0.5208425", "0.507387", "0.5048001", "0.49776414", "0.49041855", "0.48891747", "0.48529512", "0.4834164", "0.48266488", "0.48122266", "0.48043975", "0.480124...
0.70708436
0
Create request for operation 'deleteParcelInvoiceFile'
Создать запрос для операции 'deleteParcelInvoiceFile'
protected function deleteParcelInvoiceFileRequest($parcel_invoice_id, $file_id) { // verify the required parameter 'parcel_invoice_id' is set if ($parcel_invoice_id === null) { throw new \InvalidArgumentException( 'Missing the required parameter $parcel_invoice_id when ca...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function deleteParcelInvoiceRequest($parcel_invoice_id)\n {\n // verify the required parameter 'parcel_invoice_id' is set\n if ($parcel_invoice_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $parcel_invoice_id when calli...
[ "0.6538872", "0.6326345", "0.61323416", "0.60493314", "0.5871851", "0.5825152", "0.5802917", "0.57936466", "0.57714534", "0.5660427", "0.5624287", "0.560018", "0.55607283", "0.5548521", "0.5486208", "0.53999317", "0.53992796", "0.5385507", "0.5349321", "0.5339705", "0.5335142...
0.7199682
0
Operation deleteParcelInvoiceTag Delete a tag for a parcelInvoice.
Операция deleteParcelInvoiceTag Удаление тега для parcelInvoice.
public function deleteParcelInvoiceTag($parcel_invoice_id, $parcel_invoice_tag) { $this->deleteParcelInvoiceTagWithHttpInfo($parcel_invoice_id, $parcel_invoice_tag); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteParcelInvoiceTagWithHttpInfo($parcel_invoice_id, $parcel_invoice_tag)\n {\n $returnType = '';\n $request = $this->deleteParcelInvoiceTagRequest($parcel_invoice_id, $parcel_invoice_tag);\n\n try {\n $options = $this->createHttpClientOption();\n try...
[ "0.62751514", "0.6181697", "0.61386293", "0.59719306", "0.58521324", "0.5832456", "0.5787324", "0.5495178", "0.5322165", "0.5283027", "0.5225161", "0.51973575", "0.5156335", "0.51208746", "0.5100644", "0.5100644", "0.5017352", "0.49669775", "0.49231333", "0.48500007", "0.4837...
0.7769532
0
Operation deleteParcelInvoiceTagWithHttpInfo Delete a tag for a parcelInvoice.
Операция deleteParcelInvoiceTagWithHttpInfo Удаление тега для parcelInvoice.
public function deleteParcelInvoiceTagWithHttpInfo($parcel_invoice_id, $parcel_invoice_tag) { $returnType = ''; $request = $this->deleteParcelInvoiceTagRequest($parcel_invoice_id, $parcel_invoice_tag); try { $options = $this->createHttpClientOption(); try { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteParcelInvoiceWithHttpInfo($parcel_invoice_id)\n {\n $returnType = '';\n $request = $this->deleteParcelInvoiceRequest($parcel_invoice_id);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->s...
[ "0.604047", "0.60027003", "0.59155154", "0.5523105", "0.5347904", "0.52891684", "0.5048694", "0.49754092", "0.4957867", "0.4899142", "0.4573882", "0.4527325", "0.4524271", "0.44824463", "0.44609672", "0.4451337", "0.44129482", "0.4362684", "0.42790473", "0.4276925", "0.425533...
0.7219429
0
Operation deleteParcelInvoiceTagAsync Delete a tag for a parcelInvoice.
Операция deleteParcelInvoiceTagAsync Удаление тега для parcelInvoice.
public function deleteParcelInvoiceTagAsync($parcel_invoice_id, $parcel_invoice_tag) { return $this->deleteParcelInvoiceTagAsyncWithHttpInfo($parcel_invoice_id, $parcel_invoice_tag) ->then( function ($response) { return $response[0]; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteParcelInvoiceTagAsyncWithHttpInfo($parcel_invoice_id, $parcel_invoice_tag)\n {\n $returnType = '';\n $request = $this->deleteParcelInvoiceTagRequest($parcel_invoice_id, $parcel_invoice_tag);\n\n return $this->client\n ->sendAsync($request, $this->createHttpC...
[ "0.6437753", "0.5947451", "0.5432131", "0.5384635", "0.52241784", "0.50482017", "0.5045764", "0.49956146", "0.49813178", "0.48775068", "0.47709227", "0.4704967", "0.4704643", "0.46741074", "0.46216503", "0.46050054", "0.45701748", "0.4503076", "0.44807842", "0.44636917", "0.4...
0.7219632
0
Operation deleteParcelInvoiceTagAsyncWithHttpInfo Delete a tag for a parcelInvoice.
Операция deleteParcelInvoiceTagAsyncWithHttpInfo Удаление тега для parcelInvoice.
public function deleteParcelInvoiceTagAsyncWithHttpInfo($parcel_invoice_id, $parcel_invoice_tag) { $returnType = ''; $request = $this->deleteParcelInvoiceTagRequest($parcel_invoice_id, $parcel_invoice_tag); return $this->client ->sendAsync($request, $this->createHttpClientOption...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteParcelInvoiceTagWithHttpInfo($parcel_invoice_id, $parcel_invoice_tag)\n {\n $returnType = '';\n $request = $this->deleteParcelInvoiceTagRequest($parcel_invoice_id, $parcel_invoice_tag);\n\n try {\n $options = $this->createHttpClientOption();\n try...
[ "0.63710153", "0.6062507", "0.59750986", "0.58102244", "0.5255987", "0.5233425", "0.51036495", "0.5093836", "0.5051768", "0.49863154", "0.48665416", "0.47855288", "0.47406062", "0.47021207", "0.46949905", "0.46881747", "0.46584296", "0.4635526", "0.46168852", "0.46019402", "0...
0.7204671
0
Create request for operation 'deleteParcelInvoiceTag'
Создать запрос для операции 'deleteParcelInvoiceTag'
protected function deleteParcelInvoiceTagRequest($parcel_invoice_id, $parcel_invoice_tag) { // verify the required parameter 'parcel_invoice_id' is set if ($parcel_invoice_id === null) { throw new \InvalidArgumentException( 'Missing the required parameter $parcel_invoice_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function addParcelInvoiceTagRequest($parcel_invoice_id, $parcel_invoice_tag)\n {\n // verify the required parameter 'parcel_invoice_id' is set\n if ($parcel_invoice_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $parcel_...
[ "0.5804408", "0.5794742", "0.5701098", "0.5681769", "0.5552384", "0.53747773", "0.53437996", "0.52000743", "0.51965106", "0.5159208", "0.5145438", "0.50959563", "0.50243306", "0.5010082", "0.4956313", "0.49523285", "0.49398592", "0.49132708", "0.49089462", "0.48805004", "0.48...
0.7456872
0
Operation getDuplicateParcelInvoiceByIdWithHttpInfo Get a duplicated a parcelInvoice by id
Операция getDuplicateParcelInvoiceByIdWithHttpInfo Получить дублированную посылочную инвойс по идентификатору
public function getDuplicateParcelInvoiceByIdWithHttpInfo($parcel_invoice_id) { $returnType = '\Infoplus\Infoplus\Model\ParcelInvoice'; $request = $this->getDuplicateParcelInvoiceByIdRequest($parcel_invoice_id); try { $options = $this->createHttpClientOption(); try {...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getDuplicateParcelInvoiceByIdRequest($parcel_invoice_id)\n {\n // verify the required parameter 'parcel_invoice_id' is set\n if ($parcel_invoice_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $parcel_invoice_id ...
[ "0.67296964", "0.6579768", "0.5934182", "0.5840211", "0.5218763", "0.518489", "0.5168515", "0.50412863", "0.5032521", "0.500267", "0.49716982", "0.4962076", "0.4950334", "0.49475077", "0.48736948", "0.47107753", "0.4699175", "0.46960357", "0.46937633", "0.4690528", "0.4676982...
0.7559686
0
Create request for operation 'getDuplicateParcelInvoiceById'
Создать запрос для операции 'getDuplicateParcelInvoiceById'
protected function getDuplicateParcelInvoiceByIdRequest($parcel_invoice_id) { // verify the required parameter 'parcel_invoice_id' is set if ($parcel_invoice_id === null) { throw new \InvalidArgumentException( 'Missing the required parameter $parcel_invoice_id when callin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function duplicateInvoice($id) {\n\t\ttry{\n\t\t\t$invoiceTbl = $this->_serviceManager->get('Invoice\\Model\\InvoiceTable');\n\t\n\t\t\t$invoiceItems = $invoiceTbl->fetchInvoiceItemsById($id);\n\t\t\t\n\t\t\t$invoiceData = $invoiceTbl->getInvoiceDetailsById($id);\n\t\t\t\n\t\t\t$xml = $this->generateDuplica...
[ "0.6339952", "0.6024642", "0.6000064", "0.5741671", "0.55760014", "0.5528177", "0.54754823", "0.54524606", "0.5441776", "0.54293215", "0.5324044", "0.5295239", "0.5261628", "0.52586454", "0.52399194", "0.5227107", "0.5204209", "0.51793134", "0.51706594", "0.5157642", "0.5156"...
0.72352475
0
Create request for operation 'getParcelInvoiceByFilter'
Создать запрос для операции 'getParcelInvoiceByFilter'
protected function getParcelInvoiceByFilterRequest($filter = null, $page = null, $limit = null, $sort = null) { $resourcePath = '/beta/parcelInvoice/search'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; $multipart = false; // quer...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getInvoiceModel(){}", "protected function getParcelInvoiceByIdRequest($parcel_invoice_id)\n {\n // verify the required parameter 'parcel_invoice_id' is set\n if ($parcel_invoice_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the requir...
[ "0.591539", "0.5857914", "0.5723808", "0.5677816", "0.55698186", "0.55489695", "0.55439955", "0.5542253", "0.5484742", "0.5420863", "0.5412347", "0.53629273", "0.5359617", "0.535633", "0.53551185", "0.5352182", "0.53370285", "0.52900445", "0.5285628", "0.52819264", "0.5261285...
0.712686
0
Operation getParcelInvoiceByIdWithHttpInfo Get a parcelInvoice by id
Операция getParcelInvoiceByIdWithHttpInfo Получение parcelInvoice по идентификатору
public function getParcelInvoiceByIdWithHttpInfo($parcel_invoice_id) { $returnType = '\Infoplus\Infoplus\Model\ParcelInvoice'; $request = $this->getParcelInvoiceByIdRequest($parcel_invoice_id); try { $options = $this->createHttpClientOption(); try { $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDuplicateParcelInvoiceByIdWithHttpInfo($parcel_invoice_id)\n {\n $returnType = '\\Infoplus\\Infoplus\\Model\\ParcelInvoice';\n $request = $this->getDuplicateParcelInvoiceByIdRequest($parcel_invoice_id);\n\n try {\n $options = $this->createHttpClientOption();\n ...
[ "0.64955807", "0.64093524", "0.6241059", "0.6176749", "0.6143396", "0.61395556", "0.6127171", "0.60189706", "0.60056734", "0.59891766", "0.5986018", "0.59066993", "0.58970267", "0.57452476", "0.57430214", "0.57153124", "0.5680198", "0.56103283", "0.5605007", "0.55290383", "0....
0.7355745
0
Create request for operation 'getParcelInvoiceById'
Создать запрос для операции 'getParcelInvoiceById'
protected function getParcelInvoiceByIdRequest($parcel_invoice_id) { // verify the required parameter 'parcel_invoice_id' is set if ($parcel_invoice_id === null) { throw new \InvalidArgumentException( 'Missing the required parameter $parcel_invoice_id when calling getParc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getInvoice(string $id): Invoice;", "protected function getDuplicateParcelInvoiceByIdRequest($parcel_invoice_id)\n {\n // verify the required parameter 'parcel_invoice_id' is set\n if ($parcel_invoice_id === null) {\n throw new \\InvalidArgumentException(\n ...
[ "0.6710552", "0.66226107", "0.6462851", "0.6326773", "0.6129083", "0.6108824", "0.595749", "0.5917758", "0.5899642", "0.58991396", "0.58912337", "0.58714384", "0.5852472", "0.58228105", "0.58150035", "0.580385", "0.57986265", "0.5784911", "0.57761514", "0.5760804", "0.5750166...
0.72709453
0
Operation getParcelInvoiceFilesWithHttpInfo Get the files for a parcelInvoice.
Операция getParcelInvoiceFilesWithHttpInfo Получение файлов для парцелл-инвойса.
public function getParcelInvoiceFilesWithHttpInfo($parcel_invoice_id) { $returnType = ''; $request = $this->getParcelInvoiceFilesRequest($parcel_invoice_id); try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($requ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getParcelInvoiceFilesAsyncWithHttpInfo($parcel_invoice_id)\n {\n $returnType = '';\n $request = $this->getParcelInvoiceFilesRequest($parcel_invoice_id);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n ...
[ "0.6281013", "0.5629", "0.56109047", "0.53257835", "0.5175996", "0.5081481", "0.49102274", "0.4837434", "0.48259747", "0.48045588", "0.4766954", "0.4703659", "0.46621695", "0.46593043", "0.46565172", "0.458506", "0.4565297", "0.45632118", "0.45437017", "0.45315763", "0.451004...
0.73639
0
Create request for operation 'getParcelInvoiceFiles'
Создать запрос для операции 'getParcelInvoiceFiles'
protected function getParcelInvoiceFilesRequest($parcel_invoice_id) { // verify the required parameter 'parcel_invoice_id' is set if ($parcel_invoice_id === null) { throw new \InvalidArgumentException( 'Missing the required parameter $parcel_invoice_id when calling getPar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function addParcelInvoiceFileRequest($parcel_invoice_id, $file_name)\n {\n // verify the required parameter 'parcel_invoice_id' is set\n if ($parcel_invoice_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $parcel_invoice_...
[ "0.63589674", "0.5821707", "0.5734867", "0.573182", "0.57109576", "0.56799567", "0.5675732", "0.5632573", "0.5478969", "0.54657406", "0.54549885", "0.5427865", "0.54092246", "0.53327364", "0.53312683", "0.52960944", "0.52804047", "0.52764636", "0.5256784", "0.5247883", "0.519...
0.74791205
0
Operation getParcelInvoiceTagsWithHttpInfo Get the tags for a parcelInvoice.
Операция getParcelInvoiceTagsWithHttpInfo Получить теги для parcelInvoice.
public function getParcelInvoiceTagsWithHttpInfo($parcel_invoice_id) { $returnType = ''; $request = $this->getParcelInvoiceTagsRequest($parcel_invoice_id); try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($reques...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getParcelInvoiceTagsAsyncWithHttpInfo($parcel_invoice_id)\n {\n $returnType = '';\n $request = $this->getParcelInvoiceTagsRequest($parcel_invoice_id);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n ...
[ "0.59766716", "0.55129623", "0.52595925", "0.50765055", "0.49065", "0.48043606", "0.47751796", "0.46524176", "0.45735434", "0.4567033", "0.45654002", "0.45496178", "0.4508828", "0.44975612", "0.42474613", "0.41951546", "0.41912112", "0.41815662", "0.4154851", "0.40754402", "0...
0.7005154
0
Operation getParcelInvoiceTagsAsync Get the tags for a parcelInvoice.
Операция getParcelInvoiceTagsAsync Получить теги для parcelInvoice.
public function getParcelInvoiceTagsAsync($parcel_invoice_id) { return $this->getParcelInvoiceTagsAsyncWithHttpInfo($parcel_invoice_id) ->then( function ($response) { return $response[0]; } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getParcelInvoiceTagsAsyncWithHttpInfo($parcel_invoice_id)\n {\n $returnType = '';\n $request = $this->getParcelInvoiceTagsRequest($parcel_invoice_id);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n ...
[ "0.5869004", "0.5787422", "0.54123354", "0.5355275", "0.51829046", "0.51829046", "0.51829046", "0.51829046", "0.51829046", "0.513122", "0.51186264", "0.50547886", "0.49526888", "0.49486142", "0.4943245", "0.49276018", "0.49124774", "0.49082655", "0.48930603", "0.48884818", "0...
0.7308216
0
Create request for operation 'getParcelInvoiceTags'
Создать запрос для операции 'getParcelInvoiceTags'
protected function getParcelInvoiceTagsRequest($parcel_invoice_id) { // verify the required parameter 'parcel_invoice_id' is set if ($parcel_invoice_id === null) { throw new \InvalidArgumentException( 'Missing the required parameter $parcel_invoice_id when calling getParc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function listTags() {\n\t\t$request = $this->send(\"GET\", \"contacts/\" . $this->contactId . '/tags', [\n\t\t\t'headers' => [\n\t\t\t\t'Accept' => 'application/json, */*',\n\t\t\t],\n\t\t]);\n\t\treturn $request;\n\t}", "protected function addParcelInvoiceTagRequest($parcel_invoice_id, $parcel_invoice_ta...
[ "0.6038624", "0.6003572", "0.5988935", "0.5720139", "0.52784085", "0.5260136", "0.5236607", "0.5236607", "0.5236607", "0.5236607", "0.5236607", "0.5150039", "0.5137676", "0.50836617", "0.50459343", "0.4947484", "0.4929785", "0.49180886", "0.49027082", "0.48674643", "0.4857685...
0.71611476
0
Test HasVouchers::createVoucher() with callback.
Тест HasVouchers::createVoucher() с обратным вызовом.
public function testCreateVoucherWithCallback(): void { $user = $this->factory(User::class)->create(); $color = $this->factory(Color::class)->create(); $voucher = $user->createVoucher(function (Vouchers $vouchers) use ($color) { $vouchers->withEntities($color); }); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createVoucher(Closure $callback = null)\n {\n return $this->createVouchers(1, $callback);\n }", "public function testCreateVouchersWithCallback(): void\n {\n $user = $this->factory(User::class)->create();\n $color = $this->factory(Color::class)->create();\n $v...
[ "0.73269147", "0.7005683", "0.6175109", "0.60169876", "0.5800839", "0.5797583", "0.5683356", "0.56802684", "0.5676361", "0.56374615", "0.56308234", "0.5602074", "0.5594984", "0.55353", "0.5500091", "0.5472238", "0.54522514", "0.544941", "0.5441801", "0.5424135", "0.5353339", ...
0.7822972
0
Test HasVouchers::createVoucher() with associated entities.
Тест HasVouchers::createVoucher() с связанными сущностями.
public function testCreateVoucherWithAssociated(): void { $user = $this->factory(User::class)->create(); $other = $this->factory(User::class)->create(); $voucher = $user->createVoucher(function (Vouchers $vouchers) use ($other) { $vouchers->withEntities($other); }); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testCreateVoucherWithCallback(): void\n {\n $user = $this->factory(User::class)->create();\n $color = $this->factory(Color::class)->create();\n $voucher = $user->createVoucher(function (Vouchers $vouchers) use ($color) {\n $vouchers->withEntities($color);\n ...
[ "0.6747161", "0.61837757", "0.6064453", "0.5952498", "0.59161913", "0.5897492", "0.5878858", "0.58083487", "0.58068824", "0.5759202", "0.5754908", "0.5692888", "0.5679622", "0.5673967", "0.566815", "0.5657757", "0.559041", "0.5588702", "0.55765927", "0.55618966", "0.55568826"...
0.7314129
0
Test HasVouchers::createVouchers() with callback.
Тест HasVouchers::createVouchers() с обратным вызовом.
public function testCreateVouchersWithCallback(): void { $user = $this->factory(User::class)->create(); $color = $this->factory(Color::class)->create(); $vouchers = $user->createVouchers(3, function (Vouchers $vouchers) use ($color) { $vouchers->withEntities($color); }); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testCreateVoucherWithCallback(): void\n {\n $user = $this->factory(User::class)->create();\n $color = $this->factory(Color::class)->create();\n $voucher = $user->createVoucher(function (Vouchers $vouchers) use ($color) {\n $vouchers->withEntities($color);\n ...
[ "0.6762519", "0.6531222", "0.6069106", "0.56778646", "0.54238313", "0.5412651", "0.53042275", "0.5167938", "0.5083529", "0.5069958", "0.50653285", "0.5050645", "0.49843094", "0.4978717", "0.48836055", "0.4870911", "0.48454028", "0.48252895", "0.48176315", "0.48081452", "0.479...
0.77674913
0
Gets query for [[ServiceExtDats]].
Получает запрос для [[ServiceExtDats]].
public function getServiceExtDats() { return $this->hasMany(ServiceExtDat::className(), ['service_id' => 'service_id']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function listServiceOfferings() {\n\t\t$data = array (\n\t\t\t\t\"apiKey\" => $this->apiKey,\n\t\t\t\t\"command\" => \"listServiceOfferings\",\n\t\t\t\t\"response\" => \"json\"\n\t\t);\n\t\t$url = $this->getSignatureUrl ( $data );\n\t\treturn $this->curlGet ( $url );\n\t}", "public function getAds(): stri...
[ "0.51600003", "0.46945718", "0.46674508", "0.46041247", "0.458656", "0.4579221", "0.4553019", "0.45421466", "0.45234647", "0.4520337", "0.4469652", "0.4465628", "0.44639784", "0.44135097", "0.44052422", "0.4403911", "0.43987906", "0.43890086", "0.4383269", "0.43726364", "0.43...
0.72653323
0
Get the list of nodes for given nodegroup
Получить список узлов для заданной группы узлов
public function getNodesFromNodegroup($nodegroup) { $inherited = array(); $nodes = array(); $nodegroup = stripAt($nodegroup); $data = $this->select(array( '_binds' => 's', '_values' => array($nodegroup), 'from' => '`' . $this->prefix . 'nodes`', 'where' => '`nodegroup` = ?', )); while(list($j...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNodes();", "function getNodes()\n {\n }", "function _get_nodes($bundle, array $options = array()){\n // Get all nodes related by region\n $query = new EntityFieldQuery();\n $query->entityCondition('entity_type', 'node')\n ->entityCondition('bundle', $bundle)\n ->propertyCondit...
[ "0.67225856", "0.60975206", "0.6061059", "0.6058989", "0.6058435", "0.60547346", "0.60547346", "0.59936196", "0.59936196", "0.59936196", "0.59936196", "0.59936196", "0.59936196", "0.59903944", "0.5968923", "0.5968923", "0.59498465", "0.5935416", "0.5935416", "0.5890589", "0.5...
0.818573
0
Set the nodes for given nodegroup Anything not in $nodes will be removed
Установите узлы для заданной группе узлов. Любой элемент, не входящий в $nodes, будет удален
public function setNodes($nodegroup, $nodes, $inherited) { $nodegroup = stripAt($nodegroup); $adds = array(); $dels = array_merge((array) $nodegroup, $nodes); $binds_add = ''; $binds_del = 's'; $query_add = 'INSERT IGNORE INTO `' . $this->prefix . 'nodes` ' . '(`nodegroup`, `node`, `inherited`) VALUE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setNodes(array $nodes)\n {\n $this->nodes = [];\n\n $this->addNodes($nodes);\n }", "public function set_recursive_groups($_recursive_groups)\n {\n $this->_recursive_groups = $_recursive_groups;\n }", "public function setGroup($group) {}", "public function...
[ "0.6057155", "0.58865076", "0.55554575", "0.5554441", "0.55426514", "0.547491", "0.5444845", "0.5416392", "0.54038876", "0.53880125", "0.5361153", "0.53444624", "0.53437114", "0.53162104", "0.53026813", "0.5298276", "0.52840626", "0.5279947", "0.526745", "0.5256962", "0.51886...
0.7165603
0
This static function is used for get the image properties . Select the image properties with php static function getimagesize. Put the properties in array.
Эта статическая функция используется для получения свойств изображения. Выберите свойства изображения с помощью статической функции PHP getimagesize. Поместите свойства в массив.
static function getImgProperty($img) { $ImgSize = getimagesize($img); $ImgMime = $ImgSize['mime']; $mime = explode('/',$ImgMime); $ImgType = $mime[1]; $prop['width'] = $ImgSize[0]; $prop['height'] = $ImgSize[1]; $prop['type'] = $ImgType; return($prop); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function initializeImageProperties()\n\t{\n\t\tlist($this->width, $this->height, $iType, $this->htmlattributes) = getimagesize($this->sFileLocation);\n\n\t\tif (($this->width < 1) || ($this->height < 1)) {\n\t\t\t$this->printError('invalid imagesize');\n\t\t}\n\n\t\t$this->setImageOrientation();\n\t\t$this->setIma...
[ "0.72147924", "0.7171798", "0.6918072", "0.67189837", "0.6688408", "0.66837734", "0.66216373", "0.6605491", "0.66000587", "0.6573167", "0.6545059", "0.6526716", "0.6515698", "0.64720374", "0.64690834", "0.64565945", "0.64517707", "0.64517707", "0.64517707", "0.64517707", "0.6...
0.7525935
0
This static function is used for retrieves the number of Card
Эта статическая функция используется для получения количества карт
static function numDataCard(){ $sql = "SELECT * FROM ".TABLE_CARD; $rows = DBconnect::num_rows($sql) ; return $rows ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCardCount()\n {\n return $this->count(self::CARD);\n }", "public function getCardCount()\n {\n return $this->card_count;\n }", "function cardNumber()\n\t\t{\n\t\t\techo $this->card_number;\n\t\t}", "public function getSize(): int\n {\n return sizeof($thi...
[ "0.80576617", "0.7819553", "0.69637465", "0.69126165", "0.67519283", "0.6709169", "0.66594326", "0.6654983", "0.66536194", "0.65669954", "0.65669954", "0.6387046", "0.6357962", "0.6339389", "0.63393384", "0.6334135", "0.6266879", "0.6262106", "0.6244907", "0.62415713", "0.622...
0.7819964
1
Strip new line breaks from a string
Удалить переносы строк из строки
function strip_nlEx($str) { return str_replace("\n", "", str_replace("\r", "", $str)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _noLineBreaks($string) {\n\t\treturn preg_replace( \"/\\r|\\n/\", \" \", $string);\n\t}", "public static function removeLineBreaks( $string ) {\n\t\t\treturn str_replace( array ( chr( 10 ), chr( 13 ) ), '', $string );\n\t\t}", "function mc_newline_replace( $string ) {\n\n\treturn (string) str_...
[ "0.7493907", "0.72878224", "0.72702396", "0.7263024", "0.71947837", "0.71766144", "0.7073394", "0.6878048", "0.68621033", "0.68252575", "0.6819577", "0.6796355", "0.6747731", "0.67440754", "0.668159", "0.6672815", "0.659844", "0.65395045", "0.6483961", "0.6438338", "0.6398935...
0.7644614
0
String Sanitizer for Path name
Санитайзер строк для имени пути
function sanitize_pathname(string $pathName, string $charToReplaceWhiteSpace): string { return sanitize_filename($pathName, true, $charToReplaceWhiteSpace); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sanitize_path($path) {\n\treturn rtrim(ltrim(stripslashes($path), '/'), '/');\n}", "private function _sanitize($path) {\n\t\t$path = str_replace('\\\\', '/', $path);\n\t\twhile (strpos($path, '//')) {\n\t\t\t$path = str_replace('//', '/', $path);\n\t\t}\n\t\t\n\t\treturn ($path);\n\t}", "public static...
[ "0.71423745", "0.70759016", "0.70473754", "0.69375134", "0.6879627", "0.68515253", "0.68032235", "0.6777604", "0.6772008", "0.6767622", "0.67264235", "0.6722098", "0.67125493", "0.6690984", "0.6679325", "0.662958", "0.6627563", "0.66127646", "0.65847003", "0.6581206", "0.6569...
0.70978284
1
Sanitize the string by urlencoding characters.
Очистите строку, применяя кодирование URL.
function sanitize_urlencode($value) { return filter_var($value, FILTER_SANITIZE_ENCODED); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function sanitizeString($url) {\r\n $url = mb_strtolower($url, 'UTF-8');\r\n $url = iconv('UTF-8', 'ASCII//TRANSLIT', $url);\r\n $url = str_replace(array(\"'\", '\"', ';', ',', ':', ' ', '_'), '-', $url);\r\n $url = preg_replace(\"/[^a-z0-9-]/\", '', $url);\r\n\t$url = str...
[ "0.7169592", "0.7010676", "0.69633263", "0.6950177", "0.6922525", "0.6839206", "0.6735834", "0.67264414", "0.6639368", "0.660724", "0.6543114", "0.65043646", "0.64920306", "0.64881706", "0.6477234", "0.6475107", "0.6458737", "0.64534265", "0.6449672", "0.6417344", "0.63930464...
0.71826947
0
Sanitize the string by removing illegal characters from numbers.
Очистите строку, удалив недопустимые символы из чисел.
function sanitize_numbers($value) { return filter_var($value, FILTER_SANITIZE_NUMBER_INT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function sanitizeNumber($data){\n $data = filter_var($data, FILTER_SANITIZE_NUMBER_INT);\n return $data;\n }", "function Strip_Bad_chars($input)\n{\n //$output = preg_replace(\"/[^a-zA-Z0-9_-]/\", \"\", $input);\n $output = preg_replace(\"/[^0-9]/\", \"\", $input);\n return $outp...
[ "0.7153408", "0.6789671", "0.67825866", "0.6637369", "0.6584154", "0.65086997", "0.64786464", "0.64450157", "0.64232075", "0.6398205", "0.6388851", "0.6359506", "0.6306343", "0.629175", "0.62870675", "0.6281935", "0.62033975", "0.62025344", "0.61997026", "0.61697567", "0.6153...
0.7409445
0
Sanitize the string by removing illegal characters from float numbers.
Очистите строку, удалив недопустимые символы из чисел с плавающей точкой.
function sanitize_floats($value) { return filter_var($value, FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testFloat() {\n $this->assertEquals(100.25, Sanitize::float('1array(0)0.25'));\n $this->assertEquals(-125.55, Sanitize::float('-abc125.55'));\n $this->assertEquals(1203.11, Sanitize::float('+1203.11'));\n }", "function sanitize_float( $value, $key, array $data ) {\n\tretur...
[ "0.7194151", "0.7005187", "0.6833559", "0.6527753", "0.6483077", "0.64327526", "0.6355694", "0.63276464", "0.6185144", "0.6161276", "0.61384994", "0.6129234", "0.6118412", "0.6106284", "0.6056374", "0.60426253", "0.6035419", "0.59300023", "0.5923622", "0.5917647", "0.58882457...
0.75628066
0
Sanitize the string by removing illegal characters from phone numbers i.e.: optionally starts with +, optionally have prefix parenthesis and only number.. If preserveSpaces set to true, leave spaces and replace illegal chars with one space, otherwise remove every spaces.
Очистите строку, удаляя недопустимые символы из номеров телефонов, например: необязательно начинается с +, необязательно имеет префикс скобок и состоит только из цифр. Если параметр preserveSpaces установлен в true, оставьте пробелы и замените недопустимые символы на один пробел, иначе удалите все пробелы.
function sanitize_phone($value, bool $preserveSpaces): string { if(isNullOrEmpty($value)){ return ''; } $startsWithPlus = starts_withEx($value, '+'); $phone = mb_ereg_replace('([^\d\(\)' . ($preserveSpaces ? '[:space:]' : '') . '])', $preserveSpaces ? ' ' : '', $value); $phone = trim($phon...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function clean_phone($phone_number){\n $clean = str_replace(array('+','(',')','-',' '),'',$phone_number);\n return $clean;\n }", "function PhoneClean($PhoneClean)\n {\n // Es gibt unzählige Varianten. Wenigstens die Gebräuchlichsten davon sollen erkannt und bereinigt werden\n\n ...
[ "0.64731", "0.62627584", "0.62435925", "0.6203548", "0.61875033", "0.6064375", "0.5908569", "0.5837372", "0.581694", "0.57742625", "0.57708144", "0.56773746", "0.5644982", "0.5643332", "0.561497", "0.55689293", "0.5562252", "0.5550698", "0.5531454", "0.552004", "0.5517776", ...
0.7849255
0
Datasource for the locale Data Grid.
Источник данных для таблицы локализованных данных.
public function grid() { $data = $this->locales->grid(); $columns = [ 'id', 'code', 'lang_code', 'name', 'display_name', 'created_at', ]; $settings = [ 'sort' => 'created_at', 'direction...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function loadLocale()\n {\n if (App::getLocale() === 'ar') {\n return $this->where('id', $this['id'])->first([\n 'id', 'title_ar as title', 'description_ar as description', 'icon_url', 'image_url'\n ])->load([\n 'projects' => function($query) {\n...
[ "0.6050878", "0.5588667", "0.55866647", "0.55718976", "0.5557828", "0.5515134", "0.5508998", "0.5494215", "0.5430641", "0.5428436", "0.53534555", "0.5329639", "0.5323823", "0.53226787", "0.5309601", "0.52679306", "0.5238961", "0.5238928", "0.5238178", "0.5228557", "0.517518",...
0.7070778
0
Decodes a HEX encoded number. See: Problem: signed values Ethereum uses the "two's complement signed integer" where 1 === PHP_INT_MAX (32/64 bits depending on system). See: Read about the challenges in PHP implementation:
Декодирует число, закодированное в HEX. См.: Проблема: подписаные значения. Эфириум использует «двоичное дополнение подписанного целого», где 1 === PHP_INT_MAX (32/64 бита в зависимости от системы). См.: Прочитайте о трудностях реализации в PHP:
public static function decodeHexNumber($input) { if (!EthereumStatic::isValidHexQuantity($input)) { throw new \InvalidArgumentException($input . ' is not a valid quantity.'); } $hex_number = self::removeHexPrefix($input); // Large Integer? // How may bits? // http://stackoverflow.com/que...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Hex_to_Dec($hexvalue){\r\n\t$return = null;\r\n\t$return = reset(unpack(\"l\", pack(\"l\", hexdec($hexvalue))));\r\n\treturn $return;\r\n}", "private static function decodeFilterASCIIHexDecode($data){\n\t\t// intialize string to return\n\t\t$decoded = '';\n\t\t// all white-space characters shall be igno...
[ "0.7056832", "0.67306936", "0.6716566", "0.63694733", "0.62838596", "0.6258898", "0.6221733", "0.61430854", "0.61106074", "0.5996755", "0.58194894", "0.5775445", "0.56997216", "0.5695754", "0.5682249", "0.56512356", "0.56002355", "0.55841464", "0.55761486", "0.55731326", "0.5...
0.7054481
1
Tests string for valid hex quantity. See:
Тестирование строки на корректность шестнадцатеричного числа. См.:
public static function isValidHexQuantity($str) { // Always ensure 0x prefix. if (!EthereumStatic::hasHexPrefix($str)) { return FALSE; } // Should always have at least one digit - zero is "0x0". if (strlen($str) < 3) { return FALSE; } return ctype_xdigit(self::removeHexPrefix($...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isValidHexData($str) {\n\n // Always ensure 0x prefix.\n if (!EthereumStatic::hasHexPrefix($str)) {\n return FALSE;\n }\n // Should always have at least one digit - zero is \"0x0\".\n if (strlen($str) <= 3) {\n return FALSE;\n }\n\n // Ensure two hex digits per byte.\...
[ "0.7481244", "0.6936674", "0.6740857", "0.6680194", "0.65772206", "0.6500433", "0.6497084", "0.6487777", "0.63464206", "0.6297738", "0.62930816", "0.62930816", "0.6254888", "0.62187755", "0.6209067", "0.6198567", "0.61314464", "0.59894896", "0.5978508", "0.5974258", "0.596756...
0.8345038
0
Tests if the given string is a HEX UNFORMATED DATA value. See:
Проверяет, является ли заданная строка значением HEX UNFORMATED DATA. См.:
public function isValidHexData($str) { // Always ensure 0x prefix. if (!EthereumStatic::hasHexPrefix($str)) { return FALSE; } // Should always have at least one digit - zero is "0x0". if (strlen($str) <= 3) { return FALSE; } // Ensure two hex digits per byte. if ((strlen($s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_2byteHex($str)\n {\n return !strlen($str) || preg_match(\"/^(0x|x|)[a-f0-9]{4}$/i\",$str);\n }", "public static function is_hexadecimal(string $str): bool\n {\n if (self::$SUPPORT['mbstring'] === true) {\n return \\mb_ereg_match('^[[:xdigit:]]*$', $str);\n }\n...
[ "0.6906489", "0.6758334", "0.6519809", "0.6465706", "0.6399323", "0.6386384", "0.6323286", "0.62823594", "0.6167741", "0.6167741", "0.615249", "0.61142313", "0.60886", "0.60819006", "0.60642046", "0.60421723", "0.60335445", "0.59572065", "0.59411216", "0.58943623", "0.5838165...
0.7417759
0
Test if a string is prefixed with "0x".
Проверить, начинается ли строка с "0x".
public static function hasHexPrefix($str) { return substr($str, 0, 2) === '0x'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function isValidHexQuantity($str) {\n\n // Always ensure 0x prefix.\n if (!EthereumStatic::hasHexPrefix($str)) {\n return FALSE;\n }\n\n // Should always have at least one digit - zero is \"0x0\".\n if (strlen($str) < 3) {\n return FALSE;\n }\n return ctype_xdigit(self:...
[ "0.66502273", "0.6471019", "0.64087623", "0.63715094", "0.63677764", "0.63434386", "0.62362325", "0.61675555", "0.6164215", "0.6145265", "0.61425203", "0.61110604", "0.6083437", "0.60439116", "0.6023458", "0.58980685", "0.5892721", "0.58579767", "0.583276", "0.58247584", "0.5...
0.8220401
0
Remove Hex Prefix "0x".
Удалить префикс шестнадцатеричного числа "0x".
public static function removeHexPrefix($str) { if (!self::hasHexPrefix($str)) { throw new \InvalidArgumentException('String is not prefixed with "0x".'); } return substr($str, 2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function filter_hex($string)\n{\n return preg_replace('/[^a-fA-F0-9]+/', '', $string);\n}", "public function testRemove0x() {\n\t\t$this->assertEquals(Bitcoin::remove0x(\"abcdefg\"), \"abcdefg\");\n\t\t$this->assertEquals(Bitcoin::remove0x(\"0xabcdefg\"), \"abcdefg\");\n\t\t$this->assertEquals(Bitcoin::remove...
[ "0.7211258", "0.7178985", "0.69383866", "0.64132875", "0.6332236", "0.616981", "0.61678046", "0.6081912", "0.60667527", "0.59495795", "0.5836248", "0.5743171", "0.5727847", "0.5716537", "0.56467134", "0.5621972", "0.5618462", "0.561411", "0.559934", "0.55513924", "0.54743165"...
0.77338356
0
Determine if this instance of Magento is using an unsupported checkout extension
Определите, использует ли эта инстанция Magento неподдерживаемое расширение для оформления заказа
public function isUsingUnsupportedCheckout() { // is it one of our properly supported extensions? if ($this->isAheadworksCheckout()) { return false; } if ($this->isIwdCheckout()) { return false; } if ($this->isTmFireCheckout()) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isAheadworksCheckout()\n {\n return Mage::helper('core')->isModuleEnabled('AW_Onestepcheckout');\n }", "public function isIwdCheckout()\n {\n return Mage::helper('core')->isModuleEnabled('IWD_Opc');\n }", "protected function checkIfNoConflictingExtensionIsInstalled() {...
[ "0.65815204", "0.655692", "0.64449865", "0.6219833", "0.6098598", "0.6096576", "0.5983666", "0.58339983", "0.57622766", "0.57344806", "0.5722863", "0.5721951", "0.571038", "0.57056016", "0.5654516", "0.5640143", "0.5625583", "0.56086516", "0.5581741", "0.55453056", "0.5538299...
0.795604
0
Determine if the current site checkout URL is different to the default This is achieved by comparing the result of Mage_Checkout_Helper_Url::getCheckoutUrl() with the result of the checkout/url helper's same method. In default Magento, these will be the same method and so will return the same URL. However, almost all c...
Определите, отличается ли текущий URL оформления заказа сайта от дефолтного. Это достигается путем сравнения результата Mage_Checkout_Helper_Url::getCheckoutUrl() с результатом метода того же имени в помощи checkout/url. В стандартной Magento эти значения будут одинаковыми и, следовательно, вернут одинаковый URL. Однак...
public function isDifferentUrl() { $defaultUrl = $this->getCheckoutUrl(); $actualUrl = Mage::helper('checkout/url')->getCheckoutUrl(); return $defaultUrl != $actualUrl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCheckoutUrl() {\n\t\tif(Mage::helper('core')->isModuleEnabled('Idev_OneStepCheckout')) {\n\t\t\tif ($this->helper('onestepcheckout')->isRewriteCheckoutLinksEnabled()) return $this->getUrl('onestepcheckout', array('_secure'=>true));\n\t\t}\n\t\t\n\t\tif(Mage::helper('core')->isModuleEnabled('Ecom...
[ "0.7027974", "0.69865686", "0.63428575", "0.6337261", "0.6295901", "0.6162477", "0.60349673", "0.60194224", "0.58556443", "0.57571596", "0.5741987", "0.5691753", "0.56770664", "0.56654596", "0.56596166", "0.5651843", "0.56391495", "0.5600147", "0.55925643", "0.54947966", "0.5...
0.80652267
0
Determine if we are using the Aheadworks one step checkout. This checks that the global setting added by the extension is enabled and set to true
Определите, используем ли мы Aheadworks one step checkout. Это проверяет, включено ли глобальное настройка, добавленная расширением, и установлена ли она в true
public function isAheadworksCheckout() { return Mage::helper('core')->isModuleEnabled('AW_Onestepcheckout'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function checkoutMode() {\n\n \tif ( file_exists(PassThru::$_realPath.'/checkoutmode') ) {\n \t\tLog::out(\"passthru - checkoutMode positive\");\n \t\treturn true;\n \t}\n \n \treturn false;\n \n }", "private function _isEnvisSet(){\n\t\t/* Variable initialization */\n\t\t$b...
[ "0.6822767", "0.65153766", "0.62771696", "0.6171117", "0.6130672", "0.6074362", "0.6057532", "0.60565025", "0.6028824", "0.60022336", "0.59934443", "0.5984889", "0.59721684", "0.5969866", "0.5966348", "0.5966034", "0.59614617", "0.5946203", "0.587777", "0.5860436", "0.5853597...
0.72033024
0
Determine if we are using the IWD one step checkout This checks the global IWD checkout setting
Определите, используем ли мы IWD с одностадийной оплатой. Это проверяет глобальное настройка IWD checkout
public function isIwdCheckout() { return Mage::helper('core')->isModuleEnabled('IWD_Opc'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function checkoutMode() {\n\n \tif ( file_exists(PassThru::$_realPath.'/checkoutmode') ) {\n \t\tLog::out(\"passthru - checkoutMode positive\");\n \t\treturn true;\n \t}\n \n \treturn false;\n \n }", "function checkout_check() {\n\t\treturn false;\n\t}", "function is_check...
[ "0.6703711", "0.61919343", "0.61749583", "0.6107881", "0.6090955", "0.6002282", "0.59838253", "0.5725066", "0.56593084", "0.55632865", "0.5549733", "0.5549126", "0.55474603", "0.5503234", "0.5485586", "0.5440226", "0.54107845", "0.5372447", "0.53702104", "0.53555286", "0.5303...
0.76637316
0
Determine if we are using the TM FireCheckout This checks the global TM Firecheckout setting
Определите, используем ли мы TM FireCheckout. Это проверяет глобальный параметр TM Firecheckout
public function isTmFireCheckout() { return Mage::helper('core')->isModuleEnabled('TM_FireCheckout'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function canFireCheckout()\n {\n return (bool)Mage::getStoreConfig('firecheckout/general/enabled');\n }", "public function checkGlobalActive() {\r\n\t\tif (Mage::getStoreConfig('b2bprofessional/generalsettings/active') == 1) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "public static function ...
[ "0.73176783", "0.65009487", "0.6478226", "0.6313935", "0.62692106", "0.622173", "0.6198836", "0.61594856", "0.6047779", "0.60028297", "0.60003734", "0.59869295", "0.5923849", "0.5921621", "0.5900313", "0.5886216", "0.5880436", "0.5869052", "0.58483714", "0.5792294", "0.577408...
0.80338717
0
Determine if anything is rewriting the default onepage controller This is not a foolproof way of determining that we are using a custom checkout, on the default URL, but it's a reasonably accurate one.
Определите, происходит ли переопределение по умолчанию контроллера one page. Это не надежный способ определить, что мы используем кастомный чекаут на стандартном URL, но это достаточно точный метод.
public function defaultUrlExtended() { $config = Mage::getConfig()->getNode('frontend/routers/checkout/args/modules'); if ($config) { foreach ($config->children() as $override) { if ($override->getAttribute('before') == 'Mage_Checkout_OnepageController') { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function needsRedirectToPayment() {\n $haPagado = $this->hasPaid();\n $renewTime = $this->timeFreameToRenewLicense();\n $mustPay = $this->mustPay();\n $optPayment = $this->hasOptionalPayment();\n $url = false;\n $temporary = $this->isTemporary() || $this->hasTempora...
[ "0.622219", "0.59777683", "0.5884104", "0.5726941", "0.56813234", "0.5642488", "0.5609654", "0.5590001", "0.5533356", "0.5528585", "0.55133384", "0.5505518", "0.54812366", "0.54731107", "0.5451107", "0.5446186", "0.5444685", "0.5436047", "0.5423535", "0.541953", "0.5415661", ...
0.71071917
0
Setup all Exchanges and Queues
Настройка всех обменников и очередей
public function setup() { echo "\n\nDeclaring Exchanges\n"; foreach ($this->config['exchanges'] as $name => $config) { $exchange = $this->getExchange($name); $response = null; if (!$exchange->getManaged()) { echo "Skipped : "; } else { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function bindExchangesAndQueues()\n {\n $exchanges = static::getConfigurations()['exchanges'];\n\n if (count($exchanges)) {\n\n foreach ($exchanges as $exchangeName => $details) {\n\n foreach ($details['queues'] as $queueName => $routingKeys) {\n\n ...
[ "0.6910721", "0.65744144", "0.6241595", "0.5916022", "0.5854704", "0.58495194", "0.5797835", "0.5769106", "0.57618904", "0.5754281", "0.5744745", "0.57152975", "0.5686998", "0.56745005", "0.5626888", "0.5624309", "0.56019926", "0.5595257", "0.554263", "0.5539133", "0.553391",...
0.8036812
0
returns the path to the pdftk binary
возвращает путь к бинарному файлу pdftk
protected function GetPdftkBinary() { $strBinary = $this->objConfig->GetFilename('engine.pdftk.binaryPath'); if ($strBinary AND !file_exists($strBinary)) { throw new Exception('pdftk binary is not available. Path: "' . $strBinary . '"'); } else { $strBinary = 'pdftk'; } return $strBinary; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProgramPath()\n {\n return trim(`which sfk`);\n }", "protected function getUploadRootDirPdf() {\n // guardar los archivos cargados\n return __DIR__ . '/../../../../web/uploads/portafolios/' . $this->getId() . '/pdf';\n }", "public function getPDF() {\n $d...
[ "0.6363109", "0.61075383", "0.5885246", "0.57605267", "0.56882346", "0.5661093", "0.5648769", "0.56161946", "0.5575579", "0.5556902", "0.5547764", "0.5540839", "0.54752666", "0.5397407", "0.5395462", "0.5384212", "0.5319299", "0.53035355", "0.5291356", "0.52686036", "0.524172...
0.8011088
0
Constructor. Initialises host, port and timeout parameters defaults to localhost port 23 (standard telnet port)
Конструктор. Устанавливает параметры host, port и timeout по умолчанию: localhost, порт 23 (стандартный порт telnet)
public function __construct($host = '127.0.0.1', $port = '23', $timeout = 1) { $this->host = $host; $this->port = $port; $this->timeout = $timeout; // set some telnet special characters $this->NULL = chr(0); $this->DC1 = chr(17); $this->WILL = chr(251); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct() {\n \t// $this->host = $host;\n \t// $this->port = $port;\n \t// $this->timeout = $timeout;\n parent::__construct(\"192.168.163.30\", \"22\", \"1\");\n }", "function __construct($host, $port=80, $timeout=60)\n {\n $this->host = $host;\n $this->por...
[ "0.7306113", "0.7294688", "0.6744614", "0.6686676", "0.6611238", "0.65713626", "0.6567114", "0.6449845", "0.6398344", "0.6290868", "0.62671036", "0.6254679", "0.62165314", "0.6206045", "0.6064854", "0.60544735", "0.6044629", "0.60167366", "0.6010691", "0.60088223", "0.6006391...
0.8110749
0
Gets character from the socket
Получает символ с сокета
public function getc() { $c = fgetc($this->socket); $this->global_buffer .= $c; return $c; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getc() {\r\n\t\treturn fgetc($this->socket); \r\n\t}", "function readChar();", "public static function getCharacter (\n\t)\t\t\t\t\t\t// RETURNS <str> a single character from the command line.\n\t\n\t// $characterPressed = CLI_Input::getCharacter();\n\t{\n\t\t// Prepare Required Functions\n\t\...
[ "0.82086426", "0.68367857", "0.6655253", "0.6645315", "0.6408663", "0.6226699", "0.6207038", "0.6041825", "0.59857345", "0.58779323", "0.5819712", "0.5807013", "0.5780475", "0.57526666", "0.5716072", "0.57018435", "0.5670575", "0.5653814", "0.56446284", "0.559183", "0.5553106...
0.7621671
1
Clears internal command buffer
Очищает внутренний буфер команд
public function clearBuffer() { $this->buffer = ''; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function clearBuffer() {\r\n\t\t$this->buffer = '';\r\n\t}", "public function clear_buffer() {\n\t\tself::$core_display->buffer = '';\n\t}", "public function clear(): void\n {\n $this->bufferSize = 0;\n $this->buffer = array();\n }", "public function clearCommand(string $command =...
[ "0.81552696", "0.7821488", "0.76314026", "0.7536869", "0.7142722", "0.7004261", "0.6937217", "0.68632656", "0.6833836", "0.6832335", "0.68155473", "0.67764616", "0.67764616", "0.67764616", "0.67764616", "0.6749985", "0.66985685", "0.66830254", "0.666768", "0.66665524", "0.665...
0.805118
1
Returns the content of the command buffer
Возвращает содержимое командного буфера
public function getBuffer() { // cut last line (is always prompt) $buf = explode("\n", $this->buffer); unset($buf[count($buf) - 1]); $buf = implode("\n", $buf); return trim($buf); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getBuffer(){\r\n\t\t// cut last line (is always prompt)\r\n\t\techo $this->buffer;\r\n\t\t$buf = explode(\"\\n\", $this->buffer);\r\n\t\tunset($buf[count($buf)-1]);\r\n\t\t$buf = implode(\"\\n\",$buf);\r\n\t\treturn trim($buf);\r\n\t}", "public function readBuffer() {\n\t\treturn ob_get_clean();...
[ "0.7396366", "0.71520704", "0.7121984", "0.70772827", "0.6983481", "0.6832081", "0.67615265", "0.6740594", "0.6694898", "0.6688675", "0.6688675", "0.6643482", "0.65570736", "0.6391743", "0.63784444", "0.63351774", "0.6305348", "0.62608373", "0.62495697", "0.6244902", "0.62053...
0.7399024
0
Returns the content of the global command buffer
Возвращает содержимое глобального буфера команд
public function getGlobalBuffer() { return $this->global_buffer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_buffer() {\n\t\treturn self::$core_display->buffer;\n\t}", "private function getBuffer(){\r\n\t\t// cut last line (is always prompt)\r\n\t\techo $this->buffer;\r\n\t\t$buf = explode(\"\\n\", $this->buffer);\r\n\t\tunset($buf[count($buf)-1]);\r\n\t\t$buf = implode(\"\\n\",$buf);\r\n\t\treturn ...
[ "0.6925272", "0.68246156", "0.6726476", "0.6583885", "0.6548368", "0.65458053", "0.64013624", "0.6351218", "0.6284548", "0.627649", "0.62490934", "0.6244525", "0.6233344", "0.6208562", "0.61987484", "0.616729", "0.61478025", "0.6094432", "0.60680044", "0.6067677", "0.6038043"...
0.70706904
0
Get google plus share count.
Получить количество переходов через Google Plus.
public function getGooglePlusCount($url) { return $this->getCount($url, self::SN_GOOGLEPLUS); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function gplus_shares($url){\n \n // G+ DATA\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, \"https://clients6.google.com/rpc?key=AIzaSyCKSbrvQasunBoV16zDH9R33D88CeLr9gQ\");\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n ...
[ "0.7680208", "0.7484714", "0.6936792", "0.6637958", "0.6570186", "0.63951606", "0.6353329", "0.6295546", "0.6266056", "0.62551343", "0.62370354", "0.62027335", "0.61592567", "0.61468065", "0.61466134", "0.6120866", "0.6097483", "0.5964435", "0.5928238", "0.589348", "0.5889467...
0.7575955
1
Get pinterest share count.
Получить количество разшарованных постов в Pinterest.
public function getPinterestCount($url) { return $this->getCount($url, self::SN_PINTEREST); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function retrive_share_count_pin( $page_url ) {\n\n\t\t$args = array( 'timeout' => 30 );\n\t\t$response = 'http://widgets.pinterest.com/v1/urls/count.json?url=' . $page_url;\n\t\t$response = UAEL_Helper::get_social_share_count( $response, $args );\n\t\t$response = preg_replace( '/^receiveCount\\((.*)\\)...
[ "0.72502136", "0.67209405", "0.67186326", "0.66876316", "0.65962696", "0.65169835", "0.64961857", "0.6474228", "0.6344511", "0.6264588", "0.6231814", "0.62056595", "0.6190818", "0.6161616", "0.6148282", "0.61414593", "0.6104339", "0.6048928", "0.60451674", "0.6035485", "0.598...
0.7249097
1
Get twitter share count.
Получить количество репостов в Twitter.
public function getTwitterCount($url) { return $this->getCount($url, self::SN_TWITTER); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getNumberOfTweets()\n {\n return $this->getData('number_of_tweets');\n }", "function get_tweet_count( $url ) {\n\t$url = urlencode( $url );\n\t$twitter_endpoint = 'http://cdn.api.twitter.com/1/urls/count.json?url=%s';\n\t$file_data = get_response( sprintf( $twitt...
[ "0.7555627", "0.7238936", "0.6972697", "0.69406694", "0.69287646", "0.67024714", "0.65971833", "0.6549767", "0.64946836", "0.6354168", "0.63453454", "0.63020813", "0.62677926", "0.6244183", "0.6206163", "0.6198287", "0.6181279", "0.61454415", "0.6125008", "0.6101728", "0.6091...
0.732289
1
getSetterName Gets the name of the setter method of attribute in a camelcase notation to be used by the generated class.
getSetterName Получает имя метода сеттера атрибута в формате camelCase, который используется сгенерированным классом.
public function getSetterName() { return "set" . self::underscoreToCamelCase($this->name,true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getGetterName()\n {\n return \"get\" . self::underscoreToCamelCase($this->name,true);\n }", "protected function getSetter($key)\n {\n $key = str_replace('_', ' ', $key);\n $key = ucwords($key);\n $key = str_replace(' ', '', $key);\n\n return 'set'.$key;...
[ "0.70384866", "0.6834112", "0.6811636", "0.63316625", "0.6281769", "0.62801105", "0.6227377", "0.60004795", "0.59961694", "0.5994152", "0.59908086", "0.5944683", "0.59395015", "0.59395015", "0.5937487", "0.59239674", "0.59239674", "0.59239674", "0.59182465", "0.590658", "0.58...
0.86557454
0
getGetterName Gets the name of the getter method of attribute in a camelcase notation to be used by the generated class.
getGetterName Получает имя метода-геттера атрибута в формате camelCase, используемое сгенерированным классом.
public function getGetterName() { return "get" . self::underscoreToCamelCase($this->name,true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getName(): string\n {\n if (!$this->useAlternateName) {\n return 'get' . $this->getPropertyName();\n } else {\n $methodName = 'get' . $this->getPropertyName() . 'By';\n\n $camelizedColumns = array_map([TDBMDaoGenerator::class, 'toCamelCase'], $this-...
[ "0.7037731", "0.69724166", "0.69724166", "0.69137925", "0.69137925", "0.69137925", "0.6755923", "0.6578523", "0.6578523", "0.6578523", "0.6561612", "0.64543575", "0.6439233", "0.6378594", "0.63126963", "0.6296751", "0.6289826", "0.6283564", "0.62779105", "0.6274661", "0.62724...
0.86308926
0
getTypeAndLenght Gets the type and lenght of mysql field
getTypeAndLenght Получает тип и длину поля mysql
public function getTypeAndLenght() { return $this->type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDataTypeWithLengthSpecified()\n {\n $tableName = 'ramp_tabletest1';\n $table = new Application_Model_DbTable_Table($tableName);\n $metaInfo = $table->info(Zend_Db_Table_Abstract::METADATA);\n $whichField = 'name';\n\n $field = new Application_Model_Field($w...
[ "0.684523", "0.6642202", "0.65575343", "0.64853805", "0.6452541", "0.643228", "0.6399013", "0.6392768", "0.63776946", "0.63478035", "0.6344269", "0.6324049", "0.6276268", "0.62629163", "0.6261934", "0.6232156", "0.62153184", "0.6198312", "0.61539406", "0.61412615", "0.6126145...
0.71600205
0
getNullableInfo Gets NULL information about mysql field
getNullableInfo Получает информацию о NULL для поля mysql
public function getNullableInfo() { return $this->null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNullable()\n {\n return $this->_nullable;\n }", "public function getNullable()\n {\n return $this->nullable;\n }", "function PMA_getNullifyCodeForNullColumn($field, $foreigners, $foreignData)\n{\n if (strstr($field['True_Type'], 'enum')) {\n if (strlen($fi...
[ "0.6522869", "0.64554423", "0.6255796", "0.60780466", "0.5710713", "0.55844986", "0.5518286", "0.5513231", "0.5474308", "0.5405561", "0.53749293", "0.53720397", "0.5368595", "0.53492767", "0.53448194", "0.5343276", "0.53413904", "0.533491", "0.53251106", "0.53207135", "0.5293...
0.80449784
0
getDefaultValueInfo Gets default value information about mysql field
getDefaultValueInfo Получает информацию о значении по умолчанию поля mysql
public function getDefaultValueInfo() { return $this->default; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getDefaultValue($fieldname){\n\t\t$field =& $this->getField($fieldname);\n\t\t$tablename = $this->getTableName($fieldname);\n\t\tif ( !isset($tablename) ) return null;\n\t\t$table =& $this->getTableOrView($tablename);\n\t\t$delegate =& $table->getDelegate();\n\t\tif ( isset($delegate) and method_exists($d...
[ "0.6264278", "0.62331283", "0.6232875", "0.6187482", "0.6145747", "0.6106555", "0.6106555", "0.60978913", "0.6059575", "0.6058975", "0.6042976", "0.6041041", "0.5979527", "0.59682906", "0.5933136", "0.59296703", "0.58982337", "0.5889331", "0.5869436", "0.58639026", "0.5849738...
0.75110805
0
getExtraInfo Gets extra information about mysql field
getExtraInfo Получает дополнительную информацию о поле mysql
public function getExtraInfo() { return $this->extra; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function extraInfo();", "protected function storeExtraInfo()\n\t{\n\t\t$input = $this->connection->getExtraInfo();\n\t\t\n\t\tif (!isset($input)) {\n\t\t\t$this->extrainfo[] = null;\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (!is_string($input)) {\n\t\t\ttrigger_error(\"Metadata in other forms that a string is n...
[ "0.7196486", "0.7066271", "0.70551705", "0.69469583", "0.65445536", "0.64097935", "0.64097935", "0.6396161", "0.6370006", "0.63632214", "0.63632214", "0.63632214", "0.63632214", "0.6362782", "0.6362782", "0.6362782", "0.63625", "0.63625", "0.63515043", "0.63372207", "0.627679...
0.73731995
0
isPkField Evaluates if is a a PK field
isPkField Определяет, является ли это полем первичного ключа
public function isPkField() { if ($this->key == "PRI"){ return true; } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isPk($pk) {\n\t\treturn filter_var($pk, FILTER_VALIDATE_INT) !== false;\n }", "public function getPKField()\r\n {\r\n if(!isset($this->pkField) && is_array($this->cols))\r\n {\r\n foreach($this->cols as $field => $colDef)\r\n {\r\n if ($colDe...
[ "0.74785596", "0.6977965", "0.68190104", "0.6811216", "0.6359643", "0.63180226", "0.6288749", "0.6248221", "0.62148696", "0.6211647", "0.60523176", "0.6046293", "0.6046293", "0.60014427", "0.5983354", "0.59702957", "0.5963085", "0.5959997", "0.5917941", "0.5907256", "0.585276...
0.8300798
0
Attach all of this event manager's events.
Привяжите все события этого менеджера событий.
public function attachEvents();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function attach(EventManagerInterface $events)\n {\n foreach ($this->hooks as $name => $spec) {\n $listeners[] = $events->attach($spec['event'], array($this, \"do$name\"));\n }\n }", "public function attach(EventManagerInterface $events) {\n $this->listeners[] = $even...
[ "0.6975981", "0.6878127", "0.681202", "0.6779693", "0.67758816", "0.67648906", "0.67518514", "0.6736327", "0.6689978", "0.66260934", "0.6618795", "0.65976363", "0.6544493", "0.6527531", "0.6349829", "0.6324508", "0.63117903", "0.63085717", "0.63072157", "0.6289992", "0.626658...
0.70833665
1
Import All In One SEO meta values.
Импорт всех значений мета-тегов SEO в одном месте.
private function import_metas() { WPSEO_Meta::replace_meta( '_aioseop_description', WPSEO_Meta::$meta_prefix . 'metadesc', false ); WPSEO_Meta::replace_meta( '_aioseop_keywords', WPSEO_Meta::$meta_prefix . 'metakeywords', false ); WPSEO_Meta::replace_meta( '_aioseop_title', WPSEO_Meta::$meta_prefix . 'title', fal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function import_metas() {\n\t\tWPSEO_Meta::replace_meta( '_aioseop_description', WPSEO_Meta::$meta_prefix . 'metadesc', $this->replace );\n\t\tWPSEO_Meta::replace_meta( '_aioseop_keywords', WPSEO_Meta::$meta_prefix . 'metakeywords', $this->replace );\n\t\tWPSEO_Meta::replace_meta( '_aioseop_title', WPSEO_M...
[ "0.7779782", "0.6613514", "0.6244417", "0.6232511", "0.6104014", "0.609648", "0.6012791", "0.59994966", "0.59889436", "0.59666723", "0.59420586", "0.59420586", "0.59416413", "0.5921668", "0.5918965", "0.5915023", "0.58964014", "0.587242", "0.5861537", "0.58404785", "0.5825309...
0.80323005
0
Creates a new OaPosition model. If creation is successful, the browser will be redirected to the 'view' page.
Создает новый объект модели OaPosition. Если создание успешно, браузер будет перенаправлен на страницу просмотра.
public function actionCreate() { $model = new OaPosition(); $oaposition=OaSchool::find()->andWhere(['school_softdel'=>'1'])->all(); $oadepartment=OaDepartment::find()->andWhere(['dep_softdel'=>'1'])->all(); //获取当前控制器和action名称 $controller = Yii::$app->controller->id; $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionCreate()\n {\n $model = new Position();\n $model->loadDefaultValues();\n if (strpos(Yii::$app->request->referrer, 'structure') !== false) {\n $referrer = Yii::$app->request->referrer;\n } else {\n $referrer = null;\n }\n\n if ...
[ "0.79742616", "0.75504225", "0.7229896", "0.71523106", "0.70941573", "0.7057783", "0.7018156", "0.6958162", "0.68097377", "0.6741968", "0.6741819", "0.66814077", "0.66330886", "0.66235775", "0.6584386", "0.6568867", "0.6553692", "0.6550406", "0.6529983", "0.65161604", "0.6469...
0.7628513
1
Clears a column's indexes
Очищает индексы столбца
public function clearColumnIndexes(ColumnInterface $column): void { $this->filesystem->remove( $this->indexesDirectory->getRealPath() . '/' . $column->getName() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function removeIndex($columns)\r\n {\r\n }", "abstract public function wipeIndex();", "public function clearColumnsFromAliasing()\n {\n foreach ($this->columns as $index => $column) {\n $this->columns[$index] = $this->clearColumn($column);\n }\n foreach (...
[ "0.72149473", "0.692863", "0.67149335", "0.660403", "0.65425897", "0.6496642", "0.63680637", "0.6340956", "0.6278095", "0.6258926", "0.623613", "0.62271607", "0.6206449", "0.61309904", "0.6040686", "0.5991805", "0.5987585", "0.5968785", "0.5938386", "0.5922305", "0.5916722", ...
0.7428596
0
Updates the indexes of a record
Обновляет индексы записи
public function updateRecordIndexes(RecordInterface $record): void { $this->clearRecordIndexes($record); $this->indexRecord($record); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateIndex()\n {\n if ($this->es_index_helper) {\n call_user_func($this->es_index_helper, $this);\n }\n }", "private function rebuildIndex()\n {\n foreach ($this->rows as $id => $row) {\n $label = $row->getColumn('label');\n if ($lab...
[ "0.6712912", "0.64875567", "0.6275281", "0.6173441", "0.61613446", "0.6140079", "0.6090537", "0.6074376", "0.6066402", "0.6053089", "0.59584737", "0.5883339", "0.5871403", "0.5847479", "0.583132", "0.58081734", "0.57882994", "0.5743935", "0.5730077", "0.5670147", "0.56475616"...
0.7704259
0
Returns the path to the index directory of a column field with a specific value
Возвращает путь к каталогу индекса поля столбца с конкретным значением
public function buildIndexPathForColumnWithValue(ColumnInterface $column, $fieldValue): Path { $indexesDir = $this->indexesDirectory; $fieldName = $column->getName(); return new Path($indexesDir->getRealPath() . "/$fieldName"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIndexDirectoryPath();", "public function getIndexForColumnWithValue(ColumnInterface $column, $fieldValue): Index\n {\n $path = $this->buildIndexPathForColumnWithValue($column, $fieldValue);\n\n $indexDir = new Directory($path);\n if(!$indexDir->exists()) {\n ...
[ "0.62043524", "0.59869", "0.5948656", "0.56344604", "0.5629498", "0.55524886", "0.5488265", "0.5482821", "0.54515606", "0.533821", "0.53331333", "0.5311507", "0.5279746", "0.5230234", "0.52124745", "0.51988286", "0.5196865", "0.5195268", "0.51554346", "0.5154617", "0.51229846...
0.70614207
0
$file = $request>filesTest; //$request>file('file')>hashName();
$file = $request>filesTest; //$request>file('file')>hashName();
public function postFile($request){ // dd($file); // $firstName = ""; // $firstName = $file->getClientOriginalName(); if($request->hash_file('myFile')){ return 1; } else return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFile(): string;", "public function getFile(): string;", "public function getFile(): string;", "public function getFileRequest(): FileBag { return $this->files; }", "function file_upload(Request $request){\n //Get file\n $file = $request->file('file');\n \...
[ "0.6475483", "0.6475483", "0.6475483", "0.64456576", "0.639355", "0.6253076", "0.6230289", "0.61641586", "0.6154453", "0.6138962", "0.6136175", "0.61267465", "0.6029634", "0.6024921", "0.60189384", "0.600548", "0.600548", "0.5979694", "0.5970905", "0.59680516", "0.5939772", ...
0.7282025
0
BGREWRITEAOF Available since 1.0.0.
BGREWRITEAOF Доступен с версии 1.0.0.
public function bgrewriteaof() { return $this->returnCommand(['BGREWRITEAOF']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function bgsave() {\n return $this->returnCommand(['BGSAVE']);\n }", "public function rewrite();", "protected function writeGifAndPng() {}", "function cu_rewrite_activation() {\n\tcu_rewrite_add_rewrites();\n\tflush_rewrite_rules();\n}", "function fs_rewrite_flush() {\r\n\tflush_rewrite_ru...
[ "0.5359456", "0.4927451", "0.48391175", "0.4725846", "0.47166947", "0.46659532", "0.46506026", "0.46155995", "0.46088174", "0.45931518", "0.45595998", "0.45230186", "0.44991624", "0.44588426", "0.44432375", "0.44253108", "0.4420444", "0.44127858", "0.44097155", "0.4396779", "...
0.7472243
0
BGSAVE Available since 1.0.0.
BGSAVE Доступно с версии 1.0.0.
public function bgsave() { return $this->returnCommand(['BGSAVE']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function saveGraphicState() {}", "public function saveGraphicState() {}", "public function saveBackdrop($params) {\n\t}", "public function restored(BgImage $bgImage)\n {\n //\n }", "public function getSaveAlpha()\n {\n return $this->PNGIsSaveAlpha;\n }", "public function ...
[ "0.6146158", "0.6145701", "0.59595805", "0.5673179", "0.56273675", "0.5546119", "0.5491569", "0.538852", "0.5368858", "0.5359456", "0.5359456", "0.5327007", "0.5294056", "0.5257348", "0.5244502", "0.52090174", "0.5200395", "0.51910603", "0.51910603", "0.5152068", "0.5145311",...
0.82495594
0
CLIENT GETNAME Available since 2.6.9. Time complexity: O(1)
CLIENT GETNAME Доступно с версии 2.6.9. Время сложности: O(1)
public function clientGetname() { return $this->returnCommand(['CLIENT', 'GETNAME']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function get_name() : string ;", "public static function get_name() : string ;", "abstract public function get_name();", "abstract public function get_name();", "abstract public function get_name();", "function get_name() {\n\t\treturn $this->get_name_from_vtec();\t\n\t}", "public functio...
[ "0.6925108", "0.6925108", "0.6806359", "0.6806359", "0.6806359", "0.6651498", "0.6648777", "0.6648777", "0.6648777", "0.6569009", "0.64420617", "0.64420617", "0.64420617", "0.64420617", "0.6430137", "0.6430137", "0.6430137", "0.6430137", "0.6430137", "0.6430137", "0.6430137",...
0.7552326
0
CLIENT SETNAME connectionname Available since 2.6.9. Time complexity: O(1)
CLIENT SETNAME connectionname Доступно с версии 2.6.9. Временная сложность: O(1)
public function clientSetname($connectionName) { return $this->returnCommand(['CLIENT', 'SETNAME'], null, [$connectionName]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setConnectionName($name);", "public function setConnection($name);", "public function setClientName(string $clientName);", "public function setDefaultConnection(string $name);", "static public function setConnection($name)\n {\n self::create_connection($name);\n self::$acti...
[ "0.7156397", "0.6747411", "0.6400421", "0.5909127", "0.58949035", "0.5818088", "0.57921237", "0.57921237", "0.57824636", "0.5764051", "0.5764051", "0.5764051", "0.5671412", "0.56572807", "0.5627063", "0.5624378", "0.5613506", "0.55800503", "0.554311", "0.549284", "0.549284", ...
0.75128686
0
DBSIZE Available since 1.0.0.
DBSIZE Доступно с версии 1.0.0.
public function dbsize() { return $this->returnCommand(['DBSIZE']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function get_database_size()\n {\n }", "private function get_DB_size() {\n global $DB;\n $sql = \"SELECT table_name AS table_name,\n ROUND(((data_length + index_length) / 1024 / 1024), 2) AS table_size\n FROM information_schema.TABLE...
[ "0.83933437", "0.7933317", "0.78430384", "0.70254034", "0.6699973", "0.6414128", "0.64023834", "0.6396015", "0.6318541", "0.6236724", "0.6211523", "0.61455023", "0.60850835", "0.6073135", "0.6038954", "0.60325515", "0.5955017", "0.5943822", "0.5942979", "0.5939052", "0.593362...
0.7996275
1
DEBUG OBJECT key Available since 1.0.0.
DEBUG ОБЪЕКТ key Доступен с версии 1.0.0.
public function debugObject($key) { return $this->returnCommand(['DEBUG', 'OBJECT'], $key, [$key]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getDebugKey()\n {\n return 'fitch.manager.report';\n }", "public function __debugInfo()\n {}", "public function getDebug();", "public static function debug_data()\n {\n }", "public function debug(){\n $debug = [\n 'ID' => $this->ID,\n ...
[ "0.6871585", "0.67263925", "0.65106195", "0.6454378", "0.6432389", "0.63544345", "0.63544345", "0.6349589", "0.6322868", "0.62784576", "0.62784576", "0.62530214", "0.6223108", "0.614626", "0.61343116", "0.61293566", "0.61050236", "0.60913473", "0.6091057", "0.6086146", "0.608...
0.718089
0
DEBUG SEGFAULT Available since 1.0.0.
DEBUG SEGFAULT Доступно с версии 1.0.0.
public function debugSegfault() { return $this->returnCommand(['DEBUG', 'SEGFAULT']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function dbug() {\n if (!isset($doc_root)) {\n $doc_root = str_replace('\\\\', '/', $_SERVER['DOCUMENT_ROOT']);\n }\n $back = debug_backtrace();\n // you may want not to htmlspecialchars here\n $line = htmlspecialchars($back[0]['line']);\n $file = htmlspecialchars(str_replace(array('...
[ "0.6577344", "0.626484", "0.62599874", "0.61219287", "0.60903853", "0.6060978", "0.6005148", "0.5975518", "0.5965597", "0.59259224", "0.5901219", "0.58862835", "0.58862835", "0.58662254", "0.58481485", "0.5826602", "0.5808612", "0.58006597", "0.57466716", "0.57376033", "0.571...
0.7568783
0
FLUSHALL Available since 1.0.0.
FLUSHALL Доступен с версии 1.0.0.
public function flushall() { return $this->returnCommand(['FLUSHALL']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function flushAll();", "public function flushAll(){\n\n //get flush All\n $this->client->flushall();\n }", "public function flushAll() {\n\t\t$this->removeKeys();\n\t}", "public function flushAll()\n\t{\n\t\t//flushAll\n\t\t\n\t\treturn $this->_call('flushDB');\n\t}", "public functi...
[ "0.74841803", "0.7014803", "0.69659233", "0.668407", "0.66395694", "0.61898077", "0.6156067", "0.6101681", "0.6100423", "0.6091307", "0.60884154", "0.60743463", "0.607269", "0.607269", "0.607269", "0.607269", "0.607269", "0.607269", "0.607269", "0.607269", "0.607269", "0.60...
0.7449434
1
FLUSHDB Available since 1.0.0.
FLUSHDB Доступно с версии 1.0.0.
public function flushdb() { return $this->returnCommand(['FLUSHDB']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function flushdb(){\n\n //get flush db\n $this->client->flushdb();\n }", "abstract public function FlushToDatabase();", "protected function doPurgeDatabase()\n {\n }", "private function resetDatabase()\n {\n $dumpFolder = APPLICATION_PATH . '/../data/dumps/';\n\n ...
[ "0.6736875", "0.6341558", "0.6224964", "0.61056834", "0.60494983", "0.5989171", "0.59847915", "0.5944939", "0.5908523", "0.5855696", "0.5852246", "0.58454883", "0.57942766", "0.57650656", "0.57318205", "0.5711779", "0.5702588", "0.5701131", "0.56884885", "0.5685595", "0.56769...
0.7121392
0
LASTSAVE Available since 1.0.0.
LASTSAVE Доступен с версии 1.0.0.
public function lastsave() { return $this->returnCommand(['LASTSAVE']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function save()\n {\n }", "function save()\n {\n }", "function save();", "function save();", "public function save()\n {\n // For V2.0\n }", "function Save();", "private function _saveExt() {\r\n\r\n }", "public\tfunction\tsave()\n\t\t{\n\t\t}", "public final function save...
[ "0.6643721", "0.6643721", "0.66208833", "0.66208833", "0.6578784", "0.6559684", "0.6546993", "0.6465961", "0.64551723", "0.6425777", "0.6401374", "0.6312238", "0.6312238", "0.6312238", "0.6312238", "0.6312238", "0.6312238", "0.6312238", "0.6312238", "0.6312238", "0.6312238", ...
0.788534
0
SHUTDOWN [NOSAVE|SAVE] Available since 1.0.0.
SHUTDOWN [NOSAVE|SAVE] Доступно с версии 1.0.0.
public function shutdown($save) { return $this->returnCommand(['SHUTDOWN'], null, $save ? [$save] : null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function executeOnShutdown();", "public function shutdown();", "public function shutdown();", "function shutdown() ;", "function shutdown()\n {\n }", "function xbmc_shutdown() {\n\n if ($this->XBMCCmd(\"shutdown\")!=\"OK\") { return false; }\n return true;\n\n ...
[ "0.6821467", "0.6780369", "0.6780369", "0.6756851", "0.6595503", "0.65277666", "0.6502534", "0.6448261", "0.64344066", "0.6371285", "0.635035", "0.635035", "0.63242424", "0.6294356", "0.62556714", "0.6253975", "0.6253975", "0.6253975", "0.6253975", "0.6253975", "0.62244356", ...
0.76692456
0
SLOWLOG subcommand [argument] Available since 2.2.12.
SLOWLOG подкоманда [аргумент] Доступно с версии 2.2.12.
public function slowlog($subcommand, $argument = null) { $params = [$subcommand]; if (isset($argument)) { $params[] = $argument; } return $this->returnCommand(['SLOWLOG'], null, $params); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function verbose($msg = null, $arg = \"\")\n{\n global $verbose, $verboseFile;\n static $log = array();\n\n if (!($verbose || $verboseFile)) {\n return;\n }\n\n if (is_null($msg)) {\n return $log;\n }\n\n if (is_null($arg)) {\n $arg = \"null\";\n } elseif ($arg === fals...
[ "0.5382212", "0.52043474", "0.5191677", "0.51542556", "0.51542556", "0.5147285", "0.5146927", "0.5098925", "0.5092383", "0.50507694", "0.5041997", "0.5030119", "0.50074714", "0.49599168", "0.49090835", "0.49075902", "0.4872312", "0.48539558", "0.48524758", "0.4844354", "0.482...
0.80188924
0
Sets a custom events manager
Устанавливает пользовательский менеджер событий
protected function setEventsManager(EventsManagerInterface $eventsManager) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setEventsManager(ManagerInterface $eventsManager);", "public function setEventsManager(ManagerInterface $eventsManager): void;", "protected function getEventsManager() {}", "protected function initEventsManager()\n {\n $this->di->setShared('eventsManager', function () {\n ...
[ "0.7683864", "0.7311157", "0.7126067", "0.69238305", "0.6896897", "0.6875409", "0.6697746", "0.6688137", "0.6673844", "0.652463", "0.65154874", "0.6502572", "0.64547944", "0.63808984", "0.6373818", "0.6373818", "0.6373818", "0.6345862", "0.6297537", "0.6291905", "0.6265183", ...
0.75835556
1
Returns the custom events manager
Возвращает менеджер пользовательских событий
protected function getEventsManager() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEventsManager()\n {\n return $this->eventsManager;\n }", "public function getEventsManager() : ManagerInterface;", "public function getEventManager()\n {\n return $this->events;\n }", "public function getEventManager()\n {\n if (!isset($this['event.manag...
[ "0.8103697", "0.8058108", "0.7653355", "0.7531142", "0.75084543", "0.75084543", "0.75054795", "0.7444093", "0.7169841", "0.7099779", "0.7088783", "0.70799917", "0.70293254", "0.69770473", "0.69589186", "0.69294894", "0.6912937", "0.6912937", "0.6912937", "0.6912937", "0.69093...
0.83902985
0
Sets the dirty state of the object using one of the DIRTY_STATE_ constants
Устанавливает состояние "грязи" объекта с использованием одного из констант DIRTY_STATE_
public function setDirtyState($dirtyState) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDirtyState(int $dirtyState);", "static function setDirty($a_obj_id)\n\t{\n\t\tglobal $ilDB;\n\t\n\t\t$ilDB->manipulate(\"UPDATE ut_lp_marks SET \".\n\t\t\t\" status_dirty = \".$ilDB->quote(1, \"integer\").\n\t\t\t\" WHERE obj_id = \".$ilDB->quote($a_obj_id, \"integer\")\n\t\t\t);\n\t}", "pub...
[ "0.69966525", "0.6234591", "0.6048936", "0.60281235", "0.6022646", "0.5988311", "0.59217227", "0.59119964", "0.5687188", "0.56037164", "0.5592773", "0.5570576", "0.55496764", "0.542555", "0.53719217", "0.53526026", "0.5316668", "0.5305865", "0.52807915", "0.52706635", "0.5219...
0.7102899
0
Gets the connection used to read data for the model
Получает соединение, используемое для чтения данных для модели
public function getReadConnection() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getConnection(){\n\t\treturn $this->connection;\n\t}", "public function getConnection(){\n\t\treturn $this->_connection;\n\t}", "public function getConnection() {\n return $this->connection;\n }", "public function get_connection()\n {\n return $this->connection;\n }", ...
[ "0.7614094", "0.7564596", "0.7556578", "0.7556265", "0.7534262", "0.7534262", "0.7515604", "0.74981135", "0.7488846", "0.7488846", "0.74885935", "0.7472927", "0.7470862", "0.7470862", "0.7459009", "0.74396616", "0.7432152", "0.7432152", "0.7432152", "0.7432152", "0.7432152", ...
0.76299435
0
Gets the connection used to write data to the model
Получает соединение, используемое для записи данных в модель
public function getWriteConnection() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_connection()\n {\n return $this->connection;\n }", "public function getConn()\n {\n return $this->conn;\n }", "public function getConn(){\n return $this->conn;\n }", "public function getConn()\n {\n return $this->conn;\n }", "...
[ "0.76008534", "0.7596246", "0.75868416", "0.7565791", "0.7565791", "0.75541246", "0.7538657", "0.7535037", "0.7534739", "0.7534739", "0.75243324", "0.7517522", "0.7494578", "0.7494578", "0.74845994", "0.74839145", "0.74839145", "0.7469454", "0.7461179", "0.7461179", "0.746117...
0.8082364
0
Fires an event, implicitly calls behaviors and listeners in the events manager are notified
Вызывает событие, неявно вызывает поведения и слушатели, зарегистрированные в менеджере событий, получают уведомление
public function fireEvent($eventName) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function triggerEvent($eventId);", "public function triggerEvent($event, array $arguments = null);", "public function triggerEvent(TFW_Event $event){\n if(method_exists($this, $event->getAction()))\n call_user_func_array(array($this, $event->getAction()), $event->getArgs());\n ...
[ "0.69816464", "0.6722715", "0.67207", "0.6695359", "0.66514164", "0.65519893", "0.6466912", "0.64565027", "0.64565027", "0.6409495", "0.6225666", "0.6114968", "0.6075195", "0.6048123", "0.6043853", "0.60196567", "0.6011543", "0.5983803", "0.59739834", "0.59308094", "0.5916601...
0.7502865
0
Enable development mode (use development API)
Включить режим разработки (использовать разносторонний API)
public function developmentMode() { $this->API_URL = self::DEVELOPMENT_API_URL; $this->username = self::DEVELOPMENT_API_USERNAME; $this->password = self::DEVELOPMENT_API_PASSWORD; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function useDevelopmentMode();", "public function enableDebugMode() {}", "function turnOnDebugMode()\n {\n $this->debugmode = true;\n }", "public function enableDebug() {}", "public function isDevelopment() {}", "public function enableDebug();", "public function dev($dev=true)\n ...
[ "0.85616994", "0.8058371", "0.75965977", "0.7504924", "0.75023055", "0.74386066", "0.71827173", "0.71387815", "0.7088907", "0.6956505", "0.6917376", "0.6903448", "0.68843985", "0.6867904", "0.6863861", "0.68542635", "0.6802585", "0.6769529", "0.67342174", "0.67215866", "0.668...
0.8200059
1
generateRandStr Generates a string made up of randomized letters (lower and upper case) and digits, the length is a specified parameter.
generateRandStr Генерирует строку, состоящую из случайных букв (строчных и прописных) и цифр, длина определяется указанным параметром.
function generateRandStr($length){ $randstr = ""; for($i=0; $i<$length; $i++){ $randnum = mt_rand(0,61); if($randnum < 10){ $randstr .= chr($randnum+48); }else if($randnum < 36){ $randstr .= chr($randnum+55); }else{ $randstr ....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function str_random($length)\n {\n return str_generate($length, '0123456789ABCDEDFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz');\n }", "function str_generate($length, $chars)\n {\n return substr(str_shuffle(str_repeat($chars, $length)), 0, $length);\n }", "function generateRandStr(...
[ "0.78783035", "0.78604573", "0.7850321", "0.77666086", "0.7766072", "0.7753387", "0.77527803", "0.7738074", "0.77337575", "0.77181685", "0.77083", "0.7700618", "0.769724", "0.76811194", "0.76724905", "0.76679367", "0.76673967", "0.76631063", "0.76626474", "0.76625305", "0.766...
0.79463303
0
Get all of the groups that are assigned this device token.
Получите все группы, которые назначены этому устройственному токену.
public function groups() { return $this->morphedByMany(Group::class, 'device_tokenable')->withTimestamps(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllGroups() {\n\t\t$groups = $this->group->getAll();\n\t\treturn $groups;\n\t}", "public function groups()\n {\n $response = $this->request->post($this->requestUrl('get_groups'), $this->params);\n\n return $response->groups;\n }", "public function getGroups()\n {\n ...
[ "0.7980287", "0.7778843", "0.7756856", "0.773041", "0.7689288", "0.76605994", "0.764763", "0.76459795", "0.7618218", "0.7611049", "0.75809693", "0.75809693", "0.75785995", "0.7570925", "0.75356334", "0.75229037", "0.75074506", "0.7501314", "0.748865", "0.7465503", "0.7440829"...
0.78855246
1
Get all of the users that are assigned this device token.
Получить всех пользователей, которым назначено это устройство.
public function users() { return $this->morphedByMany(User::class, 'device_tokenable')->withTimestamps(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function users()\n {\n return $this->getUsers(\n config('auth.model') ?: config('auth.providers.users.model')\n );\n }", "public function getUsers()\n {\n return $this->users->getValues();\n }", "public function getUserList() {\n return $this->users...
[ "0.7606435", "0.7577424", "0.7504379", "0.7500339", "0.74291027", "0.73964995", "0.73632056", "0.73032826", "0.7299611", "0.72921145", "0.7247601", "0.72381467", "0.723141", "0.722704", "0.72266084", "0.721507", "0.72041285", "0.7199743", "0.7193838", "0.71928203", "0.7185067...
0.7856373
0