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 |
|---|---|---|---|---|---|---|---|
Returns the styled add to cart link for Organique theme | Возвращает стилизованную ссылку "Добавить в корзину" для темы Organique | function organique_loop_add_to_cart_link( $html, $product ) {
return sprintf(
'<a href="%s" rel="nofollow" data-product_id="%s" data-product_sku="%s" class="product-overlay__cart %s product_type_%s">%s</a>',
esc_url( $product->add_to_cart_url() ),
esc_attr( $product->id ),
esc_attr( $product->get_sku() ),... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function foodgrower_cart_link() {\n\t\t?>\n\t\t\t<a class=\"cart-contents\" href=\"<?php echo esc_url( WC()->cart->get_cart_url() ); ?>\" title=\"<?php esc_attr_e( 'View your shopping cart', 'storefront' ); ?>\">\n\t\t\t\t<span class=\"count\"><?php echo wp_kses_data( sprintf( _n( '%d ', '%d ', WC()->cart->get_car... | [
"0.7567335",
"0.72882664",
"0.7229212",
"0.7161765",
"0.71438855",
"0.71024734",
"0.70839715",
"0.70409024",
"0.699801",
"0.69907",
"0.6972541",
"0.69158155",
"0.6800965",
"0.6680059",
"0.65597457",
"0.65339464",
"0.65157676",
"0.65017307",
"0.6492593",
"0.6484174",
"0.641428... | 0.75110036 | 1 |
Get the position of the sidebar for the shop pages, conditionally for the single product | Получить положение панели боксера для страниц магазина, условно для отдельного продукта | function organique_get_shop_sidebar() {
if ( is_product() ) {
return get_theme_mod( 'single_product_sidebar', 'no' );
} else {
return get_post_meta( (int)get_option( 'woocommerce_shop_page_id' ) , 'sidebar_position', true );
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function solaz_get_sidebar_position() {\r\n $result = '';\r\n global $wp_query, $solaz_settings, $solaz_sidebar_pos;\r\n if(empty($solaz_sidebar_pos)){\r\n $result = isset($solaz_settings['sidebar-position']) ? $solaz_settings['sidebar-position'] : 'none';\r\n if (is_404()) {\r\n ... | [
"0.7657618",
"0.71964616",
"0.67031693",
"0.66789895",
"0.6675922",
"0.6564441",
"0.64527947",
"0.64111155",
"0.64034444",
"0.63812286",
"0.6352335",
"0.634386",
"0.63261884",
"0.6192587",
"0.61847436",
"0.6177405",
"0.6159348",
"0.61555547",
"0.6139913",
"0.61329794",
"0.612... | 0.8426293 | 0 |
Price filter Init for custom widget | Фильтр цены Init для пользовательского виджета | public function organique_price_filter_init() {
if ( is_active_widget( false, false, 'organique_price_filter', true ) && ! is_admin() ) {
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
wp_register_script( 'wc-price-slider', WC()->plugin_url() . '/assets/js/frontend/price-slider' . $s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function run()\n {\n $collection = Mage::getResourceModel('aw_layerednavigation/filter_collection')\n ->addFieldToFilter('type', array('eq' => AW_Layerednavigation_Model_Source_Filter_Type::DECIMAL_PRICE_CODE))\n ;\n $priceFilterModel = $collection->getFirstItem();\n\n ... | [
"0.7004938",
"0.69487983",
"0.6535966",
"0.6100729",
"0.6065456",
"0.5979342",
"0.5827378",
"0.5826458",
"0.5812237",
"0.5802644",
"0.5764095",
"0.57471937",
"0.56590015",
"0.5652401",
"0.56491226",
"0.5624917",
"0.5619653",
"0.5569362",
"0.5568688",
"0.5537601",
"0.5537046",... | 0.8170824 | 0 |
Generate a random nonce. | Сгенерируйте случайный неонц. | final public function randomNonce() {
return Salt::randombytes(Salt::box_NONCE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static function generate_nonce()\n {\n $mt = microtime();\n $rand = mt_rand();\n\n return md5($mt . $rand); // md5s look nicer than numbers\n }",
"private static function generate_nonce() {\n $mt = microtime();\n $rand = mt_rand();\n\n return md5($mt . $rand); // md5s look nicer than ... | [
"0.8351743",
"0.83371395",
"0.8163943",
"0.80423266",
"0.8028987",
"0.8022564",
"0.8012134",
"0.7943443",
"0.7766613",
"0.77042824",
"0.76650095",
"0.7603108",
"0.745503",
"0.73751605",
"0.7331764",
"0.7258616",
"0.72493464",
"0.7221845",
"0.70841324",
"0.70570683",
"0.704477... | 0.8348554 | 1 |
Initialize the exporter. This function checks if we're in an export session, if an exporter is configured, if we're in a module or any other export action and then displays the appropriate page. | Инициализация экспортера. Эта функция проверяет, находимся ли мы в сессии экспорта, настроен ли экспортер, находимся ли мы в модуле или выполняется ли любое другое действие экспорта, а затем отображает соответствующую страницу. | protected function InitializeExporter()
{
// Check is the export session table exists - if it does, we're currently in the middle of a session
$query = "show tables like '[|PREFIX|]export_session'";
$result = $GLOBALS['ISC_CLASS_DB']->Query($query);
$row = $GLOBALS['ISC_CLASS_DB']->FetchOne($result);
if($r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function ShowExporterReport()\n\t{\n\t\t$this->_LoadExportSession();\n\n\t\tif(!isset($_GET['module'])) {\n\t\t\texit;\n\t\t}\n\n\t\tif(!isset($this->_exportSession[$_GET['module']])) {\n\t\t\texit;\n\t\t}\n\n\t\t$GLOBALS['Report'] = $this->BuildExporterReport($_GET['module'], $this->_exportSession[$_GET... | [
"0.6957055",
"0.6636901",
"0.6258634",
"0.6075193",
"0.58803266",
"0.5702809",
"0.56629294",
"0.5655088",
"0.5608095",
"0.5557378",
"0.5557378",
"0.55506843",
"0.55446726",
"0.5537541",
"0.5499602",
"0.5499602",
"0.5499602",
"0.5499602",
"0.5499602",
"0.5499602",
"0.5499602",... | 0.7856298 | 0 |
Hide the export iFrame when a module is complete. | Скрыть экспорт iFrame при завершении модуля. | protected function HideExportFrame()
{
$this->UpdateProgress(GetLang('ExportComplete'));
echo "<script type='text/javascript'>\n";
echo "self.parent.ExportFinished();\n";
echo "</script>";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function hide() {\n\t\treturn true;\n\t}",
"public function hide() {\n\t\treturn true;\n\t}",
"public function hide();",
"protected function ShowExporterFrame()\n\t{\n\t\t$this->_LoadExportSession();\n\n\t\trequire_once APP_ROOT.\"/includes/converter/exporters/\".$this->_exportSession['CurrentExporter... | [
"0.63887113",
"0.63887113",
"0.6382416",
"0.6218678",
"0.600223",
"0.5717583",
"0.5669981",
"0.5618363",
"0.55746233",
"0.55746233",
"0.5460346",
"0.54499936",
"0.5438712",
"0.5360223",
"0.53494036",
"0.52389",
"0.5213569",
"0.5179451",
"0.51687413",
"0.5160076",
"0.51377106"... | 0.8195295 | 0 |
Run an export module for an exporter. This is a dummy function which calls the child class' ReallyRunModule after setting up the exporter. | Запустите модуль экспорта для экспортера. Это dummy-функция, которая вызывает метод ReallyRunModule дочернего класса после настройки экспортера. | protected function RunModule()
{
$this->_LoadExportSession();
if(!$this->_exportSession['CurrentExporter']) {
exit;
}
require_once APP_ROOT."/includes/converter/exporters/".$this->_exportSession['CurrentExporter'].".php";
$className = "ISC_ADMIN_EXPORTER_".isc_strtoupper($this->_exportSession['CurrentEx... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function ReallyRunModule()\n\t{\n\t\tif(method_exists($this, \"Connect\")) {\n\t\t\t$this->Connect();\n\t\t}\n\n\t\t// Are we currently running a module?\n\t\tif($this->_exportSession['CurrentModule']) {\n\n\t\t\t$this->Debug(\"[A] In module - {$this->_exportSession['CurrentModule']}\");\n\n\t\t\t$module... | [
"0.7118925",
"0.6068381",
"0.58763474",
"0.56363547",
"0.553321",
"0.55145884",
"0.5370027",
"0.531208",
"0.5254834",
"0.5142228",
"0.5142209",
"0.51120985",
"0.5102063",
"0.50778955",
"0.50708693",
"0.5037049",
"0.49921575",
"0.4933302",
"0.4930615",
"0.49073604",
"0.4899240... | 0.773478 | 0 |
Run an export module. This function is the "work horse" of the export system. | Запустите модуль экспорта. Эта функция является "основной силой" системы экспорта. | protected function ReallyRunModule()
{
if(method_exists($this, "Connect")) {
$this->Connect();
}
// Are we currently running a module?
if($this->_exportSession['CurrentModule']) {
$this->Debug("[A] In module - {$this->_exportSession['CurrentModule']}");
$module = $this->_exportSession['CurrentModul... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function RunModule()\n\t{\n\t\t$this->_LoadExportSession();\n\n\t\tif(!$this->_exportSession['CurrentExporter']) {\n\t\t\texit;\n\t\t}\n\n\t\trequire_once APP_ROOT.\"/includes/converter/exporters/\".$this->_exportSession['CurrentExporter'].\".php\";\n\t\t$className = \"ISC_ADMIN_EXPORTER_\".isc_strtouppe... | [
"0.76904094",
"0.64202386",
"0.6250252",
"0.6222327",
"0.619421",
"0.6134013",
"0.6082998",
"0.6082998",
"0.6082998",
"0.6082998",
"0.6082998",
"0.59803766",
"0.5977363",
"0.59605205",
"0.5928998",
"0.5889093",
"0.58220834",
"0.5777177",
"0.5737588",
"0.5727691",
"0.56987464"... | 0.7176422 | 1 |
Create the export session table in the database. This is used to store all of the information about the current export session. | Создайте таблицу сессии экспорта в базе данных. Это используется для хранения всех информации о текущей сессии экспорта. | protected function _CreateExportSession()
{
$query = "create table [|PREFIX|]export_session (
type varchar(20) not null default '',
module varchar(30) not null default '',
log varchar(30) not null default '',
data text not null
)";
$GLOBALS['ISC_CLASS_DB']->Query($query);
$query = "insert into [|P... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function createTable()\n\t{\n\t\tphpCAS::traceBegin();\n\n\t\t// initialize the PDO object for this method\n\t\t$pdo = $this->getPdo();\n\t\t$this->setErrorMode();\n\n\t\ttry {\n\t\t\t$pdo->beginTransaction();\n\n\t\t\t$query = $pdo->query($this->_createTableSQL());\n\t\t\t$query->closeCursor();\n\n\t\t\t$p... | [
"0.60973036",
"0.60245234",
"0.5925921",
"0.5925258",
"0.58890057",
"0.5886693",
"0.5801439",
"0.5746867",
"0.57440597",
"0.57434946",
"0.5742524",
"0.5733627",
"0.57142687",
"0.56696427",
"0.5642432",
"0.5640068",
"0.5632994",
"0.5630111",
"0.5572224",
"0.553849",
"0.5504793... | 0.8620021 | 0 |
Load the export ession from the database. Populates the _exportSession variable. | Загрузите сессию экспорта из базы данных. Заполняет переменную _exportSession. | protected function _LoadExportSession()
{
$query = "select data from [|PREFIX|]export_session where type='primary'";
$result = $GLOBALS['ISC_CLASS_DB']->Query($query);
$this->_exportSession = @unserialize($GLOBALS['ISC_CLASS_DB']->FetchOne($result));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function _CreateExportSession()\n\t{\n\t\t$query = \"create table [|PREFIX|]export_session (\n\t\t\ttype varchar(20) not null default '',\n\t\t\tmodule varchar(30) not null default '',\n\t\t\tlog varchar(30) not null default '',\n\t\t\tdata text not null\n\t\t)\";\n\t\t$GLOBALS['ISC_CLASS_DB']->Query($qu... | [
"0.6606458",
"0.6586229",
"0.62359416",
"0.62098575",
"0.6161857",
"0.5852153",
"0.5788549",
"0.57881534",
"0.5704447",
"0.5549236",
"0.5466291",
"0.5450589",
"0.5387394",
"0.53485864",
"0.524331",
"0.51950276",
"0.518464",
"0.51839596",
"0.51401216",
"0.50802445",
"0.5036805... | 0.8327102 | 0 |
Takes the current export session imformation from _exportSession and writes it to the database. | Извлекает текущую информацию о сессии экспорта из _exportSession и записывает её в базу данных. | protected function _UpdateExportSession()
{
$exportSession = serialize($this->_exportSession);
$query = sprintf("update [|PREFIX|]export_session set data='%s' where type='primary'", $GLOBALS['ISC_CLASS_DB']->Quote($exportSession));
$GLOBALS['ISC_CLASS_DB']->Query($query);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function _CreateExportSession()\n\t{\n\t\t$query = \"create table [|PREFIX|]export_session (\n\t\t\ttype varchar(20) not null default '',\n\t\t\tmodule varchar(30) not null default '',\n\t\t\tlog varchar(30) not null default '',\n\t\t\tdata text not null\n\t\t)\";\n\t\t$GLOBALS['ISC_CLASS_DB']->Query($qu... | [
"0.67957413",
"0.63043684",
"0.61603034",
"0.6157394",
"0.6127894",
"0.6097401",
"0.6067872",
"0.60312796",
"0.5902911",
"0.5881013",
"0.58782893",
"0.5833062",
"0.5797364",
"0.57917684",
"0.5762774",
"0.57596636",
"0.5755601",
"0.5745227",
"0.5691386",
"0.56709284",
"0.56280... | 0.73914546 | 0 |
Write any pending export logs in memory to the export sesion database. | Запишите любые оставшиеся журналы экспорта в памяти в базу данных сеанса экспорта. | protected function _WritePendingExportLogs()
{
if(count($this->_exportErrors) == 0) {
return false;
}
foreach($this->_exportErrors as $module => $typeLog) {
foreach($typeLog as $type => $log) {
$query = sprintf("insert into [|PREFIX|]export_session (type,module,log,data) values ('log','%s','%s','%s')"... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function logReports()\n {\n try {\n $reportsDirectory = Mage::getBaseDir('var') . '/report';\n\n foreach (glob($reportsDirectory . '/*') as $report) {\n $reportData = file_get_contents($report);\n $reportData = unserialize($reportData);\n ... | [
"0.60006875",
"0.58275807",
"0.58062375",
"0.5799727",
"0.5745525",
"0.57277364",
"0.57223773",
"0.57074624",
"0.57070005",
"0.5653181",
"0.5602735",
"0.5522714",
"0.5512513",
"0.55112004",
"0.54998964",
"0.54744804",
"0.54312605",
"0.5419436",
"0.53729504",
"0.5354997",
"0.5... | 0.748759 | 0 |
Fetch a list of supported exporters by checking the exporters directory. | Получите список поддерживаемых экспортеров, проверив директорию экспортеров. | protected function FetchExporterList()
{
$exporterRoot = APP_ROOT."/includes/converter/exporters/";
$files = scandir($exporterRoot);
foreach($files as $file) {
if(!is_file($exporterRoot.$file) || isc_substr($file, -3) != "php") {
continue;
}
require_once $exporterRoot.$file;
$file = isc_substr(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract public function getAvailableExports();",
"public function provides()\n {\n return [\n 'joy-voyager-export.export',\n 'joy-voyager-export.export-all',\n ];\n }",
"static function get_allowable_export_formats() {\n //currently, only PDF and CSV export for... | [
"0.6422215",
"0.61696786",
"0.6044835",
"0.6031907",
"0.5770945",
"0.5670376",
"0.55823755",
"0.55750656",
"0.55680496",
"0.55680496",
"0.55265135",
"0.5521865",
"0.5389407",
"0.5354699",
"0.5339615",
"0.53361493",
"0.53322136",
"0.53272563",
"0.5298246",
"0.5295655",
"0.5261... | 0.77622736 | 0 |
Get the subscribers mobile number | Получить мобильный номер подписчика | public function getSubscriberMobile()
{
$mobile = parent::getSubscriberMobile();
return $mobile;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getMobilePhoneNo() : string\n {\n return $this->mobilePhoneNo;\n }",
"public function getMobileNumberForSendingOTP()\n {\n return $this->mobile;\n }",
"public function getMobileNumber() {\n\n return $this->mobile_number;\n\n }",
"public function getMobileNu... | [
"0.7646049",
"0.7631735",
"0.7532379",
"0.74170256",
"0.7304239",
"0.71736044",
"0.71359694",
"0.7126966",
"0.70955163",
"0.69570327",
"0.69570327",
"0.69570327",
"0.69570327",
"0.69570327",
"0.69570327",
"0.6868494",
"0.6839994",
"0.6812146",
"0.6792851",
"0.67817414",
"0.67... | 0.78507644 | 0 |
Get the subscribers country | Получить страну подписчика | public function getSubscriberCountry()
{
$country = parent::getSubscriberCountry();
return $country;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getCountry();",
"public function getCountry();",
"public function getCountry() {}",
"public function getCountry() {}",
"public function getCountry()\n {\n return $this->getValueObject('country');\n }",
"public function getCountry()\n {\n return parent::getValue('cou... | [
"0.79040563",
"0.79040563",
"0.7883767",
"0.7883767",
"0.7553215",
"0.75430167",
"0.7506319",
"0.75048584",
"0.75048584",
"0.75048584",
"0.75048584",
"0.75048584",
"0.75048584",
"0.75048584",
"0.75048584",
"0.75048584",
"0.75048584",
"0.75048584",
"0.75048584",
"0.75048584",
... | 0.8526283 | 0 |
Get the subscribers dob (date of birth) | Получить дату рождения подписчиков | public function getSubscriberDob()
{
$dob = parent::getSubscriberDob();
return $dob;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getDob()\n {\n return $this->dob;\n }",
"public function getDob()\n {\n return $this->dob;\n }",
"public function getDob()\n {\n return $this->dob;\n }",
"public function getDateOfBirth() {\n\t\treturn empty( $this->container['dates_of_birth'] ) ? null : $this->... | [
"0.75698155",
"0.7523806",
"0.7523806",
"0.72702396",
"0.7245337",
"0.7245337",
"0.72432095",
"0.72044015",
"0.717496",
"0.7163472",
"0.71214265",
"0.7116809",
"0.7105423",
"0.7058751",
"0.70372224",
"0.70372224",
"0.70372224",
"0.70372224",
"0.70372224",
"0.7029873",
"0.7021... | 0.8348794 | 0 |
Get data generated by dragon curve of a specific length | Получить данные, сгенерированные кривой дракона определенной длины | function getData(string $initial, int $length): string
{
$data = $initial;
while (strlen($data) < $length) {
$data = dragonCurve($data);
}
return substr($data, 0, $length);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function calculate_gear_line_array ($i_G1){\r\n\t\t\t\t\t\tif ($i_G1!=0) {\r\n\t\t\t\t\t\t\t\t$rpm_value=0;\r\n\t\t\t\t\t\t\t\tglobal $motarray, $i_A, $eta_G, $eta_A, $r_dyn, $max_x_value;\r\n\t\t\t\t\t\t\t\tforeach ($motarray as &$motarray_value) {\r\n\t\t\t\t\t\t\t $v_gang=$rpm_value*0.377*$r_dyn/($i_A*$i_G1... | [
"0.53605944",
"0.5254931",
"0.52374476",
"0.5154527",
"0.5032837",
"0.5010797",
"0.49969116",
"0.49949288",
"0.49196348",
"0.4887352",
"0.4870869",
"0.47801152",
"0.47705713",
"0.46825498",
"0.46694902",
"0.4661363",
"0.4633794",
"0.4625826",
"0.46221995",
"0.46167427",
"0.45... | 0.7177984 | 0 |
Submit callback for vocabulary_browser_settings_form | Submit callback для vocabulary_browser_settings_form | function vocabulary_browser_settings_form_submit() {
// @FIXME we need to rebuild theme only if theme choosen
// is not the same as current theme
cache_clear_all('theme_registry', 'cache', TRUE);
drupal_set_message('Theme registry has been rebuilt to active new theme');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function wpsc_merchant_paymentsense_settings_form_submit() {\r\n\treturn wpsc_merchant_paymentsense::submit_paymentsense_settings_form();\r\n}",
"function ding_mobilesearch_settings_submit($form, &$form_state) {\n $types = $form_state['values']['types']['rows'];\n\n // Assing CT's with flag (if possible).\n $... | [
"0.61958396",
"0.6163595",
"0.6097642",
"0.6048319",
"0.60193574",
"0.59606963",
"0.5955272",
"0.5951584",
"0.5949302",
"0.5911084",
"0.5877892",
"0.5857318",
"0.57962096",
"0.57921314",
"0.5747483",
"0.57331944",
"0.57263654",
"0.5725279",
"0.571707",
"0.5696203",
"0.5687051... | 0.7123011 | 0 |
Sets the coverage threshold for entire project | Устанавливает порог покрытия для всего проекта | public function setPerProject($threshold)
{
$this->_perProject = $threshold;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function enableCodeCoverage() {\n\t\t$this->collectCodeCoverage = TRUE;\n\t\t$this->initializePHPUnitFilter();\n\t}",
"public function setPerClass($threshold)\n {\n $this->_perClass = $threshold;\n }",
"public function setThreshold($threshold)\n {\n $this->threshold = $threshold;\... | [
"0.6067751",
"0.5823211",
"0.57379705",
"0.5697292",
"0.54874635",
"0.54153705",
"0.5370259",
"0.5304613",
"0.5199222",
"0.5050899",
"0.5046465",
"0.4987523",
"0.49350685",
"0.4932368",
"0.49299785",
"0.48710817",
"0.48401555",
"0.48277852",
"0.47396213",
"0.47330007",
"0.473... | 0.7125049 | 0 |
Sets the coverage threshold for any class | Устанавливает порог покрытия для любого класса | public function setPerClass($threshold)
{
$this->_perClass = $threshold;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setPerProject($threshold)\n {\n $this->_perProject = $threshold;\n }",
"public function SetThresh($threshold)\n {\n $this->thresh = $threshold;\n }",
"public function setPerMethod($threshold)\n {\n $this->_perMethod = $threshold;\n }",
"public function s... | [
"0.6276479",
"0.6205273",
"0.616714",
"0.6146782",
"0.6091561",
"0.58295864",
"0.5747647",
"0.55479395",
"0.54480994",
"0.5334197",
"0.51452893",
"0.50964785",
"0.5088854",
"0.5086936",
"0.5055444",
"0.49568424",
"0.49565166",
"0.48998207",
"0.4857384",
"0.481907",
"0.4785207... | 0.70426726 | 0 |
Return a new FApplication object from an array (which is retrieved from memcache). $this>__toObject( array( 'application_id' => '87908104', 'dep_account' => 2, 'income_frequency' => 3, 'income_monthly_net' => 6999, 'dob' => '19760909', ), $email ); $this>__toObject(array('87908104', 2, 3, 6999, '19760909'), $email); | Вернуть новый объект FApplication из массива (который получается из memcache). $this>__toObject( array( 'application_id' => '87908104', 'dep_account' => 2, 'income_frequency' => 3, 'income_monthly_net' => 6999, 'dob' => '19760909', ), $email ); $this>__toObject(array('87908104', 2, 3, 6999, '19760909'), $email); | public static function __toObject($cached_app, $email) {
if (isset($cached_app['application_id'])) {
$application_id = $cached_app['application_id'];
$dep_account = self::$dep_accounts[$cached_app['dep_account']];
$income_frequency = self::$income_frequencies[$cached_app['income_frequency']];
$income_mont... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function fromResultSet( $res ) {\n //We get all the values form the query\n $id = $res[ ApplicationADO::$colNameId];\n $idUser = $res[ ApplicationADO::$colNameIdUser ];\n $position = $res[ ApplicationADO::$colNamePosition ];\n $startDate = $res[ ApplicationADO::$colNameStartDate ];\n ... | [
"0.59379786",
"0.58942384",
"0.5770361",
"0.5627216",
"0.55778414",
"0.5527411",
"0.5497162",
"0.5494989",
"0.5463149",
"0.5452357",
"0.5446519",
"0.5432797",
"0.54216564",
"0.54076725",
"0.54076725",
"0.5402397",
"0.5374786",
"0.5374497",
"0.53409165",
"0.5318022",
"0.530592... | 0.740478 | 0 |
Get memcache key for given application/Email. | Получить ключ memcache для заданного приложения/Email. | private static function Get_Memcache_Key($val) {
switch (TRUE) {
case ($val instanceof FApplication):
$email = $val->get('email');
break;
case (is_array($val)):
$email = $val['email'];
break;
default:
$email = $val;
break;
}
if ($email) {
return strtolower(trim(self::$memcac... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getEmailKey() {\n\t\treturn $this->getData('emailKey');\n\t}",
"public function cacheKey() {\n $params = $this->getParameters();\n $ret = '';\n $this->make_cache_key($params, $ret);\n\n return md5($ret);\n }",
"public static function getEmailKey($tracking_method = null);",
"public funct... | [
"0.6662258",
"0.63519084",
"0.6129801",
"0.6100952",
"0.6075644",
"0.6074273",
"0.60714173",
"0.6031426",
"0.6030798",
"0.6030142",
"0.5966987",
"0.59625924",
"0.59408456",
"0.59229934",
"0.5791792",
"0.5751524",
"0.57360077",
"0.57163197",
"0.57084244",
"0.56926143",
"0.5677... | 0.773316 | 0 |
Reord fraud fields. Input: Reorder_Fraud_Field(0) // none field contains different values Reorder_Fraud_Field(1) // field 1 contain different values Reorder_Fraud_Field(5) // field 1 and field 4 contain different values Reorder_Fraud_Field(7) // all fields contain different values Output: array(1, 2, 4, 8) array(2, 4, ... | Порядок полей мошенничества. Вход: Reorder_Fraud_Field(0) // нет полей с разными значениями Reorder_Fraud_Field(1) // поле 1 содержит разные значения Reorder_Fraud_Field(5) // поля 1 и 4 содержат разные значения Reorder_Fraud_Field(7) // все поля содержат разные значения Выход: array(1, 2, 4, 8) array(2, 4, 1, 8) array... | private static function Reorder_Fraud_Field($diff) {
switch ($diff) {
case 0:
case (pow(2, count(self::$fraud_fields)) - 1): // 7 if self::$fraud_fields has 3 elements
return array_keys(self::$fraud_fields);
break; // useless, but just leave it here.
default:
$arr1 = array_keys(self::$fraud_field... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function getFields()\n {\n return [\n [\n \"field_type\" => \"text\",\n \"field_name\" => \"first_name\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => null,\n ],\n [\n \"field_type\" => \"text\",\n ... | [
"0.57430243",
"0.5643909",
"0.5576265",
"0.5560425",
"0.5538179",
"0.54857385",
"0.5465794",
"0.5443118",
"0.542836",
"0.53629744",
"0.5301804",
"0.5291745",
"0.52835065",
"0.5274636",
"0.52677995",
"0.52586734",
"0.5233387",
"0.5228382",
"0.5226805",
"0.52222085",
"0.5218503... | 0.70803034 | 0 |
Set default element handler | Установить обработчик элемента по умолчанию | public function setDefaultElementHandler(ilSaxSubsetParser $a_default_parser)
{
$this->default_handler = $a_default_parser;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getDefaultHandler();",
"public function setDefaultHandler($handlerName);",
"function setHandlers($a_xml_parser)\n\t{\n\t\txml_set_object($a_xml_parser,$this);\n\t\txml_set_element_handler($a_xml_parser,'handlerBeginTag','handlerEndTag');\n\t\txml_set_character_data_handler($a_xml_parser,'handle... | [
"0.68843067",
"0.6766134",
"0.64554113",
"0.6286226",
"0.6059734",
"0.5938391",
"0.59295535",
"0.5902515",
"0.58134794",
"0.5770708",
"0.5753019",
"0.5677444",
"0.5653404",
"0.5571299",
"0.5538158",
"0.5529435",
"0.54569596",
"0.53870726",
"0.53608686",
"0.53382325",
"0.53279... | 0.71360147 | 0 |
handler for character data | обработчик данных символов | function handlerCharacterData($a_xml_parser,$a_data)
{
return $this->current_handler->handlerCharacterData(a_xml_parser,$a_data);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract public function characterDataHandler($parser, $data);",
"function handlerCharacterData($a_xml_parser, $a_data)\n\t{\n\t\t// i don't know why this is necessary, but\n\t\t// the parser seems to convert \">\" to \">\" and \"<\" to \"<\"\n\t\t// in character data, but we don't want that, because it's ... | [
"0.81503147",
"0.75163853",
"0.7348516",
"0.71158683",
"0.70421666",
"0.69257176",
"0.66853166",
"0.66845334",
"0.63110566",
"0.6230221",
"0.61839986",
"0.617335",
"0.6155625",
"0.614342",
"0.6085232",
"0.60517466",
"0.5985544",
"0.58914214",
"0.57887906",
"0.5783076",
"0.577... | 0.7918128 | 1 |
Get max file size mb | Получить максимальный размер файла в мб | public function getMaxFileSize()
{
return $this->max_file_size;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getMaxFileSize()\n {\n return $this->maxBytes;\n }",
"public function getAllowedMaxFileSize()\n {\n $size = $this->getValidator()->getAllowedMaxFileSize();\n if($size) {\n $sizeMB = $size / 1024 / 1024;\n return $sizeMB;\n }\n }",
"p... | [
"0.8547281",
"0.8516278",
"0.8497176",
"0.8419285",
"0.8334589",
"0.8166373",
"0.81647515",
"0.8138412",
"0.80925024",
"0.8055016",
"0.803773",
"0.8027131",
"0.7989425",
"0.798857",
"0.79638404",
"0.794731",
"0.7906855",
"0.7866425",
"0.78655785",
"0.78551304",
"0.7824853",
... | 0.85983986 | 0 |
Get list of senders for all unread emails. | Получить список отправителей для всех непрочитанных писем. | public function getAllUnreadEmailsSenders()
{
$messages = collect(LaravelGmail::message()->unread()->preload()->all());
$fromList = [];
$messages->each(function ($message) use (&$fromList) {
$fromList[] = $message->getFrom();
});
// TODO: can be optimized
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getMailUsers()\n {\n return $this->userRepo->getMailUsers(\\Auth::user()->id);\n }",
"public function _getAllSender() {\n\t\t\n\t\treturn array();\n\t}",
"public function getUnseenEmails(): array\n {\n $emails = [];\n\n try {\n $imap = $this->loginToInbo... | [
"0.67220986",
"0.6449785",
"0.64391565",
"0.64310026",
"0.6425419",
"0.6371488",
"0.63673234",
"0.63659304",
"0.6342463",
"0.632829",
"0.63060105",
"0.63060105",
"0.6292957",
"0.62870574",
"0.6249167",
"0.622379",
"0.6222058",
"0.62204546",
"0.61949366",
"0.6139662",
"0.61319... | 0.8652517 | 0 |
converts number words between 999,999,999 and 999,999,999 to digits | преобразует слова, обозначающие числа от 999 999 999 до 999 999 999, в цифры | function convert_words_to_nums($words){
$result = "";
$max_string_length = 1000;
$temp_num = 0;
$final_num = 0;
$max_num = 999999999;
$negative = false; //flag
$number_dictionary = array(
'negative' => '-',
'zero' => 0, 'one' => 1, 'two' => 2, 'three' => 3,'fou... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function convertNumberToWord($num = false)\n{\n $num = str_replace(array(',', ' '), '' , trim($num));\n if(! $num) {\n return false;\n }\n $num = (int) $num;\n $words = array();\n $list1 = array('', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten', 'eleven',\n ... | [
"0.68951905",
"0.68951905",
"0.6836013",
"0.6769985",
"0.6621558",
"0.6453686",
"0.6377473",
"0.63318753",
"0.6247839",
"0.6207256",
"0.619986",
"0.61594963",
"0.6154261",
"0.6150075",
"0.6139008",
"0.60510075",
"0.60392016",
"0.6020785",
"0.6019371",
"0.6008959",
"0.6006629"... | 0.7038264 | 0 |
Returns the kernel parameters. | Возвращает параметры ядра. | protected function getKernelParameters()
{
$parameters = parent::getKernelParameters();
$parameters['kernel.drupal_root'] = DRUPAL_ROOT;
$parameters['kernel.conf_path'] = conf_path();
$parameters['kernel.conf_dir'] = basename(conf_path());
$parameters['kernel.secret'] = varia... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static public function getParamKernelStart()\r\n {\r\n\t\treturn static::PARAM_KERNEL_START;\r\n\t}",
"public function setParamKernel()\r\n {\r\n\t\treturn $this->setParamFromFile(PARAM_KERNEL_PATH_ROOT.'/'.static::getPathParamKernel(), 0);\r\n\t}",
"protected function getKernelConfiguration()\n {\n ... | [
"0.699022",
"0.67259836",
"0.63472176",
"0.622338",
"0.622338",
"0.622338",
"0.622338",
"0.622338",
"0.622338",
"0.622338",
"0.622338",
"0.6132684",
"0.6123009",
"0.60764945",
"0.60764945",
"0.6049855",
"0.6049855",
"0.6047143",
"0.60448205",
"0.60304147",
"0.60295755",
"0.... | 0.7465151 | 0 |
Gets the file name for each enabled module. | Получает имя файла для каждого включенного модуля. | protected function getModuleFileNames()
{
$results = db_query('SELECT name, filename FROM {system} WHERE status = 1 ORDER BY weight ASC, name ASC')->fetchAllAssoc('name');
return array_map(function ($value) {
return DRUPAL_ROOT.DIRECTORY_SEPARATOR.$value->filename;
}, $results);... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getLoadedModulesName()\n\t{\n\t\treturn array_map('get_class', $this->getLoadedModules());\n\t}",
"public function readModulesDirectory()\n\t{\n\t\t$modulesName = glob( INCLUDE_PATH . '/Module/*', GLOB_ONLYDIR);\n\t\t$modulesName = $modulesName === false ? array() : array_map('basename', $modules... | [
"0.66289586",
"0.6435412",
"0.63465273",
"0.62460715",
"0.6233911",
"0.6213763",
"0.61505014",
"0.59680766",
"0.59659237",
"0.5931534",
"0.59295523",
"0.5904693",
"0.58629155",
"0.58629155",
"0.58547384",
"0.5836927",
"0.5816704",
"0.5813469",
"0.57690537",
"0.5763813",
"0.57... | 0.7041255 | 0 |
Prettify an IP for display to end users. This will make it more compact and lowercase. | Улучшить форматирование IP-адреса для отображения конечным пользователям. Это сделает его более компактным и в нижнем регистре. | public static function prettifyIP( $ip ) {
$ip = self::sanitizeIP( $ip ); // normalize (removes '::')
if ( self::isIPv6( $ip ) ) {
// Split IP into an address and a CIDR
if ( strpos( $ip, '/' ) !== false ) {
list( $ip, $cidr ) = explode( '/', $ip, 2 );
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected static function _anonymizeIp($ip)\n {\n $strlen = strlen($ip);\n if ($strlen > 6) {\n $divider = (int)floor($strlen / 4) + 1;\n $ip = substr_replace($ip, '…', $divider, $strlen - (2 * $divider));\n }\n\n return $ip;\n }",
"public static function s... | [
"0.70600694",
"0.6929956",
"0.68164647",
"0.655651",
"0.6363104",
"0.63600236",
"0.6316068",
"0.61813444",
"0.61031353",
"0.60894614",
"0.6055929",
"0.6040782",
"0.6034675",
"0.59705436",
"0.5946467",
"0.5896255",
"0.58806324",
"0.5864787",
"0.5857365",
"0.5856633",
"0.584285... | 0.81522995 | 0 |
Given a host/port string, like one might find in the host part of a URL per RFC 2732, split the hostname part and the port part and return an array with an element for each. If there is no port part, the array will have false in place of the port. If the string was invalid in some way, false is returned. This was easy ... | Данная строка, содержащая имя хоста и порт, например, такая, какую можно найти в части хоста URL согласно RFC 2732, разделяет часть имени хоста и часть порта, возвращая массив с элементом для каждой части. Если часть порта отсутствует, в массиве будет false вместо порта. Если строка в каком-либо виде недействительна, в... | public static function splitHostAndPort( $both ) {
if ( substr( $both, 0, 1 ) === '[' ) {
if ( preg_match( '/^\[(' . RE_IPV6_ADD . ')\](?::(?P<port>\d+))?$/', $both, $m ) ) {
if ( isset( $m['port'] ) ) {
return array( $m[1], intval( $m['port'] ) );
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function validateIpHost($str)\n {\n $res = $this->filterIpv6Host($str);\n if (! empty($res)) {\n $this->host_as_ipv4 = false;\n $this->host_as_ipv6 = true;\n return [$res];\n }\n\n if (filter_var($str, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) ... | [
"0.61188877",
"0.60293275",
"0.60293275",
"0.5995785",
"0.5504702",
"0.54973704",
"0.54294705",
"0.5414774",
"0.5276418",
"0.52534604",
"0.5247277",
"0.5196114",
"0.51642776",
"0.51448154",
"0.5141715",
"0.5072678",
"0.50651544",
"0.503698",
"0.5022446",
"0.5021219",
"0.49832... | 0.7086026 | 0 |
Given a host name and a port, combine them into host/port string like you might find in a URL. If the host contains a colon, wrap it in square brackets like in RFC 2732. If the port matches the default port, omit the port specification | Дано имя хоста и порт, объедините их в строку вида host/port, как это может быть найдено в URL. Если хост содержит двоеточие, заключите его в квадратные скобки, как это указано в RFC 2732. Если порт соответствует порту по умолчанию, опустите указание порта. | public static function combineHostAndPort( $host, $port, $defaultPort = false ) {
if ( strpos( $host, ':' ) !== false ) {
$host = "[$host]";
}
if ( $defaultPort !== false && $port == $defaultPort ) {
return $host;
} else {
return "$host:$port";
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getHostAndPort(): string\n {\n $host = $this->getHost();\n $port = $this->getPort();\n\n // Only append the port if it is non-standard.\n if (($port === 80 && $this->getScheme() === 'http') || ($port === 443 && $this->getScheme() === 'https')) {\n $port = '... | [
"0.71573067",
"0.69914955",
"0.62659854",
"0.62659854",
"0.5783352",
"0.5711498",
"0.5598242",
"0.5591375",
"0.5481246",
"0.5449776",
"0.53714144",
"0.5356968",
"0.53339976",
"0.5330774",
"0.5303835",
"0.5290805",
"0.5277732",
"0.5250443",
"0.5249676",
"0.524224",
"0.52378696... | 0.7874967 | 0 |
Determine if an IPv6 address really is an IP address, and if it is public, i.e. not RFC 4193 or similar | Определите, является ли IPv6-адрес действительно IP-адресом, и если да, является ли он публичным, то есть не соответствующим RFC 4193 или аналогичным | private static function isPublic6( $ip ) {
static $privateRanges = false;
if ( !$privateRanges ) {
$privateRanges = array(
array( 'fc00::', 'fdff:ffff:ffff:ffff:ffff:ffff:ffff:ffff' ), # RFC 4193 (local)
array( '0:0:0:0:0:0:0:1', '0:0:0:0:0:0:0:1' ), # loopbac... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function isIPv6() {\n\t\t$ip = static::ip();\n\t\treturn strpos($ip, ':') !== false;\n\t}",
"public static function is_ip6($ip) {\r\n\t\t$ret = false;\r\n\t\tif (function_exists('filter_var')) {\r\n\t\t\t// This regards :: as valid, also ::0 or ::0.0.0.0 as OK, which is wrong\r\n\t\t\t$ret = filter... | [
"0.75141037",
"0.7437085",
"0.70826346",
"0.7066037",
"0.7037076",
"0.7022749",
"0.6803585",
"0.67011636",
"0.66168505",
"0.65529317",
"0.6481647",
"0.6459785",
"0.64591855",
"0.6458398",
"0.6452432",
"0.64050156",
"0.6353491",
"0.63533455",
"0.6330745",
"0.6325613",
"0.63232... | 0.77532357 | 0 |
Given a string range in a number of formats, return the start and end of the range in hexadecimal. For IPv6. Formats are: 2001:0db8:85a3::7344/96 CIDR 2001:0db8:85a3::7344 2001:0db8:85a3::7344 Explicit range 2001:0db8:85a3::7344/96 Single IP | Дано строковое представление диапазона в нескольких форматах, верните начало и конец диапазона в шестнадцатеричном виде. Для IPv6. Форматы: 2001:0db8:85a3::7344/96 CIDR 2001:0db8:85a3::7344 2001:0db8:85a3::7344 явный диапазон 2001:0db8:85a3::7344/96 отдельный IP | private static function parseRange6( $range ) {
# Expand any IPv6 IP
$range = IP::sanitizeIP( $range );
// CIDR notation...
if ( strpos( $range, '/' ) !== false ) {
list( $network, $bits ) = self::parseCIDR6( $range );
if ( $network === false ) {
$... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function inet6_to_range($addr, $prefix)\r\n{\r\n $size = 128 - $prefix;\r\n $addr = gmp_init('0x' . str_replace(':', '', inet6_expand($addr)));\r\n $mask = gmp_init('0x' . str_replace(':', '', inet6_expand(inet6_prefix_to_mask($prefix))));\r\n $prefix = gmp_and($addr, $mask);\r\n $start = gmp_strval... | [
"0.7161461",
"0.67473865",
"0.6525377",
"0.64479715",
"0.62681055",
"0.62514645",
"0.6214998",
"0.61951715",
"0.6155929",
"0.6082589",
"0.5902516",
"0.5755317",
"0.57489693",
"0.57060754",
"0.5682313",
"0.565758",
"0.5650467",
"0.56301486",
"0.55792654",
"0.557449",
"0.555196... | 0.7360088 | 0 |
getById Gets an entry object of this collection type with the given id | getById Получает объект элемента этой коллекции с заданным идентификатором | public function getById($id) {
$data = $this->adapter->request('GET', "{$this->url}/{$id}");
return $this->_makeEntry($data, $id, "{$this->url}/{$id}");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getById($id)\n {\n return $this->collection->where('id', $id)->first();\n }",
"public function getById( $id );",
"public function getItem($id)\n {\n return $this->where('id', $id)->first();\n }",
"public function getById($id) {\n return $this->getBy(id, \"id\");\n... | [
"0.74778455",
"0.73447865",
"0.7266132",
"0.7227634",
"0.7211172",
"0.7210983",
"0.7210983",
"0.7210983",
"0.7210983",
"0.7210983",
"0.7210983",
"0.7210983",
"0.7210983",
"0.7210983",
"0.7210983",
"0.7210983",
"0.7210983",
"0.7210983",
"0.7210983",
"0.7210983",
"0.7187128",
... | 0.7690276 | 0 |
getParentEntry Gets an entry's parent entry Returns NULL if no parent entry | getParentEntry Получает родительскую запись записи Возвращает NULL, если родительская запись отсутствует | public function getParentEntry(){
$url_parts = explode('/', $this->url);
$size = count($url_parts);
#Remove collection id and slash from end of url
$url = substr($this->url, 0, -strlen($url_parts[$size-1])-1);
try {
$data = $this->adapter->re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getParent() {\r\n\t\tif ($this->pzkParentId) {\r\n\t\t\treturn pzk_store_element($this->pzkParentId);\r\n\t\t}\r\n\t\treturn NULL;\r\n\t}",
"public function getParent()\n {\n if (array_key_exists(\"parent\", $this->_propDict)) {\n if (is_a($this->_propDict[\"parent\"], \"\\Be... | [
"0.72946435",
"0.68913954",
"0.6879596",
"0.6851536",
"0.6839628",
"0.68234277",
"0.6803628",
"0.67837733",
"0.67796224",
"0.6700736",
"0.66971695",
"0.66971695",
"0.6688765",
"0.6688076",
"0.6679467",
"0.6676674",
"0.66404",
"0.66404",
"0.6637507",
"0.6637507",
"0.6629372",
... | 0.7157376 | 1 |
_type Interpret what type of resources are held in this collection by analyzing the URL | _type Интерпретируйте, какой тип ресурсов содержится в этой коллекции, анализируя URL | protected function _type() {
$urlParts = explode('/', $this->url);
$type = array_pop($urlParts);
return $type;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function url_type();",
"private function type($type) {\n\t\t$t = $this->api_map[$type];\n\t\t$t[\"url\"] = $this->get(\"store_url\") . $t[\"url\"] . \"?api_key=\".$this->get(\"api_key\");\n\t\treturn $t;\n\t}",
"public function getResourceType() {}",
"public function getResourceType() {}",
"public f... | [
"0.6898579",
"0.63320434",
"0.6130804",
"0.6130804",
"0.6130804",
"0.6130804",
"0.6130804",
"0.6130804",
"0.6130804",
"0.6130804",
"0.60521805",
"0.6008636",
"0.6003507",
"0.59703666",
"0.595662",
"0.59297895",
"0.5908558",
"0.5897937",
"0.58734",
"0.58734",
"0.58734",
"0.5... | 0.7302024 | 0 |
_calculatePageSize Calculates the page size of this collection based on the data in the next and prev links. | _calculatePageSize Вычисляет размер страницы этой коллекции на основе данных в ссылках next и prev. | protected function _calculatePageSize() {
if (array_key_exists('next_collection_link', $this->data)) {
$url = $this->data['next_collection_link'];
$urlParts = parse_url($url);
if (empty($urlParts['query'])) return $this->pageSize;
$query = array();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPageSize();",
"private function calcNumPages()\n\t{\n\t\t$this->totalPages=ceil($this->totalRecords/$this->recordsPerPage);\n\t}",
"function getPageSize()\n {\n return $this->_props['PageSize'];\n }",
"private function calculate() {\n $currentPage = $this->getCurrentPageParameter()... | [
"0.66214556",
"0.6571394",
"0.64983934",
"0.625644",
"0.6212573",
"0.6212573",
"0.61996746",
"0.6163813",
"0.61460304",
"0.6075339",
"0.60699403",
"0.6020582",
"0.6014403",
"0.60089725",
"0.59947747",
"0.5988363",
"0.5948286",
"0.593819",
"0.5924318",
"0.5924318",
"0.5924318"... | 0.8136416 | 0 |
_loadPageForOffset Makes a request for an additional page of entries, based on the given offset. Calculates the start / size of the page needed to get that offset, requests for it, and then merges the data into it internal collection of entry data. | _loadPageForOffset делает запрос на дополнительную страницу записей, основываясь на заданном смещении. Вычисляет начальное значение и размер страницы, необходимые для получения указанного смещения, отправляет запрос и затем объединяет данные с внутренней коллекцией записей. | protected function _loadPageForOffset($offset) {
$this->_calculatePageSize();
$start = round($offset / $this->pageSize) * $this->pageSize;
$params = $this->_getPageParams($start, $this->pageSize);
// Loading page
$data = $this->adapter->request('GET', $this->ur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function _getEntry($offset) {\r\n\r\n if (empty($this->data['entries'][$offset])) {\r\n\r\n $this->_loadPageForOffset($offset);\r\n\r\n }\r\n\r\n return (empty($this->data['entries'][$offset]))? null :\r\n\r\n $this->data['entries'][$offset];\r\n\r\n }",
"p... | [
"0.58900654",
"0.57785946",
"0.5727578",
"0.57146406",
"0.5711173",
"0.56765246",
"0.5598328",
"0.55406684",
"0.5524817",
"0.5502654",
"0.548569",
"0.5376749",
"0.53297216",
"0.5314922",
"0.5224973",
"0.52039194",
"0.51690525",
"0.51624936",
"0.5122241",
"0.5122241",
"0.51116... | 0.835856 | 0 |
_getEntry Makes sure that entry offset's page is loaded, then returns it. Returns null if the entry can't be loaded, even after requesting the needed page. | _getEntry Убеждается, что страница смещения записи загружена, затем возвращает её. Возвращает null, если запись не может быть загружена, даже после запроса необходимой страницы. | protected function _getEntry($offset) {
if (empty($this->data['entries'][$offset])) {
$this->_loadPageForOffset($offset);
}
return (empty($this->data['entries'][$offset]))? null :
$this->data['entries'][$offset];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function getEntry()\n {\n $entry_id = $this->getEntryIdFromSession();\n\n if ($entry_id > 0) {\n $entry = Entry::find($entry_id);\n if ($entry) return $entry;\n else $this->removeEntryIdFromSession();\n }\n\n return NULL;\n }",
"#[\\Retur... | [
"0.6340853",
"0.6308895",
"0.62454987",
"0.6130396",
"0.60881597",
"0.6003216",
"0.5835054",
"0.5835054",
"0.5835054",
"0.5737008",
"0.5673857",
"0.5624648",
"0.5622516",
"0.5557536",
"0.5532617",
"0.5515198",
"0.55104154",
"0.5505652",
"0.5422285",
"0.5417934",
"0.5409029",
... | 0.812241 | 0 |
_makeEntry Creates an entry object from the given entry data. Optionally can take the id AND URL of the entry, though that data can be infered from the context in which _makeEntry is being called. | _makeEntry Создает объект записи на основе предоставленных данных записи. Необязательно может принимать идентификатор и URL записи, хотя эти данные могут быть выведены из контекста, в котором вызывается _makeEntry. | protected function _makeEntry($data, $id = false, $url = false) {
if ((!$url) or (!$id)) {
// if either the url or id is omitted, grab the url from the
// self_link of the resource
$url = $this->adapter->app->removeBaseUri($data['self_link']);
} else {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function createSingleInstance(array $data)\n {\n $entry = new Entry();\n $entry->setId($data[\"ID\"]);\n $entry->setDate($data[\"date\"]);\n $entry->setStart($data[\"start\"]);\n $entry->setEnd($data[\"end\"]);\n $entry->setBreak($data[\"break\"]);\n $ent... | [
"0.6243077",
"0.6027224",
"0.5964978",
"0.57788426",
"0.57738316",
"0.57016927",
"0.5506531",
"0.54996175",
"0.5469439",
"0.53458655",
"0.5345122",
"0.5344066",
"0.5327405",
"0.5321813",
"0.53045577",
"0.5290763",
"0.5261573",
"0.52283686",
"0.5221124",
"0.5201939",
"0.519747... | 0.818852 | 0 |
Test getLatLong Fail number two. | Тест getLatLong провален, номер два. | public function testGetLatLongFailTwo()
{
$res = $this->weather->getLatLong("sdgdf, dfghfgh");
// var_dump($res);
$exp1 = null;
$exp2 = null;
$this->assertEquals($exp1, $res["latitude"]);
$this->assertEquals($exp2, $res["longitude"]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function validateLatLong($lat, $long) {\n return preg_match('/^[-]?(([0-8]?[0-9])\\.(\\d+))|(90(\\.0+)?),[-]?((((1[0-7][0-9])|([0-9]?[0-9]))\\.(\\d+))|180(\\.0+)?)$/', $lat.','.$long);\n }",
"function is_longlat ($longlat) {\n\n\t\t$return = true;\n\t\t$split = explode(\",\", $longlat);\n\t\tif(sizeof(... | [
"0.67457277",
"0.64037496",
"0.63959754",
"0.62871933",
"0.6269547",
"0.61919606",
"0.6190297",
"0.61774313",
"0.6111872",
"0.6064853",
"0.60648346",
"0.59298635",
"0.5883261",
"0.5877584",
"0.58742625",
"0.5847566",
"0.58205444",
"0.5802323",
"0.5774883",
"0.5766538",
"0.565... | 0.8158024 | 0 |
Lists all Shop entities. | Список всех сущностей Shop. | public function indexAction()
{
$em = $this->getDoctrine()->getManager();
$shops = $em->getRepository('AdBoxBundle:Shop')->findAll();
return $this->render('shop/index.html.twig', array(
'shops' => $shops
));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function showAllAction () {\n $products = $this->getDoctrine()\n ->getRepository('AppBundle:Product')\n ->findAll();\n\n return $this->render('product/list.html.twig', array(\n 'products' => $products,\n ));\n }",
"public function getallShop(){\n\t\... | [
"0.6768739",
"0.6701323",
"0.66652983",
"0.6641251",
"0.64038044",
"0.63646877",
"0.6275766",
"0.6262942",
"0.6262365",
"0.6242513",
"0.6239326",
"0.6227717",
"0.6226478",
"0.6217714",
"0.62118745",
"0.62040293",
"0.6183361",
"0.6148934",
"0.6148047",
"0.61450315",
"0.6136128... | 0.74618274 | 0 |
Creates a form to delete a Shop entity. | Создает форму для удаления сущности Shop. | private function createDeleteForm(Shop $shop)
{
return $this->createFormBuilder()->setAction($this->generateUrl('shop_delete', array(
'id' => $shop->getId()
)))->setMethod('DELETE')->getForm();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function createDeleteForm(Combo $combo)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('combo_delete', array('id' => $combo->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }",
"private function createDeleteForm(Musicie... | [
"0.6775423",
"0.6725513",
"0.6549689",
"0.6462886",
"0.64449185",
"0.63272804",
"0.63235605",
"0.6287333",
"0.6269513",
"0.6248329",
"0.615718",
"0.61487377",
"0.61486",
"0.6127483",
"0.6122094",
"0.61117685",
"0.61036915",
"0.6089326",
"0.6082166",
"0.6073401",
"0.6068433",
... | 0.80437434 | 0 |
Returns the tax rules group id corresponding to the name | Возвращает идентификатор группы правил налога, соответствующий имени | public static function getIdByName($name)
{
return Db::getInstance()->getValue(
'SELECT `id_tax_rules_group`
FROM `'._DB_PREFIX_.'tax_rules_group` rg
WHERE `name` = \''.pSQL($name).'\''
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function GetGroupIDByName(string $name)\n {\n // Get the row data from the table\n $row = DB::table($this->table)->where('GroupName', $name)->first();\n\n // Check to see if there no results\n if($row == null) return FALSE;\n\n // Return the ID number of the found gro... | [
"0.6673365",
"0.6650419",
"0.65056175",
"0.6418582",
"0.6157072",
"0.6108549",
"0.6088734",
"0.60764873",
"0.6037192",
"0.6003358",
"0.5972783",
"0.59657407",
"0.5888112",
"0.58795816",
"0.58652145",
"0.58632386",
"0.5862137",
"0.5844296",
"0.58327085",
"0.5806949",
"0.580048... | 0.8493725 | 0 |
Starts the execution of the workflow and returns the execution id. $parentId is used to specify the execution id of the parent workflow when executing subworkflows. It should not be used when manually starting workflows. Calls doStart() right before the first node is activated. | Запускает выполнение рабочего процесса и возвращает идентификатор выполнения. $parentId используется для указания идентификатора выполнения родительского рабочего процесса при выполнении подпроцессов. Его не следует использовать при ручном запуске рабочих процессов. Вызывает doStart() непосредственно перед активацией п... | public function start( $parentId = null )
{
if ($this->workflow === null) {
throw new ExecutionException('No workflow has been set up for execution.');
}
$this->cancelled = false;
$this->ended = false;
$this->resumed = false;
$this->suspended = fals... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected function doStart($parentId);",
"public function start( $parentId = NULL )\n {\n // Make sure the pipe is set up.\n $this->__get( 'pipe' );\n\n parent::start( $parentId );\n }",
"public function startThread( $parentId = null, $numSiblings = 1 )\n {\n if (!... | [
"0.6850869",
"0.6531051",
"0.5798944",
"0.5704448",
"0.5569649",
"0.5118984",
"0.5118984",
"0.49616688",
"0.48658815",
"0.48295084",
"0.4812842",
"0.48093143",
"0.47990727",
"0.4787209",
"0.47383308",
"0.4700934",
"0.46902043",
"0.46680352",
"0.4629006",
"0.46193677",
"0.4619... | 0.8489616 | 0 |
Suspends workflow execution. This method is usually called by the execution environment when there are no more more activated nodes that can be executed. This is commonly the case with input nodes waiting for input. This method calls doSuspend() before calling saveToVariableHandlers() allowing reimplementations to save... | Приостанавливает выполнение workflow. Этот метод обычно вызывается средой выполнения, когда больше нет активированных узлов, которые можно выполнить. Это часто происходит в случае входных узлов, ожидающих ввода. Этот метод вызывает doSuspend() перед вызовом saveToVariableHandlers(), позволяя переопределяющим реализация... | public function suspend()
{
$this->cancelled = false;
$this->ended = false;
$this->resumed = false;
$this->suspended = true;
$this->saveToVariableHandlers();
$keys = array_keys($this->variables);
$count = count($keys);
$handlers = $this-... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected function doSuspend();",
"function suspend(): void\n {\n signal(fn (Closure $resume): mixed => $resume());\n }",
"public function suspend(): void\n {\n $this->tonClient->request(\n 'net.suspend'\n )->wait();\n }",
"protected function execute()\n ... | [
"0.6316726",
"0.61345935",
"0.58303803",
"0.564617",
"0.5550883",
"0.47831786",
"0.477936",
"0.4750499",
"0.47479272",
"0.46800563",
"0.46777388",
"0.45968914",
"0.45942488",
"0.45631242",
"0.4537512",
"0.45196235",
"0.45100382",
"0.44669384",
"0.4465754",
"0.43970445",
"0.43... | 0.7876862 | 0 |
Resumes workflow execution of a suspended workflow. $executionId is the id of the execution to resume. $inputData is an associative array of the format array( 'variable name' => value ) that should contain new workflow variable data required to resume execution. Calls do doResume() before the variables are loaded using... | Продолжает выполнение приостановленного workflow. $executionId — это идентификатор выполнения, которое нужно возобновить. $inputData — это ассоциативный массив в формате array( 'имя переменной' => значение ), который должен содержать новые данные переменных workflow, необходимые для возобновления выполнения. Вызывает d... | public function resume(array $inputData = array()) {
if ($this->id === null) {
throw new ExecutionException('No execution id given.');
}
$this->cancelled = false;
$this->ended = false;
$this->resumed = true;
$this->suspended = false;
$this->doR... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function resumeById(int $id, mixed ...$data): mixed;",
"public static function resumeFlowExecution(\n &$flow, &$params, $actionId = null, $triggerLogId = null) {\n\n if (self::$_triggerDepth > self::MAX_TRIGGER_DEPTH) // ...have we delved too deep?\n return;\n\n if (isse... | [
"0.5215368",
"0.5018223",
"0.49871194",
"0.47602826",
"0.46482465",
"0.45410758",
"0.45352724",
"0.44824934",
"0.447306",
"0.44701716",
"0.44232318",
"0.4412171",
"0.43966308",
"0.4392656",
"0.4362898",
"0.4316583",
"0.42801636",
"0.42677116",
"0.4236198",
"0.4236198",
"0.423... | 0.7437018 | 0 |
Returns a new execution object for a sub workflow. If this method is used to resume a subworkflow you must provide the execution id through $id. If $interactive is false an NonInteractive will be returned. This method can be used by nodes implementing subworkflows to get a new execution environment for the subworkflow. | Возвращает новый объект выполнения для подпотока. Если этот метод используется для возобновления подпотока, необходимо передать идентификатор выполнения через $id. Если $interactive имеет значение false, будет возвращен NonInteractive. Этот метод может использоваться узлами, реализующими подпотоки, чтобы получить новый... | public function getSubExecution($id = null, $interactive = true)
{
if ($interactive) {
$execution = $this->doGetSubExecution($id);
} else {
$execution = new NonInteractive();
}
foreach ($this->plugins as $plugin) {
$execution->addPlugin($plugin);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function doGetSubExecution( $id = NULL )\n {\n parent::doGetSubExecution( $id );\n\n $execution = new ezcWorkflowTestExecution( $id );\n\n foreach ( $this->inputVariablesForSubWorkflow as $name => $value )\n {\n $execution->setInputVariable( $name, $value );\n ... | [
"0.79549",
"0.7304279",
"0.62895554",
"0.48126048",
"0.47959247",
"0.47703135",
"0.47703135",
"0.46394393",
"0.4586205",
"0.45861968",
"0.4477174",
"0.44734022",
"0.4462523",
"0.44496524",
"0.4442318",
"0.44311392",
"0.44232094",
"0.4415733",
"0.43707627",
"0.43707627",
"0.43... | 0.75823087 | 1 |
Returns the id of the parent thread for a given thread. | Возвращает идентификатор родительского потока для заданного потока. | public function getParentThreadId($threadId)
{
if (isset($this->threads[$threadId])) {
return $this->threads[$threadId]['parentId'];
} else {
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getParentId()\n\t{\n\t\tif( isset( $this->values[$this->prefix . 'parentid'] ) ) {\n\t\t\treturn (string) $this->values[$this->prefix . 'parentid'];\n\t\t}\n\t}",
"public function getParentId()\n {\n return $this->parentId;\n }",
"public function getParentId()\n {\n retur... | [
"0.6975581",
"0.6915851",
"0.6915851",
"0.689072",
"0.68769187",
"0.68256706",
"0.68256706",
"0.6821994",
"0.6783427",
"0.6769217",
"0.6753131",
"0.6753131",
"0.6753131",
"0.6750897",
"0.6595298",
"0.658809",
"0.6585704",
"0.65073276",
"0.65073276",
"0.64916384",
"0.6476109",... | 0.7561683 | 0 |
Returns the activated nodes. | Возвращает активированные узлы. | public function getActivatedNodes()
{
return $this->activatedNodes;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getNodes(){\n\t\treturn $this->nodes;\n\t}",
"public function getNodes()\n {\n return $this->nodes;\n }",
"public function getNodes()\n {\n return $this->nodes;\n }",
"public function getNodes()\n\t{\n\t\treturn $this->nodes;\n\t}",
"public function getNodes();",
... | [
"0.67490745",
"0.6743328",
"0.6743328",
"0.6734167",
"0.67198837",
"0.67093956",
"0.67093956",
"0.6571385",
"0.6571385",
"0.6472355",
"0.64394116",
"0.63895303",
"0.6318263",
"0.6273745",
"0.62683076",
"0.62683076",
"0.62683076",
"0.62683076",
"0.62683076",
"0.62683076",
"0.6... | 0.89490104 | 0 |
Returns true when the workflow execution has been cancelled. | Возвращает истину, когда выполнение рабочего процесса было отменено. | public function isCancelled()
{
return $this->cancelled;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function cancelled()\n {\n return ! is_null($this->cancelledAt);\n }",
"public function cancelled() : bool\n {\n return !is_null($this->ends_at) && $this->is_cancelled;\n }",
"public function isCancelled(){\n return (bool) $this->cancelled_on != null;\n }",
"public ... | [
"0.75135994",
"0.7435978",
"0.73657465",
"0.7335394",
"0.727319",
"0.7252345",
"0.7241714",
"0.72289246",
"0.71889734",
"0.71525735",
"0.70646423",
"0.70244247",
"0.7014229",
"0.6834387",
"0.6793139",
"0.66366744",
"0.6621787",
"0.65761715",
"0.6462445",
"0.6325099",
"0.63035... | 0.7568134 | 0 |
Returns true when the workflow execution has been suspended. | Возвращает true, когда выполнение рабочего процесса было приостановлено. | public function isSuspended()
{
return $this->suspended;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function isSuspended() {\n return $this->getStatus() === Status::SUSPENDED;\n }",
"public function isSuspend() {\n return $this->isSuspended;\n }",
"public function isSuspended()\n {\n return $this->getState()->getStatus() == \\Magento\\Framework\\Mview\\View\\StateInterfac... | [
"0.76303273",
"0.75904727",
"0.74274236",
"0.688548",
"0.68085194",
"0.676215",
"0.67601204",
"0.663099",
"0.663099",
"0.6598346",
"0.64862734",
"0.64842814",
"0.6462976",
"0.6402399",
"0.63265795",
"0.6166332",
"0.6003386",
"0.5998721",
"0.59933996",
"0.5961248",
"0.5950544"... | 0.777416 | 0 |
Handle the QueryExecuted event. | Обработайте событие QueryExecuted. | public function handleQueryExecuted(QueryExecuted $event)
{
Log::debug($event->sql, ['bindings' => $event->bindings, 'ms' => $event->time]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testHandleQueryExecute(): void\n {\n $locale = 'fr';\n $primarySelector = 'p';\n\n $this->query->getLocale()->willReturn($locale);\n $this->query->getPhpcrQuery()->willReturn($this->phpcrQuery->reveal());\n $this->phpcrQuery->execute()->willReturn($this->phpcrR... | [
"0.61252964",
"0.60211086",
"0.59397435",
"0.59253967",
"0.5918583",
"0.57816654",
"0.57753354",
"0.57547975",
"0.5743095",
"0.5693101",
"0.567719",
"0.5669452",
"0.55846465",
"0.5564437",
"0.5541007",
"0.55015016",
"0.5476427",
"0.5462726",
"0.5451542",
"0.5420778",
"0.54028... | 0.80087864 | 0 |
Handle the TransactionBeginning event. | Обработка события TransactionBeginning. | public function handleTransactionBeginning(TransactionBeginning $event)
{
Log::debug('begin');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function beginTransaction()\n {\n $this->transactions++;\n\n if ($this->transactions == 1) {\n $this->transaction = $this->neo->beginTransaction();\n }\n\n $this->fireConnectionEvent('beganTransaction');\n }",
"public function beginTransaction() {\r\n\t\t// TOD... | [
"0.68647325",
"0.68050694",
"0.68025815",
"0.6763352",
"0.6694175",
"0.6671864",
"0.6500462",
"0.64951146",
"0.6486165",
"0.6471057",
"0.64579403",
"0.64575535",
"0.6432304",
"0.64185965",
"0.6408011",
"0.64028555",
"0.63951856",
"0.63892543",
"0.6381143",
"0.63215864",
"0.63... | 0.86642516 | 0 |
Handle the TransactionCommitted event. | Обработайте событие TransactionCommitted. | public function handleTransactionCommitted(TransactionCommitted $event)
{
Log::debug('commit');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function committed();",
"public function transactionCommit()\n\t{\n\t\treturn;\n\t}",
"public function commitTransaction() {\r\n\t\t// TODO: Implement transaction stuff.\r\n\t\t//$this->query('COMMIT TRANSACTION');\r\n\t}",
"public function commit()\n {\n if ($this->hasActiveTransaction) {\n... | [
"0.6489614",
"0.61011595",
"0.60703033",
"0.6052173",
"0.6048881",
"0.6004446",
"0.5883098",
"0.58734185",
"0.583143",
"0.575733",
"0.57400125",
"0.57362294",
"0.57147396",
"0.56685054",
"0.55658597",
"0.5442376",
"0.54256064",
"0.54113007",
"0.5363868",
"0.53441155",
"0.5335... | 0.829839 | 0 |
Handle the TransactionRolledBack event. | Обработка события TransactionRolledBack. | public function handleTransactionRollback(TransactionRolledBack $event)
{
Log::debug('rollback');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function rollBack()\n\t{\n\t\tif (self::TRANSACTION) {\n\t\t\t$this->database->rollBack();\n\t\t}\n\t}",
"public static function RollBackTrans() {\n try {\n if(DB::transactionLevel() > 0) {\n DB::rollBack();\n }\n }\n catch(Exception $e) {\n ... | [
"0.7028351",
"0.68094856",
"0.67551535",
"0.66837037",
"0.66513103",
"0.66156375",
"0.6496525",
"0.646381",
"0.64573824",
"0.64271325",
"0.64209116",
"0.6411947",
"0.63214505",
"0.63208556",
"0.6279723",
"0.62505704",
"0.6232253",
"0.62221056",
"0.6203606",
"0.61980134",
"0.6... | 0.8293434 | 0 |
Returns the agreement module | Возвращает модуль соглашения | protected function getAgreementModule()
{
if (!$this->agreement_module) {
$this->agreement_module = ActivityModule::byIdentifier('agreement');
}
return $this->agreement_module;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function _getBillingAgreement()\n {\n return Mage::registry('current_billing_agreement');\n }",
"function getCitationModule() {\n\t\treturn $this->getData('citationModule');\n\t}",
"public function getAgreement(): bool\n {\n return $this->agreement;\n }",
"public function ... | [
"0.67034453",
"0.65313715",
"0.63733727",
"0.6361927",
"0.63206935",
"0.63206935",
"0.6237116",
"0.61870396",
"0.61804897",
"0.6132038",
"0.6132038",
"0.6128229",
"0.6121295",
"0.6121295",
"0.61191756",
"0.608993",
"0.60621023",
"0.59651977",
"0.59501845",
"0.593752",
"0.5923... | 0.8260218 | 0 |
get Permanent redirect statuscode | получить Статус-код постоянного редиректа | public function getPermanentRedirectStatuscode(): MwRedirectResponseStatuscode
{
return $this->findStatuscodeBy(['type' => self::REDIRECT_STATUSCODE_301]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function hasRedirectHTTPStatus() { return ($this->status == 301 || $this->status == 302 || $this->status == 303); }",
"public function redirect(string $url, $status_code = 302);",
"public function automaticStatusCode($data)\n\t{\n\t\t// Redirects must be either a 301 or 302\n\t\tif (isset($data['new_url... | [
"0.72130054",
"0.7110549",
"0.70976245",
"0.6811077",
"0.6792859",
"0.6784484",
"0.67543215",
"0.67161906",
"0.66877925",
"0.66641724",
"0.663146",
"0.6628029",
"0.656766",
"0.6562847",
"0.6562847",
"0.6562847",
"0.6562847",
"0.65368485",
"0.6529864",
"0.65109867",
"0.6508489... | 0.8453204 | 0 |
/ Load the template view. $data['title']page title $data['content']view returned as string $data['js'](optional)array of javascripts to be loaded in addition to default | Загрузите шаблон представления. $data['title'] — заголовок страницы $data['content'] — представление, возвращаемое в виде строки $data['js'] (опционально) — массив javascript-файлов, которые загружаются дополнительно к дефолтным | public function load( $data ){
// show current user
if($this->currentUser){
$data['currentUser'] = $this->ci->load->view('templates/current_user', $this->currentUser, TRUE);
} else {
$data['currentUser'] = '';
}
$data['title'] = $this->PRE_TITLE . $data['title'];
// prep JavaScript
if( empt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function load_view($template){$this->hold_template = APPPATH . '/views/' . $template . EXT;}",
"private function _template($data, $view)\n\t{\n\t\t$this->load->view('mahasiswa/views/' . $view, $data);\n\t}",
"private function _template($data, $view)\n\t{\n\t\t$this->load->view('mahasiswa/views/' . $view, $data... | [
"0.7234479",
"0.7125645",
"0.7125645",
"0.69999474",
"0.68664783",
"0.6845072",
"0.6787943",
"0.67723",
"0.6769492",
"0.6739512",
"0.6734415",
"0.669617",
"0.66930676",
"0.66849416",
"0.6668827",
"0.6647859",
"0.66217685",
"0.6616104",
"0.6610493",
"0.6573524",
"0.6568469",
... | 0.72432727 | 0 |
Public Functions // Check if a method exists or not. If a magic method accessor is specified then the method will check the property string after the accessor prefix (i.e. set or get). | Публичные функции // Проверяет, существует ли метод или нет. Если указано волшебное метода-доступа, то метод проверяет строку свойства после префикса доступа (например, set или get). | public function method_exists($method)
{
if (!is_string($method)) {
return false;
}
if (method_exists($this, $method)) {
return true;
}
if ((substr($method, 0, 3) == 'get' || substr($method, 0, 3) == 'set')
&& property_exi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function hasAccessor(string $key, ?string &$accessor = null): bool\n {\n $studly_key = str_replace(' ', '', ucwords(str_replace(['-', '_'], ' ', $key)));\n $accessor = 'get' . $studly_key . 'Property';\n\n return method_exists($this, $accessor);\n }",
"public function hasGetM... | [
"0.69774204",
"0.6829401",
"0.682696",
"0.6815423",
"0.67773765",
"0.6747196",
"0.67129606",
"0.67129606",
"0.66957796",
"0.66955054",
"0.6673961",
"0.6599655",
"0.659816",
"0.6596455",
"0.6584504",
"0.65809333",
"0.6580303",
"0.6570658",
"0.6557982",
"0.6534195",
"0.6494014"... | 0.77010465 | 0 |
If the server received raw JSON or encoded form, as body of the request, we'll decode the body and map it to the $_REQUEST. | Если сервер получил сырые JSON или закодированные данные формы в качестве тела запроса, мы декодируем тело и отображаем его в $_REQUEST. | protected function parseRequestInput()
{
$requestInput = null;
if (in_array($this->getMethod(), [self::METHOD_DELETE, self::METHOD_PUT, self::METHOD_POST], true))
{
if (empty($_REQUEST) && isset($_SERVER['CONTENT_TYPE'], $_SERVER['CONTENT_LENGTH']) && (int)$_SERVER['CONTENT_LENG... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function obtainPostRequest() {\n /*\n * If the request was sent in JSON format (for example from an mobile app) \n * we will transform it into a format that can be interpreted by PHP\n */ \n $request = Request::createFromGlobals();\n if ($request->headers->get... | [
"0.70411587",
"0.6724601",
"0.6597017",
"0.65200806",
"0.65058976",
"0.6477347",
"0.63542014",
"0.63536906",
"0.63285303",
"0.6294957",
"0.62896717",
"0.6289369",
"0.6279233",
"0.6269329",
"0.6264184",
"0.6256021",
"0.6239642",
"0.62291276",
"0.6229075",
"0.62237316",
"0.6221... | 0.7066636 | 0 |
Get the number of fields in a result object | Получить количество полей в объекте результата | function numFields( $res ); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function num_fields($result){\r\n\t\treturn $result->FieldCount();\r\n\t}",
"public function getFieldCount(): int\n {\n return oci_num_fields($this->resultID);\n }",
"function sql_num_fields($res)\n {\n return $res->columnCount();\n }",
"public function numFields();",
"func... | [
"0.86472553",
"0.82638377",
"0.82249194",
"0.8178945",
"0.81476444",
"0.8072927",
"0.8006596",
"0.7992572",
"0.7971645",
"0.7961646",
"0.7946799",
"0.7903396",
"0.7898712",
"0.7879363",
"0.7858745",
"0.78554946",
"0.7793636",
"0.7787997",
"0.77867573",
"0.7753022",
"0.7752433... | 0.858302 | 1 |
Set the LB info array, or a member of it. If called with one parameter, the LB info array is set to that parameter. If it is called with two parameters, the member with the given name is set to the given value. | Установите массив информации о нижней границе (LB), или его элемент. Если вызывается с одним параметром, массив информации о нижней границе устанавливается в этот параметр. Если вызывается с двумя параметрами, элемент с указанным именем устанавливается в указанное значение. | public function setLBInfo( $name, $value = null ) {
if ( is_null( $value ) ) {
$this->mLBInfo = $name;
} else {
$this->mLBInfo[$name] = $value;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function __setInfo($one, $two = null) {\n\t\t$data = array();\n\n\t\tif (is_array($one)) {\n\t\t\tif (is_array($two)) {\n\t\t\t\t$data = array_combine($one, $two);\n\t\t\t} else {\n\t\t\t\t$data = $one;\n\t\t\t}\n\t\t} else {\n\t\t\t$data = array($one => $two);\n\t\t}\n\t\t$this->_lastInfo = array_merge($t... | [
"0.5889034",
"0.5743998",
"0.5677092",
"0.5583076",
"0.5583076",
"0.55793387",
"0.55419034",
"0.551179",
"0.548282",
"0.5481176",
"0.54527766",
"0.54331714",
"0.54116106",
"0.5406168",
"0.53745896",
"0.53555024",
"0.5354656",
"0.53534895",
"0.5351891",
"0.5337879",
"0.5309605... | 0.7666209 | 0 |
Set lag time in seconds for a fake slave | Установите время задержки в секундах для фиктивного раба | public function setFakeSlaveLag( $lag ) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setLiveTime($time = 300) {\n\t\t$this->clientLiveTime = $time;\n\t}",
"public function useMicroseconds() {\n $this->type = self::MICRSECONDS;\n }",
"public function resetTimer()\r\n\t{\r\n\t\t$this->last = microtime(true);\r\n\t}",
"function setLifeTime($time);",
"public function setLap... | [
"0.53194064",
"0.51364994",
"0.5129239",
"0.5072118",
"0.5055292",
"0.49934384",
"0.49864972",
"0.49632967",
"0.49470243",
"0.49460787",
"0.4899452",
"0.48659962",
"0.48534158",
"0.4844736",
"0.47260696",
"0.47167125",
"0.4708428",
"0.46909532",
"0.46790344",
"0.4675769",
"0.... | 0.7454022 | 0 |
Returns true if this database supports (and uses) cascading deletes | Возвращает true, если эта база данных поддерживает (и использует) цепочки удалений | public function cascadingDeletes() {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function supportsNativeDeleteTrigger();",
"public function allowsCascading()\n {\n return false;\n }",
"public function allowsCascading()\n {\n return false;\n }",
"public function isDelete();",
"public function canDelete()\n {\n return in_array('delete', $this->a... | [
"0.6785055",
"0.67834634",
"0.67834634",
"0.67495066",
"0.6716974",
"0.67087424",
"0.66991264",
"0.6611155",
"0.65118814",
"0.65080523",
"0.64851594",
"0.64529383",
"0.64005804",
"0.6352669",
"0.63490885",
"0.63478065",
"0.63239956",
"0.63171595",
"0.63169974",
"0.63077146",
... | 0.7935325 | 0 |
Returns true if this database can use functional indexes | Возвращает true, если эта база данных может использовать функциональные индексы | public function functionalIndexes() {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function isIndexable()\r\n {\r\n return true;\r\n }",
"function isIndexable()\n {\n return true;\n }",
"public function hasIndex() {\n return $this->_has(14);\n }",
"function isIndexable()\n {\n return true;\n }",
"public function hasIndex(): bool\n {\... | [
"0.68970853",
"0.6876022",
"0.6776687",
"0.6764552",
"0.6737316",
"0.66995126",
"0.6355916",
"0.6349783",
"0.6348026",
"0.62990516",
"0.62315196",
"0.6226161",
"0.61909306",
"0.61907935",
"0.61906636",
"0.61806566",
"0.6071844",
"0.6023099",
"0.6007661",
"0.59971",
"0.5921266... | 0.7903408 | 0 |
Return a path to the DBMSspecific schema file, otherwise default to tables.sql | Верните путь к файлу схемы, специфичному для DBMS, иначе используйте tables.sql по умолчанию | public function getSchemaPath() {
global $IP;
if ( file_exists( "$IP/maintenance/" . $this->getType() . "/tables.sql" ) ) {
return "$IP/maintenance/" . $this->getType() . "/tables.sql";
} else {
return "$IP/maintenance/tables.sql";
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function getDefaultSchemaDirectory() {\n /** @var \\Drupal\\Core\\Extension\\ExtensionList $extensionList */\n $extensionList = \\Drupal::service('extension.list.profile');\n $infoFile = $extensionList->getPathname('dkan2');\n\n return dirname($infoFile) . '/schema';\n }",
"public function... | [
"0.70547223",
"0.6775385",
"0.6634504",
"0.6487378",
"0.63615006",
"0.6319637",
"0.62848943",
"0.61470926",
"0.6110709",
"0.6088293",
"0.60597456",
"0.60014397",
"0.5997326",
"0.59958345",
"0.59958345",
"0.59958345",
"0.59593475",
"0.5907864",
"0.5820859",
"0.58054745",
"0.57... | 0.78192085 | 0 |
Determine whether a query writes to the DB. Should return true if unsure. | Определите, производит ли запрос запись в БД. Должно возвращать true, если неясно. | public function isWriteQuery( $sql ) {
return !preg_match( '/^(?:SELECT|BEGIN|ROLLBACK|COMMIT|SET|SHOW|EXPLAIN|\(SELECT)\b/i', $sql );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function isWriteQuery($sql)\n\t{\n\t\tif( ! preg_match('/^\\s*\"?(INSERT|UPDATE|DELETE|REPLACE|CREATE|DROP|TRUNCATE|LOAD DATA|SET|COPY|ALTER|GRANT|REVOKE|LOCK|UNLOCK)\\s+/i', $sql))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"public function isQueryWrite($sql)\n {\n $opera... | [
"0.7283947",
"0.71292704",
"0.63595283",
"0.6287595",
"0.62773615",
"0.6202627",
"0.61702496",
"0.6120583",
"0.6075",
"0.59670573",
"0.592566",
"0.5918588",
"0.5906756",
"0.58930683",
"0.58833814",
"0.5874331",
"0.5827658",
"0.58259076",
"0.58228797",
"0.5793675",
"0.5777809"... | 0.72427195 | 1 |
Free a prepared query, generated by prepare(). | Освободите подготовленный запрос, сгенерированный prepare(). | protected function freePrepared( $prepared ) {
/* No-op by default */
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function freePrepared($stmt)\r\n {\r\n if (!is_resource($stmt)) {\r\n return false;\r\n }\r\n @ibase_free_query($stmt);\r\n unset($this->prepare_tokens[(int)$stmt]);\r\n unset($this->prepare_types[(int)$stmt]);\r\n unset($this->manip_query[(int)$stmt]);\r\n ... | [
"0.73204035",
"0.71262187",
"0.7097999",
"0.7097999",
"0.7033152",
"0.6894297",
"0.6829839",
"0.6778063",
"0.6710986",
"0.6668445",
"0.66381097",
"0.6541498",
"0.652581",
"0.64713824",
"0.6444314",
"0.63854766",
"0.6369519",
"0.63546455",
"0.63294697",
"0.62989527",
"0.625858... | 0.7618971 | 0 |
Determines if a given index is unique | Определяет, является ли заданный индекс уникальным | public function indexUnique( $table, $index ) {
$indexInfo = $this->indexInfo( $table, $index );
if ( !$indexInfo ) {
return null;
}
return !$indexInfo[0]->Non_unique;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function isUnique();",
"function isUniqueKey(): bool;",
"public function isIndex();",
"private function hasLocalUniqueIndex(): bool\n {\n if ($this->hasLocalUniqueIndex !== null) {\n return $this->hasLocalUniqueIndex;\n }\n foreach ($this->getForeignKey()->getLocalTa... | [
"0.72750413",
"0.6972501",
"0.6691785",
"0.6689782",
"0.65960866",
"0.6587939",
"0.65752023",
"0.6478363",
"0.64722604",
"0.6371655",
"0.6289972",
"0.6282442",
"0.62823623",
"0.6282335",
"0.62539333",
"0.6184638",
"0.6123762",
"0.6115576",
"0.61140114",
"0.59683895",
"0.59216... | 0.7479034 | 0 |
Format a table name ready for use in constructing an SQL query This does two important things: it quotes the table names to clean them up, and it adds a table prefix if only given a table name with no quotes. All functions of this object which require a table name call this function themselves. Pass the canonical name ... | Форматирование имени таблицы для использования в построении SQL-запроса. Это выполняет две важные задачи: оно закрывает имена таблиц, очищая их, и добавляет префикс таблицы, если передано только имя таблицы без кавычек. Все функции этого объекта, требующие имя таблицы, сами вызывают эту функцию. Передавайте каноническо... | public function tableName( $name, $format = 'quoted' ) {
global $wgSharedDB, $wgSharedPrefix, $wgSharedTables, $wgSharedSchema;
# Skip the entire process when we have a string quoted on both ends.
# Note that we check the end so that we will still quote any use of
# use of `database`.table. But won't break thin... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static function genFullyQualifiedTableName($database_name, $table_name) {\n return \"{$database_name}.{$table_name}\";\n }",
"public function quoteTableName($tableName);",
"public function filterName($table)\n {\n return trim($this->db->quote($table), \"'\");\n }",
"public function q... | [
"0.70689505",
"0.7062977",
"0.7031967",
"0.69663316",
"0.69137025",
"0.6820142",
"0.6815489",
"0.6779332",
"0.67019403",
"0.67019403",
"0.6658673",
"0.66483",
"0.6646395",
"0.6610532",
"0.6594212",
"0.65907425",
"0.6559676",
"0.6536713",
"0.6525947",
"0.64816743",
"0.6459923"... | 0.7321869 | 0 |
Returns if the given identifier looks quoted or not according to the database convention for quoting identifiers . | Возвращает, выглядит ли заданный идентификатор процитированным или нет в соответствии с традицией базы данных для цитирования идентификаторов. | public function isQuotedIdentifier( $name ) {
return $name[0] == '"' && substr( $name, -1, 1 ) == '"';
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function isIdentifierQuotingEnabled()\n {\n return (null !== $this->identifierQuoting || !$this->database) ? $this->identifierQuoting : $this->database->isIdentifierQuotingEnabled(\n );\n }",
"public function isQuoted(): bool\n\t{\n\t\treturn preg_match('/^\".+?\"$/', $this->getValue()... | [
"0.77998936",
"0.7159847",
"0.6622035",
"0.6619513",
"0.634984",
"0.6330588",
"0.6293073",
"0.6291405",
"0.6178596",
"0.6098345",
"0.6064531",
"0.600046",
"0.5996037",
"0.589312",
"0.58701915",
"0.5852726",
"0.5793459",
"0.57917976",
"0.5777541",
"0.5709027",
"0.56929994",
... | 0.7508494 | 1 |
LIKE statement wrapper, receives a variablelength argument list with parts of pattern to match containing either string literals that will be escaped or tokens returned by anyChar() or anyString(). Alternatively, the function could be provided with an array of aforementioned parameters. Example: $dbr>buildLike( 'My_pag... | Обертка для оператора LIKE, получает переменный список аргументов, представляющих части шаблона для совпадения, содержащие либо строковые литералы, которые будут экранированы, либо токены, возвращённые anyChar() или anyString(). В качестве альтернативы функция может быть предоставлена массивом указанных выше параметров... | public function buildLike() {
$params = func_get_args();
if ( count( $params ) > 0 && is_array( $params[0] ) ) {
$params = $params[0];
}
$s = '';
foreach ( $params as $value ) {
if ( $value instanceof LikeMatch ) {
$s .= $value->toString();
} else {
$s .= $this->escapeLikeInternal( $value ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function like($x, $y, $and=null, ...$args)\n {\n $expression = array();\n array_push($expression, $x, _LIKE, $y, $and, ...$args);\n return $expression;\n }",
"function like($x, $y, $and=null, ...$args)\n {\n $expression = array();\n array_push($expression, $x, _LIKE, $... | [
"0.6441864",
"0.6441864",
"0.6186867",
"0.6051487",
"0.592335",
"0.5855771",
"0.5816631",
"0.5806903",
"0.56636673",
"0.564101",
"0.56385016",
"0.56294775",
"0.5587106",
"0.5509257",
"0.54952735",
"0.5483597",
"0.5474032",
"0.54471314",
"0.5447032",
"0.54447025",
"0.5430577",... | 0.7345409 | 0 |
Returns the size of a text field, or 1 for "unlimited" | Возвращает размер текстового поля, или 1 для "неограниченного" | public function textFieldSize( $table, $field ) {
$table = $this->tableName( $table );
$sql = "SHOW COLUMNS FROM $table LIKE \"$field\";";
$res = $this->query( $sql, 'DatabaseBase::textFieldSize' );
$row = $this->fetchObject( $res );
$m = array();
if ( preg_match( '/\((.*)\)/', $row->Type, $m ) ) {
$si... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function _get_field_size() \n {\n if (isset($this->attribs['size'])) {\n return $this->attribs['size'];\n }\n elseif ($this->attribs['maxlength'] > $this->max_size) {\n return $this->max_size;\n }\n else {\n return $this->attribs['maxlength'];\... | [
"0.74505734",
"0.7188476",
"0.6869478",
"0.68408394",
"0.6827479",
"0.6700138",
"0.6609042",
"0.6510711",
"0.6496085",
"0.64864105",
"0.6439577",
"0.64126414",
"0.6392382",
"0.6346144",
"0.6339937",
"0.6228699",
"0.6215185",
"0.6214656",
"0.62142754",
"0.61584455",
"0.6140821... | 0.74284303 | 1 |
Returns true if current database backend supports ORDER BY or LIMIT for separate subqueries within the UNION construct. | Возвращает true, если текущий базовый интерфейс данных поддерживает ORDER BY или LIMIT для отдельных подзапросов внутри конструкции UNION. | public function unionSupportsOrderAndLimit() {
return true; // True for almost every DB supported
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function doesSupportCombinedQueryFilter()\n\t{\n\t\treturn version_compare($this->engine->info()['version']['number'], '2.0.0', '>=');\n\t}",
"private function isSelectQuery()\n\t{\n\t\treturn sizeof($this->selects) > 0;\n\t}",
"public function testOrderByContainingAggregateAndLimitOffset()\n {\n ... | [
"0.56830454",
"0.56624866",
"0.54944086",
"0.5458528",
"0.53837544",
"0.5320136",
"0.53056604",
"0.52896124",
"0.52376455",
"0.51208085",
"0.5107737",
"0.5076896",
"0.5021348",
"0.5018118",
"0.50093454",
"0.5007495",
"0.49737892",
"0.49484634",
"0.49080336",
"0.48964694",
"0.... | 0.7750311 | 0 |
Determines if the last failure was due to a lock timeout STUB | Определяет, была ли последняя ошибка вызвана таймаутом блокировки СТУБ | public function wasLockTimeout() {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testAssertTTLFailsNotLockedAnymore() {\n\n\t\t\t$lockName = uniqid();\n\n\t\t\tSharedLock::lock($lockName, 0, 10);\n\n\t\t\t// simulate that the database lock was not hold\n\t\t\tif ($this->sqlExecute('DELETE FROM ' . SharedLock::getTable() . ' WHERE name = :name', [':name' => $lockName])->rowCount... | [
"0.64479434",
"0.61494356",
"0.61445117",
"0.61407095",
"0.6100896",
"0.5992379",
"0.5980937",
"0.58910996",
"0.5866239",
"0.580585",
"0.57505256",
"0.571657",
"0.56999946",
"0.5691314",
"0.5681908",
"0.56326276",
"0.55967647",
"0.558859",
"0.55836415",
"0.5549917",
"0.553985... | 0.72424227 | 0 |
Perform a deadlockprone transaction. This function invokes a callback function to perform a set of write queries. If a deadlock occurs during the processing, the transaction will be rolled back and the callback function will be called again. Usage: $dbw>deadlockLoop( callback, ... ); Extra arguments are passed through ... | Выполняет транзакцию, склонную к смертельному зависанию. Эта функция вызывает функцию обратного вызова для выполнения набора записей. Если во время обработки произойдет смертельное зависание, транзакция будет отменена, а функция обратного вызова будет вызвана снова. Использование: $dbw>deadlockLoop( callback, ... ); До... | public function deadlockLoop() {
$this->begin( __METHOD__ );
$args = func_get_args();
$function = array_shift( $args );
$oldIgnore = $this->ignoreErrors( true );
$tries = self::DEADLOCK_TRIES;
if ( is_array( $function ) ) {
$fname = $function[0];
} else {
$fname = $function;
}
do {
$retVal ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function doTransaction($callback)\n {\n $this->startTransaction();\n \n try\n {\n $returnValue = call_user_func($callback);\n $this->commit();\n \n return $returnValue;\n }\n catch (Exception $e)\n {\n ... | [
"0.5220691",
"0.5130228",
"0.49069783",
"0.4890334",
"0.48674822",
"0.48404592",
"0.4827437",
"0.48217392",
"0.47768053",
"0.4736532",
"0.47189006",
"0.47145742",
"0.46984896",
"0.45758185",
"0.45674092",
"0.45568466",
"0.45317888",
"0.44873378",
"0.44861403",
"0.4451217",
"0... | 0.75988287 | 0 |
Wait for the slave to catch up to a given master position. | Ожидайте, пока рабочая станция догонит заданную позицию мастера. | public function masterPosWait( DBMasterPos $pos, $timeout ) {
# Real waits are implemented in the subclass.
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getWaitForMasterVariant();",
"public function wait($wait = -1) {}",
"function nextSlave();",
"public function wait(): void;",
"public function waitPush()\n {\n sleep(7);\n\n return 0;\n }",
"private static function getMasterSlave() {\n return self::getRandomPDOL... | [
"0.5846356",
"0.559512",
"0.5529766",
"0.5427571",
"0.52704316",
"0.52266115",
"0.5187533",
"0.51584136",
"0.5131039",
"0.5105119",
"0.5091264",
"0.5033472",
"0.49986482",
"0.49831766",
"0.4967625",
"0.49347442",
"0.49212244",
"0.49177685",
"0.48495102",
"0.48108897",
"0.4807... | 0.71987027 | 0 |
Get the replication position of this slave | Получить позицию репликации этого слейва | public function getSlavePos() {
# Stub
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getReplicationMode() {}",
"public function getMasterPos() {\n\t\t# Stub\n\t\treturn false;\n\t}",
"public function getPosition() : int\n {\n $rtn = $this->data['position'];\n\n return $rtn;\n }",
"public function position() {\n\t\treturn $this->position;\n\t}",
"privat... | [
"0.6183108",
"0.61043215",
"0.6047804",
"0.5856333",
"0.5852871",
"0.58333707",
"0.58333707",
"0.5823529",
"0.5823529",
"0.5810612",
"0.57728523",
"0.5764091",
"0.5688415",
"0.566657",
"0.5651505",
"0.5651505",
"0.5625289",
"0.56067103",
"0.56067103",
"0.56067103",
"0.5606710... | 0.7183248 | 0 |
Get the position of this master | Получить положение этого мастера | public function getMasterPos() {
# Stub
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function getPosition()\n {\n return self::$position;\n }",
"function getPosition()\n\t{\n\t\treturn $this->Info['Position'];\n\t}",
"public function position() {\n\t\treturn $this->position;\n\t}",
"public function getPosition() {\n\t\treturn $this->position;\n\t}",
"public funct... | [
"0.7754354",
"0.77502626",
"0.7718573",
"0.7705532",
"0.7705532",
"0.7701143",
"0.7701143",
"0.7665094",
"0.7665094",
"0.7665094",
"0.7665094",
"0.7665094",
"0.7665094",
"0.7665094",
"0.7665094",
"0.7665094",
"0.7664176",
"0.7570701",
"0.75304776",
"0.7514641",
"0.7508795",
... | 0.79491884 | 0 |
Run an anonymous function before the current transaction commits or now if there is none. If there is a transaction and it is rolled back, then the callback is cancelled. Callbacks must not start nor commit any transactions. This is useful for updates that easily cause deadlocks if locks are held too long but where ato... | Запустить анонимную функцию до завершения текущей транзакции или сразу, если транзакции нет. Если есть транзакция и она откатывается, то вызов обратного вызова отменяется. Обратные вызовы не должны начинать и не должны завершать транзакции. Это полезно для обновлений, которые легко могут вызвать смертельные зависания, ... | final public function onTransactionPreCommitOrIdle( $callback ) {
if ( $this->mTrxLevel ) {
$this->mTrxPreCommitCallbacks[] = array( $callback, wfGetCaller() );
} else {
$this->onTransactionIdle( $callback ); // this will trigger immediately
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function transaction(callable $callback);",
"public function transaction(\\Closure $callback)\r\n {\r\n $this->beginTransaction();\r\n try {\r\n $result = $callback($this);\r\n $this->commit();\r\n } catch (\\Exception $e) {\r\n $this->rollBack();\r... | [
"0.6691991",
"0.6466359",
"0.64397067",
"0.64162356",
"0.63698864",
"0.6283527",
"0.61552584",
"0.6146789",
"0.60918534",
"0.6082829",
"0.58889323",
"0.5820414",
"0.5816605",
"0.57535666",
"0.5679506",
"0.5624247",
"0.5623981",
"0.561078",
"0.55885744",
"0.55700654",
"0.55515... | 0.7081728 | 0 |
Actually any "on transaction idle" callbacks. | Фактически любые "колбэки при простоя транзакции". | protected function runOnTransactionIdleCallbacks() {
$autoTrx = $this->getFlag( DBO_TRX ); // automatic begin() enabled?
$e = null; // last exception
do { // callbacks may add callbacks :)
$callbacks = $this->mTrxIdleCallbacks;
$this->mTrxIdleCallbacks = array(); // recursion guard
foreach ( $callbacks ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"final public function onTransactionIdle( $callback ) {\n\t\t$this->mTrxIdleCallbacks[] = array( $callback, wfGetCaller() );\n\t\tif ( !$this->mTrxLevel ) {\n\t\t\t$this->runOnTransactionIdleCallbacks();\n\t\t}\n\t}",
"public function idle()\n {\n $this->getEventManager()->trigger('broker.idle', $this);... | [
"0.7840389",
"0.6474515",
"0.643613",
"0.59758216",
"0.59040415",
"0.57293135",
"0.56708556",
"0.5577007",
"0.5517212",
"0.5514543",
"0.5472564",
"0.5472564",
"0.5402068",
"0.53860223",
"0.53613645",
"0.53613645",
"0.53601694",
"0.53601694",
"0.53601384",
"0.5302455",
"0.5301... | 0.7852401 | 0 |
Actually any "on transaction precommit" callbacks. | Фактически любые "колбеки на предкоммит транзакции". | protected function runOnTransactionPreCommitCallbacks() {
$e = null; // last exception
do { // callbacks may add callbacks :)
$callbacks = $this->mTrxPreCommitCallbacks;
$this->mTrxPreCommitCallbacks = array(); // recursion guard
foreach ( $callbacks as $callback ) {
try {
list( $phpCallback ) = $... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"final public function onTransactionPreCommitOrIdle( $callback ) {\n\t\tif ( $this->mTrxLevel ) {\n\t\t\t$this->mTrxPreCommitCallbacks[] = array( $callback, wfGetCaller() );\n\t\t} else {\n\t\t\t$this->onTransactionIdle( $callback ); // this will trigger immediately\n\t\t}\n\t}",
"protected function createPreComm... | [
"0.7491039",
"0.6891514",
"0.68348706",
"0.68348706",
"0.67558885",
"0.67558885",
"0.64764464",
"0.64314985",
"0.63120276",
"0.62981534",
"0.6282929",
"0.61919534",
"0.615932",
"0.615932",
"0.60869044",
"0.60841334",
"0.5993962",
"0.5970826",
"0.5957732",
"0.5955439",
"0.5951... | 0.78405464 | 0 |
Reset the views process cache set by listViews() | Сбросьте кэш процесса просмотров, установленный методом listViews() | final public function clearViewsCache() {
$this->allViews = null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function taxonomy_post_update_clear_views_data_cache() {\n // An empty update will flush caches.\n}",
"public function resetView()\n {\n $this->view = null;\n }",
"function cache_actions_action_clear_views_cache($view) {\n views_include_handlers();\n require_once('./' . drupal_get_path('module'... | [
"0.72413194",
"0.7187678",
"0.7025951",
"0.6646831",
"0.6451856",
"0.6447584",
"0.6447584",
"0.6446726",
"0.64217997",
"0.6377167",
"0.6250144",
"0.6163103",
"0.61348516",
"0.6058258",
"0.6001232",
"0.59977764",
"0.5996866",
"0.5996723",
"0.5989058",
"0.5979486",
"0.5972598",... | 0.8085564 | 0 |
Take the result from a query, and wrap it in a ResultWrapper if necessary. Boolean values are passed through as is, to indicate success of write queries or failure. Once upon a time, DatabaseBase::query() returned a bare MySQL result resource, and it was necessary to call this function to convert it to a wrapper. Nowad... | Возьмите результат запроса и оберните его в ResultWrapper при необходимости. Значения логического типа передаются как есть, чтобы указать успешность выполнения запроса на запись или его неудачу. В прошлом метод DatabaseBase::query() возвращал ресурс результата MySQL без обертки, и для преобразования его в обертку прихо... | public function resultObject( $result ) {
if ( empty( $result ) ) {
return false;
} elseif ( $result instanceof ResultWrapper ) {
return $result;
} elseif ( $result === true ) {
// Successful write query
return $result;
} else {
return new ResultWrapper( $this, $result );
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function query($query, $resultmode = MYSQLI_STORE_RESULT) {\n\n\t\t$res = @parent::query($query, $resultmode);\n\n\t\tif ($res === false) {\n\t\t\tthrow new DBAdapterException(\"query failed: \" . $this->error);\n\t\t}\n\n\t\treturn $res;\n\n\t}",
"public function query($query){ \n\t\tif($r = $this->mysql... | [
"0.6075832",
"0.6042614",
"0.6036757",
"0.59644574",
"0.5956207",
"0.58718336",
"0.58703387",
"0.5869335",
"0.58686954",
"0.5858013",
"0.58386767",
"0.58212465",
"0.5809602",
"0.57765234",
"0.57746065",
"0.5743513",
"0.5738501",
"0.57221586",
"0.5696202",
"0.5666832",
"0.5646... | 0.7078897 | 0 |
Return the maximum number of items allowed in a list, or 0 for unlimited. | Верните максимальное количество элементов, допустимых в списке, или 0 для неограниченного количества. | function maxListLen() {
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getMaxItems()\n {\n return isset($this->max_items) ? $this->max_items : 0;\n }",
"public function getMaxItemsCount() {\n\t\t\treturn $this->maxItemsCount;\n\t\t}",
"protected function getMaxItemsCount()\n {\n return $this->getParam(self::PARAM_MAX_ITEMS_TO_DISPLAY) ?: $th... | [
"0.7630173",
"0.7507096",
"0.7476942",
"0.7464064",
"0.74534065",
"0.74534065",
"0.7274252",
"0.70560503",
"0.70192623",
"0.68786466",
"0.67169124",
"0.6659663",
"0.6578882",
"0.65289193",
"0.6495324",
"0.6470701",
"0.64255506",
"0.64000225",
"0.6386152",
"0.6364807",
"0.6363... | 0.8014712 | 0 |
Get the full path of a patch file. Originally based on archive() from updaters.inc. Keep in mind this always returns a patch, as it fails back to MySQL if no DBspecific patch can be found | Получите полный путь файла с патчем. Изначально основано на функции archive() из updaters.inc. Учитывайте, что это всегда возвращает патч, так как в случае отсутствия патча, специфичного для БД, происходит переход к MySQL. | public function patchPath( $patch ) {
global $IP;
$dbType = $this->getType();
if ( file_exists( "$IP/maintenance/$dbType/archives/$patch" ) ) {
return "$IP/maintenance/$dbType/archives/$patch";
} else {
return "$IP/maintenance/archives/$patch";
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getPatchFullpath($bugid, $name, $revision)\n\t{\n\t\treturn $this->patchDir($bugid, $name) .\n\t\t\tDIRECTORY_SEPARATOR . $this->getPatchFileName($revision);\n\t}",
"public static function getPatchesLockFilePath(): string\n {\n $composer_file = \\Composer\\Factory::getComposerFile();\n\n ... | [
"0.6790718",
"0.6348242",
"0.6227641",
"0.6149599",
"0.61028755",
"0.59727603",
"0.5945534",
"0.59272623",
"0.5807183",
"0.5773643",
"0.57269156",
"0.57157797",
"0.5659053",
"0.55477464",
"0.5521633",
"0.549252",
"0.5461364",
"0.5454011",
"0.5447478",
"0.5412775",
"0.53762025... | 0.81683356 | 0 |
Get schema variables. If none have been set via setSchemaVars(), then use some defaults from the current object. | Получить переменные схемы. Если они не были заданы через setSchemaVars(), используйте какие-либо значения по умолчанию из текущего объекта. | protected function getSchemaVars() {
if ( $this->mSchemaVars ) {
return $this->mSchemaVars;
} else {
return $this->getDefaultSchemaVars();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function getDefaultSchemaVars() {\n\t\treturn array();\n\t}",
"public function setSchemaVars( $vars ) {\n\t\t$this->mSchemaVars = $vars;\n\t}",
"public function getDefaultVars() {\n\t\t$ret = array();\n\t\tforeach ($this->_vars as $key => $var) {\n\t\t\t$ret[$key] = $var->defaultValue;\n\t\t}\n\t\tre... | [
"0.7539252",
"0.6366565",
"0.5920481",
"0.5678419",
"0.55531025",
"0.5533793",
"0.5493296",
"0.54886484",
"0.5417493",
"0.54017603",
"0.5390949",
"0.53856975",
"0.53658414",
"0.53522474",
"0.533974",
"0.52947384",
"0.5248049",
"0.5239406",
"0.5211932",
"0.5203809",
"0.5185151... | 0.8047231 | 0 |
Get search engine class. All subclasses of this need to implement this if they wish to use searching. | Получить класс поисковой системы. Все подклассы этого класса должны реализовать этот метод, если хотят использовать поиск. | public function getSearchEngine() {
return 'SearchEngineDummy';
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getEngine()\n {\n if (Mage::helper('conversionpro')->isActiveEngine()) {\n\t\t\treturn Mage::helper('conversionpro')->getSearchEngine();\n\t\t}\n\t\t\n\t\treturn parent::getEngine();\n }",
"public function getSearchClass()\n {\n return 'tx_t3socials_search_Network';\n }"... | [
"0.6832338",
"0.67596716",
"0.6639161",
"0.6602117",
"0.6480685",
"0.64521724",
"0.6402394",
"0.6342116",
"0.6167772",
"0.61394525",
"0.61394525",
"0.6105167",
"0.60417515",
"0.60255164",
"0.59309065",
"0.5928658",
"0.59211165",
"0.5911739",
"0.58571965",
"0.5845837",
"0.5842... | 0.7352648 | 0 |
Find out when 'infinity' is. Most DBMSes support this. This is a special keyword for timestamps in PostgreSQL, and works with CHAR(14) as well because "i" sorts after all numbers. | Узнайте, когда появляется 'infinity'. Большинство СУБД поддерживают это. Это специальное ключевое слово для времён в PostgreSQL, и оно также работает с CHAR(14), поскольку "i" сортируется после всех чисел. | public function getInfinity() {
return 'infinity';
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testToStringReturnsStringIfIntervalContainsInfinity()\n {\n $interval = (new Interval())\n ->setIsLowerInclusive(true)\n ->setLower(-INF)\n ->setUpper(INF)\n ->setIsUpperInclusive(true);\n \n $this->assertEquals('[-INF, INF]', (str... | [
"0.6115244",
"0.6039627",
"0.58262825",
"0.57910514",
"0.564548",
"0.56029576",
"0.54095167",
"0.52321315",
"0.5225156",
"0.51457924",
"0.51368845",
"0.4924057",
"0.4842779",
"0.47995993",
"0.47776976",
"0.4738159",
"0.47084165",
"0.47084165",
"0.47052827",
"0.4699079",
"0.46... | 0.71494013 | 0 |
Encode an expiry time into the DBMS dependent format | Закодировать время истечения срока действия в формат, зависящий от СУБД | public function encodeExpiry( $expiry ) {
return ( $expiry == '' || $expiry == 'infinity' || $expiry == $this->getInfinity() )
? $this->getInfinity()
: $this->timestamp( $expiry );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getFormattedExpirationDate();",
"public function expiryDate();",
"public function setExpiry( $expiry );",
"public function expiryHuman(): ?string\n {\n return static::expiryTimeToHuman($this->expiry());\n }",
"public function __construct($expiryHrs = 720, $enc_char_len = 20, $d... | [
"0.58495355",
"0.5714462",
"0.5640487",
"0.5621264",
"0.5620511",
"0.55205667",
"0.5515455",
"0.5455009",
"0.5431257",
"0.53860813",
"0.5375395",
"0.5334364",
"0.5314011",
"0.52838165",
"0.5256872",
"0.5198299",
"0.51799005",
"0.51525956",
"0.51457214",
"0.51279247",
"0.50951... | 0.7228259 | 0 |
// Public API // // Whether the application is using URL rewriting | // Публичный API // // Используется ли приложение URL-переписыванием | function router_use_rewriting()
{
return framework_config('pretty_urls', false, true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function can_rewrite(){ return array_val_is($_SERVER,'WDF_FEATURES_REWRITE','on') || array_val_is($_SERVER,'REDIRECT_WDF_FEATURES_REWRITE','on'); }",
"function got_url_rewrite()\n {\n }",
"protected function _isUrlRewriteEnabled()\n {\n return Mage::getStoreConfigFlag('web/seo/use_rewrites');\n... | [
"0.7471689",
"0.746223",
"0.7186182",
"0.70574033",
"0.69199735",
"0.6814931",
"0.67180836",
"0.67067534",
"0.659594",
"0.65465295",
"0.6505223",
"0.6431211",
"0.6431186",
"0.6421182",
"0.6402789",
"0.6398544",
"0.6348603",
"0.6347478",
"0.6244861",
"0.6223541",
"0.6209431",
... | 0.766315 | 0 |
Add query parameters to a URL. | Добавить параметры запроса в URL. | function router_add_query($url, array $qp = array())
{
if (empty($qp)) {
return $url;
}
if (strpos($url, '?') !== false) {
list($url, $query_str) = explode('?', $url, 2);
parse_str($query_str, $old_qp);
$qp = array_merge($old_qp, $qp);
}
if (!empty($qp)) {
$ur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function addQueryParams($params) {}",
"function addURLQuery($query){\n\t\t$query = \"?\".$query.\"&\";\n\t\tforeach($_GET as $k=>$v){\n\t\t\t$query .= \"$k=$v\".\"&\";\n\t\t}\n\t\t$query = substr($query, 0, -1);//chop last ampersand off\n\t\t$curl = preg_replace('/\\?.*/', '', curPageURL()); //get current... | [
"0.74345773",
"0.7267322",
"0.71850467",
"0.7078759",
"0.67923725",
"0.6735754",
"0.66736263",
"0.6642044",
"0.657632",
"0.65399146",
"0.64793634",
"0.6447985",
"0.6436245",
"0.6430073",
"0.64123565",
"0.63581115",
"0.6315768",
"0.630738",
"0.62795764",
"0.6251986",
"0.623367... | 0.7269372 | 1 |
Get min value for the histogram. | Получить минимальное значение для гистограммы. | public function getHistogramMin(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getMin()\n {\n return $this->_minValue;\n }",
"public function getMinXValue() {\r\n return $this->chart->getMinXValue($this);\r\n }",
"protected function getMin() {\n\n\t\t$min = 1;\n\n\t\tif (!empty($this->tagsArray)) {\n\n\t\t\t$preAmount = 999999;\n\n\t\t\tforeach ($th... | [
"0.7441725",
"0.7391779",
"0.73762745",
"0.72863084",
"0.72185755",
"0.7169422",
"0.7110866",
"0.70774686",
"0.7071681",
"0.7034718",
"0.6994033",
"0.69844437",
"0.69790596",
"0.6907921",
"0.6882132",
"0.6878638",
"0.6869144",
"0.68499064",
"0.68499064",
"0.67570645",
"0.6751... | 0.8516024 | 0 |
Get max value for the histogram. | Получить максимальное значение для гистограммы. | public function getHistogramMax(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getHistogramMax()\n {\n // return $this->sides;\n return $this->getSides();\n }",
"public function getMax()\n {\n return $this->_maxValue;\n }",
"protected function max_value() {\n $max = 0;\n foreach ($this->data_collections as $data_collection) {... | [
"0.7914383",
"0.76783293",
"0.7543119",
"0.740248",
"0.7378326",
"0.7372607",
"0.736511",
"0.73560977",
"0.73551476",
"0.7348682",
"0.7337039",
"0.7331731",
"0.7331731",
"0.7216384",
"0.7165802",
"0.7122292",
"0.71139044",
"0.7083786",
"0.70527774",
"0.6971833",
"0.6952972",
... | 0.8632532 | 0 |
Register system providers Kernel/Console/Filesystem etc.. | Зарегистрируйте системные провайдеры Kernel/Console/Filesystem и т.д. | protected function registerSystem() { } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function registerProviders() {\n $providers = $this->providers;\n foreach ($providers as $key => $value) {\n $this->app[$key] = $this->app->share(function($app) use ($value) {\n return new $value($app);\n });\n }\n }",
"protected function reg... | [
"0.68266845",
"0.675382",
"0.6660612",
"0.6607012",
"0.6568866",
"0.6553215",
"0.6551959",
"0.6459465",
"0.64386827",
"0.6411113",
"0.63785654",
"0.6336003",
"0.63326085",
"0.63262165",
"0.6268534",
"0.6187763",
"0.6183288",
"0.6159799",
"0.61547667",
"0.6152399",
"0.6142702"... | 0.7470808 | 0 |
Encrypt file url string | Шифровать строку URL файла | function encrypt_file_url($string) {
$encryption_conf = config_item('encryption');
//get encryption configurations from config
$key = $encryption_conf['key'];
$method = $encryption_conf['method'];
$iv = $encryption_conf['iv'];
$output = openssl_encrypt($string, $method, $key, 0, $iv);
return ba... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function decrypt_file_url($encrypted_string) {\n \t$encryption_conf = config_item('encryption');\n\n\t//get encryption configurations from config\n $key = $encryption_conf['key'];\n $method = $encryption_conf['method'];\n $iv = $encryption_conf['iv'];\n $output = openssl_decrypt(base64_decode($encrypte... | [
"0.67848",
"0.641968",
"0.6359219",
"0.6357397",
"0.6304223",
"0.6192046",
"0.6168719",
"0.6162631",
"0.6127408",
"0.5982825",
"0.5955416",
"0.59296024",
"0.5819392",
"0.58148205",
"0.57903296",
"0.57758",
"0.5754856",
"0.57512003",
"0.56835747",
"0.56668913",
"0.56366056",
... | 0.8465742 | 0 |
Decrypt encrypted file url string | Расшифруйте зашифрованную строку URL файла | function decrypt_file_url($encrypted_string) {
$encryption_conf = config_item('encryption');
//get encryption configurations from config
$key = $encryption_conf['key'];
$method = $encryption_conf['method'];
$iv = $encryption_conf['iv'];
$output = openssl_decrypt(base64_decode($encrypted_string), $me... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function encrypt_file_url($string) {\n \t$encryption_conf = config_item('encryption');\n\n\t//get encryption configurations from config\n $key = $encryption_conf['key'];\n $method = $encryption_conf['method'];\n $iv = $encryption_conf['iv'];\n $output = openssl_encrypt($string, $method, $key, 0, $iv);\... | [
"0.7202094",
"0.7193076",
"0.6800833",
"0.6800833",
"0.6708154",
"0.654168",
"0.6379174",
"0.6286782",
"0.62842137",
"0.62520725",
"0.6203645",
"0.6203551",
"0.6122419",
"0.6114414",
"0.60058016",
"0.5991961",
"0.5951557",
"0.59346986",
"0.59092706",
"0.58868253",
"0.58722365... | 0.8295231 | 0 |