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 |
|---|---|---|---|---|---|---|---|
getMeals returns an array of meal options | getMeals возвращает массив вариантов блюд | function getMeals()
{
//1. Define the query
$sql = "SELECT meal_id, meal_name FROM meal";
//2. Prepare the statement
$statement = $this->_dbh->prepare($sql);
//3. Bind the parameters
//4. Execute the query
$statement->execute();
//5. P... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getMeals(){\r\n return array(\"breakfast\", \"luch\",\"desert\", \"dinner\");\r\n}",
"public static function meals()\n\t{\n\t\t$meals = [];\n\t\tforeach (range(0, 12) as $day) {\n\t\t\t$mutable = Carbon::now()->sub($day, 'day');\n\n\t\t\tforeach (range(1, 4) as $user_id) {\n\t\t\t\t$meals[] = [\n\t\t... | [
"0.70062643",
"0.67703956",
"0.6175328",
"0.5915485",
"0.58426213",
"0.58426213",
"0.5746619",
"0.57462955",
"0.5604483",
"0.55828446",
"0.55741584",
"0.5559498",
"0.555779",
"0.5536681",
"0.5533614",
"0.54547095",
"0.5391993",
"0.5390696",
"0.5386532",
"0.5380592",
"0.537403... | 0.7118526 | 0 |
Gets the value of registeredSalary. | Получает значение зарегистрированной зарплаты. | public function getRegisteredSalary()
{
return $this->registeredSalary;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getSalary()\n {\n return $this->salary;\n }",
"public function getSalary()\n {\n return $this->salary;\n }",
"public function getSalary()\n {\n return $this->salary;\n }",
"public function get_salary()\n {\n return $this->_salar... | [
"0.81834805",
"0.81834805",
"0.81477886",
"0.80166876",
"0.796824",
"0.74783874",
"0.7388115",
"0.7372019",
"0.7278244",
"0.7100514",
"0.691318",
"0.6749008",
"0.67090046",
"0.66532606",
"0.6488804",
"0.64862055",
"0.6457042",
"0.6457042",
"0.64215344",
"0.6396467",
"0.639113... | 0.8823732 | 0 |
Gets the value of registeredBenefits. | Получает значение зарегистрированных преимуществ. | public function getRegisteredBenefits()
{
return $this->registeredBenefits;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getBenefits();",
"public function getBeneficios()\r\n {\r\n return $this->beneficios;\r\n }",
"public function getBeneficiarios()\r\n\t{\r\n\t\treturn($this->beneficiarios);\r\n\t}",
"public function getBeneficiary($user_id){\n return ShareHolding::getBeneficiary($user_id)... | [
"0.7746765",
"0.72452897",
"0.6460494",
"0.64024365",
"0.59269506",
"0.58686304",
"0.58361626",
"0.5819208",
"0.58088946",
"0.5803014",
"0.5788021",
"0.573216",
"0.5696061",
"0.5674769",
"0.56481034",
"0.5628565",
"0.5628565",
"0.5577814",
"0.5564658",
"0.55515915",
"0.554550... | 0.8348767 | 0 |
Saves line item set changes to the database. | Сохраняет изменения набора строк в базе данных. | public function saveLineItems(){
// Insert/update new/existing items:
if(isset($this->_lineItems)){
foreach($this->_lineItems as $item){
$item->quoteId = $this->id;
$product = X2Model::model('Products')->findByAttributes(array(
'name'=>$item->name
));
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function save() {\n try {\n $username = MYSQL_USER;\n $password = MYSQL_PASS;\n $dsn = \"mysql:host=\" . MYSQL_DB . \";dbname=\" . MYSQL_USER;\n $pdo = new PDO($dsn, $username, $password);\n } catch (PDOexception $e) {\n echo \"Connection ... | [
"0.6608741",
"0.6473234",
"0.6214498",
"0.621427",
"0.61048955",
"0.60801613",
"0.6070736",
"0.59790075",
"0.58870524",
"0.58599967",
"0.5835548",
"0.58027774",
"0.5795068",
"0.5785409",
"0.5777216",
"0.57659864",
"0.57470226",
"0.5718845",
"0.5716679",
"0.57128304",
"0.57091... | 0.7851783 | 0 |
Creates an event record for the creation of the model. | Создает запись события для создания модели. | public function createEventRecord() {
// $event = new Events();
// $event->type = 'record_create';
// $event->subtype = 'quote';
// $event->associationId = $this->id;
// $event->associationType = 'Quote';
// $event->timestamp = time();
// $event->lastUpdated = $event->timestamp;
// $event->user = $this->created... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function create()\n {\n $events = ['new_call', 'new_voicemail', 'new_sms'];\n\n $event = $this->choice('What kind of event you want to create', $events);\n $webhookUrl = $this->ask('Please enter the webhook URL');\n \n $response = Http::withHeaders([\n 'X-To... | [
"0.7233708",
"0.6865206",
"0.68524337",
"0.6771392",
"0.66105026",
"0.658804",
"0.6540135",
"0.65389025",
"0.65389025",
"0.65389025",
"0.65389025",
"0.65295124",
"0.6514913",
"0.6500174",
"0.6500039",
"0.64783525",
"0.64682436",
"0.6460195",
"0.64513177",
"0.6432858",
"0.6411... | 0.82062757 | 0 |
Find the group priority index | Найдите индекс приоритета группы | private function _find_group_index($group = '')
{
foreach ($this->_assets as $priority => $grp)
{
foreach ($grp as $name => $data)
{
if ($name == $group)
{
return $priority;
}
}
}
return FALSE;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function priority(): int;",
"public function priority(): int;",
"public function getPriority(): int;",
"public function getPriority(): int;",
"public function getPriority(): int;",
"public function getPriority(): int;",
"public function getPriority(): int;",
"public function getPriority() : in... | [
"0.6484619",
"0.6484619",
"0.6350338",
"0.6350338",
"0.6350338",
"0.6350338",
"0.6350338",
"0.6232521",
"0.6232521",
"0.6232521",
"0.6230618",
"0.6230618",
"0.6132385",
"0.60948724",
"0.60948724",
"0.60948724",
"0.60948724",
"0.6094088",
"0.6094088",
"0.60939777",
"0.60260653... | 0.7201 | 0 |
Test if string is an external URL | Проверить, является ли строка внешним URL | private function _is_external_url($str = '')
{
// Is a URL but not from this domain
if ($this->_is_url($str) AND preg_match('/^'.str_replace('/', '\/', $this->CI->config->base_url()).'/i', $str))
{
return FALSE;
}
return TRUE;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function is_external($url) {\n $link = parse_url( $url );\n return ( false === strpos( $link['host'], $_SERVER['SERVER_NAME'] ) ) ? false : true;\n}",
"public static function isURL($string) {\n return filter_var($string, FILTER_VALIDATE_URL);\n }",
"function isUrl($str)\n {\n $str = ltrim($str)... | [
"0.8113421",
"0.8031337",
"0.791053",
"0.79101783",
"0.79046905",
"0.78642637",
"0.78529817",
"0.7794255",
"0.7696429",
"0.76804703",
"0.76576656",
"0.7654331",
"0.76541805",
"0.7589578",
"0.7581993",
"0.75617033",
"0.75570756",
"0.7534607",
"0.7522308",
"0.75184387",
"0.7505... | 0.81432825 | 0 |
Check is cache directory is present and writable | Проверить, существует ли каталог кэша и можно ли его записывать | private function _check_cache_directory()
{
if ( ! is_dir($this->_config['asset_cache_dir']))
{
log_message('debug', 'Assets: Cache directory is not present. Create directory and set it with 777 permissions.');
return FALSE;
}
elseif ( ! is_writable($this->_config['asset_cache_dir']))
{
log_messag... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function _checkCacheDir() {\n if (!is_dir($this->getCachePath()) && !mkdir($this->getCachePath(), 0775, true)) {\n throw new Exception('Unable to create cache directory ' . $this->getCachePath());\n } elseif (!is_readable($this->getCachePath()) || !is_writable($this->getCachePath())) {\n if... | [
"0.82877684",
"0.7878981",
"0.7779576",
"0.7708159",
"0.7656864",
"0.7612092",
"0.74965507",
"0.74170566",
"0.7317091",
"0.73109835",
"0.72384095",
"0.7137874",
"0.7120399",
"0.7119991",
"0.7030267",
"0.70181686",
"0.6937493",
"0.6935401",
"0.69279164",
"0.6903311",
"0.688838... | 0.8380608 | 0 |
/ Crea un Radio Buton en la primera columna de la tabla en html que se esta generando, Por cada Radio Button se genera un codigo en JavaScript para en la propiedad 'Onclick' para asignar los vales de la llaves de la tabla en la base de datos en los campos ocultos. (Ver CrearVariablesOcultas) | Создайте радиокнопку в первой колонке таблицы, которая генерируется в HTML. Для каждой радиокнопки генерируется код на JavaScript для свойства 'Onclick', чтобы присвоить значения ключей таблицы в базе данных в скрытые поля. (См. СоздатьСкрытыеПеременные) | function CrearRadioButton(&$html_tabla,$table_name,$registros_tabla,$keys,$i,$valor_estilo,$command_showbyid,$form_name){
$html_tabla .= "<td>";
$html_tabla .= "<input type='radio'";
$html_tabla .= " name='".$table_name."__keys' onClick=\"";
for($z=0;$z < count($keys);$z++){
if($z == 0 ){
$html_t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function CrearRadioButton($table_name,$registros_tabla,$keys,$i,$valor_estilo,$command_showbyid,$form_name){\r\n $html_tabla .= \"<td class='\".$valor_estilo.\"'>\";\r\n $html_tabla .= \"<input type='radio'\";\r\n $html_tabla .= \" name='\".$table_name.\"__keys' onClick=\\\"\";\r\n for($z=0;$z < count($keys);$... | [
"0.7209889",
"0.6244058",
"0.5916326",
"0.5888798",
"0.5852065",
"0.58487993",
"0.58360523",
"0.5812509",
"0.58061415",
"0.5778372",
"0.56683886",
"0.560285",
"0.55793166",
"0.5575825",
"0.55638176",
"0.54872525",
"0.54804987",
"0.54800904",
"0.54547834",
"0.5432286",
"0.5430... | 0.7345588 | 0 |
Instantiates a new VendorItemRequestBuilderGetQueryParameters. | Инициализирует новый VendorItemRequestBuilderGetQueryParameters. | public static function createQueryParameters(?array $expand = null, ?array $select = null): VendorItemRequestBuilderGetQueryParameters {
return new VendorItemRequestBuilderGetQueryParameters($expand, $select);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setupItemProperties(): ItemPropertiesSetupRequestBuilder\n {\n $requestBuilder = new ItemPropertiesSetupRequestBuilder();\n $this->setupBuilder($requestBuilder);\n\n return $requestBuilder;\n }",
"public static function createQueryParameters(?array $expand = null, ?arra... | [
"0.6234393",
"0.5991543",
"0.5887897",
"0.5876731",
"0.5824497",
"0.5697059",
"0.5636325",
"0.5523807",
"0.55235004",
"0.5401775",
"0.5385017",
"0.533433",
"0.5255289",
"0.5216109",
"0.5131044",
"0.5027866",
"0.5014626",
"0.5002016",
"0.49800125",
"0.49615398",
"0.49543393",
... | 0.7092123 | 0 |
Redirect to the dashboard. | Перенаправить на панель управления. | public function redirect()
{
// The '/admin' route is not to be used as a page, because it breaks the menu's active state.
return redirect(backpack_url('dashboard'));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function dashboard() {\r\n redirect('home');\r\n }",
"public function index()\n {\n redirect('Dashboard');\n }",
"private function goDashboard()\n {\n $redirectUrl = $this->getService('config')->get()['routes']['dashboard'];\n return $this->getResponse()->withRedi... | [
"0.8268403",
"0.79065233",
"0.78876",
"0.787337",
"0.78476673",
"0.7833435",
"0.7764624",
"0.7738693",
"0.771409",
"0.7569675",
"0.75539285",
"0.7541014",
"0.7512958",
"0.7494355",
"0.7490539",
"0.7480604",
"0.7400003",
"0.7343443",
"0.73250824",
"0.73001844",
"0.72670144",
... | 0.7995615 | 1 |
Given a string, return true if its length is even or false if the length is odd. | Данная строка, вернуть true, если её длина чётная, или false, если длина нечётная. | function oddOrEven($str){
$length = strlen($str);
return $length % 2 == 0 ? "Even" : "Odd";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function isEven()\n {\n return ( strlen($this->street_name) % 2 === 0 );\n }",
"function evenDigitsOnly($n) {\n $a = str_split($n);\n foreach($a as $l) {\n if($l % 2 > 0){\n return false;\n }\n }\n return true;\n}",
"public function isEven()\n\t{\n\t\tr... | [
"0.7114382",
"0.6582355",
"0.6533159",
"0.64530087",
"0.63303304",
"0.6325185",
"0.6294275",
"0.6270832",
"0.62403375",
"0.6145805",
"0.6132826",
"0.6132826",
"0.6038555",
"0.59654254",
"0.5919811",
"0.5906656",
"0.5893091",
"0.58424044",
"0.58302057",
"0.58257806",
"0.581715... | 0.7617431 | 0 |
Get the config for hmplatform for which features to enable. | Получите конфиг для hmplatform для включения функций. | function get_config() {
global $hm_platform;
$defaults = array(
's3-uploads' => true,
'aws-ses-wp-mail' => true,
'tachyon' => true,
'cavalcade' => true,
'batcache' => true,
'memcached' => get_environment_architecture() === 'ec2',
'redis' => get_environment_arch... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function getFeaturesConfig()\n {\n return config()->get(\"feature-switch\")['features'] ? : array();\n }",
"public function getSystemConfiguration();",
"public function getConfig()\n {\n return [\n 'hiconversion' => [\n 'isEnabled' => $this->helper... | [
"0.6927248",
"0.6207961",
"0.6091219",
"0.6025559",
"0.6025559",
"0.6025559",
"0.6025559",
"0.6025559",
"0.6025559",
"0.6025559",
"0.5947226",
"0.5911489",
"0.58984005",
"0.5897861",
"0.58953357",
"0.58770907",
"0.58770907",
"0.58770907",
"0.584246",
"0.584246",
"0.584246",
... | 0.7095251 | 0 |
Remove the "no cache" headers that are sent on logged out adminajax.php requests. These requests can be cached, as they don't include private data. | Удалите заголовки "no cache", отправляемые при запросах к adminajax.php без входа в систему. Эти запросы могут кэшироваться, так как они не содержат приватных данных. | function disable_no_cache_headers_on_admin_ajax_nopriv() {
if ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX || is_user_logged_in() ) {
return;
}
array_map( 'header_remove', array_keys( wp_get_nocache_headers() ) );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function prevent_cache_headers() {\r\n\theader('Cache-Control: private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0');\r\n\theader('Pragma: no-cache');\r\n}",
"function prevent_cache_headers() {\r\r\n\theader('Cache-Control: private, no-store, no-cache, must-revalidate, post-check=0, pre-check... | [
"0.7816365",
"0.7810945",
"0.76503724",
"0.7624625",
"0.7619906",
"0.7545168",
"0.7533831",
"0.7525871",
"0.74863946",
"0.74656963",
"0.7405667",
"0.74018896",
"0.73559636",
"0.73509306",
"0.7346236",
"0.7341155",
"0.73164093",
"0.7284375",
"0.7272719",
"0.7256218",
"0.725489... | 0.8387706 | 0 |
Get a globally configured instance of the AWS SDK. | Получите глобально настроенный экземпляр AWS SDK. | function get_aws_sdk() {
static $sdk;
if ( $sdk ) {
return $sdk;
}
$params = [
'region' => HM_ENV_REGION,
'version' => 'latest',
];
if ( defined( 'AWS_KEY' ) ) {
$params['credentials'] = [
'key' => AWS_KEY,
'secret' => AWS_SECRET,
];
}
$sdk = new \Aws\Sdk( $params );
return $sdk;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getAWS()\n {\n if (isset($this->m_aws))\n {\n return $this->m_aws;\n }\n\n $this->m_aws = Aws::factory(__DIR__ . \"/config.php\");\n return $this->m_aws;\n }",
"private function getInstance() {\n if (is_nul... | [
"0.7804262",
"0.7376927",
"0.6633819",
"0.6483444",
"0.64552444",
"0.64449495",
"0.629279",
"0.62247974",
"0.615092",
"0.6135692",
"0.61097854",
"0.60433793",
"0.6040769",
"0.60275394",
"0.6000145",
"0.5940807",
"0.5928607",
"0.59283394",
"0.5913314",
"0.59118116",
"0.5861016... | 0.7912559 | 0 |
load all additional filters that have been registered to the object | загрузить все дополнительные фильтры, которые были зарегистрированы для объекта | public function _loadFilters()
{
//include_once XOOPS_ROOT_PATH.'/class/filters/filter.php';
//foreach ($this->_filters as $f) {
// include_once XOOPS_ROOT_PATH.'/class/filters/'.strtolower($f).'php';
//}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function add_filters()\n {\n }",
"public static function add_filters()\n {\n }",
"function _load_filters()\n {\n if (count($this->_plugins['prefilter']) > 0) {\n foreach ($this->_plugins['prefilter'] as $filter_name => $prefilter) {\n ... | [
"0.7706333",
"0.77057135",
"0.7514398",
"0.74184304",
"0.7326152",
"0.72850716",
"0.724535",
"0.7183652",
"0.71683395",
"0.71683395",
"0.71543604",
"0.71351266",
"0.7116038",
"0.71143585",
"0.70879334",
"0.70748967",
"0.7062027",
"0.70484555",
"0.7034887",
"0.70058304",
"0.69... | 0.81155485 | 0 |
return the errors for this object as html | верните ошибки для этого объекта в формате html | public function getHtmlErrors()
{
$ret = '<h4>Errors</h4>';
if (!empty($this->_errors)) {
foreach ($this->_errors as $error) {
$ret .= $error.'<br>';
}
} else {
$ret .= 'None<br>';
}
return $ret;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function get_errors_html() {\n $html = '';\n foreach ($this->errors as $error) {\n $html .= $error . \"<br />\";\n }\n return $html;\n }",
"public function displayErrors(){\n \n $html = '<ul>';\n foreach($this->getErrors() as $... | [
"0.85524434",
"0.8149412",
"0.77930033",
"0.77382123",
"0.7720746",
"0.77119106",
"0.7697968",
"0.7646129",
"0.76046175",
"0.7553388",
"0.7530821",
"0.7526583",
"0.74979275",
"0.7483282",
"0.74635386",
"0.7413654",
"0.7391961",
"0.73781335",
"0.7367073",
"0.7328587",
"0.73195... | 0.83791125 | 1 |
Generating random Unique MD5 String for user Api key | Генерация случайной уникальной MD5-строки для пользовательского API-ключа | private function generateApiKey() {
return md5(uniqid(rand(), true));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function generateApiKey(){\r\n return md5(uniqid(rand(), true));\r\n }",
"private function generateApiKey() {\n return md5(uniqid(rand(), true));\n }",
"private function generateApiKey() {\n return md5(uniqid(rand(), true));\n }",
"private function generateApiKey() {\n ... | [
"0.8224761",
"0.81005675",
"0.81005675",
"0.81005675",
"0.81005675",
"0.81005675",
"0.81005675",
"0.81005675",
"0.8066923",
"0.79944974",
"0.7979499",
"0.7968661",
"0.7859652",
"0.78357005",
"0.77800995",
"0.77376443",
"0.76460916",
"0.76349276",
"0.7608687",
"0.7599945",
"0.... | 0.8176947 | 1 |
it's Social page link shortcode [trt_social_page_link] | это шорткод ссылки на страницу социальной сети [trt_social_page_link] | public function render_trt_social_page_link($atts)
{
/*$cat_atts = shortcode_atts(array(
'title' => '',
'tag_slug' => '',
'limit' => 5,
'layout' => 'grid',
'type' => 'post',
'pagination' => 'on'
), $atts, 'gigglemagazine');
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function social_plugin($atts){\n $args = shortcode_atts(array(\n 'facebook' => 'http://facebook.com',\n 'twitter' => 'http://twitter.com',\n 'google' => 'http://google.com'\n ),$atts);\n\n $facebook = \"<a href='\".$args['facebook'].\"'>Facebook</a>\";\n $twitter = \"<a href='\".$a... | [
"0.7435884",
"0.71313375",
"0.70979595",
"0.7037544",
"0.7017552",
"0.70020986",
"0.69744515",
"0.69231695",
"0.6917834",
"0.68967843",
"0.68766075",
"0.6739542",
"0.6716609",
"0.6705136",
"0.6623908",
"0.6524957",
"0.65246534",
"0.6515323",
"0.6482046",
"0.6480332",
"0.64704... | 0.73854 | 1 |
Get the value of name_en | Получить значение name_en | public function getName_en()
{
return $this->name_en;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function get_name_en()\n {\n return $this->name_en;\n }",
"public function getEnglishName();",
"function getEnName()\n {\n return 'en';\n }",
"public function getLanguageName();",
"public function getLangNameAttribute()\n {\n if (app()->getLocale() == 'ar') {\n ... | [
"0.7995275",
"0.7498008",
"0.73326933",
"0.70530826",
"0.70234907",
"0.69633424",
"0.6926826",
"0.6924801",
"0.68639076",
"0.68568265",
"0.6766179",
"0.67354923",
"0.66420835",
"0.6639797",
"0.6620318",
"0.6579576",
"0.6576913",
"0.655872",
"0.65577316",
"0.65487546",
"0.6544... | 0.7806468 | 1 |
Set the value of name_en | Установите значение name_en | public function setName_en($name_en)
{
$this->name_en = $name_en;
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function set_name_en($name_en)\n {\n $this->name_en = $name_en;\n }",
"function setName($name, $locale) {\n\t\treturn $this->setData('name', $name, $locale);\n\t}",
"public function setName( $name ) \n {//-------------------->> setName()\n $this->_name = utf8_decode( (string) $name ... | [
"0.8196043",
"0.69018346",
"0.6874099",
"0.6864145",
"0.6818678",
"0.6754906",
"0.6698946",
"0.6684628",
"0.66471946",
"0.6598961",
"0.6576874",
"0.64629704",
"0.64481735",
"0.6413872",
"0.63569283",
"0.63569283",
"0.6356083",
"0.6356083",
"0.6354212",
"0.6325407",
"0.6307304... | 0.7172794 | 1 |
Get the value of name_ar | Получить значение name_ar | public function getName_ar()
{
return $this->name_ar;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getValue($name);",
"public function get_from_name();",
"protected function getRecordKeyValue($ar)\n {\n $key = \"\";\n if (is_array($ar)) {\n $key .= @$ar['employee_username'];\n }\n return $key;\n }",
"public function get_from_name()\n {\n ... | [
"0.6612797",
"0.636563",
"0.622246",
"0.61550874",
"0.61122394",
"0.6092039",
"0.6037902",
"0.5987146",
"0.59820783",
"0.5960341",
"0.5918614",
"0.59185517",
"0.5888042",
"0.58706605",
"0.584649",
"0.584649",
"0.584649",
"0.584649",
"0.5823084",
"0.5813671",
"0.5803879",
"0... | 0.7771837 | 0 |
Set the value of name_ar | Задайте значение name_ar | public function setName_ar($name_ar)
{
$this->name_ar = $name_ar;
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function set_name( $a )\t\t\t\r\n\t\t{ \r\n\t\t\treturn $this->name->value = trim( stripslashes( $a ) ); \r\n\t\t}",
"public function setName($a_name) {\r\n\t\t$this->name = $a_name;\r\n\t}",
"public function setName( $name ) \n {//-------------------->> setName()\n $this->_name = utf8_deco... | [
"0.6402518",
"0.63645476",
"0.6351522",
"0.6324339",
"0.6324339",
"0.6324339",
"0.63188326",
"0.62873894",
"0.6267105",
"0.6234637",
"0.61629176",
"0.61600834",
"0.6151978",
"0.6130361",
"0.6130361",
"0.61299783",
"0.61299783",
"0.61296916",
"0.6126063",
"0.61130613",
"0.6083... | 0.7616767 | 0 |
Get the value of subcategory_id | Получить значение subcategory_id | public function getSubcategory_id()
{
return $this->subcategory_id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function subcategoryid_get()\n {\n if(!$this->get(\"id\")){\n $this->response(NULL, 400);\n }\n $this->load->model(\"wishing_model\");\n $user = $this->wishing_model->get_subcategoryid($this->get(\"id\"));\n if($user){\n $this->response($user, 200)... | [
"0.7249225",
"0.70126307",
"0.70072347",
"0.6991866",
"0.6991553",
"0.6931628",
"0.6899944",
"0.6896994",
"0.6826684",
"0.68155545",
"0.67862743",
"0.6775233",
"0.676776",
"0.6728122",
"0.6723966",
"0.67141974",
"0.6711764",
"0.66989106",
"0.6692922",
"0.6688628",
"0.66032654... | 0.80264014 | 0 |
Get the value of photo | Получить значение фото | public function getPhoto()
{
return $this->photo;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPhoto()\r\n {\r\n return $this->photo;\r\n }",
"public function getPhoto()\n {\n return $this->photo;\n }",
"public function getPhoto()\n {\n return $this->_photo;\n }",
"public function photo(){\n return $this->picture;\n }",
"public function... | [
"0.76164263",
"0.75310314",
"0.7466309",
"0.7436568",
"0.7436568",
"0.7436568",
"0.72258866",
"0.72091395",
"0.7207417",
"0.71642065",
"0.7163581",
"0.70592797",
"0.70154357",
"0.70077085",
"0.70043474",
"0.69694227",
"0.69656795",
"0.69656795",
"0.6963394",
"0.6958495",
"0.6... | 0.7542406 | 1 |
Get the value of details_ar | Получить значение details_ar | public function getDetails_ar()
{
return $this->details_ar;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getDetails() { return $this->details; }",
"public function getDetails();",
"abstract public function getDetails();",
"public function getDetails() {\n\t\treturn $this->details;\n\t}",
"public function getDetails()\n {\n return $this->details;\n }",
"public function getDetails()\n ... | [
"0.69805884",
"0.69493014",
"0.692664",
"0.68209255",
"0.6818597",
"0.6818597",
"0.6818597",
"0.6818597",
"0.6818597",
"0.6818597",
"0.6818597",
"0.6818597",
"0.6818597",
"0.6778667",
"0.6659514",
"0.6637884",
"0.6560972",
"0.649819",
"0.64521486",
"0.6389358",
"0.630807",
... | 0.81146747 | 0 |
Get the value of details_en | Получить значение details_en | public function getDetails_en()
{
return $this->details_en;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getStatutTxt() {\n\t\n\t\t// Obtenir la chaîne à récupérer\n\t\t$str =\"QUESTIONNAIRE_STATUT_\" . strtoupper($this->get('statut'));\n\t\t\n\t\t// Obtenir la valeur à partir du fichier des langues\n\t\t$val = constant($str);\n\t\t\n\t\treturn $val;\n\t}",
"function translate_um_field_value($res,$d... | [
"0.6217793",
"0.61403346",
"0.61036325",
"0.610363",
"0.6085544",
"0.6070377",
"0.6006248",
"0.6003854",
"0.59726834",
"0.5968552",
"0.59660447",
"0.59584224",
"0.59419656",
"0.5925784",
"0.5896488",
"0.58734757",
"0.5824474",
"0.5799397",
"0.57976",
"0.57778585",
"0.57761014... | 0.85723907 | 0 |
Create Custom Taxonomy Custom taxonomy for References post type | Создание пользовательской таксономии Пользовательская таксономия для типа записей References | function init_references_post_type_taxonomies() {
$labels = array(
'name' => _x( 'References Categories', 'taxonomy general name' ),
'singular_name' => _x( 'Reference Category', 'taxonomy singular name' ),
'search_items' => __( 'Search Reference Categories' ),
'all_items' ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function oc_create_taxonomy() {\n\n $labels = array(\n 'name' => _x( 'Contract Types', 'taxonomy general name', 'opencontractr' ),\n 'singular_name' => _x( 'Contract Type', 'taxonomy singular name', 'opencontractr' ),\n );\n \n $args = array(\n 'hierarchical' => ... | [
"0.7374087",
"0.7343651",
"0.7193264",
"0.7142618",
"0.713471",
"0.7045074",
"0.70196235",
"0.6994079",
"0.69906795",
"0.69903886",
"0.69123846",
"0.6908826",
"0.68361855",
"0.68319744",
"0.6826177",
"0.68162084",
"0.67909354",
"0.6776747",
"0.676264",
"0.6757388",
"0.6754629... | 0.81151086 | 0 |
register Custom taxonomy which applies to Attachments | регистрация пользовательской таксономии, применяющейся к прикрепленным файлам | function elt_add_location_taxonomy() {
$labels = array(
'name' => 'Locations',
'singular_name' => 'Location',
'search_items' => 'Search Locations',
'all_items' => 'All Locations',
'parent_item' => 'Parent Location',
'parent_item_col... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function register_taxonomy() {\n\n\t\t// We need to make sure taxonomy is registered for all of the post types that support it\n\t\t$supported_post_types = $this->get_post_types_for_module( $this->module );\n\t\n\t\tregister_taxonomy( self::metadata_taxonomy, $supported_post_types,\n\t\t\tarray(\n\t\t\t\t'public' ... | [
"0.7893423",
"0.78886926",
"0.7885655",
"0.7779282",
"0.77513653",
"0.7671393",
"0.7639364",
"0.7622945",
"0.75830585",
"0.75683105",
"0.75580543",
"0.7556822",
"0.7541207",
"0.7541207",
"0.7537958",
"0.7537483",
"0.7518752",
"0.7518508",
"0.7476814",
"0.74767023",
"0.7466411... | 0.7929812 | 0 |
Sets the response status code. This method will set the corresponding status text if `$text` is null. | Устанавливает код состояния ответа. Этот метод установит соответствующий текст состояния, если `$text` равен null. | public function setStatusCode($code, $text = null){
if($code === null){
$code = 200;
}
if($code < 100 || $code >= 600){
throw new \InvalidArgumentException("非法的HTTP状态码[{$code}]");
}
$this->status_code = $code;
if($text =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function set_status_header($code = 200, $text = '') {\n $stati = array(200 => 'OK', 201 => 'Created', 202 => 'Accepted', 203 => 'Non-Authoritative Information', 204 => 'No Content', 205 => 'Reset Content', 206 => 'Partial Content', 300 => 'Multiple Choices', 301 => 'Moved Permanently', 302 => ... | [
"0.7880203",
"0.78567433",
"0.7417692",
"0.72432095",
"0.71454513",
"0.7130723",
"0.7120778",
"0.70768017",
"0.70768017",
"0.70258",
"0.70243007",
"0.7012606",
"0.69882387",
"0.6985359",
"0.6979155",
"0.69569486",
"0.6952423",
"0.6947522",
"0.6920372",
"0.6900238",
"0.6900044... | 0.7966041 | 0 |
Check whether the main calendar for the given event has unified aliases enabled. | Проверьте, включено ли единство алиасов для основного календаря данного события. | public function isUnifiedAliasEnabled(CalendarEventsModel $event): bool
{
$calendar = CalendarModel::findById((int) $event->pid);
if ((int) $calendar->master > 0) {
$calendar = CalendarModel::findById((int) $calendar->master);
}
if (null === $calendar) {
ret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function check($event)\n {\n // Apply only to the specified alias\n if ($event->alias != static::ALIAS) {\n return false;\n }\n\n // Do not apply to the same or newer versions\n if (version_compare($event->old, static::VERSION, '>=')) {\n return... | [
"0.5949545",
"0.57050395",
"0.5508041",
"0.5476077",
"0.5452104",
"0.5436417",
"0.5414895",
"0.5385038",
"0.5363269",
"0.53627",
"0.53554064",
"0.5353674",
"0.5330904",
"0.53103083",
"0.52994287",
"0.5288059",
"0.5241363",
"0.5228568",
"0.52266425",
"0.52120286",
"0.52035135"... | 0.7858911 | 0 |
Checks whether the given event is the main event. | Проверяет, является ли заданный событие основным событием. | public function isMainEvent(CalendarEventsModel $event): bool
{
$calendar = CalendarModel::findById($event->pid);
if (null === $calendar) {
throw new \RuntimeException('Could not find calendar for event ID "'.$event->id.'".');
}
return 0 === (int) $calendar->master;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function isMain() {\n return empty($this->parent_event_id);\n }",
"private function isMainRequestEvent(KernelEvent $event): bool\n {\n if (\\method_exists($event, 'isMainRequest')) {\n return $event->isMainRequest();\n }\n\n return $event->isMasterRequest();\n ... | [
"0.7415945",
"0.7289149",
"0.6423933",
"0.63638276",
"0.62741965",
"0.62667775",
"0.62617916",
"0.6227194",
"0.61863655",
"0.6171057",
"0.61494803",
"0.6101122",
"0.60876703",
"0.60591525",
"0.60498506",
"0.604436",
"0.60264665",
"0.6018279",
"0.5994338",
"0.59865326",
"0.594... | 0.73709106 | 1 |
fetch funda website data | получить данные с сайта funda | function fundaSiteData($url){
$htmlget = $this->get_fcontent($url);
$htmlData = $htmlget[0];
$dom = new DOMDocument();
@$dom->loadHTML($htmlData);
$finder = new DomXPath($dom);
//get heading
$heading = $this->clean($finder->query("//h1[@class='object-header__address']/text()")->item(0)->nodeValue);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function get_data(){\r\n\t\t$ch = curl_init();\r\n\t\tcurl_setopt($ch, CURLOPT_URL, $this->url);\r\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\r\n\t\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\r\n\t\treturn $result = curl_exec($ch);\r\n\t}",
"public function fetch(){\n\t\t$appid = I('appid');\n\n\... | [
"0.6692775",
"0.6682146",
"0.6600236",
"0.637566",
"0.62822",
"0.626841",
"0.6206476",
"0.619178",
"0.6191131",
"0.6172965",
"0.6157389",
"0.61496925",
"0.61348414",
"0.6128726",
"0.6119585",
"0.6108302",
"0.61026037",
"0.6095813",
"0.6079256",
"0.60738164",
"0.6070644",
"0... | 0.7332522 | 0 |
parse DATE from string | парсить DATE из строки | function parseDate($str){
if($this->is_date($str)){
return date('d-m-Y',strtotime($str));
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function parseDate ($str) {\n return new \\DateTime($str);\n }",
"function parseDate($string)\n\t{\n\t\t$array = split(\"/\", $string);\n\t\t\n\t\tif (count($array) != 3) return null;\t\t\t\n\t\t\n\t\t// Take the month\n\t\t$month = $array[0];\n\t\t// Take the day\n\t\t$day = $array[1];\n... | [
"0.6991339",
"0.6941238",
"0.66203433",
"0.6584964",
"0.6514039",
"0.64998996",
"0.6471094",
"0.6449347",
"0.644607",
"0.64053696",
"0.6401214",
"0.6390383",
"0.6370266",
"0.6353013",
"0.6318454",
"0.62984437",
"0.6253117",
"0.6247913",
"0.6220583",
"0.61649424",
"0.6149394",... | 0.7190105 | 0 |
get start price 90% of listing price. | получить начальную цену 90% от цены списания. | function startPrice($p){
$price = $p * '0.9';
return ceil($price / 10) * 10;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getListingStartPriceDetails()\n {\n return $this->listingStartPriceDetails;\n }",
"function getGSTInclusivePrice($price)\n{\n\treturn ($price + ((GST_AMOUNT / 100) * $price));\n}",
"public function getBasePrice();",
"public function getBasePrice()\n\t{\n\t\treturn $this->basePric... | [
"0.6937002",
"0.65206295",
"0.64749396",
"0.64500827",
"0.6409321",
"0.6295867",
"0.62854886",
"0.62824976",
"0.62174684",
"0.61896193",
"0.6164239",
"0.61526173",
"0.61325586",
"0.61270547",
"0.61270547",
"0.61231446",
"0.610551",
"0.6089046",
"0.6065357",
"0.60565454",
"0.6... | 0.7887601 | 0 |
Test case for cancelCheckout Cancel Payment Link. | Тест-кейс для отмены оплаты по ссылке отмены оформления заказа. | public function testCancelCheckout()
{
$accept_language = 'es';
$result = self::$apiInstance->cancelCheckout('id', $accept_language);
$this->assertNotEmpty($result, 'expected not empty result');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testCancelPaymentSession()\n {\n }",
"public function testCancelEndpoint()\n {\n $response = $this->get(\"paymentendpoint/UNIQUEHASH23q5123tqasdf/cancel\");\n\n // Should redirect to the cancel/failure url which is being loaded from the fixture\n $this->assertStringE... | [
"0.7292895",
"0.71568114",
"0.6997592",
"0.6983059",
"0.6783771",
"0.67237294",
"0.66740954",
"0.66570336",
"0.66218925",
"0.6616079",
"0.6615281",
"0.66018313",
"0.66018313",
"0.66009325",
"0.6527488",
"0.6498547",
"0.6418145",
"0.6395702",
"0.63569504",
"0.63011295",
"0.629... | 0.783956 | 0 |
Test case for createCheckout Create Unique Payment Link. | Тестовый случай для создания Checkout Создать уникальную ссылку на оплату. | public function testCreateCheckout()
{
$this->markTestIncomplete('Not implemented');
$accept_language = 'es';
$rq = new Checkout();
$rq->setType('PaymentLink');
$rq->setRecurrent(false);
$result = self::$apiInstance->createCheckout($rq, $accept_language);
$thi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testOfferPaymentLinks()\n {\n $data = $this->api->paymentLink->create(array('amount'=>20000, 'currency'=>'INR', 'accept_partial'=>false, 'description' => 'For XYZ purpose', 'customer' => array('name'=>'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com', 'contact'=>'9000090000'), 'notif... | [
"0.6380745",
"0.62259674",
"0.6223518",
"0.6221433",
"0.62111956",
"0.6157221",
"0.6149986",
"0.608214",
"0.60729605",
"0.6028056",
"0.6006635",
"0.5952911",
"0.59520054",
"0.5950157",
"0.59492815",
"0.59428316",
"0.59260195",
"0.5918617",
"0.5914244",
"0.58972627",
"0.589569... | 0.75275886 | 0 |
Test case for emailCheckout Send an email. | Тест-кейс для emailCheckout Отправить электронное письмо. | public function testEmailCheckout()
{
$accept_language = 'es';
$rq = new EmailCheckoutRequest([
'email' => 'test@test.com'
]);
$result = self::$apiInstance->emailCheckout('id', $rq, $accept_language);
$this->assertNotEmpty($result, 'expected not empty result');
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function sendTestMail() {}",
"function testGetEmailMessage()\n {\n //$payment_method->save();\n //echo \"name: \" . $payment_method->name . \"\\n\";\n //\n //$this->cart = $this->generator->makeCart();\n $this->cart = $this->generator->makeCart();\n $this->c... | [
"0.74958986",
"0.70483214",
"0.70047665",
"0.6949538",
"0.690817",
"0.6890454",
"0.6872937",
"0.6839265",
"0.68152845",
"0.6787896",
"0.6782696",
"0.67645586",
"0.66919255",
"0.6672627",
"0.6628122",
"0.6586413",
"0.6557845",
"0.6552327",
"0.64934045",
"0.6490562",
"0.6473074... | 0.78643453 | 0 |
Test case for smsCheckout Send an sms. | Тестовый случай для smsCheckout Отправить смс. | public function testSmsCheckout()
{
$accept_language = 'es';
$rq = new SmsCheckoutRequest([
'phonenumber' => '55454545454'
]);
$result = self::$apiInstance->smsCheckout('id', $rq, $accept_language);
$this->assertNotEmpty($result, 'expected not empty result');
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testSendAnSmsMessage()\n {\n }",
"public function sendordertestAction()\n {\n $sendinModule = Mage::getModel('sendinblue/sendinblue');\n $requestParameter = $this->getRequest()->getPost();\n try {\n if (empty($requestParameter)) {\n Mage::th... | [
"0.7887235",
"0.750909",
"0.73931175",
"0.7363253",
"0.7363253",
"0.7363253",
"0.7337682",
"0.7325741",
"0.7324316",
"0.73179406",
"0.7161454",
"0.71558523",
"0.71547633",
"0.71312255",
"0.70991117",
"0.7037582",
"0.7011167",
"0.6971398",
"0.69656014",
"0.6937565",
"0.6889543... | 0.80563045 | 0 |
Set a transaction parent id | Установить идентификатор родительского транзакта | public function setParentTransactionId()
{
// Handle the void parent auth logic
$isVoid = $this->transaction->getTxnType() === TransactionInterface::TYPE_VOID;
$parentAuth = $this->getTransactionByType(
TransactionInterface::TYPE_AUTH
);
if ($isVoid && $parentAuth... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setParent()\n {\n extract($this->_dataVars());\n $target = $this->parseIdentifier($this->args[1]);\n $parent = $this->parseIdentifier($this->args[2]);\n\n $data = [\n 'id' => $this->_getNodeId($class, $target),\n 'parent_id' => $this->_getNodeId(... | [
"0.7439207",
"0.738611",
"0.7382392",
"0.73762816",
"0.73649204",
"0.7321943",
"0.7107998",
"0.70426726",
"0.70185405",
"0.7002787",
"0.7002787",
"0.6954867",
"0.6949962",
"0.694325",
"0.68725324",
"0.6839097",
"0.68025064",
"0.6798868",
"0.6797019",
"0.6794432",
"0.6771492",... | 0.7406545 | 1 |
Add a transaction comment to an order | Добавить комментарий транзакции к заказу | public function addTransactionComment(float $amount): void
{
// Get the transaction type
$type = $this->transaction->getTxnType();
// Prepare the comment
switch ($type) {
case TransactionInterface::TYPE_AUTH:
$comment = 'The authorized amount is %1.';
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function add_comment($order)\n {\n $note = __('Erinnerungsmail gesendet', 'bbb-bac-reminder');\n $order->add_order_note($note);\n }",
"public function addCommentAction()\n {\n if ($order = $this->_initOrder()) {\n try {\n $vendorOrder = Mage::registr... | [
"0.75405097",
"0.69327575",
"0.6900283",
"0.6789423",
"0.6752241",
"0.6681245",
"0.65339184",
"0.6480506",
"0.6456579",
"0.64430285",
"0.63951135",
"0.6386041",
"0.63806033",
"0.63093877",
"0.6306868",
"0.6291078",
"0.62857306",
"0.6219895",
"0.61945486",
"0.61425084",
"0.613... | 0.7118639 | 1 |
Get the total credit memos amount | Получить общую сумму кредитных меморандов | public function getCreditMemosTotal()
{
$total = 0;
$creditMemos = $this->order->getCreditmemosCollection();
if (!empty($creditMemos)) {
foreach ($creditMemos as $creditMemo) {
$total += $creditMemo->getGrandTotal();
}
}
return $total;... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function creditAvailed(){\n\t\t$memberId = $this->owner->ID;\n\t\treturn DB::query(\"SELECT SUM(Credit) FROM Payment where MemberID = $memberId\")->value();\n\t}",
"public function getTotalAmount();",
"public function credits() : int\n {\n return $this->credit_units;\n }",
"public functi... | [
"0.7521982",
"0.7242586",
"0.7198794",
"0.69983655",
"0.69768095",
"0.6949581",
"0.694635",
"0.6939399",
"0.6913876",
"0.68385404",
"0.6838317",
"0.6838317",
"0.6764864",
"0.6764864",
"0.6764864",
"0.67422676",
"0.6736618",
"0.6718037",
"0.671031",
"0.6662693",
"0.66276276",
... | 0.8311189 | 0 |
Check if an order has a credit memo | Проверьте, есть ли кредитный документ для заказа | public function orderHasCreditMemo(): bool
{
// Loop through the items
$result = 0;
$creditMemos = $this->order->getCreditmemosCollection();
if (!empty($creditMemos)) {
foreach ($creditMemos as $creditMemo) {
if ($creditMemo->getTransactionId() == $this->t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function _canCreditmemo($order) {\r\n /**\r\n * Check order existing\r\n */\r\n if (!$order->getId()) {\r\n $this->_getSession()->addError($this->__('The order no longer exists.'));\r\n return false;\r\n }\r\n\r\n /**\r\n * Check c... | [
"0.7702368",
"0.76076293",
"0.72275287",
"0.7116641",
"0.64811856",
"0.6199297",
"0.60349363",
"0.60266197",
"0.59731495",
"0.5963002",
"0.5953776",
"0.59413326",
"0.59217685",
"0.5920047",
"0.5853208",
"0.5849364",
"0.58431256",
"0.58171767",
"0.5791974",
"0.57684857",
"0.57... | 0.8220957 | 0 |
Cancel the order for a void transaction when void status is set to canceled | Отменить заказ для аннулированной транзакции при установке статуса void в canceled | public function processVoid(): void
{
$isVoid = $this->transaction->getTxnType() === TransactionInterface::TYPE_VOID;
if ($isVoid && $this->config->getValue('order_status_voided') === 'canceled') {
$this->orderManagement->cancel($this->order->getEntityId());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function cancel_order()\n {\n }",
"public function CancelTransaction()\n {\n }",
"protected function cancelOrder()\n {\n $order = $this->createOrderFromQuote();\n if(\n $order instanceof \\Magento\\Sales\\Api\\Data\\OrderInterface &&\n $o... | [
"0.76046777",
"0.70303404",
"0.6949553",
"0.68812656",
"0.68723476",
"0.68723476",
"0.6823677",
"0.67961264",
"0.6741613",
"0.67367125",
"0.672073",
"0.6710835",
"0.6679053",
"0.6677523",
"0.6669803",
"0.66644937",
"0.6648504",
"0.6608477",
"0.658774",
"0.65807104",
"0.657604... | 0.8133363 | 0 |
checkCode Check Code will attempt to smartly detect the code type, IE UPC, EAN or ISBN10/13. Since most 13 DIGIT EAN's also validate as an ISBN, the type will be ISBN if the code validates as both. | checkCode Попытается умно определить тип кода, например, UPC, EAN или ISBN10/13. Поскольку большинство 13-цифровых EAN также проверяются как ISBN, тип будет ISBN, если код проверяется как оба. | public static function checkCode($code) {
$isbn = array();
$upcValid = false;
$upcEValid = false;
$eanValid = false;
$isbnValid = false;
try {
$upcValid = ProductValidator::checkUpcA($code);
} catch (UpcException\UpcException $e) {
}
try {
$upcEValid = ProductValidator::checkUpcE($code);
} ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function valid($code);",
"function user_code_check($email, $code, $num)\r\n\t\t{\r\n\t\t\treturn $this->query('user/code/check', array(\r\n\t\t\t\t'email' => $email,\r\n\t\t\t\t'num' => $num,\r\n\t\t\t\t'code' => $code\r\n\t\t\t), 'POST');\r\n\t\t}",
"protected static function validateISBNCheckDigit($co... | [
"0.6465099",
"0.6361756",
"0.63568836",
"0.62588066",
"0.61943835",
"0.6185804",
"0.61787415",
"0.6065267",
"0.60555136",
"0.60403484",
"0.6039624",
"0.6010763",
"0.6004982",
"0.5991555",
"0.5927082",
"0.5911752",
"0.5905636",
"0.58921605",
"0.58690494",
"0.5865688",
"0.58633... | 0.76626825 | 0 |
Get the value of datfin | Получить значение datfin | public function getDatFin()
{
return $this->datFin;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getDataFim(){\n\t\t\treturn $this->dataFim;\n\t\t}",
"public function getDataFinal() {\n \treturn $this->oDtFim;\n }",
"public function getDataFim() {\n return $this->oDtFim;\n }",
"public function getDataFim()\n {\n return $this->data_fim;\n }",
"public function fValue()... | [
"0.711607",
"0.70815957",
"0.7062561",
"0.699174",
"0.645535",
"0.6427541",
"0.63796335",
"0.6341217",
"0.6255805",
"0.6255805",
"0.6215743",
"0.61598605",
"0.60732496",
"0.6070975",
"0.6070975",
"0.60555047",
"0.6054501",
"0.6054501",
"0.6054501",
"0.6054501",
"0.6054501",
... | 0.7277807 | 0 |
Retrieve all the topics given the category id. | Получить все темы по заданному идентификатору категории. | public function topics($category_id, $columns = ['*'])
{
return $this->model->select($columns)->where('category_id', $category_id)->get()->toArray();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function topics($categoryId)\n {\n return Category::findOrFail($categoryId)\n ->topics()\n ->orderBy('created_at', 'desc')\n ->get();\n }",
"public function getByCategory($category_id){\n\n\t\t$this->db->query(\"SELECT topic.*, users.name, users.avatar, catego... | [
"0.7874071",
"0.7472407",
"0.7086732",
"0.70762223",
"0.6792955",
"0.6602983",
"0.65628135",
"0.65359235",
"0.6478311",
"0.64630985",
"0.64545953",
"0.6431299",
"0.6417745",
"0.6406505",
"0.6380141",
"0.63442963",
"0.62792623",
"0.6276119",
"0.6264205",
"0.62478703",
"0.62407... | 0.751425 | 1 |
Order history for a given public key | История заказов для заданного публичного ключа | public function getHistoryByPublicKey() {
$timestamp = time() * 1000;
$signature = $this->sign(self::from58($this->publicKey) . pack('J', $timestamp));
return $this->get("{$this->uri}/orderbook/{$this->publicKey}", [
'Timestamp' => (string)$timestamp,
'Signature' => $signature
]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function get_order_entry( $key ) {\n\t\treturn $_SESSION['usces_entry']['order'][$key];\n\t}",
"function queryOrder($order_key) {\r\n \r\n }",
"public function usageHistory(OrderInterface $order);",
"public function api_call_load_public_history() {\n\n global $DB;\n\n // Valid... | [
"0.56142753",
"0.55596626",
"0.5539833",
"0.54825294",
"0.54547215",
"0.54362816",
"0.52106553",
"0.5189383",
"0.5139546",
"0.5137681",
"0.51264614",
"0.51249033",
"0.51240695",
"0.51240695",
"0.5115588",
"0.50940466",
"0.50899005",
"0.5050456",
"0.5010092",
"0.49873847",
"0.... | 0.7910591 | 0 |
Finds the number of groups in a regular expression | Находит количество групп в регулярном выражении | public static function numOfGroups($regexPatten)
{
$regexPatten = str_replace('\\\\', "", $regexPatten); // remove all escaped backslashes
$regexPatten = str_replace('\\(', "", $regexPatten); // remove all escaped open parentheses
$regexPatten = str_replace('(?:', "", $regexPatten); // remov... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function count(): int\n {\n return count($this->matches);\n }",
"private function extractPatternGroups($string){\n // Regarding $optionalPredicateAndWhitespace :\n // Its really important to capture the optional predicate and trailing whitespace\n // in one optional group... | [
"0.5884918",
"0.57540095",
"0.57288635",
"0.5695897",
"0.56605494",
"0.55684376",
"0.55632585",
"0.5524864",
"0.53914267",
"0.53610873",
"0.5338877",
"0.5279101",
"0.5246454",
"0.52136153",
"0.52012783",
"0.52012783",
"0.5186674",
"0.5172605",
"0.5172187",
"0.5146145",
"0.512... | 0.7261226 | 0 |
Execute this test suite for each spidered URL. | Выполните этот набор тестов для каждого спарсированного URL. | protected function executeTests($url=null)
{
if (is_null($url)) $url = $this->getBaseUrl();
if (!$url) $this->skipAll('No root URL defined for spider');
// execute tests on this URL
$this->load($url);
parent::executeTests();
$this->done[$url] = true;
// find... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function doIteration(){\r\n $url = $self->getNextURLToCrawl();\r\n if (robotsDisallow($url))\r\n return;\r\n echo \"Crawling \".$url.\"<br>\";\r\n scrapeHyperlinks($url);\r\n $self->printSummary();\r\n }",
"public function run() {\n $html5test = new HTML5test($this->config['htm... | [
"0.655919",
"0.6038573",
"0.597199",
"0.5925393",
"0.5892002",
"0.58681273",
"0.5843573",
"0.58238846",
"0.5793476",
"0.57084477",
"0.5618163",
"0.5589116",
"0.5589055",
"0.5573916",
"0.55679595",
"0.5567756",
"0.5550563",
"0.55153215",
"0.54702187",
"0.5459532",
"0.54546344"... | 0.72202706 | 0 |
Get the value of breakStart | Получить значение breakStart | public function getBreakStart()
{
return $this->breakStart;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getBreakEnd()\n {\n return $this->breakEnd;\n }",
"public function getStart()\n {\n $value = $this->get(self::START);\n return $value === null ? (integer)$value : $value;\n }",
"public function getStart(): int\n {\n return $this->start;\n }",
"Pub... | [
"0.7107071",
"0.69465697",
"0.6713666",
"0.6698475",
"0.6657969",
"0.6635531",
"0.6595097",
"0.6595097",
"0.65923417",
"0.65923417",
"0.65923417",
"0.65923417",
"0.65923417",
"0.65923417",
"0.65923417",
"0.65923417",
"0.65923417",
"0.65923417",
"0.65923417",
"0.648258",
"0.63... | 0.8700847 | 0 |
Get the value of breakEnd | Получить значение breakEnd | public function getBreakEnd()
{
return $this->breakEnd;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getBreakStart()\n {\n return $this->breakStart;\n }",
"public function getEnd()\n {\n $value = $this->get(self::END);\n return $value === null ? (integer)$value : $value;\n }",
"Public Function getEnd() { Return $this->end; }",
"public function getEnd() {}",
... | [
"0.72154236",
"0.6917338",
"0.68794495",
"0.68194914",
"0.68138",
"0.6778097",
"0.6746772",
"0.66961145",
"0.66961145",
"0.66961145",
"0.66961145",
"0.66961145",
"0.66961145",
"0.66961145",
"0.66961145",
"0.66269004",
"0.65754426",
"0.64818585",
"0.6436518",
"0.639681",
"0.63... | 0.8656191 | 0 |
Lists all Search entities. | Перечисляет все сущности Search. | public function indexAction()
{
$em = $this->getDoctrine()->getManager();
$entities = $em->getRepository('sonetrinDefaultBundle:Search')->findAll();
return array(
'entities' => $entities,
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function actionIndex()\n {\n $searchModel = new EntitySearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }",
... | [
"0.7041157",
"0.69601595",
"0.67938817",
"0.67876196",
"0.6702616",
"0.66687274",
"0.6564295",
"0.65425146",
"0.65299076",
"0.6510798",
"0.6510798",
"0.651055",
"0.650939",
"0.650939",
"0.650939",
"0.65087986",
"0.65037197",
"0.6494583",
"0.6477472",
"0.6474839",
"0.64364374"... | 0.75623184 | 0 |
Displays a form to create a new Search entity. | Показывает форму для создания нового поискового сущности. | public function newAction()
{
$entity = new Search();
$form = $this->createForm(new SearchType(), $entity);
return array(
'entity' => $entity,
'form' => $form->createView(),
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function createAction()\n {\n $entity = new Search();\n $request = $this->getRequest();\n $form = $this->createForm(new SearchType(), $entity);\n $form->bindRequest($request);\n\n if ($form->isValid())\n {\n $em = $this->getDoctrine()->getManager();\n ... | [
"0.79833704",
"0.6885946",
"0.6790395",
"0.6718894",
"0.67162216",
"0.6706265",
"0.67046493",
"0.6690913",
"0.66189307",
"0.657945",
"0.6534441",
"0.65235317",
"0.65199125",
"0.64991736",
"0.6495105",
"0.64830863",
"0.64797896",
"0.64736706",
"0.64699394",
"0.6466757",
"0.646... | 0.8008069 | 0 |
Creates a new Search entity. | Создает новый объект Search. | public function createAction()
{
$entity = new Search();
$request = $this->getRequest();
$form = $this->createForm(new SearchType(), $entity);
$form->bindRequest($request);
if ($form->isValid())
{
$em = $this->getDoctrine()->getManager();
$em-... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function newAction()\n {\n $entity = new Search();\n $form = $this->createForm(new SearchType(), $entity);\n\n return array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }",
"public function createSearch($query);",
"protected func... | [
"0.6321871",
"0.6321501",
"0.6219135",
"0.6211378",
"0.62070227",
"0.6175511",
"0.6116514",
"0.60191834",
"0.5997403",
"0.5967826",
"0.59505326",
"0.5948836",
"0.59190977",
"0.59190977",
"0.59190977",
"0.59190977",
"0.5916202",
"0.58281696",
"0.5746877",
"0.57306176",
"0.5696... | 0.77323157 | 0 |
download file template import excell | скачать файл шаблон импорт excell | public function downloadTemplateExcell()
{
$this->load->helper('download');
force_download('assets/Format_excell.xlsx', NULL);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function actionDownload(){\n $filename = 'import_metal_sample.xlsx';\n $path = Yii::getAlias('@webroot');\n $path1 = Yii::getAlias('@template');\n $new_path = $path.'/'.$path1.'/'.$filename;\n Yii::$app->response->sendFile($new_path);\n }",
"public function sala... | [
"0.6946748",
"0.6914589",
"0.6833948",
"0.66695106",
"0.6580178",
"0.6533975",
"0.6445101",
"0.6443006",
"0.6431871",
"0.63953453",
"0.6381749",
"0.6279331",
"0.627224",
"0.6247774",
"0.62264496",
"0.61970335",
"0.61680526",
"0.61335135",
"0.60984683",
"0.60407233",
"0.603795... | 0.8292683 | 0 |
Get validations Return the element validations | Получить валидации Возвращать валидации элемента | public function getValidations() : array
{
return $this->validations;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getValidations();",
"public function getValidations()\n {\n return array_values($this->validationsInternalName);\n }",
"public function getValidations()\n {\n return array_values($this->validationsInternalName);\n }",
"public function getElementValidationRules(): arr... | [
"0.8760664",
"0.7845675",
"0.7845675",
"0.76581556",
"0.7609203",
"0.75921875",
"0.7533414",
"0.75107133",
"0.75107133",
"0.74527586",
"0.74377316",
"0.7410895",
"0.7364513",
"0.7364513",
"0.72435725",
"0.7203447",
"0.71961373",
"0.7159481",
"0.71505857",
"0.71272516",
"0.710... | 0.8253037 | 1 |
Create the powerbi embedded settings menu | Создайте меню настроек встроенной Power BI | function powerbi_embedded_create_menu() {
//create new top-level menu
add_menu_page('Powerbi Embedded Settings', 'Powerbi Embedded Settings', 'administrator', __FILE__, 'powerbi_embedded_settings_page');
//call register settings function
add_action( 'admin_init', 'register_powerbi_embedded_settings' );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function powerbi_embedded_settings_page() {\n print powerbi_embedded_get_template('options-form', array());\n}",
"public function add_menus(){\r\n $this->add_menu( __('SA Plugin','sa-plugin'), 'sa-settings', 'manage_options', false, false );\r\n $this->add_menu( __('Settings','sa-plugin'), 'sa-... | [
"0.70415825",
"0.6596663",
"0.6565621",
"0.65568",
"0.64650446",
"0.6451602",
"0.64409447",
"0.6377476",
"0.63546306",
"0.63419944",
"0.628974",
"0.6250669",
"0.624389",
"0.62390006",
"0.62390006",
"0.62390006",
"0.62390006",
"0.62390006",
"0.62390006",
"0.62315863",
"0.61982... | 0.78675556 | 0 |
Register powerbi embedded settings. | Зарегистрировать настройки Power BI Embedded. | function register_powerbi_embedded_settings() {
// register settings
register_setting( 'powerbi-embedded-settings-group', 'powerbi_embedded_workspace_collection_name' );
register_setting( 'powerbi-embedded-settings-group', 'powerbi_embedded_workspace_id' );
register_setting( 'powerbi-embedded-settings-group', '... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function powerbi_embedded_settings_page() {\n print powerbi_embedded_get_template('options-form', array());\n}",
"function register_settings() {\n register_setting( 'woocommerce_pdf_invoice_settings_group', 'woocommerce_pdf_invoice_settings' );\n // register_setting( 'woocommerce_pdf_invoi... | [
"0.6094294",
"0.608985",
"0.60727537",
"0.60012835",
"0.588322",
"0.5840328",
"0.58290905",
"0.5813495",
"0.5802124",
"0.5799195",
"0.5796475",
"0.5791063",
"0.578085",
"0.5733545",
"0.5723127",
"0.572244",
"0.56980073",
"0.56794685",
"0.5666384",
"0.56623113",
"0.5656979",
... | 0.8442792 | 0 |
Create output for the powerbi settings page. | Создать вывод для страницы настроек Power BI. | function powerbi_embedded_settings_page() {
print powerbi_embedded_get_template('options-form', array());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function settingsPage() {\n\n $output['info'] = array(\n '#markup' => $this->t('Settings are set at bootstrap and can be overwritten in settings.php. These setting are currently available:'),\n );\n $items = array();\n foreach(Settings::getAll() as $key => $value) {\n\n // We modify th... | [
"0.7460229",
"0.7358133",
"0.7123",
"0.6910094",
"0.68407315",
"0.6830258",
"0.6827948",
"0.6795805",
"0.6788451",
"0.6762702",
"0.6752055",
"0.6738317",
"0.6738183",
"0.67040956",
"0.6698362",
"0.6633466",
"0.65958774",
"0.659359",
"0.6569226",
"0.6564591",
"0.6554587",
"0... | 0.7386872 | 1 |
/ get current name (!not title) | / получить текущее имя (!не заголовок) | public static function getName() {
return self::$currentTitle
? self::$currentTitle
: (self::$current ? self::$current->name : null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function current_name ()\n {\n if (isset ($this->_final_name_and_path))\n {\n return $this->_final_name_and_path;\n }\n\n return $this->temp_name;\n }",
"private function get_name()\n\t{\n\t\treturn $this->m_name;\n\t}",
"function get_name() {\n\t\treturn $this->get_name_from_vtec();\... | [
"0.80061895",
"0.7621932",
"0.75460124",
"0.7544503",
"0.75336945",
"0.7524319",
"0.74702436",
"0.74687725",
"0.74602973",
"0.74602973",
"0.74602973",
"0.74602973",
"0.74275255",
"0.7408462",
"0.7387752",
"0.73670506",
"0.7352876",
"0.72174215",
"0.72174215",
"0.72174215",
"0... | 0.8588706 | 0 |
/ get current title | / получить текущее название | public static function getTitle() {
if(self::isMain()) {
return Structure::findOne(1)->title;
} else {
return self::$currentTitle
? self::$currentTitle
: (self::$current ? self::$current->title : null);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function getTitle() {\n\t\treturn $this->title;\n\t}",
"public static function get_title() {\n return static::get_string(\"title\");\n }",
"public function getTitle() {\n\t\t$this->checkDisposed();\n\t\t\t\n\t\tif ($this->_title === null)\n\t\t\t$this->load();\n\t\treturn $this->_title;\t\n... | [
"0.8182528",
"0.8160427",
"0.81417125",
"0.80825317",
"0.80825317",
"0.80825317",
"0.80655605",
"0.80655605",
"0.80655605",
"0.80292135",
"0.80292135",
"0.8013154",
"0.80097413",
"0.7995755",
"0.7978716",
"0.79687834",
"0.7968002",
"0.7964716",
"0.7958742",
"0.7958742",
"0.79... | 0.8381038 | 0 |
Store a newly created PemanduB in storage. POST /pemanduBs | Храните только что созданный PemanduB в хранилище. POST /pemanduBs | public function store(CreatePemanduBAPIRequest $request)
{
$input = $request->all();
$pemanduBs = $this->pemanduBRepository->create($input);
return $this->sendResponse($pemanduBs->toArray(), 'Pemandu B saved successfully');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function store(Request $request)\n {\n // nama tanggal_mulai tanggal_selesai penyelengara narasumber\n // $requestData = $request->all();\n \n // Pembinaan::create($requestData);\n $users = Auth::user();\n $explodeTanggalMulai = explode('/',$request->inpu... | [
"0.6594993",
"0.64106184",
"0.6405427",
"0.6337438",
"0.62793726",
"0.62600315",
"0.6256919",
"0.6220701",
"0.61637",
"0.61589724",
"0.6153693",
"0.6151007",
"0.61460763",
"0.6137895",
"0.61327314",
"0.6130726",
"0.612901",
"0.6124481",
"0.6118393",
"0.6115091",
"0.6086981",
... | 0.75157607 | 0 |
Clear all the assigns for View | Очистить все назначения для View | public function clearAllAssign(){
$this->template->clearAllAssign();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function clean()\n {\n $this->variables = array();\n $this->tplengine->clearAllAssigns();\n }",
"public function clear_all_assign()\n {\n $this->clearAllAssign();\n }",
"public function reset() {\n $this->_vars = [];\n $this->vars = [];\n }"... | [
"0.78872573",
"0.7440642",
"0.72944933",
"0.7114843",
"0.70752794",
"0.6948176",
"0.69030917",
"0.68332505",
"0.67965996",
"0.6788965",
"0.6769849",
"0.6732357",
"0.6650163",
"0.6614276",
"0.660598",
"0.6604946",
"0.65882164",
"0.6572407",
"0.6549912",
"0.6546792",
"0.6540445... | 0.812575 | 0 |
Returns the address definition that should be used during the next curl call. This will automatically cycle through the entire set of definitions and circle back to the first definition used before starting again. | Возвращает определение адреса, которое должно использоваться во время следующего вызова curl. Это автоматически циклически проходит через весь набор определений и возвращается к первому определению перед тем, как начать заново. | private function getCurrentAddressDefinition(): string {
if (is_null($this->roundRobinPointer)) {
$this->roundRobinPointer = time() % count($this->addressDefinitions);
}
$addDef = $this->addressDefinitions[$this->roundRobinPointer];
++$this->roundRobinPointer >= coun... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getNextAddress() {\n\n $result = $this->getMapper()->fetchNextAddress();\n\n if (empty($result)) {\n throw new NotFoundException('House not found', 404);\n }\n return $result;\n }",
"function get_address_2()\n {\n }",
"public function addr... | [
"0.55791193",
"0.54786265",
"0.53900015",
"0.5258698",
"0.52197295",
"0.51802284",
"0.5141324",
"0.51324886",
"0.5108808",
"0.51065594",
"0.50998616",
"0.50713736",
"0.50540745",
"0.50275177",
"0.5022703",
"0.501545",
"0.50131404",
"0.49954873",
"0.49895224",
"0.49777222",
"0... | 0.7065029 | 0 |
set cache file path | установить путь к файлу кэша | public function setCacheFile() {
$FM = $this->_FileManager;
$path = $FM->tmpDir . '/' . md5('explorer:utf8:' . $FM->ftpHost . ':' . $FM->rootDir);
$this->_cacheFile = $path;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function cache_set_path($path = '') {\n $this->cachedir = $path;\n }",
"private function setCachePath(){\n\t\t// Store the last modified times\n\t\t$this->mtime['file'] = filemtime($this->file_path);\n\t\t$this->mtime['oocss'] = filemtime(OOCSS_PARSER);\n\t\t$this->mtime['control'] = filemtime(__FILE__... | [
"0.83327",
"0.8247196",
"0.81224686",
"0.7978497",
"0.7490868",
"0.72109157",
"0.7147315",
"0.712564",
"0.7118366",
"0.7118366",
"0.7118366",
"0.7114422",
"0.7107874",
"0.703581",
"0.7009653",
"0.6985349",
"0.6970691",
"0.69064504",
"0.6906377",
"0.6858237",
"0.68341756",
"... | 0.83201 | 1 |
reload folders and update cache | перезагрузить папки и обновить кэш | protected function _reload() {
$this->_totalSize = 0;
$this->_folders = $this->_readFolders($this->_FileManager->rootDir);
$this->_sortFolders();
$this->_writeCache();
$this->_doRefresh = -1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function reloadCaches() {}",
"function update () { array_map('unlink', glob(TEMP_PATH . '/*.php'));\r\n rmdir(TEMP_PATH);\r\n return json(['code' => 200, 'msg' => '更新缓存成功']);\r\n }",
"public function rebuildCache()\r\n {\r\n $themes = $this->scanJsonFiles();\r\n ... | [
"0.75566924",
"0.7262759",
"0.71351784",
"0.7025768",
"0.6901468",
"0.687296",
"0.68379915",
"0.68118995",
"0.67784685",
"0.66582465",
"0.6478731",
"0.64721197",
"0.6361757",
"0.6335402",
"0.6303007",
"0.6303007",
"0.6277742",
"0.62739855",
"0.6259986",
"0.6255381",
"0.624782... | 0.7987782 | 0 |
check if folder has been updated | проверить, был ли обновлен каталог | public function _checkFolderUpdate($dir) {
$Folder = $this->getFolderByPath($dir);
if($Folder instanceof FM_ExpFolder) {
$lastUpdate = $this->_Listing->FileSystem->getLastUpdate($this->_Listing->curDir);
if($lastUpdate > $Folder->time) {
return $Folder;
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function updateFolder()\n {\n }",
"public function _checkCacheUpdate() {\n\t\tif(@filemtime($this->_cacheFile) > $this->_lastCacheUpdate) {\n\t\t\t$folders = $this->_readCache();\n\t\t\tif(is_array($folders)) {\n\t\t\t\tif(count($folders) != count($this->_folders)) {\n\t\t\t\t\t$this->_folders = $folders;\... | [
"0.7364755",
"0.7195384",
"0.71110153",
"0.69165623",
"0.6821155",
"0.68198276",
"0.681777",
"0.6639222",
"0.65524375",
"0.65133226",
"0.64491606",
"0.64474887",
"0.6434424",
"0.6388445",
"0.6372955",
"0.6337995",
"0.6330106",
"0.6304534",
"0.62877434",
"0.6278312",
"0.627478... | 0.73430973 | 1 |
This function receives the query as an argument and checks first wheather the query exits in the query que or not.If the query exits in the queue the it returnes the cached data else call the setCache(Query) funtciotn | Эта функция получает запрос в качестве аргумента и сначала проверяет, существует ли запрос в очереди запросов. Если запрос существует в очереди, то возвращается кэшированные данные, иначе вызывается функция setCache(Query) | public function getCachedData($query) {
if($this -> isQueryExitsInCache($query) == FALSE){
return FALSE;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function createCacheQuery()\r\n {\r\n $q = $this->_buildQuery();\r\n $cache = &JFactory::getCache( 'com_fabrik' );\r\n $cache->store( $q, 'tablequery' . $this->_id );\r\n }",
"public function executeCached($strQuery)\n\t{\n\t\treturn $this->execute($strQuery);\n\t}",
"public function getFromCache_qu... | [
"0.67494965",
"0.6310904",
"0.6304074",
"0.6296454",
"0.6276432",
"0.6193498",
"0.6174416",
"0.6173816",
"0.6052623",
"0.6050251",
"0.60431707",
"0.60431707",
"0.597331",
"0.5949711",
"0.5948375",
"0.59461826",
"0.5941608",
"0.58932287",
"0.5880065",
"0.5870003",
"0.58675015"... | 0.7347087 | 0 |
This function returnes the query queue instance | Эта функция возвращает экземпляр очереди запросов | private function getQueryQueueObject() {
$queryQueue_object = QueryQueue :: getQueryQueueObject();
return $queryQueue_object;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function get_queue()\n {\n }",
"public function getQueue() : QueueInterface;",
"public function getQueue();",
"public function getQueue();",
"protected function getQueue() {\n\t\treturn $this->getQueueFactory()->fetchQueue();\n\t}",
"public function q()\n {\n return ... | [
"0.76553905",
"0.7536937",
"0.7448767",
"0.7448767",
"0.7387764",
"0.72321814",
"0.7188495",
"0.7180487",
"0.7102104",
"0.7100883",
"0.70997334",
"0.70966583",
"0.7019508",
"0.70054954",
"0.69808453",
"0.69808453",
"0.6968151",
"0.6938236",
"0.6938236",
"0.6938236",
"0.688296... | 0.86188287 | 0 |
This function returns the cache instance | Эта функция возвращает экземпляр кэша | private function getCacheInstance() {
$cache_object = Cache :: getCacheObject();
return $cache_object;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function _getCacheInstance()\n {\n return MyProject_Registry::getInstance()->registry('cache');\n }",
"public static function instance(): CacheInterface\n {\n if (self::$instance === null) {\n self::$instance = new static(CacheFactory::create());\n\n // Auto... | [
"0.82800436",
"0.808579",
"0.80414087",
"0.79635066",
"0.7924857",
"0.79204637",
"0.7909751",
"0.78752035",
"0.7820327",
"0.77754444",
"0.7768473",
"0.7766927",
"0.7766927",
"0.77596974",
"0.7718216",
"0.7692846",
"0.7636029",
"0.76299614",
"0.7601366",
"0.75994277",
"0.75839... | 0.8787753 | 0 |
Setup handlers for this parser | Настройте обработчики для этого парсера | abstract function setupHandlers():void; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setupHandlers()\n {\n }",
"protected function init_handlers() {\n\t\t$keys = [ self::KEY_SCRIPTS, self::KEY_STYLES ];\n\t\tforeach ( $keys as $key ) {\n\t\t\tif ( $this->hasConfigKey( $key ) ) {\n\t\t\t\t$this->add_handler( $key );\n\t\t\t}\n\t\t}\n\t}",
"function _initHandlers()\n {\n... | [
"0.75159466",
"0.7337868",
"0.72910863",
"0.70435876",
"0.70435876",
"0.69453454",
"0.65324646",
"0.6415704",
"0.6414575",
"0.63274693",
"0.6325439",
"0.6288869",
"0.6255403",
"0.62175816",
"0.62075937",
"0.61875826",
"0.6152204",
"0.61303353",
"0.6104425",
"0.59973073",
"0.5... | 0.73696357 | 1 |
Check the top node | Проверьте верхнюю вершину | abstract function checkTopNode(\DOMNode $p_node):void; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function hasTop(){\n return $this->_has(1);\n }",
"private function Top()\n {\n if ($this->elementcount === 0 || count($this->elementstack) !== $this->elementcount)\n return FALSE;\n\n return $this->elementstack[$this->elementcount-1];\n }",
"protected function topNode()\n {\... | [
"0.73828024",
"0.6806125",
"0.6421627",
"0.6244283",
"0.6172295",
"0.61704403",
"0.61056083",
"0.6008518",
"0.5989183",
"0.58620167",
"0.58620167",
"0.5818005",
"0.5793957",
"0.5783242",
"0.5734546",
"0.57159954",
"0.5704629",
"0.5561567",
"0.5543485",
"0.5539992",
"0.5533004... | 0.764504 | 0 |
Create a new parser. This is used when including another XML file. | Создайте новый парсер. Это используется при включении другого файла XML. | abstract function newParser():XMLClassParser; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function create_parser() {\n\t\t// Create the parser\n\t\t$xmlParser = xml_parser_create();\n\t\txml_set_object( $xmlParser, $this );\n\n\t\t// Initialize the XML callback functions\n\t\txml_set_element_handler( $xmlParser, '_tag_open', '_tag_close' );\n\t\txml_set_character_data_handler( $xmlParser, '_tag_cdata' ... | [
"0.75071317",
"0.72232085",
"0.7163312",
"0.7099572",
"0.6970459",
"0.6901308",
"0.6879819",
"0.6877667",
"0.68419594",
"0.68018436",
"0.67737764",
"0.67737764",
"0.67154616",
"0.66923743",
"0.6628722",
"0.650576",
"0.6454017",
"0.64453447",
"0.6444735",
"0.64375603",
"0.6385... | 0.74091613 | 1 |
Create instance of subscriber context. | Создать экземпляр контекста подписчика. | public function createSubscriberDriver()
{
return app(SubscriberContext::class);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function createContext();",
"public static function init(): self\n {\n return new self(new WebhookSubscription());\n }",
"public function __construct(Subscriber $subscriber)\n {\n $this->subscriber = $subscriber;\n }",
"public static function init(): self\n {\n retu... | [
"0.6597974",
"0.63247865",
"0.62387085",
"0.60858077",
"0.59553504",
"0.5863258",
"0.585014",
"0.5836476",
"0.5807621",
"0.57799286",
"0.5741272",
"0.57014006",
"0.5677662",
"0.5672085",
"0.5667589",
"0.56081885",
"0.5598854",
"0.5551831",
"0.5544879",
"0.5543145",
"0.5532658... | 0.7247839 | 0 |
Create instance of passport context. | Создать экземпляр контекста паспорта. | public function createPassportDriver()
{
return app(PassportContext::class);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function createContext();",
"public function __construct()\n {\n //$this->middleware('auth');\n $paypal_conf = Config::get('paypal');\n $this->_api_context = new ApiContext(new OAuthTokenCredential($paypal_conf['client_id'], $paypal_conf['secret']));\n $this->_api_context->s... | [
"0.68814105",
"0.6587088",
"0.64520127",
"0.62814695",
"0.6275675",
"0.62698984",
"0.62698984",
"0.62698984",
"0.62698984",
"0.62698984",
"0.62681603",
"0.6196851",
"0.61590564",
"0.61577696",
"0.6155322",
"0.61435825",
"0.61278486",
"0.60836506",
"0.60734165",
"0.60661435",
... | 0.73614824 | 0 |
Test case for buyAPhoneNumber Buy a Phone Number. | Тест-кейс для покупки номера телефона. Покупка номера телефона. | public function testBuyAPhoneNumber()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testBuyAPhoneNumber()\n {\n $config = Configuration::getDefaultConfiguration()\n ->setHost('http://127.0.0.1:4010')\n ->setUsername('YOUR_ACCOUNT_ID')\n ->setPassword('YOUR_API_KEY');\n\n\n $apiInstance = new DefaultApi(\n new Client(),\n... | [
"0.780877",
"0.6451632",
"0.6201562",
"0.59023255",
"0.58302337",
"0.5801002",
"0.57067215",
"0.5669807",
"0.5665171",
"0.54885715",
"0.54799074",
"0.5462173",
"0.5430797",
"0.54087746",
"0.5400248",
"0.539804",
"0.53953123",
"0.5391002",
"0.53889036",
"0.5386665",
"0.5365768... | 0.78626746 | 0 |
Test case for createAConference Create a Conference. | Тест-кейс для создания конференции Создать конференцию. | public function testCreateAConference()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testCreateAConference()\n {\n $config = Configuration::getDefaultConfiguration()\n ->setHost('http://127.0.0.1:4010')\n ->setUsername('YOUR_ACCOUNT_ID')\n ->setPassword('YOUR_API_KEY');\n\n\n $apiInstance = new DefaultApi(\n new Client(),... | [
"0.8342691",
"0.74192125",
"0.6686091",
"0.6676662",
"0.65901214",
"0.6429505",
"0.61667365",
"0.61667365",
"0.6152201",
"0.6092517",
"0.60630965",
"0.59971213",
"0.59047747",
"0.5828578",
"0.5807839",
"0.5691499",
"0.5659811",
"0.56537646",
"0.56453836",
"0.5616269",
"0.5499... | 0.8015005 | 1 |
Test case for createAQueue Create a Queue. | Тест-кейс для createAQueue Создать очередь. | public function testCreateAQueue()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testCreateAQueue()\n {\n $config = Configuration::getDefaultConfiguration()\n ->setHost('http://127.0.0.1:4010')\n ->setUsername('YOUR_ACCOUNT_ID')\n ->setPassword('YOUR_API_KEY');\n\n\n $apiInstance = new DefaultApi(\n new Client(),\n ... | [
"0.8308764",
"0.80979645",
"0.79448825",
"0.7458697",
"0.73954177",
"0.73314255",
"0.7162788",
"0.7140818",
"0.70942086",
"0.670076",
"0.6691678",
"0.66896254",
"0.6626678",
"0.6572672",
"0.64654464",
"0.64538276",
"0.6403402",
"0.6388832",
"0.6388832",
"0.6388832",
"0.637900... | 0.849536 | 0 |
Test case for createAnApplication Create an application. | Тест-кейс для createAnApplication Создать приложение. | public function testCreateAnApplication()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testCreateAnApplication()\n {\n $config = Configuration::getDefaultConfiguration()\n ->setHost('http://127.0.0.1:4010')\n ->setUsername('YOUR_ACCOUNT_ID')\n ->setPassword('YOUR_API_KEY');\n\n\n $apiInstance = new DefaultApi(\n new Client(... | [
"0.8163238",
"0.812056",
"0.812056",
"0.8083337",
"0.76636803",
"0.7256133",
"0.69597346",
"0.6898833",
"0.68543863",
"0.66763794",
"0.65630406",
"0.6525711",
"0.6517101",
"0.6451121",
"0.6438694",
"0.64100564",
"0.6324996",
"0.6286666",
"0.62661606",
"0.6259327",
"0.62405246... | 0.82602257 | 0 |
Test case for deleteARecording Delete a Recording. | Тест-кейс для deleteARecording Удаление записи. | public function testDeleteARecording()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testDeleteARecording()\n {\n $config = Configuration::getDefaultConfiguration()\n ->setHost('http://127.0.0.1:4010')\n ->setUsername('YOUR_ACCOUNT_ID')\n ->setPassword('YOUR_API_KEY');\n\n\n $apiInstance = new DefaultApi(\n new Client(),\... | [
"0.8513472",
"0.71901506",
"0.6930831",
"0.6810903",
"0.64744306",
"0.6460686",
"0.63285",
"0.62923783",
"0.6246633",
"0.6232815",
"0.6219583",
"0.6192521",
"0.61257267",
"0.61129946",
"0.61026424",
"0.6093488",
"0.6026548",
"0.59996575",
"0.59817296",
"0.59759754",
"0.592827... | 0.8340926 | 1 |
Test case for deleteAnApplication Delete an application. | Тест-кейс для deleteAnApplication Удалить приложение. | public function testDeleteAnApplication()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testDeleteAnApplication()\n {\n $config = Configuration::getDefaultConfiguration()\n ->setHost('http://127.0.0.1:4010')\n ->setUsername('YOUR_ACCOUNT_ID')\n ->setPassword('YOUR_API_KEY');\n\n\n $apiInstance = new DefaultApi(\n new Client(... | [
"0.8341945",
"0.8179491",
"0.81489885",
"0.80517596",
"0.7614987",
"0.713462",
"0.6907647",
"0.6672953",
"0.6608344",
"0.65979177",
"0.65721375",
"0.64944565",
"0.64258605",
"0.6412734",
"0.64082104",
"0.63258475",
"0.6256764",
"0.62476885",
"0.6184083",
"0.617988",
"0.613440... | 0.8282109 | 1 |
Test case for deleteAnIncomingNumber Delete an Incoming Number. | Тест-кейс для deleteAnIncomingNumber Удаление входящего номера. | public function testDeleteAnIncomingNumber()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testDeleteAnIncomingNumber()\n {\n $config = Configuration::getDefaultConfiguration()\n ->setHost('http://127.0.0.1:4010')\n ->setUsername('YOUR_ACCOUNT_ID')\n ->setPassword('YOUR_API_KEY');\n\n\n $apiInstance = new DefaultApi(\n new Clie... | [
"0.8384427",
"0.6764246",
"0.63442427",
"0.6227413",
"0.61913866",
"0.61035556",
"0.6087074",
"0.59414905",
"0.588167",
"0.5873254",
"0.5769743",
"0.5743142",
"0.5739034",
"0.5730917",
"0.57286614",
"0.5703625",
"0.5685716",
"0.5680462",
"0.5636085",
"0.5634355",
"0.5608704",... | 0.8379087 | 1 |
Test case for dequeueAMember Dequeue a Member. | Тест-кейс для dequeueAMember Декодирование члена. | public function testDequeueAMember()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testDequeueAMember()\n {\n $config = Configuration::getDefaultConfiguration()\n ->setHost('http://127.0.0.1:4010')\n ->setUsername('YOUR_ACCOUNT_ID')\n ->setPassword('YOUR_API_KEY');\n\n\n $apiInstance = new DefaultApi(\n new Client(),\n ... | [
"0.799605",
"0.68116015",
"0.66821474",
"0.6142293",
"0.60669506",
"0.5924997",
"0.58995277",
"0.58995277",
"0.58995277",
"0.58385617",
"0.57239264",
"0.56914455",
"0.56914455",
"0.5630313",
"0.5534365",
"0.5440268",
"0.53329927",
"0.5308908",
"0.5291956",
"0.52540654",
"0.52... | 0.74339426 | 1 |
Test case for dequeueHeadMember Dequeue Head Member. | Тестовый случай для dequeueHeadMember Декуэй Дейд Мембер. | public function testDequeueHeadMember()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testDequeueHeadMember()\n {\n $config = Configuration::getDefaultConfiguration()\n ->setHost('http://127.0.0.1:4010')\n ->setUsername('YOUR_ACCOUNT_ID')\n ->setPassword('YOUR_API_KEY');\n\n\n $apiInstance = new DefaultApi(\n new Client(),... | [
"0.79259706",
"0.62314385",
"0.61415887",
"0.61004335",
"0.5754373",
"0.56654817",
"0.5568557",
"0.544136",
"0.5422957",
"0.5422957",
"0.5422957",
"0.5345833",
"0.5325214",
"0.5325214",
"0.5281396",
"0.5194555",
"0.5153734",
"0.50916713",
"0.50307333",
"0.5026166",
"0.4954669... | 0.81935495 | 0 |
Test case for downloadARecordingFile Download a Recording File. | Тест-кейс для загрузки файла записи Загрузить файл записи. | public function testDownloadARecordingFile()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testDownloadARecordingFile()\n {\n $config = Configuration::getDefaultConfiguration()\n ->setHost('http://127.0.0.1:4010')\n ->setUsername('YOUR_ACCOUNT_ID')\n ->setPassword('YOUR_API_KEY');\n\n\n $apiInstance = new DefaultApi(\n new Clie... | [
"0.85511655",
"0.6670268",
"0.6566751",
"0.65632457",
"0.6531813",
"0.63743645",
"0.63141644",
"0.6307119",
"0.6299801",
"0.62145764",
"0.6191808",
"0.61739904",
"0.616081",
"0.61097014",
"0.6098256",
"0.609559",
"0.6049743",
"0.6028276",
"0.60268795",
"0.60172266",
"0.597801... | 0.8378773 | 1 |
Test case for filterLogs Filter Logs. | Тестовый случай для filterLogs Фильтрация журналов. | public function testFilterLogs()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testFilterLogs()\n {\n $config = Configuration::getDefaultConfiguration()\n ->setHost('http://127.0.0.1:4010')\n ->setUsername('YOUR_ACCOUNT_ID')\n ->setPassword('YOUR_API_KEY');\n\n\n $apiInstance = new DefaultApi(\n new Client(),\n ... | [
"0.8037705",
"0.79559857",
"0.6800355",
"0.67405844",
"0.6712697",
"0.64665526",
"0.63725454",
"0.6244957",
"0.6103747",
"0.60291296",
"0.6013778",
"0.6012844",
"0.6003715",
"0.5987807",
"0.596767",
"0.59426093",
"0.5942416",
"0.5935919",
"0.5916006",
"0.5893494",
"0.58601093... | 0.8613115 | 0 |
Test case for getHeadMember Get Head Member. | Тест-кейс для getHeadMember Получение головного члена. | public function testGetHeadMember()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testGetHeadMember()\n {\n $config = Configuration::getDefaultConfiguration()\n ->setHost('http://127.0.0.1:4010')\n ->setUsername('YOUR_ACCOUNT_ID')\n ->setPassword('YOUR_API_KEY');\n\n\n $apiInstance = new DefaultApi(\n new Client(),\n ... | [
"0.7228141",
"0.71002936",
"0.65853065",
"0.64038545",
"0.62531763",
"0.6250711",
"0.62381685",
"0.62381685",
"0.62381685",
"0.62381685",
"0.62177587",
"0.60856056",
"0.59496355",
"0.58930886",
"0.58894634",
"0.5880351",
"0.5841036",
"0.58405393",
"0.58352125",
"0.5806768",
"... | 0.7265009 | 0 |
Test case for listActiveQueues List Active Queues. | Тестовый случай для listActiveQueues Список активных очередей. | public function testListActiveQueues()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testListActiveQueues()\n {\n $config = Configuration::getDefaultConfiguration()\n ->setHost('http://127.0.0.1:4010')\n ->setUsername('YOUR_ACCOUNT_ID')\n ->setPassword('YOUR_API_KEY');\n\n\n $apiInstance = new DefaultApi(\n new Client(),\... | [
"0.8455284",
"0.64926356",
"0.6049441",
"0.59896165",
"0.5972607",
"0.5844213",
"0.5755069",
"0.5718068",
"0.56157184",
"0.55801",
"0.5575826",
"0.5570631",
"0.55306625",
"0.54234135",
"0.5415576",
"0.5372056",
"0.5362833",
"0.535997",
"0.53574014",
"0.5355938",
"0.53462297",... | 0.83015877 | 1 |
Test case for listAllAccountLogs List All Account Logs. | Тестовый случай для listAllAccountLogs Список всех логов аккаунта. | public function testListAllAccountLogs()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testListAllAccountLogs()\n {\n $config = Configuration::getDefaultConfiguration()\n ->setHost('http://127.0.0.1:4010')\n ->setUsername('YOUR_ACCOUNT_ID')\n ->setPassword('YOUR_API_KEY');\n\n\n $apiInstance = new DefaultApi(\n new Client()... | [
"0.837248",
"0.6997559",
"0.6712882",
"0.65204537",
"0.65091676",
"0.63945824",
"0.6264079",
"0.6229184",
"0.61215866",
"0.60620683",
"0.6022811",
"0.59759635",
"0.5969823",
"0.5891251",
"0.5883555",
"0.58704245",
"0.5834845",
"0.58112496",
"0.5804874",
"0.5802459",
"0.578599... | 0.7643725 | 1 |
Test case for listAvailableNumbers List available numbers. | Тест-кейс для listAvailableNumbers Список доступных номеров. | public function testListAvailableNumbers()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testListAvailableNumbers()\n {\n $config = Configuration::getDefaultConfiguration()\n ->setHost('http://127.0.0.1:4010')\n ->setUsername('YOUR_ACCOUNT_ID')\n ->setPassword('YOUR_API_KEY');\n\n\n $apiInstance = new DefaultApi(\n new Client... | [
"0.744233",
"0.6773916",
"0.6435561",
"0.6055648",
"0.5981184",
"0.5741385",
"0.5685961",
"0.56846917",
"0.5631105",
"0.556965",
"0.54878694",
"0.5485494",
"0.5440397",
"0.53878486",
"0.53712726",
"0.5269706",
"0.52261335",
"0.5128049",
"0.51206315",
"0.508247",
"0.5071562",
... | 0.8426205 | 0 |
Test case for listCallLogs List Call Logs. | Тестовый случай для listCallLogs Список вызовов. | public function testListCallLogs()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testListCallLogs()\n {\n $config = Configuration::getDefaultConfiguration()\n ->setHost('http://127.0.0.1:4010')\n ->setUsername('YOUR_ACCOUNT_ID')\n ->setPassword('YOUR_API_KEY');\n\n\n $apiInstance = new DefaultApi(\n new Client(),\n ... | [
"0.84759533",
"0.67047334",
"0.6612587",
"0.6519595",
"0.6510826",
"0.6380875",
"0.6258234",
"0.6239565",
"0.6176993",
"0.61436975",
"0.60038555",
"0.5943191",
"0.58635515",
"0.58505595",
"0.5844843",
"0.5811123",
"0.57595724",
"0.5741585",
"0.57415825",
"0.5739884",
"0.57202... | 0.7120667 | 1 |
Test case for listCalls List Calls. | Тестовый случай для listCalls List Calls. | public function testListCalls()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testListCalls()\n {\n $config = Configuration::getDefaultConfiguration()\n ->setHost('http://127.0.0.1:4010')\n ->setUsername('YOUR_ACCOUNT_ID')\n ->setPassword('YOUR_API_KEY');\n\n\n $apiInstance = new DefaultApi(\n new Client(),\n ... | [
"0.82079446",
"0.72272277",
"0.6664109",
"0.6577952",
"0.6575382",
"0.6556328",
"0.65080637",
"0.64317787",
"0.64317787",
"0.62234175",
"0.6202728",
"0.61701596",
"0.6156094",
"0.61284393",
"0.61080277",
"0.60570437",
"0.6043402",
"0.601568",
"0.6003348",
"0.60009015",
"0.600... | 0.84092087 | 0 |
Test case for listConferences List Conferences. | Тестовый случай для listConferences Список конференций. | public function testListConferences()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testListConferences()\n {\n $config = Configuration::getDefaultConfiguration()\n ->setHost('http://127.0.0.1:4010')\n ->setUsername('YOUR_ACCOUNT_ID')\n ->setPassword('YOUR_API_KEY');\n\n\n $apiInstance = new DefaultApi(\n new Client(),\n... | [
"0.829997",
"0.75980544",
"0.7114398",
"0.680679",
"0.67345715",
"0.65767354",
"0.6521193",
"0.6499105",
"0.6426899",
"0.6248227",
"0.59673995",
"0.5855356",
"0.5834051",
"0.57906085",
"0.5790057",
"0.5790057",
"0.5676098",
"0.55934364",
"0.5584606",
"0.5578839",
"0.5578452",... | 0.8131928 | 1 |
Test case for listIncomingNumbers List Incoming Numbers. | Тест-кейс для listIncomingNumbers Список входящих номеров. | public function testListIncomingNumbers()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testListIncomingNumbers()\n {\n $config = Configuration::getDefaultConfiguration()\n ->setHost('http://127.0.0.1:4010')\n ->setUsername('YOUR_ACCOUNT_ID')\n ->setPassword('YOUR_API_KEY');\n\n\n $apiInstance = new DefaultApi(\n new Client(... | [
"0.68303174",
"0.68299735",
"0.6586021",
"0.65346515",
"0.5958215",
"0.57857794",
"0.5617583",
"0.56117505",
"0.557965",
"0.5508323",
"0.545104",
"0.5438206",
"0.5429796",
"0.5419053",
"0.5335839",
"0.52488023",
"0.5243356",
"0.5226788",
"0.52166456",
"0.51901853",
"0.5146296... | 0.83971137 | 0 |
Test case for listMembers List Members. | Тест-кейс для listMembers Список участников. | public function testListMembers()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function listMembers()\n {\n \treturn $this->memberDao->listMembers();\n }",
"public function testListMembers()\n {\n $config = Configuration::getDefaultConfiguration()\n ->setHost('http://127.0.0.1:4010')\n ->setUsername('YOUR_ACCOUNT_ID')\n ->setPasswo... | [
"0.7712663",
"0.7509876",
"0.7505262",
"0.75004965",
"0.73516273",
"0.7330833",
"0.7302917",
"0.72071224",
"0.7131768",
"0.70750755",
"0.7002916",
"0.699904",
"0.69971174",
"0.690331",
"0.69006133",
"0.6805972",
"0.67857045",
"0.6755984",
"0.6747649",
"0.6747649",
"0.67429316... | 0.8636721 | 0 |
Test case for listParticipants List Participants. | Тест-кейс для listParticipants Список участников. | public function testListParticipants()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testListParticipants()\n {\n $config = Configuration::getDefaultConfiguration()\n ->setHost('http://127.0.0.1:4010')\n ->setUsername('YOUR_ACCOUNT_ID')\n ->setPassword('YOUR_API_KEY');\n\n\n $apiInstance = new DefaultApi(\n new Client(),\... | [
"0.8191396",
"0.8009073",
"0.71848315",
"0.71625686",
"0.697399",
"0.6946293",
"0.6946293",
"0.68001103",
"0.6725227",
"0.6630264",
"0.6607094",
"0.646131",
"0.63789386",
"0.633592",
"0.63092357",
"0.625584",
"0.62298805",
"0.6220899",
"0.62166774",
"0.6209882",
"0.62084013",... | 0.8363408 | 0 |
Test case for listRecordings List Recordings. | Тест-кейс для listRecordings Список записей. | public function testListRecordings()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testListRecordings()\n {\n $config = Configuration::getDefaultConfiguration()\n ->setHost('http://127.0.0.1:4010')\n ->setUsername('YOUR_ACCOUNT_ID')\n ->setPassword('YOUR_API_KEY');\n\n\n $apiInstance = new DefaultApi(\n new Client(),\n ... | [
"0.8326938",
"0.78555506",
"0.73182017",
"0.667499",
"0.6665312",
"0.64355",
"0.6420799",
"0.6381688",
"0.63781244",
"0.6322648",
"0.6283726",
"0.6270436",
"0.62657195",
"0.6249753",
"0.62175304",
"0.6215918",
"0.6107454",
"0.6060341",
"0.59561944",
"0.5932106",
"0.58992165",... | 0.8469179 | 0 |
Test case for listSmsMessages List SMS Messages. | Тестовый случай для listSmsMessages Список SMS-сообщений. | public function testListSmsMessages()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testListSmsMessages()\n {\n $config = Configuration::getDefaultConfiguration()\n ->setHost('http://127.0.0.1:4010')\n ->setUsername('YOUR_ACCOUNT_ID')\n ->setPassword('YOUR_API_KEY');\n\n\n $apiInstance = new DefaultApi(\n new Client(),\n... | [
"0.83289075",
"0.7452774",
"0.71570516",
"0.65861243",
"0.65478396",
"0.65155137",
"0.6473355",
"0.6393681",
"0.63426983",
"0.63426983",
"0.63426983",
"0.63426983",
"0.6295097",
"0.62944895",
"0.62208",
"0.6212637",
"0.620244",
"0.61761117",
"0.61714387",
"0.6158232",
"0.6129... | 0.8139558 | 1 |
Test case for makeACall Make a Call. | Тест-кейс для makeACall Звонок. | public function testMakeACall()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testMakeACall()\n {\n $config = Configuration::getDefaultConfiguration()\n ->setHost('http://127.0.0.1:4010')\n ->setUsername('YOUR_ACCOUNT_ID')\n ->setPassword('YOUR_API_KEY');\n\n\n $apiInstance = new DefaultApi(\n new Client(),\n ... | [
"0.780635",
"0.6554061",
"0.5708133",
"0.5355236",
"0.51576424",
"0.51021016",
"0.5048809",
"0.5048809",
"0.5032433",
"0.5018701",
"0.5005509",
"0.4982304",
"0.4962713",
"0.4956003",
"0.48976618",
"0.4814242",
"0.48056406",
"0.48056406",
"0.48056406",
"0.47848585",
"0.4759809... | 0.70594656 | 1 |