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 |
|---|---|---|---|---|---|---|---|
Update total base amount field | Обновить поле общая базовая сумма | protected function modifyTotalBaseAmount(SchemaSetupInterface $setup)
{
$connection = $setup->getConnection();
$connection->modifyColumn(
$setup->getTable('mageworx_multifees_fee'),
'total_base_amount',
[
'type' => Table::TYPE_DECIMAL,
'scale' => '2',
'precision' => '10'
]
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function update_total()\n {\n $this->db->begin();\n\n // Clean parameters\n if (empty($this->total_localtax1)) $this->total_localtax1=0;\n if (empty($this->total_localtax2)) $this->total_localtax2=0;\n\n // Mise a jour ligne en base\n $sql = \"UPDATE \".MAIN_DB_PREFIX.\... | [
"0.7262133",
"0.72245413",
"0.72189045",
"0.7164421",
"0.6907943",
"0.6829281",
"0.6632279",
"0.6600816",
"0.65419745",
"0.6523537",
"0.6453955",
"0.64459115",
"0.640016",
"0.6398767",
"0.6378414",
"0.6365927",
"0.6319248",
"0.63013184",
"0.6274099",
"0.6271505",
"0.6269284",... | 0.7496829 | 0 |
Adds form elements for the "language" plugin to the rule configuration form. | Добавляет элементы формы для плагина "language" в форму настройки правила. | function menu_position_menu_position_rule_language_form(&$form, &$form_state) {
// If this is an existing rule, load the variables stored in the rule for this plugin.
$variables = !empty($form_state['#menu-position-rule']->conditions['language']) ? $form_state['#menu-position-rule']->conditions['language'] : array();
$form['conditions']['language'] = array(
'#type' => 'fieldset',
'#title' => t('Language'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#attached' => array(
'js' => array(drupal_get_path('module', 'menu_position') . '/plugins/menu_position.language.js'),
),
);
$form['conditions']['language']['language'] = array(
'#type' => 'select',
'#title' => t('Language'),
'#options' => array('' => t('Any language')) + locale_language_list(),
'#default_value' => !empty($variables['language']) ? $variables['language'] : '',
'#description' => t("Apply this rule only when the language matches the current page's language."),
'#weight' => -20,
);
// Add a submit handler.
$form['#submit'][] = 'menu_position_menu_position_rule_language_form_submit';
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function menu_position_menu_position_rule_language_form_submit(&$form, &$form_state) {\n // Check if the user has added our plugin's form elements as a condition for\n // the rule.\n if (!empty($form_state['values']['language'])) {\n // Add this plugin's variables to the rule.\n $variables = array(\n ... | [
"0.71967894",
"0.6568911",
"0.6446732",
"0.6331413",
"0.6322439",
"0.6270213",
"0.6231891",
"0.6221624",
"0.6197807",
"0.6103906",
"0.60992837",
"0.60130495",
"0.5973422",
"0.58193064",
"0.567907",
"0.5675849",
"0.56756794",
"0.56745565",
"0.5663616",
"0.56491804",
"0.5643449... | 0.72037345 | 0 |
Get the value of prospect | Получить значение привлекательности | public function getProspect()
{
return $this->prospect;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function value()\n {\n $product = $this->getProduct();\n\n return $product->retail_price->multiply($this->qt);\n }",
"function getProposition() {\n return $this->proposition;\n }",
"public function getValorProvento()\n {\n return $this->valorProvento;\n }",
"... | [
"0.65730816",
"0.63996",
"0.6339667",
"0.6230572",
"0.6180851",
"0.6180851",
"0.6180851",
"0.6180851",
"0.6180851",
"0.6180851",
"0.6180851",
"0.6180851",
"0.6180851",
"0.6180851",
"0.6180851",
"0.6180851",
"0.6180851",
"0.6180851",
"0.6180851",
"0.6180851",
"0.6180851",
"0... | 0.7464151 | 0 |
FT read the modes file into the pipeline array. this (modes.xml) appears to give the files used by the various apertium programs hmm this function is a good example of why config data should not be held in xml files :) | FT считывает файл режимов в массив потока. этот (modes.xml) кажется, что он предоставляет файлы, используемые различными программами apertium. интересно, эта функция является хорошим примером того, почему конфигурационные данные не должны храниться в файлах XML :) | function readmodes() {
$modesfile = $this->srcroot . 'modes.xml';
$retval = file_get_contents($modesfile);
$doc = new DOMDocument;
$doc->loadXML($retval);
$modelist = $doc->getElementsByTagName('mode');
foreach($modelist as $listitem) {
if($listitem->getAttribute('name') == $this->direction) {
$pipeindex = 0;
$pipelist = $listitem->getElementsByTagName('program');
foreach($pipelist as $program) {
// FT we need to split out in case there are args in the progname
$split = explode(' ', $program->getAttribute('name'));
$this->pipeline[$pipeindex][$split[0]] = '';
for($i = 1; $i < sizeof($split); $i++) {
$this->pipeline[$pipeindex][$split[0]] .= $split[$i] . ' ';
}
$argv = $program->getElementsByTagName('file');echo
foreach($argv as $arg) {
$this->pipeline[$pipeindex][$split[0]] .= $this->srcroot . $arg->getAttribute('name') . ' ';
}
$pipeindex++;
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function get_modes() {\n static $modes;\n if ( isset( $modes ) ) {\n return $modes;\n }\n\n $modes = array();\n foreach ( Clanpress_Mode::modes() as $mode ) {\n require_once( Clanpress_Helper::get_modes_path() . $mode . '.php' );\n $mode_class = Clanpress_Helper::get_class( $m... | [
"0.61061686",
"0.5815112",
"0.5768587",
"0.568288",
"0.5365242",
"0.5291273",
"0.5252863",
"0.52204275",
"0.5050391",
"0.504972",
"0.50009894",
"0.4986231",
"0.49650818",
"0.49590683",
"0.4945289",
"0.4888503",
"0.4873883",
"0.48497123",
"0.4842898",
"0.4837291",
"0.48260346"... | 0.84527004 | 0 |
do syntax highlighting of the text to make it easier to read | делайте синтаксическое выделение текста для упрощения его чтения | function highlight($_text) {
$underlining = false;
$highlighted = '<code>';
for($i = 0; $i < strlen($_text); $i++) {
if($_text[$i] == '<') {
$highlighted = $highlighted . '<span style="color: #aaaaaa"><';
} else if($_text[$i] == '>') {
$highlighted = $highlighted . '></span>';
} else if($_text[$i] == '[') {
$highlighted = $highlighted . '<span style="color: #aaaaff">[';
} else if($_text[$i] == ']') {
$highlighted = $highlighted . ']</span>';
} else if($_text[$i] == '{') {
$highlighted = $highlighted . '<span style="color: #999900">{</span>';
} else if($_text[$i] == '}') {
$highlighted = $highlighted . '<span style="color: #999900">}</span>';
} else if($_text[$i] == '^') {
$highlighted = $highlighted . '<span style="color: #009900">^</span>';
} else if($_text[$i] == '$') {
$highlighted = $highlighted . '<span style="color: #009900">$</span>';
} else if($_text[$i] == '@') {
$highlighted = $highlighted . '<span style="color: #990000">@</span>';
} else if($_text[$i] == '#') {
$highlighted = $highlighted . '<span style="color: #990000">#</span>';
} else if($_text[$i] == '*') {
$highlighted = $highlighted . '<span style="color: #990000">*</span>';
} else {
$highlighted = $highlighted . $_text[$i];
}
/*
if($_text[$i] == '*') {
$underlining = true; // set underlining state
$highlighted = $highlighted . '<u>';
}
if($_text[$i+1] == ' ' && $underlining = true) {
$highlighted = $highlighted . '</u>';
$underlining = false; // unset underlining state
}
*/
}
$highlighted = $highlighted . '</code>';
return $highlighted;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function highlight(string $text, array $options = []): string;",
"function pc_highlight_txt($atts, $content) {\n return \"<span style=\\\"color: #d0ac2e;\\\">$content</span>\";\n}",
"public function highlight(string $text, array $options = []): string {\n\t\t$string = highlight_string($text, true);\n... | [
"0.7409183",
"0.7131299",
"0.7087883",
"0.69975585",
"0.67841333",
"0.67832017",
"0.6769217",
"0.6764314",
"0.6620886",
"0.6620886",
"0.6611313",
"0.65053064",
"0.6492326",
"0.64656204",
"0.6463898",
"0.64552104",
"0.6366623",
"0.6346648",
"0.6317799",
"0.6316674",
"0.6279667... | 0.7908151 | 0 |
Checks the login lock setting of an application by field, returns true if it is locked | Проверяет настройку блокировки входа приложения по полю, возвращает true, если она заблокирована | public function checkLoginLock($application_id)
{
$field_id = 8 ;//'login_lock';
$application_fields = $this->factory->getModel('ApplicationField');
$rows = $application_fields->loadAllBy(array("table_row_id" => $application_id, "application_field_attribute_id" => $field_id));
if (!$rows || (count($rows) == 0)){
return "pass";
} else {
return "locked";
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function isLocked();",
"public function isLocked();",
"public function isLocked();",
"public function isLocked();",
"public function isLocked();",
"function isLocked() ;",
"public function isLocked() {}",
"public function isLocked() {}",
"public function isLocked() {\n if(strtotime($t... | [
"0.6783351",
"0.6783351",
"0.6783351",
"0.6783351",
"0.6783351",
"0.67607975",
"0.6640119",
"0.6640119",
"0.6542612",
"0.6524497",
"0.64870054",
"0.63932043",
"0.63886976",
"0.63859797",
"0.63797075",
"0.6330309",
"0.63289243",
"0.63216656",
"0.62947565",
"0.62850827",
"0.623... | 0.7803882 | 0 |
Clears the login lock record of an application, doesn't touch the application field | Очищает запись блокировки входа для приложения, не затрагивая поле приложения | public function clearLoginLock($application_id)
{
$loaded = $this->login_lock->loadBy(array('application_id' => $application_id));
if ($loaded) {
$this->login_lock->counter = 0;
$this->login_lock->save();
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function unTempLocked() {\r\n if ($this->Session->check('Login.WrongNum') && $this->Session->check('Login.id')) {\r\n $this->unlockUser($this->Session->read('Login.id'));\r\n }\r\n $this->Session->delete('Login');\r\n }",
"public static function unauthenticate(){\n\t\t// delete... | [
"0.67850626",
"0.6695444",
"0.6464298",
"0.6318517",
"0.6287144",
"0.62698746",
"0.6249629",
"0.62263584",
"0.6145014",
"0.61185586",
"0.6061244",
"0.6054318",
"0.60508054",
"0.6010892",
"0.5983713",
"0.590838",
"0.58712035",
"0.5862327",
"0.5851983",
"0.5850554",
"0.58400613... | 0.7147676 | 0 |
Sets the login lock record of an application, and increments it. If it is more than the value found in the business rule, set the application field | Устанавливает запись блокировки входа для приложения и увеличивает её. Если она превышает значение, найденное в бизнес-правиле, устанавливает поле приложения | public function setLoginLock($application_id)
{
$application_id = (int)$application_id;
$application = ECash::getApplicationByID($application_id);
$company_model = $this->factory->getModel('Company');
$company_model->loadBy(array('company_id' => $application->getCompanyId()));
if (method_exists($factory, "getMasterDb"))
{
$db = $this->factory->getMasterDb();
}
else
{
$db = $this->factory->getDB();
}
$business_rules = new ECash_BusinessRules($db);
$settings = $business_rules->Get_Rule_Set_Component_Parm_Values($company_model->name_short, 'login_lock');
$rate = $settings['max_attempt'];
$loaded = $this->login_lock->loadBy(array('application_id' => $application_id));
if (!$loaded)
{
$this->login_lock->date_created = date('Y-m-d H:i:s');
$this->login_lock->application_id = $application_id;
$this->login_lock->counter = 0;
}
$this->login_lock->counter++;
$this->login_lock->save();
if ($this->login_lock->counter >= $rate)
{
$olp_agent = $this->factory->getModel('Agent');
$olp_agent->loadBy(array('login' => 'olp'));
$olp_agent_id = $olp_agent->agent_id;
$application->getContactFlags()->set($olp_agent_id, 'login_lock', 'application_id');
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function checkLoginLock($application_id)\n\t{\n\t\t$field_id = 8 ;//'login_lock';\n\t\t\t\n\t\t$application_fields = $this->factory->getModel('ApplicationField');\n\t\t$rows = $application_fields->loadAllBy(array(\"table_row_id\" => $application_id, \"application_field_attribute_id\" => $field_id));\n\t\tif... | [
"0.5866213",
"0.5739405",
"0.570873",
"0.5687612",
"0.55903345",
"0.5552853",
"0.5534733",
"0.5462993",
"0.54414374",
"0.53247297",
"0.53113526",
"0.52873254",
"0.51391506",
"0.5112745",
"0.50826854",
"0.50349414",
"0.5027329",
"0.50073415",
"0.49853542",
"0.49541664",
"0.494... | 0.7678127 | 0 |
getUserNickName : return user nickname | getUserNickName : возвращает никнейм пользователя | public static function getUserNickName(): string
{
return User::find(Authentication::getUserId())->nickname;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getNickName()\n {\n return $this->getUid();\n }",
"public function get_nickname() {\n\n\t\treturn isset( $this->data['nickname'] ) ? $this->data['nickname'] : '';\n\t}",
"public function getNickname()\n {\n return $this->{Foomy_Model_User_Peer::F_NICKNAME};\n }",
"public fu... | [
"0.8364561",
"0.8220601",
"0.8162631",
"0.81285167",
"0.80334467",
"0.7971727",
"0.79661673",
"0.79661673",
"0.79661673",
"0.79661673",
"0.79661673",
"0.79661673",
"0.79661673",
"0.7953252",
"0.79451084",
"0.79326755",
"0.79198366",
"0.79081756",
"0.7900562",
"0.79001725",
"0... | 0.8802905 | 0 |
signout user and remove all $_SESSION entries | разлогинить пользователя и удалить все записи $_SESSION | public static function signout()
{
unset($_SESSION['norobot']);
unset($_SESSION["userid"]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function user_sign_out(){\n\t$_SESSION = array();\n\tsession_destroy();\t\n}",
"function logOut(){\n\t\tunset($_SESSION['user']);\n\t}",
"function signout(){\n\tsession_start();\n\t$_SESSION['user_id'] = '';\n\t$_SESSION['first_name'] = '';\n\t$_SESSION['admin']='';\n\tunset($_SESSION['user_id']);\n\tunset($_S... | [
"0.8511401",
"0.8419349",
"0.8197163",
"0.81223565",
"0.8116245",
"0.8105525",
"0.80686593",
"0.8059241",
"0.80284226",
"0.7993156",
"0.798487",
"0.7971111",
"0.79499406",
"0.7930562",
"0.7925662",
"0.7923331",
"0.7923331",
"0.78951436",
"0.7887149",
"0.7885735",
"0.7881265",... | 0.8508535 | 1 |
sendAdminsitratorEmail : Send to the admin an information email for a new account creation | sendAdminsitratorEmail : Отправить администратору информационное электронное письмо по созданию нового аккаунта | public static function sendAdminsitratorEmail(string $email)
{
$mail = new PHPMailer(true);
try {
//Server settings
// $mail->SMTPDebug = SMTP::DEBUG_SERVER; // Enable verbose debug output
$mail->isSMTP(); // Send using SMTP
$mail->Host = $_ENV['SMTP_SERVER']; // Set the SMTP server to send through
if (strcmp($_ENV['SMTP_USEAUTH'], "true") == 0) {
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = $_ENV['SMTP_USERNAME']; // SMTP username
$mail->Password = $_ENV['SMTP_PASSSWORD']; // SMTP password
}
if (strcmp($_ENV['SMTP_USESSL'], "true") == 0) {
$mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; // Enable TLS encryption; `PHPMailer::ENCRYPTION_SMTPS` encouraged
}
$mail->Port = $_ENV['SMTP_PORT']; // TCP port to connect to, use 465 for `PHPMailer::ENCRYPTION_SMTPS` above
//Recipients
$mail->setFrom($_ENV['SMTP_MAILFROM'], 'Blindtest mailer daemon');
$mail->addAddress($_ENV['REGISTRATION_ADMIN_EMAIL']); // Add a recipient
$mail->addReplyTo($_ENV['SMTP_MAILFROM'], 'Blindtest mailer daemon');
// Content
$mail->isHTML(true); // Set email format to HTML
$mail->Subject = 'New account creation for Blindtest';
$mail->Body = "<p>Hello,</p>" . "\r\n" .
"<p>A new account has been created for $email." . "</p>\r\n";
$mail->AltBody = "Hello," . "\r\n" .
"A new account has been created for $email." . "\r\n";
$mail->send();
} catch (Exception $e) {
die("Message could not be sent. Mailer Error: {$mail->ErrorInfo}");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function sendEmails()\n {\n // get emails of administrators\n $adminEmails = array();\n $this->model->action('user','getUsers',\n array('result' => & $adminEmails,\n 'role' => array('=',20),\n ... | [
"0.7557865",
"0.7546118",
"0.7322523",
"0.7020387",
"0.7016858",
"0.700265",
"0.69841415",
"0.69438016",
"0.6940948",
"0.6778141",
"0.6762244",
"0.67078865",
"0.6700539",
"0.6697917",
"0.6688139",
"0.6632562",
"0.6597209",
"0.6595621",
"0.6576486",
"0.6546904",
"0.6529377",
... | 0.7831153 | 0 |
return current user name | вернуть имя текущего пользователя | public static function CurrentUserName()
{
return User::getUserName(Authentication::CurrentUserID());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function GetCurrentUserName()\n {\n global $SITE_USER;\n\n if (isset($SITE_USER))\n // for backward compatibility only\n $user = $SITE_USER;\n else\n $user = TUser::GetCurrentUser();\n\n if (!empty($user))\n return $user->getU... | [
"0.8447747",
"0.833001",
"0.8287854",
"0.8286094",
"0.81864136",
"0.8171809",
"0.8139579",
"0.8123715",
"0.8107863",
"0.8090547",
"0.80890787",
"0.8086811",
"0.8070301",
"0.8062298",
"0.80553705",
"0.8052429",
"0.80216026",
"0.79936165",
"0.79835707",
"0.7963124",
"0.7963058"... | 0.89185476 | 0 |
sendResetPasswordLink : Create a UUID for password reset with 15 min validity and send the email with reset link | sendResetPasswordLink : Создать UUID для сброса пароля с действительностью в течение 15 минут и отправить электронное письмо с ссылкой на сброс пароля | public static function sendResetPasswordLink(string $email): bool
{
$email = strtolower($email);
$user = User::where([
['email', 'like', $email]
])->first();
if (!is_null($user)) {
$v4uuid = UUID::v4();
//current timestamp +15 minutes
$timestamp = Carbon::createFromTimestamp(time() + 15 * 60);
$user->resetpasswordlink = $v4uuid;
$user->resetpasswordlinktimeout = $timestamp;
$user->save();
$mail = new PHPMailer(true);
try {
//Server settings
// $mail->SMTPDebug = SMTP::DEBUG_SERVER; // Enable verbose debug output
$mail->isSMTP(); // Send using SMTP
$mail->Host = $_ENV['SMTP_SERVER']; // Set the SMTP server to send through
if (strcmp($_ENV['SMTP_USEAUTH'], "true") == 0) {
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = $_ENV['SMTP_USERNAME']; // SMTP username
$mail->Password = $_ENV['SMTP_PASSSWORD']; // SMTP password
}
if (strcmp($_ENV['SMTP_USESSL'], "true") == 0) {
$mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; // Enable TLS encryption; `PHPMailer::ENCRYPTION_SMTPS` encouraged
}
$mail->Port = $_ENV['SMTP_PORT']; // TCP port to connect to, use 465 for `PHPMailer::ENCRYPTION_SMTPS` above
//Recipients
$mail->setFrom($_ENV['SMTP_MAILFROM'], 'Blindtest mailer daemon');
$mail->addAddress($email); // Add a recipient
$mail->addReplyTo($_ENV['SMTP_MAILFROM'], 'Blindtest mailer daemon');
// Content
$mail->isHTML(true); // Set email format to HTML
$mail->Subject = 'Password reset for Blindtest';
$mail->Body = "<p>Hello,</p>" . "\r\n" .
"<p>Please find below an URL to reset your password." . "</p>\r\n" .
"<p>This link is valid for 15 minutes." . "</p>\r\n" .
'<p><a href="' . $_ENV['PUBLIC_HOST'] . '/auth/resetpassword/' . $v4uuid . '" >Validate my email address</a>' . "</p>\r\n" .
"<br>" . "\r\n" .
"<p>Note : If you're not at the origin of this password reset, simply ignore this email</p>" . "\r\n";
$mail->AltBody = "Hello," . "\r\n" .
"Please find below an URL to reset your password." . "\r\n" .
"This link is valid for 15 minutes." . "\r\n" .
$_ENV['PUBLIC_HOST'] . "/auth/resetpassword/" . $v4uuid
. "\r\n" . "\r\n" .
"Note : If you're not at the origin of this password reset, simply ignore this email" . "\r\n";;
$mail->send();
} catch (Exception $e) {
die("Message could not be sent. Mailer Error: {$mail->ErrorInfo}");
}
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function sendResetLinkEmail()\n {\n request()->validate(['email' => 'required|email']);\n\n $user = User::where('email', request('email'))->first();\n\n if (!$user) {\n return ['error' => trans('passwords.user')];\n }\n\n $user->update([\n 'reset_t... | [
"0.7540284",
"0.7414844",
"0.730037",
"0.7293489",
"0.7269715",
"0.7263968",
"0.7263667",
"0.72308004",
"0.72262776",
"0.71998495",
"0.71242577",
"0.7121844",
"0.710017",
"0.7075733",
"0.7071662",
"0.70571595",
"0.7048359",
"0.70341873",
"0.702477",
"0.70202327",
"0.7018484",... | 0.7743636 | 0 |
Locks this object using the provided key. The object can only be unlocked by providing the same key. | Заблокирует этот объект с использованием предоставленного ключа. Объект может быть разблокирован только с использованием того же ключа. | public function lock($key); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function lockKey($key);",
"protected function lock($key)\n {\n $this->locked[] = $key;\n }",
"public function lock($key) {\n $lockKey = $this->getLockKey($key);\n $this->io->set($lockKey, 1);\n }",
"function lock($Key) {\n $this->cache_value('lock_' . $Key, 'true', 360... | [
"0.8398035",
"0.7954898",
"0.76400304",
"0.72995216",
"0.7176977",
"0.7123412",
"0.67309165",
"0.6676038",
"0.65074676",
"0.6383881",
"0.63827646",
"0.6363575",
"0.63618994",
"0.6270305",
"0.6270305",
"0.6270305",
"0.6270305",
"0.62681353",
"0.61241525",
"0.61065626",
"0.6083... | 0.8375013 | 1 |
Attempts to unlock the collector with the provided key. Key comparison is done using the identity operator (===). | Попытка разблокировать сборщик с помощью предоставленного ключа. Сравнение ключа производится с использованием оператора идентичности (===). | public function unlock($key); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract public function unlocksWithKey(Key $key): bool;",
"public static function unlock( $key )\n\t{\n\t\tif (self::$cache) {\n\t\t\treturn self::$cache->unlock( $key );\n\t\t}\n\t\treturn false;\n\t}",
"public function unlock($key) {\n\t\treturn $this->memcached->delete('lock:'.$key);\n\t}",
"public funct... | [
"0.72385216",
"0.6721788",
"0.6584058",
"0.65193576",
"0.63754916",
"0.6241304",
"0.6115957",
"0.5956629",
"0.5911679",
"0.58567625",
"0.58468115",
"0.5802508",
"0.5754505",
"0.57025766",
"0.5634674",
"0.55990195",
"0.5572452",
"0.5558441",
"0.55154556",
"0.5475177",
"0.54751... | 0.7388385 | 0 |
Pads a string to a given length with another string. If length is less than or equal to the length of $str, then no padding takes places. The default string used for padding is a space, and the default type (one of 'left', 'right', 'both') is 'right'. | Дополняет строку до заданной длины другой строкой. Если длина меньше или равна длине $str, то дополнения не происходит. По умолчанию в качестве строки заполнения используется пробел, а тип (один из 'left', 'right', 'both') по умолчанию — 'right'. | public static function pad($str, $length, $padStr = ' ', $padType = 'right',
$encoding = null) {
$encoding = $encoding ?: mb_internal_encoding();
if (!in_array($padType, array('left', 'right', 'both'))) {
throw new InvalidArgumentException('Pad expects the fourth ' .
"argument to be one of 'left', 'right' or 'both'");
}
$strLength = mb_strlen($str, $encoding);
$padStrLength = mb_strlen($padStr, $encoding);
if ($length <= $strLength || $padStrLength <= 0)
return $str;
// Number of times to repeat the padStr if left or right
$times = ceil(($length - $strLength) / $padStrLength);
$paddedStr = '';
if ($padType == 'left') {
// Repeat the pad, cut it, and prepend
$leftPad = str_repeat($padStr, $times);
$leftPad = mb_substr($leftPad, 0, $length - $strLength, $encoding);
$paddedStr = $leftPad . $str;
} elseif ($padType == 'right') {
// Append the repeated pad and get a substring of the given length
$paddedStr = $str . str_repeat($padStr, $times);
$paddedStr = mb_substr($paddedStr, 0, $length, $encoding);
} else {
// Number of times to repeat the padStr on both sides
$paddingSize = ($length - $strLength) / 2;
$times = ceil($paddingSize / $padStrLength);
// Favour right padding over left, as with str_pad()
$rightPad = str_repeat($padStr, $times);
$rightPad = mb_substr($rightPad, 0, ceil($paddingSize), $encoding);
$leftPad = str_repeat($padStr, $times);
$leftPad = mb_substr($leftPad, 0, floor($paddingSize), $encoding);
$paddedStr = $leftPad . $str . $rightPad;
}
return $paddedStr;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function _str_pad($str, $final_str_length, $pad_str = ' ', $pad_type = STR_PAD_RIGHT)\n{\n if(Unicode::is_ascii($str) and Unicode::is_ascii($pad_str))\n {\n return str_pad($str, $final_str_length, $pad_str, $pad_type);\n }\n\n $str_length = Unicode::strlen($str);\n\n if($final_str_length <= 0... | [
"0.7815194",
"0.7588689",
"0.75624627",
"0.7531419",
"0.73544717",
"0.7316049",
"0.7220198",
"0.71983045",
"0.7192597",
"0.7173224",
"0.7057346",
"0.69692045",
"0.6897919",
"0.66775924",
"0.6669223",
"0.66682965",
"0.66059166",
"0.6583742",
"0.6568758",
"0.65513164",
"0.65304... | 0.7673377 | 1 |
Returns a new string of a given length such that the beginning of the string is padded. Alias for pad($str, $length, $padStr, 'left', $encoding) | Возвращает новый строку заданной длины, так что начало строки заполняется. Алиас для pad($str, $length, $padStr, 'left', $encoding) | public static function padLeft($str, $length, $padStr = ' ', $encoding = null) {
return self::pad($str, $length, $padStr, 'left', $encoding);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function padStart($string, $length = 0, $padStr = ' ')\n {\n return str_pad($string, $length, $padStr, STR_PAD_LEFT);\n }",
"public static function padLeft($s, int $length, string $pad = ' '): string\n\t{\n\t\t$s = (string) $s;\n\t\t$length = max(0, $length - self::strLength($s));\n\t\... | [
"0.815958",
"0.80475897",
"0.7918722",
"0.78402317",
"0.7523954",
"0.7450244",
"0.71637285",
"0.7133385",
"0.7131126",
"0.71059763",
"0.7058166",
"0.70455825",
"0.69306904",
"0.6910259",
"0.6904102",
"0.69022524",
"0.68968594",
"0.6890957",
"0.68871844",
"0.68491",
"0.6843297... | 0.86786276 | 0 |
Returns a new string of a given length such that the end of the string is padded. Alias for pad($str, $length, $padStr, 'right', $encoding) | Возвращает новый строку заданной длины, так что конец строки заполняется. Алиас для pad($str, $length, $padStr, 'right', $encoding) | public static function padRight($str, $length, $padStr = ' ', $encoding = null) {
return self::pad($str, $length, $padStr, 'right', $encoding);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function padEnd($string, $length = 0, $padStr = ' ')\n {\n return str_pad($string, $length, $padStr, STR_PAD_RIGHT);\n }",
"public static function pad($str, $length, $padStr = ' ', $padType = 'right',\n $encoding = null) {\n $encoding = $encoding ?:... | [
"0.8152257",
"0.81412715",
"0.8068944",
"0.7998606",
"0.7959613",
"0.7790267",
"0.7740737",
"0.7709207",
"0.7655165",
"0.763456",
"0.7478849",
"0.73773795",
"0.73534817",
"0.732302",
"0.72941774",
"0.72439086",
"0.723216",
"0.71368474",
"0.7094544",
"0.7077499",
"0.7070061",
... | 0.855999 | 0 |
Returns a new string of a given length such that both sides of the string string are padded. Alias for pad($str, $length, $padStr, 'both', $encoding) | Возвращает новый строку заданной длины, так что обе стороны строки string заполняются. Алиас для pad($str, $length, $padStr, 'both', $encoding) | public static function padBoth($str, $length, $padStr = ' ', $encoding = null) {
return self::pad($str, $length, $padStr, 'both', $encoding);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function pad($string, $length = 0, $padStr = ' ')\n {\n return str_pad($string, $length, $padStr, STR_PAD_BOTH);\n }",
"public static function pad($str, $length, $padStr = ' ', $padType = 'right',\n $encoding = null) {\n $encoding = $encoding ?: mb_... | [
"0.82240915",
"0.82021546",
"0.7939213",
"0.7918961",
"0.7574173",
"0.75696546",
"0.7556162",
"0.7524386",
"0.7480106",
"0.7445853",
"0.7442283",
"0.74379313",
"0.7404411",
"0.73731786",
"0.73688877",
"0.73650515",
"0.7362734",
"0.72763485",
"0.725128",
"0.7242381",
"0.714709... | 0.86937034 | 0 |
Returns true if the string $str ends with $substring, false otherwise. By default, the comparison is casesensitive, but can be made insensitive by setting $caseSensitive to false. | Возвращает true, если строка $str заканчивается на $substring, и false в противном случае. По умолчанию сравнение чувствительно к регистру, но можно сделать его нечувствительным, установив $caseSensitive в false. | public static function endsWith($str, $substring, $caseSensitive = true,
$encoding = null) {
$encoding = $encoding ?: mb_internal_encoding();
$substringLength = mb_strlen($substring, $encoding);
$strLength = mb_strlen($str, $encoding);
$endOfStr = mb_substr($str, $strLength - $substringLength,
$substringLength, $encoding);
if (!$caseSensitive) {
$substring = mb_strtolower($substring, $encoding);
$endOfStr = mb_strtolower($endOfStr, $encoding);
}
return $substring === $endOfStr;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function endsWith($substring, $caseSensitive = true)\n {\n $substringLength = mb_strlen($substring, $this->encoding);\n $strLength = $this->length();\n\n $endOfStr = mb_substr($this->str, $strLength - $substringLength,\n $substringLength, $this->encoding);\n\n if (!... | [
"0.830508",
"0.82784754",
"0.7988899",
"0.7629886",
"0.7530768",
"0.7261843",
"0.72603595",
"0.7257167",
"0.72559184",
"0.72484016",
"0.719612",
"0.71692127",
"0.7163501",
"0.71370494",
"0.7053888",
"0.70214045",
"0.70092046",
"0.6906134",
"0.6868683",
"0.68281364",
"0.682431... | 0.8430294 | 0 |
Converts each tab in a string to some number of spaces, as defined by $tabLength. By default, each tab is converted to 4 consecutive spaces. | Преобразует каждый таб в строке в некоторое количество пробелов, определяемое $tabLength. По умолчанию каждый таб преобразуется в 4 последовательных пробела. | public static function toSpaces($str, $tabLength = 4) {
$spaces = str_repeat(' ', $tabLength);
return str_replace("\t", $spaces, $str);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function toSpaces($tabLength = 4)\n {\n return $this->newSelf\n (\n UTF8::str_replace\n (\n \"\\t\",\n UTF8::str_repeat(' ', $tabLength),\n $this->scalarString\n )\n );\n }",
"public function toSpaces(... | [
"0.77772117",
"0.7638425",
"0.7425997",
"0.731023",
"0.6969291",
"0.6882442",
"0.6428398",
"0.6283149",
"0.6241652",
"0.6014609",
"0.5995382",
"0.5816061",
"0.5723572",
"0.56651235",
"0.56485784",
"0.55783415",
"0.5518583",
"0.5412814",
"0.53465533",
"0.5310194",
"0.52817714"... | 0.7826104 | 0 |
Surrounds a string with the given substring. | Окружает строку заданным подстрокой. | public static function surround($str, $substring) {
return implode('', array($substring, $str, $substring));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function surround($substring)\n {\n $str = implode('', array($substring, $this->str, $substring));\n\n return static::create($str, $this->encoding);\n }",
"function utf8_substr_replace($string, $replacement, $start, $length = 0)\n {\n $ret = '';\n if ($start > 0)\n ... | [
"0.7087388",
"0.6153878",
"0.61016583",
"0.5854562",
"0.58337754",
"0.5829651",
"0.5829651",
"0.5829651",
"0.58045906",
"0.57741404",
"0.5755056",
"0.566231",
"0.56399685",
"0.5476366",
"0.5417529",
"0.537258",
"0.53613245",
"0.5354706",
"0.5345386",
"0.53438056",
"0.5337483"... | 0.7919497 | 0 |
Inserts $substring into $str at the $index provided. | Вставляет $substring в $str на позиции $index. | public static function insert($str, $substring, $index, $encoding = null) {
$encoding = $encoding ?: mb_internal_encoding();
if ($index > mb_strlen($str, $encoding))
return $str;
$start = mb_substr($str, 0, $index, $encoding);
$end = mb_substr($str, $index, mb_strlen($str, $encoding), $encoding);
return $start . $substring . $end;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function insert($substring, $index)\n {\n $stringy = static::create($this->str, $this->encoding);\n if ($index > $stringy->length()) {\n return $stringy;\n }\n\n $start = mb_substr($stringy->str, 0, $index, $stringy->encoding);\n $end = mb_substr($stringy->st... | [
"0.8356925",
"0.7071323",
"0.6721981",
"0.6681043",
"0.6539327",
"0.6497638",
"0.6349469",
"0.63334835",
"0.6204705",
"0.6152164",
"0.61364967",
"0.61113966",
"0.59516156",
"0.5908027",
"0.58643603",
"0.5822336",
"0.5591978",
"0.55495864",
"0.544056",
"0.54311",
"0.5341146",
... | 0.8330285 | 1 |
TODO: Implement Discount() method. | TODO: Реализовать метод Discount(). | public function Discount()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract public function discounts();",
"protected function calculate_discounts()\n {\n }",
"public function getDiscount();",
"public function getDiscount();",
"public function getDiscount();",
"public function getDiscount()\n {\n }",
"public function discount(){\n return $th... | [
"0.7899227",
"0.7684584",
"0.73636353",
"0.73636353",
"0.73636353",
"0.73250574",
"0.7240581",
"0.72076166",
"0.7131383",
"0.7131383",
"0.7058492",
"0.70041907",
"0.6970868",
"0.69196653",
"0.6874878",
"0.68359894",
"0.68103033",
"0.67722154",
"0.67722154",
"0.67722154",
"0.6... | 0.8241107 | 0 |
TODO: Implement Discount() method. | TODO: Реализовать метод Discount(). | public function Discount()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract public function discounts();",
"protected function calculate_discounts()\n {\n }",
"public function getDiscount();",
"public function getDiscount();",
"public function getDiscount();",
"public function getDiscount()\n {\n }",
"public function discount(){\n return $th... | [
"0.7899227",
"0.7684584",
"0.73636353",
"0.73636353",
"0.73636353",
"0.73250574",
"0.7240581",
"0.72076166",
"0.7131383",
"0.7131383",
"0.7058492",
"0.70041907",
"0.6970868",
"0.69196653",
"0.6874878",
"0.68359894",
"0.68103033",
"0.67722154",
"0.67722154",
"0.67722154",
"0.6... | 0.8241107 | 1 |
Tests Phalcon\Assets\Filters\Jsmin :: filter() | Тесты Phalcon\Assets\Filters\Jsmin :: filter() | public function assetsFiltersJsminFilter(UnitTester $I)
{
$I->wantToTest('Assets\Filters\Jsmin - filter()');
$I->skipTest('Need Phalcon implementation');
$jsmin = new Jsmin();
$actual = $jsmin->filter('{}}');
$I->assertEquals(
"\n" . '{}}',
$actual
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function assetsFiltersJsminFilterEmpty(UnitTester $I)\n {\n $I->wantToTest('Assets\\Filters\\Jsmin - filter() - empty');\n\n $I->skipTest('Need Phalcon implementation');\n\n $jsmin = new Jsmin();\n\n $I->assertIsEmpty(\n $jsmin->filter('')\n );\n }",
"pu... | [
"0.72109973",
"0.7187771",
"0.7026181",
"0.6986969",
"0.65791684",
"0.6499963",
"0.6441841",
"0.64266086",
"0.63932157",
"0.63058984",
"0.6282437",
"0.62725234",
"0.6266899",
"0.6229356",
"0.6164945",
"0.6107088",
"0.60713786",
"0.60541826",
"0.6020263",
"0.5953483",
"0.59360... | 0.7808333 | 0 |
Tests Phalcon\Assets\Filters\Jsmin :: filter() spaces | Тесты Phalcon\Assets\Filters\Jsmin :: filter() пробелов | public function assetsFiltersJsminFilterSpaces(UnitTester $I)
{
$I->wantToTest('Assets\Filters\Jsmin - filter() - spaces');
$I->skipTest('Need Phalcon implementation');
$jsmin = new Jsmin();
$actual = $jsmin->filter(
'if ( a == b ) { document . writeln("hello") ; }'
);
$I->assertEquals(
"\n" . 'if(a==b){document.writeln("hello");}',
$actual
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function assetsFiltersJsminFilter(UnitTester $I)\n {\n $I->wantToTest('Assets\\Filters\\Jsmin - filter()');\n\n $I->skipTest('Need Phalcon implementation');\n\n $jsmin = new Jsmin();\n\n $actual = $jsmin->filter('{}}');\n\n $I->assertEquals(\n \"\\n\" . '{}}'... | [
"0.6804732",
"0.65502536",
"0.65337485",
"0.6378568",
"0.628673",
"0.61391556",
"0.6027081",
"0.60150486",
"0.587814",
"0.5864158",
"0.5856852",
"0.5791838",
"0.5780579",
"0.5708625",
"0.5707746",
"0.5706118",
"0.5688838",
"0.5679266",
"0.56765056",
"0.5655444",
"0.56406593",... | 0.83130956 | 0 |
Tests Phalcon\Assets\Filters\Jsmin :: filter() tabs | Тесты Phalcon\Assets\Filters\Jsmin :: filter() вкладок | public function assetsFiltersJsminFilterTabs(UnitTester $I)
{
$I->wantToTest('Assets\Filters\Jsmin - filter() - tabs');
$I->skipTest('Need Phalcon implementation');
$jsmin = new Jsmin();
$actual = $jsmin->filter(
"\n" . "if ( a == b ) { document . writeln('\t') ; }"
);
$I->assertEquals(
"\n" . "if(a==b){document.writeln('\t');}",
$actual
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function assetsFiltersJsminFilterTabsComment(UnitTester $I)\n {\n $I->wantToTest('Assets\\Filters\\Jsmin - filter() - tabs comment');\n\n $I->skipTest('Need Phalcon implementation');\n\n $jsmin = new Jsmin();\n\n $actual = $jsmin->filter(\n \"/** this is a comment *... | [
"0.70840365",
"0.6618463",
"0.6575623",
"0.6345057",
"0.62372077",
"0.6130491",
"0.59630924",
"0.5941107",
"0.5904445",
"0.5872205",
"0.5857564",
"0.58514863",
"0.57932603",
"0.5770417",
"0.5751963",
"0.5680263",
"0.5676364",
"0.56520945",
"0.5584399",
"0.5581894",
"0.5553898... | 0.83355975 | 0 |
Tests Phalcon\Assets\Filters\Jsmin :: filter() tabs comment | Тесты Phalcon\Assets\Filters\Jsmin :: filter() вкладка комментарий | public function assetsFiltersJsminFilterTabsComment(UnitTester $I)
{
$I->wantToTest('Assets\Filters\Jsmin - filter() - tabs comment');
$I->skipTest('Need Phalcon implementation');
$jsmin = new Jsmin();
$actual = $jsmin->filter(
"/** this is a comment */ if ( a == b ) { document . writeln('\t') ; /** this is a comment */ }"
);
$I->assertEquals(
"\nif(a==b){document.writeln('\t');}",
$actual
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function assetsFiltersJsminFilterTabs(UnitTester $I)\n {\n $I->wantToTest('Assets\\Filters\\Jsmin - filter() - tabs');\n\n $I->skipTest('Need Phalcon implementation');\n\n $jsmin = new Jsmin();\n\n $actual = $jsmin->filter(\n \"\\n\" . \"if ( a == b ) { document ... | [
"0.79575676",
"0.75264025",
"0.6741027",
"0.65777415",
"0.59030944",
"0.58308375",
"0.5778662",
"0.5742753",
"0.55765784",
"0.54261905",
"0.5367969",
"0.5352208",
"0.5323164",
"0.5315508",
"0.52935594",
"0.5254723",
"0.5250677",
"0.52280074",
"0.52197814",
"0.5215844",
"0.521... | 0.8295152 | 0 |
Tests Phalcon\Assets\Filters\Jsmin :: filter() tabs newlines | Тесты Phalcon\Assets\Filters\Jsmin :: filter() табуляции и переносы строк | public function assetsFiltersJsminFilterTabsCommentNewlines(UnitTester $I)
{
$I->wantToTest('Assets\Filters\Jsmin - filter() - tabs newlines');
$I->skipTest('Need Phalcon implementation');
$jsmin = new Jsmin();
$expected = "\n" . 'a=100;';
$actual = $jsmin->filter("\t\ta\t\r\n= \n \r\n100;\t");
$I->assertEquals($expected, $actual);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function assetsFiltersJsminFilterTabs(UnitTester $I)\n {\n $I->wantToTest('Assets\\Filters\\Jsmin - filter() - tabs');\n\n $I->skipTest('Need Phalcon implementation');\n\n $jsmin = new Jsmin();\n\n $actual = $jsmin->filter(\n \"\\n\" . \"if ( a == b ) { document ... | [
"0.74327177",
"0.7326299",
"0.7054116",
"0.60781616",
"0.5949698",
"0.585998",
"0.5847779",
"0.5744903",
"0.5610492",
"0.5591334",
"0.5550279",
"0.5465739",
"0.54464686",
"0.5389839",
"0.53596574",
"0.53576094",
"0.533464",
"0.53345245",
"0.53336084",
"0.5284694",
"0.52559805... | 0.82815295 | 0 |
Tests Phalcon\Assets\Filters\Jsmin :: filter() empty | Тесты Phalcon\Assets\Filters\Jsmin :: filter() пустой | public function assetsFiltersJsminFilterEmpty(UnitTester $I)
{
$I->wantToTest('Assets\Filters\Jsmin - filter() - empty');
$I->skipTest('Need Phalcon implementation');
$jsmin = new Jsmin();
$I->assertIsEmpty(
$jsmin->filter('')
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function assetsFiltersJsminFilter(UnitTester $I)\n {\n $I->wantToTest('Assets\\Filters\\Jsmin - filter()');\n\n $I->skipTest('Need Phalcon implementation');\n\n $jsmin = new Jsmin();\n\n $actual = $jsmin->filter('{}}');\n\n $I->assertEquals(\n \"\\n\" . '{}}'... | [
"0.7090656",
"0.67407024",
"0.6722961",
"0.63161993",
"0.6281274",
"0.6234954",
"0.6229798",
"0.62014043",
"0.61767507",
"0.59970194",
"0.5989523",
"0.5987236",
"0.5932329",
"0.5904109",
"0.58550125",
"0.5833482",
"0.57782024",
"0.57665884",
"0.5722839",
"0.57037663",
"0.5685... | 0.8139929 | 0 |
Tests Phalcon\Assets\Filters\Jsmin :: filter() comment | Тесты комментария Phalcon\Assets\Filters\Jsmin :: filter() | public function assetsFiltersJsminFilterComment(UnitTester $I)
{
$I->wantToTest('Assets\Filters\Jsmin - filter() - comment');
$I->skipTest('Need Phalcon implementation');
$jsmin = new Jsmin();
$I->assertIsEmpty(
$jsmin->filter('/** this is a comment */')
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function assetsFiltersJsminFilter(UnitTester $I)\n {\n $I->wantToTest('Assets\\Filters\\Jsmin - filter()');\n\n $I->skipTest('Need Phalcon implementation');\n\n $jsmin = new Jsmin();\n\n $actual = $jsmin->filter('{}}');\n\n $I->assertEquals(\n \"\\n\" . '{}}'... | [
"0.75473887",
"0.7233942",
"0.6880488",
"0.6743029",
"0.6708593",
"0.6651955",
"0.66145635",
"0.63271576",
"0.63113356",
"0.62115234",
"0.61979526",
"0.6124519",
"0.6121975",
"0.61153555",
"0.6103941",
"0.6049255",
"0.60335475",
"0.60289764",
"0.6004013",
"0.5997365",
"0.5981... | 0.7567444 | 0 |
Handler of add_filter( 'planmyday_filter_importer_options','planmyday_instagram_feed_importer_set_options' ); | Обработчик add_filter( 'planmyday_filter_importer_options','planmyday_instagram_feed_importer_set_options' ); | function planmyday_instagram_feed_importer_set_options($options=array()) {
if ( in_array('instagram_feed', planmyday_storage_get('required_plugins')) && planmyday_exists_instagram_feed() ) {
// Add slugs to export options for this plugin
$options['additional_options'][] = 'sb_instagram_settings';
}
return $options;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function add_filters()\n {\n }",
"function register_filters() {\n\t\t\t// ie. add_filter($this->slug.\"/get_feeds\", array($this,\"import_user_feed\"), 1,2);\n\t\t\tadd_filter($this->slug.\"/get_feeds\", array($this,\"get_feeds\"), 1,2);\n\t\t}",
"function register_filters() {\n\t\t\t// ie. add_filter($t... | [
"0.60613894",
"0.60175943",
"0.60175943",
"0.59788257",
"0.59247166",
"0.59020466",
"0.58583224",
"0.5846452",
"0.5830528",
"0.58166414",
"0.57896",
"0.57869405",
"0.57213956",
"0.5718541",
"0.56728554",
"0.5649316",
"0.5642927",
"0.56203365",
"0.5619225",
"0.5618391",
"0.561... | 0.73263705 | 0 |
'Article' is an article management module for ImpressCMS File: /include/comment.inc.php File holding functions used by the module to hook with the comment system of ImpressCMS | 'Article' — это модуль управления статьями для ImpressCMS Файл: /include/comment.inc.php Файл, содержащий функции, используемые модулем для интеграции с системой комментариев ImpressCMS | function article_com_update($item_id, $total_num) {
$article_article_handler = icms_getModuleHandler("article", basename(dirname(dirname(__FILE__))), "article");
$article_article_handler->updateComments($item_id, $total_num);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function traitement_comments_article(){\n\n$listecommentaires = CommentsArticle($_GET['id']); \n\n$articles = displayArticleById($_GET['id']); \n\n$titre = format_url($articles['titre']);\n$nom_categ = format_url($articles['nom_categ']);\n\nif(!empty($_POST)){\n\n$idarticle = $_GET['id'];\n$usercomment = htmlspeci... | [
"0.68186426",
"0.6811843",
"0.6803026",
"0.67927206",
"0.67782736",
"0.6739212",
"0.66836524",
"0.6678244",
"0.6591876",
"0.65446997",
"0.65274155",
"0.65076417",
"0.64910525",
"0.6467614",
"0.6425262",
"0.64199215",
"0.641104",
"0.641104",
"0.64015627",
"0.6398497",
"0.63938... | 0.7235219 | 0 |
Delete a custom resource. | Удалить пользовательский ресурс. | public function delete(string $resource)
{
$name = Normalizer::className($resource);
$path = PATH_CUSTOM_RESOURCES . "{$name}.php";
if (!file_exists($path)) {
self::error("Resource not found!", true);
}
if (!unlink($path)) {
self::error("Failed to delete resource!");
return;
}
self::success("Resource deleted!");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function del($resource)\n {\n }",
"public function deleteResource($resourceId);",
"public function deleted(Resource $resource)\n {\n //\n }",
"function delete($resource, $data='') {\n\t\t\t$this->_auth();\n\t\t\treturn $this->_request('DELETE', $this->_resourcefix($resource), $data... | [
"0.78604066",
"0.77395946",
"0.7654218",
"0.74862534",
"0.7436115",
"0.7071202",
"0.7041381",
"0.7013526",
"0.67644376",
"0.67335725",
"0.6708297",
"0.6685639",
"0.6680197",
"0.66462606",
"0.6645386",
"0.6645386",
"0.6645386",
"0.6645386",
"0.6645386",
"0.6645386",
"0.6645386... | 0.7775237 | 1 |
Get the value of presentacion | Получить значение presentacion | public function getPresentacion()
{
return $this->presentacion;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPresentaciones()\r\n {\r\n return $this->presentaciones;\r\n }",
"public function getPresenca()\n {\n return $this->presenca;\n }",
"function getContingencia(){\r\n return $this->contingencia;\r\n }",
"public function getOcupacion(){\n return ... | [
"0.69392395",
"0.6674499",
"0.64596367",
"0.6376526",
"0.63757366",
"0.61351603",
"0.61319774",
"0.6121816",
"0.6113534",
"0.61080545",
"0.61080545",
"0.61080545",
"0.61080545",
"0.61080545",
"0.61080545",
"0.60928476",
"0.60722834",
"0.60714316",
"0.6061134",
"0.6061134",
"0... | 0.83454925 | 0 |
Get the value of reposicion | Получить значение reposicion | public function getReposicion()
{
return $this->reposicion;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract public function getRepoInfo();",
"public function getProduto()\n {\n return $this->produto;\n }",
"public function getProduto()\n {\n return $this->produto;\n }",
"public function getDispositivo( ) {\n\n return $this->dispositivo;\n\n }",
"public function getOpcion... | [
"0.62021834",
"0.6112956",
"0.6112956",
"0.6035185",
"0.59843343",
"0.5970053",
"0.5902831",
"0.58962625",
"0.5877377",
"0.58570343",
"0.58570343",
"0.58570343",
"0.58570343",
"0.58570343",
"0.58193475",
"0.58193475",
"0.5781724",
"0.5778694",
"0.576393",
"0.57513714",
"0.572... | 0.7508201 | 0 |
Get the value of precio_compra | Получить значение precio_compra | public function getPrecio_compra()
{
return $this->precio_compra;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPrecio_compra_total()\n {\n return $this->precio_compra_total;\n }",
"public function getprecio()\r\n {\r\n return $this->precio;\r\n }",
"public function getPrecio(){\n\n return $this->precio ;\n }",
"function getPrecio() {\n return $this->precio... | [
"0.74874175",
"0.7092159",
"0.7065224",
"0.7047745",
"0.70286065",
"0.70286065",
"0.70286065",
"0.70286065",
"0.68198186",
"0.6663336",
"0.6564277",
"0.6541938",
"0.6390556",
"0.62910986",
"0.62819445",
"0.62772113",
"0.6199085",
"0.61603427",
"0.6159055",
"0.61314857",
"0.60... | 0.8460351 | 0 |
Set the value of precio_compra | Задайте значение precio_compra | public function setPrecio_compra($precio_compra)
{
$this->precio_compra = $precio_compra;
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setPrecioCompraAttribute($input)\n {\n $this->attributes['precio_compra'] = $input ? $input : null;\n }",
"function setPrecio($precio) {\n $this->precio = $precio;\n }",
"public function getPrecio_compra()\n {\n return $this->precio_compra;\n }",
"public fu... | [
"0.71076846",
"0.70677704",
"0.67330074",
"0.6459018",
"0.6191557",
"0.6095861",
"0.6041207",
"0.5968187",
"0.594055",
"0.59145397",
"0.5905806",
"0.5862397",
"0.5862397",
"0.5856345",
"0.58331513",
"0.57981473",
"0.5779106",
"0.574451",
"0.57389694",
"0.5730813",
"0.56362194... | 0.7168897 | 0 |
Get the value of costos_directos | Получить значение costos_directos | public function getCostos_directos()
{
return $this->costos_directos;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function costoPesos()\n {\n $costodsmv = ($this->costodsmv) ? $this->costodsmv : 0;\n return salario::smv(Config::get('sicare.entidad.zona')) * $costodsmv;\n }",
"public function setCostos_directos($costos_directos)\n {\n $this->costos_directos = $costos_directos;\n re... | [
"0.663532",
"0.6434315",
"0.6160861",
"0.6088532",
"0.6044798",
"0.6023532",
"0.5953583",
"0.5924748",
"0.584449",
"0.58340704",
"0.5786064",
"0.57763076",
"0.5725359",
"0.55761355",
"0.5572158",
"0.5548249",
"0.55115604",
"0.5462483",
"0.53935677",
"0.5391375",
"0.53806233",... | 0.7981647 | 0 |
Set the value of costos_directos | Задайте значение costos_directos | public function setCostos_directos($costos_directos)
{
$this->costos_directos = $costos_directos;
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getCostos_directos()\n {\n return $this->costos_directos;\n }",
"public function setGastos_directos($gastos_directos)\n {\n $this->gastos_directos = $gastos_directos;\n return $this;\n }",
"function set_prom_directa($parametros)\n\t{\n\t\t$sql = \"UPDATE ufce_ma... | [
"0.6358629",
"0.5682535",
"0.55229515",
"0.5507696",
"0.5465557",
"0.528152",
"0.52647954",
"0.5250661",
"0.52271765",
"0.5184947",
"0.5157178",
"0.51322603",
"0.5127817",
"0.5100758",
"0.50832975",
"0.50716794",
"0.5060725",
"0.5045746",
"0.5033273",
"0.5008549",
"0.49954566... | 0.7254307 | 0 |
Get the value of gastos_directos | Получить значение gastos_directos | public function getGastos_directos()
{
return $this->gastos_directos;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getCostos_directos()\n {\n return $this->costos_directos;\n }",
"public function setGastos_directos($gastos_directos)\n {\n $this->gastos_directos = $gastos_directos;\n return $this;\n }",
"public function getDirect() {}",
"public function getCargoDirectivo( ... | [
"0.6740339",
"0.6242315",
"0.5668753",
"0.53777856",
"0.5290741",
"0.52600724",
"0.5216703",
"0.5111957",
"0.50900483",
"0.5074124",
"0.50595886",
"0.5055695",
"0.50302297",
"0.50220525",
"0.50113046",
"0.4913424",
"0.4899894",
"0.4864762",
"0.48143294",
"0.4808551",
"0.47948... | 0.79380673 | 0 |
Set the value of gastos_directos | Установите значение gastos_directos | public function setGastos_directos($gastos_directos)
{
$this->gastos_directos = $gastos_directos;
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getGastos_directos()\n {\n return $this->gastos_directos;\n }",
"public function setCostos_directos($costos_directos)\n {\n $this->costos_directos = $costos_directos;\n return $this;\n }",
"public function setOS($os)\n {\n $this->_os = $os;\n }",
... | [
"0.6436655",
"0.5979242",
"0.5666775",
"0.5555449",
"0.523539",
"0.5235183",
"0.5202133",
"0.51292706",
"0.5043861",
"0.5034746",
"0.5030353",
"0.499339",
"0.4991412",
"0.4964329",
"0.4952632",
"0.49099076",
"0.48934737",
"0.48460773",
"0.4840609",
"0.48344553",
"0.4817924",
... | 0.7180049 | 0 |
Get the value of precio_compra_total | Получить значение precio_compra_total | public function getPrecio_compra_total()
{
return $this->precio_compra_total;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPrecio_compra()\n {\n return $this->precio_compra;\n }",
"public function getValorTotal() \n {\n $total = 0;\n foreach ($this->contratoParcelas as $parcela) {\n // seta o valor total\n $totalTemp = $parcela->valor;\n \n ... | [
"0.7862606",
"0.729418",
"0.7139195",
"0.7057421",
"0.6968409",
"0.6961219",
"0.69229144",
"0.69229144",
"0.69229144",
"0.69229144",
"0.6842448",
"0.67989564",
"0.6790085",
"0.6783927",
"0.677748",
"0.6769371",
"0.6739749",
"0.67189485",
"0.66412336",
"0.66254294",
"0.6617706... | 0.88285553 | 0 |
Set the value of precio_compra_total | Установите значение precio_compra_total | public function setPrecio_compra_total($precio_compra_total)
{
$this->precio_compra_total = $precio_compra_total;
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPrecio_compra_total()\n {\n return $this->precio_compra_total;\n }",
"public function set_compra($total,$alumno)\r\n\t\t{\r\n\t\t\t$sql=\"INSERT INTO compras (precio_total,fechas,alumnos) VALUES(\".$total.\",'NOW()',\".$alumno.\")\";\r\n\t\t\t$this->query($sql);\r\n\t\t\t$res=$thi... | [
"0.7338648",
"0.6716436",
"0.6498841",
"0.6330458",
"0.6321808",
"0.6311706",
"0.62297994",
"0.6228807",
"0.6211809",
"0.60709405",
"0.5925587",
"0.5855895",
"0.5847167",
"0.58322966",
"0.5779344",
"0.5775832",
"0.57210666",
"0.5694934",
"0.56891036",
"0.5682193",
"0.56734806... | 0.7443995 | 0 |
Get the value of contribucion_marginal_valor | Получить значение contribucion_marginal_valor | public function getContribucion_marginal_valor()
{
return $this->contribucion_marginal_valor;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setContribucion_marginal_valor($contribucion_marginal_valor)\n {\n $this->contribucion_marginal_valor = $contribucion_marginal_valor;\n return $this;\n }",
"public function getContribucion_marginal_porcentual()\n {\n return $this->contribucion_marginal_porcentual;\n ... | [
"0.7450692",
"0.7151404",
"0.615303",
"0.609222",
"0.59885466",
"0.5986863",
"0.59554964",
"0.59554964",
"0.59554964",
"0.59554964",
"0.59554964",
"0.5922829",
"0.58825654",
"0.5726437",
"0.570927",
"0.5672429",
"0.5672429",
"0.565635",
"0.5636362",
"0.56202585",
"0.56153417"... | 0.89588314 | 0 |
Set the value of contribucion_marginal_valor | Задайте значение contribucion_marginal_valor | public function setContribucion_marginal_valor($contribucion_marginal_valor)
{
$this->contribucion_marginal_valor = $contribucion_marginal_valor;
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getContribucion_marginal_valor()\n {\n return $this->contribucion_marginal_valor;\n }",
"public function getContribucion_marginal_porcentual()\n {\n return $this->contribucion_marginal_porcentual;\n }",
"public function setImgPerfil($valor){\n\t\t\t$this->imgPerfil = $... | [
"0.76833326",
"0.61073935",
"0.587649",
"0.5829812",
"0.5752807",
"0.5751371",
"0.5707299",
"0.5556157",
"0.5491462",
"0.54294026",
"0.53912014",
"0.5383616",
"0.53782374",
"0.5324719",
"0.5306341",
"0.5302553",
"0.53013355",
"0.52882856",
"0.52854925",
"0.52344877",
"0.52164... | 0.79560757 | 0 |
Get the value of contribucion_marginal_porcentual | Получить значение contribucion_marginal_porcentual | public function getContribucion_marginal_porcentual()
{
return $this->contribucion_marginal_porcentual;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getContribucion_marginal_valor()\n {\n return $this->contribucion_marginal_valor;\n }",
"public function setContribucion_marginal_porcentual($contribucion_marginal_porcentual)\n {\n $this->contribucion_marginal_porcentual = $contribucion_marginal_porcentual;\n return... | [
"0.77808994",
"0.6951899",
"0.61885",
"0.61074597",
"0.5829886",
"0.5808411",
"0.56889653",
"0.5688253",
"0.56474066",
"0.5624315",
"0.5624315",
"0.55873877",
"0.55752975",
"0.55752975",
"0.5550924",
"0.5526955",
"0.55081904",
"0.5456393",
"0.54485923",
"0.54185396",
"0.54148... | 0.8625907 | 0 |
Set the value of contribucion_marginal_porcentual | Задайте значение contribucion_marginal_porcentual | public function setContribucion_marginal_porcentual($contribucion_marginal_porcentual)
{
$this->contribucion_marginal_porcentual = $contribucion_marginal_porcentual;
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getContribucion_marginal_porcentual()\n {\n return $this->contribucion_marginal_porcentual;\n }",
"public function setContribucion_marginal_valor($contribucion_marginal_valor)\n {\n $this->contribucion_marginal_valor = $contribucion_marginal_valor;\n return $this;\n ... | [
"0.7564937",
"0.64223516",
"0.63397056",
"0.49938643",
"0.49908242",
"0.4955069",
"0.49097764",
"0.48944402",
"0.48253825",
"0.47560734",
"0.47448274",
"0.47038928",
"0.4648718",
"0.46275312",
"0.45742896",
"0.45560095",
"0.44921228",
"0.44786152",
"0.44580913",
"0.44462836",
... | 0.7617688 | 0 |
Get the value of precio_venta | Получить значение precio_venta | public function getPrecio_venta()
{
return $this->precio_venta;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPrecio_venta_dto()\n {\n return $this->precio_venta_dto;\n }",
"function getPrecio() {\n return $this->precio;\n }",
"public function obtener_precio(){\n\t\t$datosController = $_GET[\"id\"];\n\t\t$respuesta = HabitacionesModel::editar_habitacion($datosController, \"pra... | [
"0.729701",
"0.6754875",
"0.67311776",
"0.66854584",
"0.6677664",
"0.6636726",
"0.6613844",
"0.66039526",
"0.6551391",
"0.6551391",
"0.6551391",
"0.6551391",
"0.64146423",
"0.63332367",
"0.62192744",
"0.6145585",
"0.6143941",
"0.6143311",
"0.6143311",
"0.6107783",
"0.6048736"... | 0.83135885 | 0 |
Set the value of precio_venta | Задайте значение precio_venta | public function setPrecio_venta($precio_venta)
{
$this->precio_venta = $precio_venta;
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function setPrecio($precio) {\n $this->precio = $precio;\n }",
"public function getPrecio_venta()\n {\n return $this->precio_venta;\n }",
"public function setPrecio($value){\n\t\tif($this->validateMoney($value)){\n\t\t\t$this->precio = $value;\n\t\t\treturn true;\n\t\t}else{\n\t\t\tretur... | [
"0.72043043",
"0.66600543",
"0.62142336",
"0.6193432",
"0.61481136",
"0.61080164",
"0.5973208",
"0.59352076",
"0.5870347",
"0.5779204",
"0.5765509",
"0.5762735",
"0.5739963",
"0.57232153",
"0.5722016",
"0.56890607",
"0.5658276",
"0.5642662",
"0.56414056",
"0.56409407",
"0.563... | 0.738603 | 0 |
Get the value of precio_venta_dto | Получить значение precio_venta_dto | public function getPrecio_venta_dto()
{
return $this->precio_venta_dto;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPrecio_venta()\n {\n return $this->precio_venta;\n }",
"public function setPrecio_venta_dto($precio_venta_dto)\n {\n $this->precio_venta_dto = $precio_venta_dto;\n return $this;\n }",
"public function getPrecio_final_iva_dto()\n {\n return $this->pr... | [
"0.7543023",
"0.6903539",
"0.6582616",
"0.6494891",
"0.610076",
"0.60968745",
"0.60739625",
"0.6026402",
"0.60043424",
"0.59735423",
"0.59345275",
"0.5875548",
"0.58628976",
"0.5854361",
"0.58256346",
"0.5821796",
"0.5821796",
"0.5821796",
"0.5821796",
"0.5748069",
"0.5734194... | 0.864192 | 0 |
Set the value of precio_venta_dto | Установите значение precio_venta_dto | public function setPrecio_venta_dto($precio_venta_dto)
{
$this->precio_venta_dto = $precio_venta_dto;
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setPrecio_venta($precio_venta)\n {\n $this->precio_venta = $precio_venta;\n return $this;\n }",
"public function getPrecio_venta_dto()\n {\n return $this->precio_venta_dto;\n }",
"function setPrecio($precio) {\n $this->precio = $precio;\n }",
"public... | [
"0.6947106",
"0.68948",
"0.61609",
"0.59344053",
"0.56940794",
"0.5616198",
"0.5554823",
"0.55523044",
"0.5472596",
"0.5427213",
"0.5399607",
"0.535821",
"0.5349358",
"0.53306174",
"0.5311525",
"0.529877",
"0.5295405",
"0.5286133",
"0.5284703",
"0.52628344",
"0.52530247",
"... | 0.75657177 | 0 |
Get the value of descuento | Получить значение descuento | public function getDescuento()
{
return $this->descuento;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getDescuento()\r\n {\r\n return $this->descuento;\r\n }",
"protected function get_desca() {\n $value = $this->raw_get('desca');\n if ($value !== null) {\n $value = json_decode($value);\n }\n return $value;\n }",
"public function getDesconto... | [
"0.81474423",
"0.7539949",
"0.74822",
"0.7223202",
"0.7182353",
"0.71252584",
"0.7122015",
"0.71201855",
"0.71201855",
"0.71201855",
"0.71201855",
"0.71201855",
"0.71201855",
"0.71201855",
"0.71201855",
"0.71201855",
"0.7109999",
"0.7048765",
"0.7048765",
"0.7028847",
"0.7005... | 0.8058454 | 1 |
Get the value of iva | Получить значение iva | public function getIva()
{
return $this->iva;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function getIV() { \n return $this->iv;\n }",
"public function getIVA()\n {\n return $this->IVA;\n }",
"public function getIVA()\n {\n return $this->IVA;\n }",
"public function getIV()\n\t{\n\t\tif (!isset($this->iv)) $this->loadConfig();\n\t\tret... | [
"0.69976765",
"0.681249",
"0.681249",
"0.6721419",
"0.64898",
"0.64570874",
"0.6375796",
"0.6339288",
"0.6339155",
"0.6230242",
"0.62078345",
"0.6188156",
"0.6044466",
"0.60162205",
"0.60162205",
"0.60162205",
"0.60162205",
"0.60162205",
"0.60162205",
"0.60162205",
"0.6016220... | 0.7492585 | 0 |
Get the value of iva_gravado | Получить значение iva_gravado | public function getIva_gravado()
{
return $this->iva_gravado;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getGravado()\n {\n return $this->gravado;\n }",
"public function getIva()\n {\n return $this->iva;\n }",
"public function setIva_gravado($iva_gravado)\n {\n $this->iva_gravado = $iva_gravado;\n return $this;\n }",
"public function getVoto()\n {... | [
"0.71049577",
"0.659648",
"0.65954137",
"0.595122",
"0.5947607",
"0.59252864",
"0.59252864",
"0.59252864",
"0.59252864",
"0.59252864",
"0.59198177",
"0.5883065",
"0.58331877",
"0.5804077",
"0.5743008",
"0.5736506",
"0.5736506",
"0.5661837",
"0.5656705",
"0.5641459",
"0.557570... | 0.85525626 | 0 |
Set the value of iva_gravado | Задайте значение iva_gravado | public function setIva_gravado($iva_gravado)
{
$this->iva_gravado = $iva_gravado;
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getIva_gravado()\n {\n return $this->iva_gravado;\n }",
"public function set_imagenG($valor){\n $this->ImagenG = \"01\".trim($valor);\n }",
"public function setGravado($gravado)\n {\n $this->gravado = $gravado;\n\n return $this;\n }",
"public functio... | [
"0.7096397",
"0.62547636",
"0.59609437",
"0.583422",
"0.57010096",
"0.56581736",
"0.5364794",
"0.5359305",
"0.53112817",
"0.53015953",
"0.5232883",
"0.5197791",
"0.5181197",
"0.51788497",
"0.5163243",
"0.5121943",
"0.51209575",
"0.51065564",
"0.507176",
"0.5057749",
"0.505674... | 0.74669456 | 0 |
Get the value of precio_final_iva | Получить значение precio_final_iva | public function getPrecio_final_iva()
{
return $this->precio_final_iva;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPrecio_final_iva_dto()\n {\n return $this->precio_final_iva_dto;\n }",
"public function getIVA()\n {\n return $this->IVA;\n }",
"public function getIVA()\n {\n return $this->IVA;\n }",
"public function getIva()\n {\n return $this->iva;\n ... | [
"0.76322126",
"0.7236428",
"0.7236428",
"0.71008563",
"0.70260894",
"0.6701061",
"0.6487205",
"0.6475386",
"0.64706284",
"0.64699644",
"0.64511454",
"0.64261883",
"0.63563114",
"0.63563114",
"0.63563114",
"0.63563114",
"0.63340634",
"0.63340634",
"0.6267662",
"0.6257327",
"0.... | 0.8863847 | 0 |
Set the value of precio_final_iva | Установите значение precio_final_iva | public function setPrecio_final_iva($precio_final_iva)
{
$this->precio_final_iva = $precio_final_iva;
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPrecio_final_iva()\n {\n return $this->precio_final_iva;\n }",
"public function setPrecio_final_iva_dto($precio_final_iva_dto)\n {\n $this->precio_final_iva_dto = $precio_final_iva_dto;\n return $this;\n }",
"public function getPrecio_final_iva_dto()\n {\n... | [
"0.76021355",
"0.7013996",
"0.63090134",
"0.58888215",
"0.5806647",
"0.5754672",
"0.5754672",
"0.56799585",
"0.5677553",
"0.5610875",
"0.56030995",
"0.55754673",
"0.55708706",
"0.5560011",
"0.5526952",
"0.55009556",
"0.5478288",
"0.5436221",
"0.5417039",
"0.53957075",
"0.5365... | 0.7634043 | 0 |
Get the value of precio_final_iva_dto | Получить значение precio_final_iva_dto | public function getPrecio_final_iva_dto()
{
return $this->precio_final_iva_dto;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPrecio_final_iva()\n {\n return $this->precio_final_iva;\n }",
"public function setPrecio_final_iva_dto($precio_final_iva_dto)\n {\n $this->precio_final_iva_dto = $precio_final_iva_dto;\n return $this;\n }",
"public function getPrecio_venta_dto()\n {\n ... | [
"0.7736184",
"0.69622177",
"0.69177425",
"0.65583825",
"0.65583825",
"0.64233166",
"0.6356036",
"0.6296168",
"0.62676114",
"0.6262131",
"0.62491655",
"0.62491655",
"0.6226093",
"0.62060946",
"0.61807084",
"0.6173429",
"0.6171159",
"0.61090493",
"0.61047375",
"0.61047375",
"0.... | 0.88267523 | 0 |
Set the value of precio_final_iva_dto | Задайте значение precio_final_iva_dto | public function setPrecio_final_iva_dto($precio_final_iva_dto)
{
$this->precio_final_iva_dto = $precio_final_iva_dto;
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPrecio_final_iva_dto()\n {\n return $this->precio_final_iva_dto;\n }",
"public function setPrecio_final_iva($precio_final_iva)\n {\n $this->precio_final_iva = $precio_final_iva;\n return $this;\n }",
"public function getPrecio_final_iva()\n {\n retu... | [
"0.7561017",
"0.70456547",
"0.6717546",
"0.5586718",
"0.53068656",
"0.5272836",
"0.5272836",
"0.5182173",
"0.5182173",
"0.51817644",
"0.5169349",
"0.51454467",
"0.51048833",
"0.50942415",
"0.50800043",
"0.5078755",
"0.507136",
"0.50449777",
"0.5025587",
"0.5013701",
"0.500451... | 0.77785754 | 0 |
Get the value of moneda | Получить значение moneda | public function getMoneda()
{
return $this->moneda;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getValueWord();",
"public function getMonedaId()\n {\n return $this->moneda_id;\n }",
"public function getSearchValue();",
"public function monedaPredeterminada(){\n\t\t\t$Conexion = new dataBaseConn();\n\t\t\t$query = $Conexion -> prepare(\"SELECT m.nombre_moneda FROM moneda m I... | [
"0.7256454",
"0.6368465",
"0.60100985",
"0.59747434",
"0.59688497",
"0.59635204",
"0.5933703",
"0.58615774",
"0.5757709",
"0.57411605",
"0.5738412",
"0.5723115",
"0.5723115",
"0.5720539",
"0.5716753",
"0.5708091",
"0.5708091",
"0.5708091",
"0.57080877",
"0.57080877",
"0.57080... | 0.7407049 | 0 |
Get the value of bien | Получить значение bien | public function getBien()
{
return $this->bien;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getBishopValue();",
"public function getValue() {}",
"public function getValue() {}",
"public function getValue() {}",
"public function getValue() {}",
"public function getValue() {}",
"public function get_value()\n {\n }",
"public function get_value()\n {\n }",
"public ... | [
"0.6976307",
"0.6633956",
"0.6633956",
"0.6633956",
"0.6633956",
"0.6633956",
"0.66206115",
"0.66206115",
"0.6553521",
"0.6553521",
"0.6553521",
"0.6553521",
"0.6553521",
"0.6553521",
"0.6553521",
"0.6553521",
"0.6553521",
"0.6553521",
"0.6553521",
"0.6553521",
"0.6553521",
... | 0.7581249 | 0 |
check if current page is dark schema body | проверить, является ли текущая страница темной схемой фона | function videopro_is_body_dark_schema(){
if(is_page()){
$schema = get_post_meta(get_the_ID(), 'body_schema', true);
if(isset($schema) && $schema != ''){
if($schema == 'dark')
return true;
return false;
} else {
$schema = ot_get_option('body_schema', 'light');
if($schema == 'dark')
return true;
return false;
}
return false;
} else {
$schema = ot_get_option('body_schema', 'light');
if($schema == 'dark')
return true;
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function codeless_is_inner_content(){\n $condition = false;\n\n // Condition to test if query is a blog\n if( ! codeless_is_blog_query() )\n $condition = true;\n\n\n if( (! codeless_page_from_builder() || \n ( codeless_get_page_layout() != 'fullwidth' \n && codeless_get... | [
"0.6078157",
"0.60613376",
"0.60255367",
"0.6022482",
"0.59510875",
"0.5847638",
"0.5793184",
"0.57819366",
"0.5775919",
"0.57719237",
"0.5737562",
"0.5724465",
"0.5692602",
"0.56920844",
"0.56885314",
"0.56826365",
"0.56787044",
"0.5673491",
"0.5673308",
"0.5635619",
"0.5611... | 0.8125289 | 0 |
Will delete current child entity from persistent storage Id will be unassigned from entity, but data which entity has in memory will be still available until thread will be closed or entity will be grabbed by GC | Удалит текущий дочерний объект из постоянного хранилища. Идентификатор будет освобожден у объекта, но данные, которые хранит объект в памяти, останутся доступными до закрытия потока или пока объект не будет захвачен сборщиком мусора. | public function delete()
{
if($this->__persists) {
// Get arranger (for compatibility with 5.6 set into separated operation)
$arranger = DBOModelTransformerManager::getArranger();
// Do Save
if ($arranger::delete($this->__currentSchema, self::createCurrentValuesDataMapping($this))) {
// Flag entity as not persisted in system
$this->__persists = false;
// Erase value of the indexing parameter in the child
if($this->__currentSchema->primary) {
$this->{$this->__currentSchema->primary->parameterName} = null;
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function entityDelete(){\n // update model\n $this->getModel()->delete();\n }",
"public function _delete() {\n\t\t$this->parent->delete_child($this);\n\t}",
"public function deleteSelf(){\n $this->delete();\n }",
"public function delete()\n {\n $this->_entity->set... | [
"0.6658578",
"0.6599042",
"0.6281374",
"0.6278496",
"0.6144528",
"0.611121",
"0.6050953",
"0.6048879",
"0.602651",
"0.5992238",
"0.593273",
"0.59208465",
"0.59027207",
"0.5884557",
"0.5878731",
"0.5875394",
"0.5857654",
"0.5852168",
"0.58514965",
"0.5838966",
"0.5829514",
"... | 0.7007755 | 0 |
Creates a form to edit a Team entity. | Создает форму для редактирования сущности Team. | protected function createEditForm($entity)
{
return parent::createBaseEditForm(
$entity,
new TeamType(),
$this->generateUrl('admin_teams.update', array('id' => $entity->getId()))
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function createEditForm(Team $entity)\n {\n $form = $this->createForm(new TeamType(), $entity, array(\n 'action' => $this->generateUrl('zimzim_bundles_app_adminteam_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', '... | [
"0.7699607",
"0.7262385",
"0.7194452",
"0.7190026",
"0.7190026",
"0.7190026",
"0.7190026",
"0.7061192",
"0.69281936",
"0.69189084",
"0.6890762",
"0.6871034",
"0.6739284",
"0.670017",
"0.66660446",
"0.6631659",
"0.6630035",
"0.66099226",
"0.6581928",
"0.65753186",
"0.6566948",... | 0.749754 | 1 |
Creates a form to delete a Team entity by id. | Создает форму для удаления сущности Team по идентификатору. | protected function createDeleteForm($id)
{
return parent::baseCreateDeleteForm(
$this->generateUrl('admin_teams.delete', array('id' => $id))
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('teams_delete', ['id' => $id]))\n ->setMethod('DELETE')\n ->add('submit', 'submit', ['label' => 'Ištrinti', 'attr' => ['class' => 'btn btn-danger btn-block']])\... | [
"0.7677506",
"0.6891556",
"0.6834711",
"0.68207765",
"0.6813052",
"0.6793817",
"0.6748436",
"0.6726233",
"0.6672635",
"0.66701204",
"0.6670108",
"0.6667128",
"0.66669333",
"0.6654682",
"0.6652604",
"0.6652385",
"0.66489923",
"0.6648336",
"0.6648105",
"0.6644232",
"0.66433465"... | 0.76213104 | 1 |
Validate that user is a copyeditor in the selected journal. Redirects to user index page if not properly authenticated. | Проверьте, является ли пользователь редактором копий в выбранном журнале. Перенаправляет на страницу индекса пользователей, если не прошел проверку подлинности. | function validate() {
parent::validate();
$journal = &Request::getJournal();
if (!isset($journal) || !Validation::isCopyeditor($journal->getJournalId())) {
Validation::redirectLogin();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function validate() {\n\t\tparent::validate();\n\t\t$journal = &Request::getJournal();\n\t\t// FIXME This is kind of evil\n\t\t$page = Request::getRequestedPage();\n\t\tif (!isset($journal) || ($page == 'sectionEditor' && !Validation::isSectionEditor($journal->getJournalId())) || ($page == 'editor' && !Validation:... | [
"0.68724483",
"0.57759565",
"0.5687687",
"0.56293017",
"0.56076384",
"0.5593008",
"0.5584441",
"0.5576081",
"0.5515364",
"0.5482398",
"0.54817",
"0.5468252",
"0.54657274",
"0.54449815",
"0.5420287",
"0.54195076",
"0.5410241",
"0.5404488",
"0.54003423",
"0.5350949",
"0.5344195... | 0.763175 | 0 |
/ all tasks IDs of the project | / все идентификаторы задач проекта | private function projectTasksIDs() {
$tasks_q = mysql_query("SELECT ID FROM ".$this->getTablePrefix()."tasks WHERE project='{$this->projectID()}'");
$tasks = array();
while($task = mysql_fetch_assoc($tasks_q))
$tasks[] = $task["ID"];
return $tasks;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function projectTasks() {\n\t\t$tasks = array();\n\t\t$tasks_q = mysql_query(\"SELECT * FROM \".$this->getTablePrefix().\"tasks WHERE project='{$this->projectID()}'\");\n\t\twhile($task = mysql_fetch_assoc($tasks_q)) {\n\t\t\t$task[\"actual\"] = $this->taskActual(array($task[\"ID\"]));\n\t\t\t$tasks[] = $ta... | [
"0.7349041",
"0.7268452",
"0.7144303",
"0.7090488",
"0.68606055",
"0.68480045",
"0.6777868",
"0.675146",
"0.6652753",
"0.66396725",
"0.66233706",
"0.6583851",
"0.6581184",
"0.65701395",
"0.6569184",
"0.6548549",
"0.65426576",
"0.6538949",
"0.65371144",
"0.65371144",
"0.651566... | 0.82237864 | 0 |
/ get milestone ID by uuid | / получить ID майстоне по uuid | public function milestoneIDByUuid($uuid) {
$uuid = mysql_real_escape_string($uuid);
$milestone = mysql_fetch_assoc(mysql_query("SELECT ID FROM ".$this->getTablePrefix()."milestones WHERE uuid='$uuid'"));
return (int) $milestone["ID"];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function cpm_url_single_milestone( $project_id, $milestone_id ) {\n $url = sprintf( '%s?page=cpm_projects&tab=milestone&action=single&pid=%d&ml_id=%d', admin_url( 'admin.php' ), $project_id, $milestone_id );\n\n return apply_filters( 'cpm_url_single_milestone', $url, $project_id, $milestone_id );\n}",
"pub... | [
"0.6355104",
"0.6251783",
"0.6142316",
"0.6039435",
"0.5930211",
"0.5899746",
"0.58554435",
"0.5853146",
"0.5820669",
"0.5813077",
"0.5750523",
"0.5746787",
"0.5746787",
"0.5746787",
"0.5746787",
"0.57061166",
"0.56989473",
"0.56323427",
"0.5614754",
"0.5609337",
"0.5590069",... | 0.79266995 | 0 |
/ get workpackage ID by uuid | / получить идентификатор workpackage по uuid | public function workpackageIDByUuid($uuid) {
$uuid = mysql_real_escape_string($uuid);
$workpackage = mysql_fetch_assoc(mysql_query("SELECT ID FROM ".$this->getTablePrefix()."workpackage WHERE uuid='$uuid'"));
return (int) $workpackage["ID"];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function existWorkpackage($uuid, $workpackage_id) {\n\t\t$uuid = (int) $uuid;\n\t\t$workpackage_id = (int) $workpackage_id;\n\t\t\n\t\t$workpackage = mysql_fetch_assoc(mysql_query(\"SELECT ID FROM \".$this->getTablePrefix().\"workpackage WHERE (uuid='$uuid' OR ID='$workpackage_id') AND project='{$this->proj... | [
"0.68009037",
"0.6682209",
"0.66582006",
"0.6645016",
"0.6584819",
"0.6551691",
"0.6551691",
"0.6470802",
"0.64253986",
"0.64253986",
"0.6407713",
"0.6353033",
"0.6302575",
"0.6302575",
"0.6302575",
"0.6302575",
"0.63001484",
"0.62629145",
"0.62629145",
"0.62629145",
"0.62589... | 0.80613476 | 0 |
/ all tasks IDs of the workpackage | / все идентификаторы задач работы с пакетом | private function workpackageTasksIDs($workpackage_id) {
$tasks_q = mysql_query("SELECT ID FROM ".$this->getTablePrefix()."tasks WHERE workpackage='$workpackage_id'");
$tasks = array();
while($task = mysql_fetch_assoc($tasks_q))
$tasks[] = $task["ID"];
return $tasks;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function projectTasksIDs() {\n\t\t$tasks_q = mysql_query(\"SELECT ID FROM \".$this->getTablePrefix().\"tasks WHERE project='{$this->projectID()}'\");\n\t\t$tasks = array();\n\t\twhile($task = mysql_fetch_assoc($tasks_q))\n\t\t\t$tasks[] = $task[\"ID\"];\n\t\treturn $tasks;\n\t}",
"public function workpac... | [
"0.75046265",
"0.7135574",
"0.6684776",
"0.66810715",
"0.6501023",
"0.64272505",
"0.6411633",
"0.63781965",
"0.6373664",
"0.6359191",
"0.6357239",
"0.63099176",
"0.62904656",
"0.6289212",
"0.62667364",
"0.62539506",
"0.62539506",
"0.62359846",
"0.6235415",
"0.62204635",
"0.62... | 0.79633963 | 0 |