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 |
|---|---|---|---|---|---|---|---|
Lists all vxc entities. | Список всех сущностей vxc. | public function vxcAction()
{
$em = $this->getDoctrine()->getManager();
$entities = $em->getRepository('ArmensaViajesBundle:Viaje')->findAll();
return array(
'entities' => $entities,
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('SCRUMSwiftairBundle:Vluchten')->findAll();\n\n return array(\n 'entities' => $entities,\n );\n }",
"public function getAllEntities();",
"public function... | [
"0.6703704",
"0.6694079",
"0.6681094",
"0.66670257",
"0.65916276",
"0.6560149",
"0.64527863",
"0.64340407",
"0.6364931",
"0.6310466",
"0.62936336",
"0.62934417",
"0.62586564",
"0.62584406",
"0.62449926",
"0.62326676",
"0.6214563",
"0.6213146",
"0.6211747",
"0.6211469",
"0.621... | 0.7578346 | 0 |
Lists all utilidad entities. | Список всех сущностей utilidad. | public function utilidadAction()
{
$em = $this->getDoctrine()->getManager();
$entities = $em->getRepository('ArmensaViajesBundle:Viaje')->findAll();
return array(
'entities' => $entities,
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function listaAll() {\n require ROOT . \"config/bootstrap.php\";\n return $em->getRepository('models\\Equipamentos')->findby(array(), array(\"id\" => \"DESC\"));\n $em->flush();\n }",
"public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $util... | [
"0.73543423",
"0.70603126",
"0.70283186",
"0.698948",
"0.6871227",
"0.68070906",
"0.6801996",
"0.6768673",
"0.6739275",
"0.67251426",
"0.670513",
"0.6704021",
"0.6691124",
"0.6676415",
"0.66574025",
"0.6632916",
"0.6631309",
"0.6577723",
"0.65710306",
"0.6555872",
"0.65514994... | 0.7458208 | 0 |
Creates a form to create a Viaje entity. | Создает форму для создания сущности Viaje. | private function createCreateForm(Viaje $entity)
{
$form = $this->createForm(new ViajeType(), $entity, array(
'action' => $this->generateUrl('viaje_create'),
'method' => 'POST',
));
$form->add('submit', 'submit', array('label' => 'Crear'));
return $form;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function newAction()\n {\n $entity = new Viaje();\n $form = $this->createCreateForm($entity);\n\n return array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }",
"private function createCreateForm(Vluchten $entity)\n {\n ... | [
"0.70839125",
"0.69730365",
"0.6878921",
"0.6878921",
"0.6846037",
"0.6773667",
"0.67715836",
"0.6763188",
"0.6669541",
"0.6641956",
"0.6606211",
"0.6595552",
"0.6591642",
"0.6577467",
"0.65698266",
"0.655857",
"0.6547525",
"0.65325785",
"0.6520933",
"0.6520933",
"0.6515869",... | 0.768235 | 0 |
Displays a form to create a new Viaje entity. | Показывает форму для создания новой сущности Viaje. | public function newAction()
{
$entity = new Viaje();
$form = $this->createCreateForm($entity);
return array(
'entity' => $entity,
'form' => $form->createView(),
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function newAction() {\n $entity = new Gasolina();\n $form = $this->createForm(new GasolinaType(), $entity);\n\n return $this->render('TxinbometroBundle:Gasolina:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView()\n ));\n }",
"... | [
"0.7436997",
"0.7396826",
"0.7375791",
"0.7360901",
"0.73286015",
"0.73177844",
"0.73038983",
"0.722275",
"0.7213958",
"0.72019476",
"0.71950114",
"0.71905756",
"0.71801853",
"0.7167515",
"0.7162832",
"0.71611017",
"0.714942",
"0.7141371",
"0.71330976",
"0.7114585",
"0.711055... | 0.77772695 | 0 |
Creates a form to edit a Viaje entity. | Создает форму для редактирования сущности Viaje. | private function createEditForm(Viaje $entity)
{
$form = $this->createForm(new ViajeType(), $entity, array(
'action' => $this->generateUrl('viaje_update', array('id' => $entity->getId())),
'method' => 'PUT',
));
$form->add('submit', 'submit', array('label' => 'Actual... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function createEditForm(EnvaseIngreso $entity)\n {\n $form = $this->createForm(new EnvaseIngresoType(), $entity, array(\n 'action' => $this->generateUrl('envase_ingreso_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit... | [
"0.7089176",
"0.70837975",
"0.70702255",
"0.7050748",
"0.7020761",
"0.69863176",
"0.69392353",
"0.69339705",
"0.6894003",
"0.6864946",
"0.68618363",
"0.685108",
"0.68285954",
"0.6807772",
"0.67804414",
"0.6756561",
"0.67510384",
"0.67389226",
"0.67212725",
"0.6715334",
"0.669... | 0.76873076 | 0 |
Register feature The Feature Example Extension has UI interface. That is why it is very important to make sure that it is backend (there is no need to load this Extension if user is browsing frontend). From release 2.5, each Extension has its own capability assigned to it. By default all Extensions have capability "Adm... | Регистрация функции. Интерфейс Feature Example Extension имеет пользовательский интерфейс. Поэтому очень важно убедиться, что он является бэкендом (нет необходимости загружать этот Extension, если пользователь просматривает фронтенд). С версии 2.5 каждому Extension назначена своя собственная функциональность. По умолча... | protected function registerFeature() {
//add feature
$capability = aam_Core_ConfigPress::getParam(
'aam.feature.' . self::FEATURE_ID . '.capability',
'administrator'
);
//makre sure that current user has access to current Extension. This is
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function ff_register_feature_flag( $feature )\n\t{\n\t\tff_FeatureFlags::getInstance()->addFeature( $feature );\n\t}",
"function register_feature( $slug, $name, $description = '', $auto_enable = false ) {\n\n\t// Missing critical information, bounce.\n\tif ( empty( $slug ) || empty( $name ) ) {\n\t\treturn false... | [
"0.6833712",
"0.6646396",
"0.63817006",
"0.6208863",
"0.60472924",
"0.591416",
"0.58771884",
"0.58253646",
"0.5815687",
"0.57492465",
"0.5734615",
"0.5726832",
"0.57253724",
"0.57183325",
"0.5693687",
"0.56644034",
"0.56585234",
"0.5630968",
"0.56281036",
"0.56158084",
"0.559... | 0.8650929 | 0 |
Returns the file size, if known. | Возвращает размер файла, если он известен. | public function getFile_size() {
return $this->_file_size ? (int) $this->_file_size : null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getSize()\n {\n return filesize($this->file) ?: null;\n }",
"public function getSize(){\n $path = $this->aParams['path'] . $this->aParams['name'];\n if(\n is_null($this->aParams['size']) &&\n mb_strlen($this->aParams['path']) &&\n mb_str... | [
"0.8438646",
"0.83446074",
"0.8285354",
"0.82810926",
"0.82650846",
"0.8249585",
"0.8243547",
"0.8167244",
"0.81444234",
"0.81285083",
"0.81248677",
"0.8120657",
"0.81008315",
"0.8056188",
"0.79963",
"0.79801154",
"0.7963681",
"0.7963681",
"0.79625136",
"0.79430795",
"0.79032... | 0.8488363 | 0 |
Returns the URL for the file to be downloaded: You can either pass the token as a parameter, or use the Telegram component $token property. | Возвращает URL для загрузки файла: вы можете передать токен в качестве параметра или использовать свойство $token компонента Telegram. | public function getFileUrl($token = null) {
if (!$token) :
$token = Yii::$app->telegram->token;
if (!$token)
throw new yii\base\InvalidConfigException(__METHOD__ . ': $token parameter missing in Telegram component configuration.');
endif;
return TelegramBo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getFileUrl(){\n $url = config('kontaktformular.fileDownloadUrl');\n //Prüfen ob $url auf / endet\n if(substr($url, -1) != '/'){\n $url .= '/';\n }\n return $url . $this->file_hash .'/' . $this->file_name .'/'. $this->id;\n }",
"public function getD... | [
"0.75822645",
"0.7072693",
"0.7024085",
"0.6905661",
"0.6905487",
"0.68769276",
"0.68571806",
"0.6828912",
"0.67961943",
"0.66863006",
"0.6666619",
"0.6663564",
"0.6650901",
"0.66069746",
"0.6558594",
"0.64980173",
"0.64683527",
"0.6465151",
"0.6449235",
"0.6445997",
"0.64367... | 0.75773054 | 1 |
Search images according to criteria. | Искать изображения по критериям. | private static function _searchImages($criteria){
$db = \PhotoLibrary\Shortcuts::getDatabase();
$rows = $db->getImages($criteria);
if (is_null($rows)){
return null;
}
$withId = (isset($criteria['withId']) && $criteria['withId'] == true);
$imageArray = array_map(function($row) use ($wit... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getImages ( $searchTerms )\n {\n if(!is_null($searchTerms))\n {\n $imagesForProject = array();\n foreach ($searchTerms as $value) {\n $query_param = preg_replace('/\\s+/', '', $value);\n $images = Image::join('imageclasslabels', 'images.... | [
"0.6707055",
"0.64547175",
"0.63892156",
"0.62541115",
"0.6111801",
"0.60587287",
"0.59505624",
"0.59430283",
"0.5932712",
"0.5880534",
"0.58162487",
"0.5807908",
"0.58060765",
"0.57925195",
"0.57599664",
"0.57301676",
"0.57209235",
"0.56952703",
"0.5637839",
"0.5631885",
"0.... | 0.7062111 | 0 |
Increase the view count on an album by an amount or 1 by default. | Увеличьте количество просмотров альбома на указанное число или на 1 по умолчанию. | public function increaseViews($album, $amount) {
$album->viewed += $amount;
$album->save();
return $album;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function countViews($albumId){\n DB::update('update albums set views = views+1 where album_id = ?', array($albumId));\n }",
"public function incViewCount()\n {\n $incView = (int) $this->attribute( 'view_count' );\n $incView++;\n $this->setAttribute( 'view_count', $incView... | [
"0.72804916",
"0.7274718",
"0.71751773",
"0.6764134",
"0.6746022",
"0.6416742",
"0.6309452",
"0.61528754",
"0.609625",
"0.60811687",
"0.6024963",
"0.5951026",
"0.5936543",
"0.5899362",
"0.5844176",
"0.5823042",
"0.5822263",
"0.5779862",
"0.5725478",
"0.572114",
"0.57161313",
... | 0.76319915 | 0 |
Loads the user for the given username. This method must throw UsernameNotFoundException if the user is not found. | Загружает пользователя для заданного имени пользователя. Этот метод должен выбросить UsernameNotFoundException, если пользователь не найден. | public function loadUserByUsername($username)
{
/** @var User $user */
$user = $this->getUserRepository()->findOneBy(['username' => $username]);
if (!$user ) {
throw new UsernameNotFoundException();
}
return $user;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function loadUserByUsername($username)\n { \n $user = $this->_em->getRepository('Entity\\User\\User')->findOneBy(array('username' => $username));\n\n if($user != null)\n return $user;\n\n throw new UsernameNotFoundException(\"Compte introuvable\");\n }",
"public ... | [
"0.8511439",
"0.8481025",
"0.8395826",
"0.8343122",
"0.8311279",
"0.8255266",
"0.8216643",
"0.8175877",
"0.8015492",
"0.7992622",
"0.79790664",
"0.79764473",
"0.79453695",
"0.78419",
"0.7833976",
"0.77214533",
"0.7710675",
"0.7606536",
"0.7603791",
"0.75257176",
"0.7455379",
... | 0.84847236 | 1 |
Sets value of 'validator_revision' property | Устанавливает значение свойства 'validator_revision' | public function setValidatorRevision($value)
{
return $this->set(self::VALIDATOR_REVISION, $value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setRevision($value) {}",
"public function getValidatorRevision()\n {\n $value = $this->get(self::VALIDATOR_REVISION);\n return $value === null ? (integer)$value : $value;\n }",
"public function getValidatorRevision()\n {\n $value = $this->get(self::VALIDATOR_REVISI... | [
"0.66471374",
"0.6560092",
"0.6560092",
"0.64825445",
"0.60647655",
"0.5826172",
"0.57832",
"0.57520473",
"0.57520473",
"0.56930494",
"0.5692527",
"0.56803447",
"0.56803447",
"0.555127",
"0.5481048",
"0.5467948",
"0.5430768",
"0.53638303",
"0.53235114",
"0.53005457",
"0.52829... | 0.76948726 | 1 |
Returns value of 'validator_revision' property | Возвращает значение свойства 'validator_revision' | public function getValidatorRevision()
{
$value = $this->get(self::VALIDATOR_REVISION);
return $value === null ? (integer)$value : $value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getRevision()\n {\n return $this->result[\"revision\"];\n }",
"public function getRevision() {\n return $this->revision;\n }",
"public function getRevision()\n {\n return $this->revision;\n }",
"public function getRevision()\n {\n return $this->sy... | [
"0.71146595",
"0.7074431",
"0.7058638",
"0.6899159",
"0.6860726",
"0.6860726",
"0.6852491",
"0.6754491",
"0.672824",
"0.6587541",
"0.65738714",
"0.65627986",
"0.65376586",
"0.638306",
"0.63623077",
"0.63622427",
"0.62864083",
"0.6270416",
"0.6270416",
"0.6251423",
"0.6141351"... | 0.85555977 | 1 |
Returns true if 'validator_revision' property is set, false otherwise | Возвращает true, если свойство 'validator_revision' задано, и false в противном случае | public function hasValidatorRevision()
{
return $this->get(self::VALIDATOR_REVISION) !== null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function hasSpecFileRevision()\n {\n return $this->get(self::SPEC_FILE_REVISION) !== null;\n }",
"public function hasSpecFileRevision()\n {\n return $this->get(self::SPEC_FILE_REVISION) !== null;\n }",
"public function valid(): bool\n {\n return current($this->revs) !... | [
"0.6905988",
"0.6905988",
"0.63427436",
"0.61105555",
"0.60816747",
"0.6062279",
"0.6059587",
"0.6059587",
"0.6059587",
"0.6059374",
"0.6053441",
"0.6023467",
"0.6023053",
"0.60226446",
"0.60133046",
"0.60133046",
"0.60133046",
"0.60052806",
"0.5991532",
"0.5988939",
"0.59795... | 0.8407076 | 1 |
Sets value of 'spec_file_revision' property | Устанавливает значение свойства 'spec_file_revision' | public function setSpecFileRevision($value)
{
return $this->set(self::SPEC_FILE_REVISION, $value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function setFileRevision($fileRevision) {\n\t\treturn $this->setData('fileRevision', $fileRevision);\n\t}",
"public function setRevision($value) {}",
"public function getSpecFileRevision()\n {\n $value = $this->get(self::SPEC_FILE_REVISION);\n return $value === null ? (integer)$value : $value;... | [
"0.69120145",
"0.67820996",
"0.6699622",
"0.6699622",
"0.6674599",
"0.65729064",
"0.6250889",
"0.62192357",
"0.61670023",
"0.5832324",
"0.5749064",
"0.57457495",
"0.57457495",
"0.56260824",
"0.5617654",
"0.5426675",
"0.539291",
"0.53725606",
"0.53725606",
"0.53725606",
"0.537... | 0.8019572 | 1 |
Returns value of 'spec_file_revision' property | Возвращает значение свойства 'spec_file_revision' | public function getSpecFileRevision()
{
$value = $this->get(self::SPEC_FILE_REVISION);
return $value === null ? (integer)$value : $value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getFileRevision() {\n\t\treturn $this->getData('fileRevision');\n\t}",
"public function getRevision()\n {\n return $this->systemProperties->getRevision();\n }",
"public function getRevision()\n {\n return $this->result[\"revision\"];\n }",
"public function getRevision() {\n... | [
"0.807147",
"0.7511373",
"0.75099653",
"0.7453475",
"0.7452892",
"0.7341348",
"0.72304803",
"0.7142436",
"0.7089689",
"0.6986088",
"0.6885715",
"0.68298954",
"0.6784159",
"0.6705663",
"0.6705663",
"0.66973144",
"0.6677162",
"0.6655411",
"0.66292983",
"0.656852",
"0.6559495",
... | 0.8931764 | 1 |
Returns true if 'spec_file_revision' property is set, false otherwise | Возвращает true, если свойство 'spec_file_revision' задано, и false в противном случае | public function hasSpecFileRevision()
{
return $this->get(self::SPEC_FILE_REVISION) !== null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function hasPatchversion(){\n return $this->_has(40);\n }",
"public function getSpecFileRevision()\n {\n $value = $this->get(self::SPEC_FILE_REVISION);\n return $value === null ? (integer)$value : $value;\n }",
"public function getSpecFileRevision()\n {\n $value = $... | [
"0.6339146",
"0.6250791",
"0.6250791",
"0.62187016",
"0.62187016",
"0.62024933",
"0.6113385",
"0.6113385",
"0.59343106",
"0.5893064",
"0.5820942",
"0.5727371",
"0.5711256",
"0.56421185",
"0.56181395",
"0.55994874",
"0.5580843",
"0.5550931",
"0.55430603",
"0.552049",
"0.551254... | 0.89256257 | 1 |
Sets value of 'transformer_version' property | Устанавливает значение свойства 'transformer_version' | public function setTransformerVersion($value)
{
return $this->set(self::TRANSFORMER_VERSION, $value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setVersion($version) {}",
"public function setVersion($version) {}",
"public function getTransformerVersion()\n {\n $value = $this->get(self::TRANSFORMER_VERSION);\n return $value === null ? (integer)$value : $value;\n }",
"public function setVersion($value){\n $thi... | [
"0.6663399",
"0.6663399",
"0.65947866",
"0.64708656",
"0.64674073",
"0.64674073",
"0.64674073",
"0.64674073",
"0.64674073",
"0.6465337",
"0.64594644",
"0.64539856",
"0.64062583",
"0.6351148",
"0.6351148",
"0.6351148",
"0.59538835",
"0.59537315",
"0.5831696",
"0.5811787",
"0.5... | 0.78740245 | 0 |
Returns value of 'transformer_version' property | Возвращает значение свойства 'transformer_version' | public function getTransformerVersion()
{
$value = $this->get(self::TRANSFORMER_VERSION);
return $value === null ? (integer)$value : $value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function get_version() {\n return $this->version;\n }",
"public function getVersion()\n {\n return $this->values[\"version\"];\n }",
"public function get_version() {\n\t\treturn $this->version;\n\t}",
"public function get_version() {\n\t\treturn $this->version;\n\t}",
"public ... | [
"0.6839319",
"0.68355954",
"0.6820968",
"0.6820968",
"0.6820968",
"0.6820968",
"0.6820968",
"0.6820968",
"0.6820968",
"0.6820968",
"0.6820968",
"0.6820968",
"0.67949617",
"0.67949617",
"0.6792253",
"0.67900205",
"0.6774882",
"0.67536604",
"0.67357844",
"0.67318743",
"0.672396... | 0.8437645 | 0 |
Returns true if 'transformer_version' property is set, false otherwise | Возвращает true, если свойство 'transformer_version' задано, false в противном случае | public function hasTransformerVersion()
{
return $this->get(self::TRANSFORMER_VERSION) !== null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function hasVersion(){\n return $this->_has(1);\n }",
"public function hasVersion()\n {\n return $this->version !== null;\n }",
"public function hasValidatorRevision()\n {\n return $this->get(self::VALIDATOR_REVISION) !== null;\n }",
"public function hasValidatorRevis... | [
"0.6666803",
"0.6663241",
"0.63689375",
"0.63689375",
"0.6367126",
"0.6237202",
"0.61393976",
"0.61318535",
"0.6067756",
"0.6030896",
"0.6021723",
"0.60111237",
"0.59620506",
"0.5932714",
"0.58020824",
"0.5801711",
"0.57369155",
"0.5716056",
"0.56706727",
"0.5628457",
"0.5619... | 0.843266 | 0 |
Returns true if 'type_identifier' property is set, false otherwise | Возвращает true, если свойство 'type_identifier' задано, и false в противном случае | public function hasTypeIdentifier()
{
return count($this->get(self::TYPE_IDENTIFIER)) !== 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function hasType(){\n return !empty($this->type);\n }",
"public function hasType(){\n return $this->_has(4);\n }",
"public function hasType()\n {\n return isset($this->type);\n }",
"public function hasType(){\r\n return $this->_has(1);\r\n }",
"publ... | [
"0.7440597",
"0.7287735",
"0.72449446",
"0.7175312",
"0.71124643",
"0.70779186",
"0.7062659",
"0.70216036",
"0.70216036",
"0.70216036",
"0.70162964",
"0.70096225",
"0.69532037",
"0.69532037",
"0.6913603",
"0.6713292",
"0.6629574",
"0.6582774",
"0.65554017",
"0.64732593",
"0.6... | 0.8336821 | 0 |
Returns element from 'type_identifier' list at given offset | Возвращает элемент из списка 'type_identifier' по заданному смещению | public function getTypeIdentifierAt($offset)
{
return $this->get(self::TYPE_IDENTIFIER, $offset);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getSet($type, $offset) {\n\t\t$arr = $type . 'sets';\n\t\t$size = count($this->{$arr});\n\t\tif (isset( $this->{$arr}[ $offset ] )) {\n\t\t\treturn $this->{$arr}[ $offset ];\n\t\t}\n\t\treturn NULL;\n\t}",
"function offsetGet(/*. mixed .*/ $offset){}",
"public function offsetGet($offset)\n {... | [
"0.603645",
"0.5895707",
"0.5743236",
"0.57110536",
"0.5680819",
"0.5644842",
"0.56242335",
"0.5591243",
"0.55637574",
"0.5556708",
"0.554273",
"0.5539289",
"0.55348057",
"0.55348057",
"0.5521746",
"0.5490364",
"0.54500514",
"0.5446649",
"0.5420332",
"0.53700364",
"0.53661376... | 0.72315866 | 0 |
Returns count of 'type_identifier' list | Возвращает количество элементов списка 'type_identifier' | public function getTypeIdentifierCount()
{
return $this->count(self::TYPE_IDENTIFIER);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getNumberOfTypes(): int;",
"public function typeCounts() : array\n {\n $counts = [\n self::CATEGORICAL => 0,\n self::CONTINUOUS => 0,\n self::RESOURCE => 0,\n ];\n\n return array_replace($counts, array_count_values($this->types()));\n }"... | [
"0.7649671",
"0.6949454",
"0.6817779",
"0.67814565",
"0.65916514",
"0.64705724",
"0.64639455",
"0.64130265",
"0.6328094",
"0.63207006",
"0.6293597",
"0.6289071",
"0.6261307",
"0.6257238",
"0.6147989",
"0.6130512",
"0.6127132",
"0.6125901",
"0.6078891",
"0.59970456",
"0.599094... | 0.8466336 | 0 |
Appends value to 'value_set_provisions' list | Добавляет значение в список 'value_set_provisions' | public function appendValueSetProvisions(\Amp\Validator\ValueSetProvision $value)
{
return $this->append(self::VALUE_SET_PROVISIONS, $value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getValueSetProvisionsCount()\n {\n return $this->count(self::VALUE_SET_PROVISIONS);\n }",
"public function getValueSetProvisionsAt($offset)\n {\n return $this->get(self::VALUE_SET_PROVISIONS, $offset);\n }",
"public function hasValueSetProvisions()\n {\n retu... | [
"0.59288055",
"0.5733216",
"0.5710494",
"0.54578096",
"0.52079743",
"0.5092208",
"0.50134504",
"0.50051475",
"0.49382848",
"0.4933349",
"0.49329212",
"0.49273625",
"0.48960343",
"0.48313427",
"0.48217818",
"0.48217818",
"0.4817676",
"0.47823247",
"0.47571915",
"0.4755919",
"0... | 0.750111 | 0 |
Returns true if 'value_set_provisions' property is set, false otherwise | Возвращает true, если свойство 'value_set_provisions' задано, false в противном случае | public function hasValueSetProvisions()
{
return count($this->get(self::VALUE_SET_PROVISIONS)) !== 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function hasValue()\n {\n return $this->property_value->isNotEmpty();\n }",
"public function getValueSetProvisionsCount()\n {\n return $this->count(self::VALUE_SET_PROVISIONS);\n }",
"public function isSetValue()\n {\n return !is_null($this->_fields['Value']['FieldVal... | [
"0.6911752",
"0.65387666",
"0.6340449",
"0.617894",
"0.613912",
"0.6138913",
"0.60589135",
"0.60087407",
"0.59819704",
"0.59673333",
"0.59673333",
"0.59673333",
"0.59673333",
"0.59673333",
"0.59673333",
"0.59673333",
"0.59673333",
"0.59673333",
"0.59673333",
"0.5953463",
"0.5... | 0.8693508 | 0 |
Returns element from 'value_set_provisions' list at given offset | Возвращает элемент из списка 'value_set_provisions' по заданному смещению | public function getValueSetProvisionsAt($offset)
{
return $this->get(self::VALUE_SET_PROVISIONS, $offset);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function offsetGet($offset);",
"public function offsetGet($offset);",
"public function getValue($offset = null) {}",
"public abstract function value($offset = 0);",
"public function get($offset);",
"public function offsetGet($offset) {}",
"public function offsetGet($offset) {}",
"public functi... | [
"0.59499097",
"0.59499097",
"0.5939585",
"0.5933801",
"0.5904322",
"0.5805312",
"0.5805312",
"0.5804586",
"0.5769588",
"0.57544047",
"0.57402647",
"0.5727731",
"0.5719885",
"0.57053024",
"0.5694124",
"0.56393766",
"0.5585855",
"0.55824125",
"0.5577631",
"0.55756444",
"0.55504... | 0.7703852 | 0 |
Returns count of 'value_set_provisions' list | Возвращает количество элементов в списке 'value_set_provisions' | public function getValueSetProvisionsCount()
{
return $this->count(self::VALUE_SET_PROVISIONS);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getValueSetRequirementsCount()\n {\n return $this->count(self::VALUE_SET_REQUIREMENTS);\n }",
"public function hasValueSetProvisions()\n {\n return count($this->get(self::VALUE_SET_PROVISIONS)) !== 0;\n }",
"public function count() {\n\t\treturn count($this->_aSet);\n\... | [
"0.65702355",
"0.64556354",
"0.61742246",
"0.61629456",
"0.6157355",
"0.6143929",
"0.61379325",
"0.6135141",
"0.60827243",
"0.6076463",
"0.6057252",
"0.601139",
"0.59905887",
"0.59885854",
"0.5958676",
"0.5921461",
"0.5866532",
"0.58553755",
"0.5835108",
"0.5802247",
"0.57763... | 0.89576495 | 0 |
Appends value to 'value_set_requirements' list | Добавляет значение в список 'value_set_requirements' | public function appendValueSetRequirements(\Amp\Validator\ValueSetRequirement $value)
{
return $this->append(self::VALUE_SET_REQUIREMENTS, $value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function set_requirement_set( $name, $value ) {\n\t\t$this->requirement_set[ $name ] = $value;\n\t}",
"public function getValueSetRequirementsCount()\n {\n return $this->count(self::VALUE_SET_REQUIREMENTS);\n }",
"public function addSpecificationValu(SpecificationValue $value)\n {\n ... | [
"0.6335885",
"0.58893806",
"0.56348664",
"0.5577229",
"0.5547598",
"0.5396025",
"0.5339372",
"0.5338296",
"0.5274382",
"0.52349526",
"0.5219322",
"0.5190923",
"0.5185073",
"0.51655096",
"0.5154082",
"0.512467",
"0.51189345",
"0.5104505",
"0.50600106",
"0.5059488",
"0.50521445... | 0.73973393 | 0 |
Returns true if 'value_set_requirements' property is set, false otherwise | Возвращает true, если свойство 'value_set_requirements' задано, и false в противном случае | public function hasValueSetRequirements()
{
return count($this->get(self::VALUE_SET_REQUIREMENTS)) !== 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function isSetRestrictedSetValues()\n {\n return !empty($this->_fields['RestrictedSetValues']['FieldValue']);\n }",
"public function is_requirement_set_valid() {\n\t\treturn ( $this->requirement_set instanceof Requirement_Set );\n\t}",
"public function hasValue()\n {\n ... | [
"0.7130162",
"0.69663435",
"0.67620766",
"0.67242575",
"0.67116",
"0.658316",
"0.65092456",
"0.64879113",
"0.64523315",
"0.6395041",
"0.63856256",
"0.63740426",
"0.62720305",
"0.6259412",
"0.62589556",
"0.62553674",
"0.6242867",
"0.6204895",
"0.6199702",
"0.6195463",
"0.61834... | 0.8522986 | 0 |
Returns element from 'value_set_requirements' list at given offset | Возвращает элемент из списка 'value_set_requirements' по заданному смещению | public function getValueSetRequirementsAt($offset)
{
return $this->get(self::VALUE_SET_REQUIREMENTS, $offset);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function offsetGet($offset)\n {\n return $this->elements[$offset];\n }",
"public function get($offset);",
"public function getValue($offset = null) {}",
"public function offsetGet(mixed $offset): mixed\n {\n if (array_key_exists($offset, $this->items)) {\n return $thi... | [
"0.58396244",
"0.5763187",
"0.5733419",
"0.57268065",
"0.5696478",
"0.56735927",
"0.56735927",
"0.5513042",
"0.5505639",
"0.5493533",
"0.5482918",
"0.54708713",
"0.546733",
"0.54543185",
"0.54525113",
"0.5445141",
"0.5439733",
"0.5434538",
"0.5434538",
"0.54322493",
"0.541419... | 0.7814445 | 0 |
Returns count of 'value_set_requirements' list | Возвращает количество элементов в списке 'value_set_requirements' | public function getValueSetRequirementsCount()
{
return $this->count(self::VALUE_SET_REQUIREMENTS);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function count()\n {\n return count($this->supportedValues);\n }",
"public function getValueSetProvisionsCount()\n {\n return $this->count(self::VALUE_SET_PROVISIONS);\n }",
"public function count() {\n\t\treturn count($this->_aSet);\n\t}",
"public function count() {\n\t\tret... | [
"0.6806073",
"0.6753253",
"0.6581313",
"0.63323975",
"0.6273558",
"0.62729055",
"0.6272865",
"0.62481683",
"0.62341",
"0.6143119",
"0.6041785",
"0.60354805",
"0.60236114",
"0.60109335",
"0.59567404",
"0.59420806",
"0.59150517",
"0.5856279",
"0.5823241",
"0.5755106",
"0.574364... | 0.8943137 | 0 |
Assign logo image to each contract | Назначить логотип изображению для каждого контракта | private static function assignLogoToContracts(&$contractsList)
{
$logoFileByCardType = array(
'3XCB' => '3xcb.png',
'3XONEY' => '3xoney.png',
'1EURO' => '1euro.png',
'1EURO.COM' => '1euro.png',
'AURORE' => 'aurore.png',
'3XONEY_SF' => '... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getLogo();",
"function render_block_core_site_logo($attributes)\n {\n }",
"public function _render_custom_logo_partial()\n {\n }",
"public function getSponsorlogo() {}",
"public function logoFromResponse(ResponseInterface $response);",
"public function getLogoImage()\n... | [
"0.66501695",
"0.64155716",
"0.62879133",
"0.6272191",
"0.6258449",
"0.62333655",
"0.622172",
"0.6196881",
"0.61718965",
"0.6132758",
"0.60629773",
"0.60418874",
"0.602046",
"0.6003496",
"0.5997253",
"0.5994381",
"0.5985704",
"0.5959676",
"0.59297866",
"0.591252",
"0.591252",... | 0.7186141 | 0 |
Retrieve cart id from order reference | Получить идентификатор корзины из ссылающегося на заказ отсылки | public static function getCartIdFromOrderReference($orderReference)
{
if (preg_match('/cart([0-9]+)(try([0-9]+))?/', $orderReference, $matches)) {
return (int)$matches[1];
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getCartId()\n {\n return $this->id;\n }",
"public function cartId() {\n\t\treturn $this->field('Cart.id', $this->cartConditions());\n\t}",
"public function getCartId()\n {\n return $this->getSingleOperationParameter('CartId');\n }",
"public function getCurrentCartIde... | [
"0.71704936",
"0.7166496",
"0.6967324",
"0.6938227",
"0.66676176",
"0.6649663",
"0.6640007",
"0.6531935",
"0.6520597",
"0.6396562",
"0.63691473",
"0.61800575",
"0.61611605",
"0.6141831",
"0.6138701",
"0.61379474",
"0.61199766",
"0.6106527",
"0.61057836",
"0.60975355",
"0.6097... | 0.72351307 | 0 |
Parse Payline date to timestamp | Преобразование даты Payline в временной штамп | public static function getTimestampFromPaylineDate($date)
{
$hour = $minutes = $seconds = 0;
list($day, $month, $year) = explode('/', $date);
if (strpos($year, ':')) {
list($year, $hour) = explode(' ', $year);
$timestamp = explode(':', $hour);
if (sizeof($... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function parseTransactionEntryTimestamp()\n {\n $results = [];\n if (preg_match('/^:61:(\\d{2})((\\d{2})\\d{2})((\\d{2})\\d{2})[C|D]/', $this->getCurrentTransactionData(), $results)\n && !empty($results[1])\n ) {\n\n list(, $valueDateY, $valueDateMD, $valueDa... | [
"0.6490373",
"0.6397618",
"0.6343604",
"0.6292416",
"0.62492985",
"0.60479224",
"0.5954992",
"0.5930605",
"0.5919533",
"0.5918621",
"0.59106797",
"0.59073293",
"0.57729673",
"0.5725209",
"0.5706755",
"0.56765455",
"0.5664131",
"0.56535214",
"0.56513953",
"0.56315565",
"0.5626... | 0.70225626 | 0 |
Extract contract number from contract id | Извлечь номер договора из идентификатора договора | private static function extractContractNumber($contractId)
{
$contractId = explode('-', $contractId);
return $contractId[1];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getContractID() {\r\n\t\treturn $this->contract_id;\r\n\t}",
"public function getContractNum()\n {\n return $this->contract_num;\n }",
"private static function extractCrid()\n {\n return empty($_GET[\"_crid\"])\n ?\n (empty($_SERVER[\"HTTP_X_CORRELAT... | [
"0.67268014",
"0.65252835",
"0.5760207",
"0.56757843",
"0.55934346",
"0.5545526",
"0.5532683",
"0.54657465",
"0.5452397",
"0.5432649",
"0.54037166",
"0.5329894",
"0.5312542",
"0.5308575",
"0.53017545",
"0.53015983",
"0.5284523",
"0.5276734",
"0.52492833",
"0.5247015",
"0.5243... | 0.8455524 | 0 |
Generated from protobuf field bytes proofKey = 4; | Сгенерировано из поля protobuf bytes proofKey = 4; | public function getProofKey()
{
return $this->proofKey;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setProofKey($var)\n {\n GPBUtil::checkString($var, False);\n $this->proofKey = $var;\n\n return $this;\n }",
"public function setProof($var)\n {\n GPBUtil::checkString($var, False);\n $this->proof = $var;\n\n return $this;\n }",
"public func... | [
"0.77467465",
"0.5533604",
"0.543993",
"0.5420552",
"0.53245527",
"0.52813774",
"0.5268822",
"0.5191854",
"0.5108251",
"0.5087723",
"0.5048592",
"0.5022243",
"0.50183725",
"0.4995818",
"0.49769774",
"0.49236652",
"0.49228674",
"0.4919369",
"0.4902459",
"0.48973203",
"0.488267... | 0.7802421 | 0 |
Generated from protobuf field bytes proofKey = 4; | Сгенерировано из поля protobuf bytes proofKey = 4; | public function setProofKey($var)
{
GPBUtil::checkString($var, False);
$this->proofKey = $var;
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getProofKey()\n {\n return $this->proofKey;\n }",
"public function setProof($var)\n {\n GPBUtil::checkString($var, False);\n $this->proof = $var;\n\n return $this;\n }",
"public function getCandidateKey()\n {\n return $this->candidateKey;\n }... | [
"0.7802421",
"0.5533604",
"0.543993",
"0.5420552",
"0.53245527",
"0.52813774",
"0.5268822",
"0.5191854",
"0.5108251",
"0.5087723",
"0.5048592",
"0.5022243",
"0.50183725",
"0.4995818",
"0.49769774",
"0.49236652",
"0.49228674",
"0.4919369",
"0.4902459",
"0.48973203",
"0.4882677... | 0.77467465 | 1 |
Generated from protobuf field bytes proofVal = 5; | Сгенерировано из поля protobuf bytes proofVal = 5; | public function getProofVal()
{
return $this->proofVal;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setProofVal($var)\n {\n GPBUtil::checkString($var, False);\n $this->proofVal = $var;\n\n return $this;\n }",
"public function setProof($var)\n {\n GPBUtil::checkString($var, False);\n $this->proof = $var;\n\n return $this;\n }",
"public func... | [
"0.7177666",
"0.6344804",
"0.615729",
"0.57914114",
"0.5410725",
"0.5250937",
"0.5201768",
"0.4854016",
"0.46698195",
"0.46345606",
"0.44951984",
"0.44500586",
"0.44328094",
"0.4380575",
"0.43383834",
"0.4332681",
"0.42948845",
"0.42877185",
"0.42609316",
"0.4230159",
"0.4227... | 0.7244629 | 0 |
Generated from protobuf field bytes proofVal = 5; | Сгенерировано из поля protobuf bytes proofVal = 5; | public function setProofVal($var)
{
GPBUtil::checkString($var, False);
$this->proofVal = $var;
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getProofVal()\n {\n return $this->proofVal;\n }",
"public function setProof($var)\n {\n GPBUtil::checkString($var, False);\n $this->proof = $var;\n\n return $this;\n }",
"public function getProof()\n {\n return $this->proof;\n }",
"public f... | [
"0.7244629",
"0.6344804",
"0.615729",
"0.57914114",
"0.5410725",
"0.5250937",
"0.5201768",
"0.4854016",
"0.46698195",
"0.46345606",
"0.44951984",
"0.44500586",
"0.44328094",
"0.4380575",
"0.43383834",
"0.4332681",
"0.42948845",
"0.42877185",
"0.42609316",
"0.4230159",
"0.4227... | 0.7177666 | 1 |
Generated from protobuf field repeated bytes auditPath = 8; | Сгенерировано из поля protobuf repeated bytes auditPath = 8; | public function getAuditPath()
{
return $this->auditPath;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setAuditPath($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::BYTES);\n $this->auditPath = $arr;\n\n return $this;\n }",
"public function getPath() {}",
"public function getPath() {}",
"public function getPath() {}",
"pub... | [
"0.81060666",
"0.49981585",
"0.49978876",
"0.4996242",
"0.4996242",
"0.4996242",
"0.4996242",
"0.4953165",
"0.48672187",
"0.48423243",
"0.48220938",
"0.48108846",
"0.48078",
"0.4791785",
"0.47866428",
"0.47833106",
"0.4732889",
"0.47279322",
"0.4711494",
"0.470644",
"0.470644... | 0.71569085 | 1 |
Generated from protobuf field repeated bytes auditPath = 8; | Сгенерировано из поля protobuf repeated bytes auditPath = 8; | public function setAuditPath($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::BYTES);
$this->auditPath = $arr;
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getAuditPath()\n {\n return $this->auditPath;\n }",
"public function getPath() {}",
"public function getPath() {}",
"public function getPath() {}",
"public function getPath() {}",
"public function getPath() {}",
"public function getPath() {}",
"public function getPath() {... | [
"0.71569085",
"0.49981585",
"0.49978876",
"0.4996242",
"0.4996242",
"0.4996242",
"0.4996242",
"0.4953165",
"0.48672187",
"0.48423243",
"0.48220938",
"0.48108846",
"0.48078",
"0.4791785",
"0.47866428",
"0.47833106",
"0.4732889",
"0.47279322",
"0.4711494",
"0.470644",
"0.470644... | 0.81060666 | 0 |
Tests generation of a test merge file with no external references. | Тестирование генерации тестового файла слияния без внешних ссылок. | public function testMergeGeneration()
{
$this->generateAndCompareTest('BasicMergeTest');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testMergeSkipGeneration()\n {\n $this->generateAndCompareTest('MergeSkip');\n }",
"public function testMergedReferences()\n {\n $this->generateAndCompareTest('MergedReferencesTest');\n }",
"public function testNoAggregate()\n {\n $client = static::createClien... | [
"0.7724677",
"0.7052107",
"0.56761295",
"0.5614918",
"0.55039406",
"0.5467759",
"0.54372495",
"0.540462",
"0.5336168",
"0.5330345",
"0.5325759",
"0.5305735",
"0.5275583",
"0.52621865",
"0.5246477",
"0.5233948",
"0.52222574",
"0.5219811",
"0.51858336",
"0.5182438",
"0.51747686... | 0.7997318 | 0 |
Tests generation of a test merge file with only external references. | Тестирование генерации тестового файла слияния с только внешними ссылками. | public function testMergedReferences()
{
$this->generateAndCompareTest('MergedReferencesTest');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testMergeGeneration()\n {\n $this->generateAndCompareTest('BasicMergeTest');\n }",
"public function testMergeSkipGeneration()\n {\n $this->generateAndCompareTest('MergeSkip');\n }",
"public function testFileRefs() {}",
"public function testOptionMergeWithAdditional()... | [
"0.7561917",
"0.67042327",
"0.6272397",
"0.5675316",
"0.56703496",
"0.5601673",
"0.55857545",
"0.5500305",
"0.54392624",
"0.54186237",
"0.5412102",
"0.5398707",
"0.53910774",
"0.5379099",
"0.53619015",
"0.5312629",
"0.52686924",
"0.526639",
"0.5260163",
"0.5228662",
"0.520915... | 0.76653874 | 0 |
Tests generation of a test merge file via insertBefore | Тестирование генерации тестового файла слияния через insertBefore | public function testMergeMassViaInsertBefore()
{
$this->generateAndCompareTest('MergeMassViaInsertBefore');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testMergeGeneration()\n {\n $this->generateAndCompareTest('BasicMergeTest');\n }",
"public function testMergeMassViaInsertAfter()\n {\n $this->generateAndCompareTest('MergeMassViaInsertAfter');\n }",
"public function testMergeSkipGeneration()\n {\n $this->gen... | [
"0.728843",
"0.6742032",
"0.65258926",
"0.6129914",
"0.590706",
"0.59038514",
"0.586732",
"0.5773891",
"0.5653239",
"0.5645904",
"0.5641882",
"0.5606192",
"0.5567067",
"0.55408645",
"0.5538788",
"0.54981935",
"0.54957116",
"0.54628754",
"0.5459424",
"0.5459309",
"0.5432252",
... | 0.73152876 | 0 |
Tests generation of a test skipped in merge. | Тестирование генерации теста, пропущенного в слиянии. | public function testMergeSkipGeneration()
{
$this->generateAndCompareTest('MergeSkip');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testMergeGeneration()\n {\n $this->generateAndCompareTest('BasicMergeTest');\n }",
"public function testNotRun(\\unittest\\TestSkipped $ignore) {\n $this->stats['notrun']++;\n }",
"public function shouldBeSkipped();",
"public function skip(/* ... */)\n {\n if ($this... | [
"0.69258136",
"0.6563905",
"0.6490028",
"0.6283693",
"0.6273615",
"0.62134725",
"0.6118033",
"0.60436505",
"0.5998547",
"0.5982348",
"0.58484346",
"0.5832089",
"0.58068365",
"0.5787275",
"0.5777383",
"0.5750851",
"0.57376826",
"0.5725491",
"0.5717931",
"0.5684252",
"0.5628983... | 0.90026253 | 0 |
Get the column listing for a given table. | Получить список колонок для заданной таблицы. | public function getColumnListing(string $table)
{
$table = $this->getTablePrefixName($table);
$connection = $this->getConnection();
$results = $connection->select(
$this->grammar->compileColumnListing(), [$table], false
);
return $connection->getPostProces... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static public function getColumnListing($table)\n {\n return self::call(__FUNCTION__ , func_get_args());\n }",
"public function getColumnListing(string $table)\n {\n $table = $this->getTablePrefixName($table);\n $connection = $this->getConnection();\n $results = $conn... | [
"0.81497556",
"0.76871264",
"0.76242816",
"0.7622334",
"0.75876665",
"0.75839883",
"0.7576297",
"0.75307906",
"0.7526719",
"0.7510025",
"0.7441466",
"0.7434752",
"0.739655",
"0.7379708",
"0.7379259",
"0.7355562",
"0.72809654",
"0.7260696",
"0.7225502",
"0.71782935",
"0.717532... | 0.7749615 | 1 |
Drop all types from the database. | Удалить все типы из базы данных. | public function dropAllTypes()
{
throw new LogicException('This database driver does not support dropping all types.');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function dropAllTypes()\n {\n $types = [];\n\n foreach ($this->getAllTypes() as $row) {\n $row = (array) $row;\n\n $types[] = reset($row);\n }\n\n if (empty($types)) {\n return;\n }\n\n $this->connection->statement(\n $... | [
"0.7855768",
"0.7855768",
"0.7462799",
"0.72028685",
"0.68520206",
"0.6757211",
"0.6738321",
"0.673204",
"0.6698207",
"0.668571",
"0.66586435",
"0.66586435",
"0.66125214",
"0.6603288",
"0.65729755",
"0.64686126",
"0.6451929",
"0.6436755",
"0.64351505",
"0.6434239",
"0.6389454... | 0.788348 | 0 |
textWidth(...) Bestimmung der Breite eines Textes in dem gegebenen _fpdf Kontext Diese Funktion korrigiert den in der Sybrex Bibliothek vorhandenen Fehler | textWidth(...) Определение ширины текста в заданном _fpdf контексте. Эта функция исправляет ошибку, присутствующую в библиотеке Sybrex. | function textWidth( $_text) {
$textWidth = 0 ;
$textWidth = $this->myDoc->myfpdf->GetStringWidth( $_text) ;
return $textWidth ;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getTextWidth() {}",
"function swf_textwidth($str)\n{\n}",
"public function getTextWidth($text, $font, $fontSize, $unit = null);",
"function getTextWidth($text){\n\tglobal $widths, $avg;\n\t$len = strlen($text);\n\t$width = 0.0;\n\tfor($i = 0; $i < $len; $i++){\n\t\t$width += $widths[$text[$i]... | [
"0.77572334",
"0.7199111",
"0.7184589",
"0.701928",
"0.70024693",
"0.6961979",
"0.6835179",
"0.65382445",
"0.6507709",
"0.6198081",
"0.6172934",
"0.6028503",
"0.5987135",
"0.597781",
"0.59695953",
"0.59695953",
"0.59501594",
"0.5939709",
"0.5924524",
"0.5898532",
"0.58882874"... | 0.81344384 | 1 |
Returns response with JSON template. | Возвращает ответ с шаблоном JSON. | final public function getResponse() {
$template = $this->getProvider()->get('PM\Main\Web\Component\Template\Json');
$response = $this->getProvider()->get('response');
$response->setTemplate($template);
return $response;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function json($data)\n {\n $this->template = NULL;\n $this->response->headers('Content-Type', 'application/json; charset=utf-8');\n $this->response->body(json_encode($data));\n }",
"public function jsonAction()\n {\n $response = new Response(json_encode(['name' => 'John Doe']));\n ... | [
"0.7235924",
"0.71335596",
"0.6934939",
"0.6852005",
"0.6802083",
"0.66696197",
"0.6653593",
"0.66431195",
"0.66241163",
"0.66184384",
"0.6586831",
"0.6585224",
"0.6566276",
"0.65478116",
"0.65071714",
"0.6490719",
"0.6452007",
"0.6448365",
"0.6447599",
"0.6445695",
"0.644159... | 0.74314404 | 0 |
Initialization Method Initializes L8M_Mobile_Detector_Phpmobiledetect instance. | Метод инициализации инициализирует экземпляр L8M_Mobile_Detector_Phpmobiledetect. | public function init()
{
if (!$this->_detector) {
$this->_detector = new L8M_Mobile_Detector_Phpmobiledetect_Detector();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function _getObjectMobile_detector(){\n if(null === $this->_detector || !$this->_detector instanceof Detector){\n $this->_detector = New Detector();\n }\n\n return $this->_detector;\n }",
"function isMobile(){\n $detect = new Mobile_Detect(); \n return $detect->i... | [
"0.51923966",
"0.51737475",
"0.51721376",
"0.51002955",
"0.50409824",
"0.49332848",
"0.49084628",
"0.4884885",
"0.4864928",
"0.48421374",
"0.4832524",
"0.48278582",
"0.4827745",
"0.48217535",
"0.48188493",
"0.48156488",
"0.48107105",
"0.4801667",
"0.4780879",
"0.47677845",
"0... | 0.7907623 | 0 |
Lists all CmsDocToDept models. | Список всех моделей CmsDocToDept. | public function actionIndex()
{
$dataProvider = new ActiveDataProvider([
'query' => CmsDocToDept::find(),
]);
return $this->render('index', [
'dataProvider' => $dataProvider,
]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function actionCreate()\n {\n $model = new CmsDocToDept();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'doc_to_dept_id' => $model->doc_to_dept_id, 'doc_id' => $model->doc_id]);\n } else {\n return $this... | [
"0.5680564",
"0.5631941",
"0.5462339",
"0.5406249",
"0.53825",
"0.5374691",
"0.53611904",
"0.531475",
"0.52901995",
"0.52576226",
"0.523654",
"0.52111197",
"0.5178384",
"0.515856",
"0.5139274",
"0.5124398",
"0.512266",
"0.51206166",
"0.51117927",
"0.5099797",
"0.50931376",
... | 0.7267929 | 0 |
Displays a single CmsDocToDept model. | Показывает один модель CmsDocToDept. | public function actionView($doc_to_dept_id, $doc_id)
{
return $this->render('view', [
'model' => $this->findModel($doc_to_dept_id, $doc_id),
]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => CmsDocToDept::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }",
"public function actionCreate()\n {\n $model =... | [
"0.73623204",
"0.7335448",
"0.6143121",
"0.6097359",
"0.6026247",
"0.59500945",
"0.59500945",
"0.59500945",
"0.59500945",
"0.5864649",
"0.5853612",
"0.5852215",
"0.58500355",
"0.58383816",
"0.58164674",
"0.58036983",
"0.5802221",
"0.57823986",
"0.57637084",
"0.5760945",
"0.57... | 0.7355527 | 1 |
Creates a new CmsDocToDept model. If creation is successful, the browser will be redirected to the 'view' page. | Создает новый объект модели CmsDocToDept. Если создание успешно, браузер будет перенаправлен на страницу 'view'. | public function actionCreate()
{
$model = new CmsDocToDept();
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'doc_to_dept_id' => $model->doc_to_dept_id, 'doc_id' => $model->doc_id]);
} else {
return $this->render('cr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function actionCreate()\n\t{\n\t\t$model=new Docingresados;\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Docingresados']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Docingresados'];\n\t\t\tif($model->save()) {\n\t\t\t/... | [
"0.6949334",
"0.6944641",
"0.6758935",
"0.6704327",
"0.6703221",
"0.66815484",
"0.66657573",
"0.6399443",
"0.6390914",
"0.6352851",
"0.63081783",
"0.6257496",
"0.6257496",
"0.62540805",
"0.6253698",
"0.62432164",
"0.62432164",
"0.6242025",
"0.623496",
"0.6227285",
"0.622336",... | 0.89345574 | 0 |
Updates an existing CmsDocToDept model. If update is successful, the browser will be redirected to the 'view' page. | Обновляет существующую модель CmsDocToDept. Если обновление успешно, браузер будет перенаправлен на страницу 'view'. | public function actionUpdate($doc_to_dept_id, $doc_id)
{
$model = $this->findModel($doc_to_dept_id, $doc_id);
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'doc_to_dept_id' => $model->doc_to_dept_id, 'doc_id' => $model->doc_id]);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function actionUpdate($id)\n\t{\n\t\t$model=$this->loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\t\tif(empty($model->cer_date))\n\t\t $model->cer_date = date(\"d\").\"/\".date(\"m\").\"/\".(date(\"Y\")+543);//\"11/07/2526... | [
"0.67181134",
"0.65127033",
"0.6453998",
"0.63265204",
"0.62606055",
"0.6245402",
"0.623801",
"0.61068094",
"0.6053642",
"0.60319173",
"0.59970677",
"0.59969705",
"0.5962729",
"0.59618515",
"0.5960768",
"0.59596574",
"0.5937096",
"0.58604765",
"0.5839975",
"0.58338016",
"0.58... | 0.775054 | 0 |
Deletes an existing CmsDocToDept model. If deletion is successful, the browser will be redirected to the 'index' page. | Удаляет существующую модель CmsDocToDept. Если удаление успешно, браузер будет перенаправлен на страницу 'index'. | public function actionDelete($doc_to_dept_id, $doc_id)
{
$this->findModel($doc_to_dept_id, $doc_id)->delete();
return $this->redirect(['index']);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function actionCreate()\n {\n $model = new CmsDocToDept();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'doc_to_dept_id' => $model->doc_to_dept_id, 'doc_id' => $model->doc_id]);\n } else {\n return $this... | [
"0.676377",
"0.6626127",
"0.6542704",
"0.6500208",
"0.63439953",
"0.6321638",
"0.6306725",
"0.63015014",
"0.62901944",
"0.62858593",
"0.6227582",
"0.62257427",
"0.6216568",
"0.61893195",
"0.6158959",
"0.6158851",
"0.6154564",
"0.61503136",
"0.6146985",
"0.61338305",
"0.611811... | 0.7457394 | 0 |
Finds the CmsDocToDept model based on its primary key value. If the model is not found, a 404 HTTP exception will be thrown. | Находит модель CmsDocToDept по значению первичного ключа. Если модель не найдена, будет выброшено исключение HTTP 404. | protected function findModel($doc_to_dept_id, $doc_id)
{
if (($model = CmsDocToDept::findOne(['doc_to_dept_id' => $doc_to_dept_id, 'doc_id' => $doc_id])) !== null) {
return $model;
} else {
throw new NotFoundHttpException('The requested page does not exist.');
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function findModel($id)\n {\n if (($model = orgDepartment::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }",
"protected function findModel($id)\n {\n if (($m... | [
"0.6463743",
"0.62640953",
"0.6124236",
"0.6094137",
"0.6038872",
"0.6025628",
"0.59611213",
"0.594916",
"0.5933289",
"0.59065205",
"0.5905694",
"0.5902212",
"0.58967197",
"0.58943945",
"0.58897454",
"0.586705",
"0.5850351",
"0.58376443",
"0.5820797",
"0.5810725",
"0.5795338"... | 0.71174425 | 0 |
send any scheduled newsletters via cron job | отправить любые запланированные рассылки через cron-задачу | public static function run_cron( $debug = false ) {
$pending = self::get_newsletters( array( 'pending' => 1 ) );
if ( mysqli_num_rows( $pending ) > 0 ) {
while ( $send = mysqli_fetch_assoc( $pending ) ) {
if ( $debug ) {
echo "Attempting to send: ";
}
if ( $debug ) {
print_r( $send['send_id... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function cron()\n\t{\n\t\t$objNews = $this->Database->prepare(\"SELECT * FROM tl_news WHERE newsalert=? AND na_sent=? AND date<=?\")\n\t\t\t\t\t\t\t\t ->execute(1, '', time());\n\t\t\t\t\t\t\t\t \n\t\tif ($objNews->numRows)\n\t\t{\n\t\t\twhile( $objNews->next() )\n\t\t\t{\n\t\t\t\t$this->send($objNews->id... | [
"0.77517945",
"0.70999813",
"0.6920221",
"0.68568623",
"0.6787092",
"0.668454",
"0.6650706",
"0.65052265",
"0.6483211",
"0.647461",
"0.6466238",
"0.64536506",
"0.6445544",
"0.6431917",
"0.64282936",
"0.63899463",
"0.63844365",
"0.63503224",
"0.63345355",
"0.6257779",
"0.62576... | 0.74378216 | 1 |
Get the email address where password reminders are sent. | Получить адрес электронной почты, на который отправляются напоминания о пароле. | public function getReminderEmail()
{
return $this->user_email;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getReminderEmail() {\n\t\treturn $this -> email;\n\t}",
"public function getReminderEmail()\n\t{\n\t\treturn $this->email;\n\t}",
"public function getReminderEmail()\n\t{\n\t\treturn $this->email;\n\t}",
"public function getReminderEmail()\n\t{\n\t\treturn $this->email;\n\t}",
"public funct... | [
"0.8009162",
"0.80074453",
"0.80074453",
"0.80074453",
"0.80074453",
"0.80074453",
"0.80074453",
"0.80074453",
"0.80074453",
"0.80074453",
"0.80074453",
"0.80074453",
"0.80074453",
"0.80074453",
"0.80074453",
"0.80074453",
"0.80074453",
"0.80074453",
"0.80074453",
"0.80074453",... | 0.8046568 | 0 |
Constructor method for DutchBusinessEstablishmentV3 | Конструктор метод для DutchBusinessEstablishmentV3 | public function __construct($establishment_number = null, $main_establishment = null, $legal_form_text = null, $activity = null, $description = null, \Webservices\StructType\DutchBusinessDateV3 $establishment_date = null, \Webservices\StructType\DutchBusinessDateV3 $date_since = null, \Webservices\StructType\DutchBusin... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function __construct(Beneficiary $beneficiary)\n {\n $this->beneficiary =$beneficiary;\n }",
"public function __construct($bank_ica = null, $loyalty_code = null, $product_name = null, $delink_reason = null, $account_alias_name = null, $card_holder_name = null, $cobrand_card = null, $pseudo_pa... | [
"0.63523036",
"0.62727016",
"0.62553793",
"0.6202399",
"0.61644685",
"0.6145628",
"0.61385036",
"0.6117534",
"0.6111498",
"0.6107066",
"0.6075001",
"0.60504264",
"0.60504013",
"0.6019239",
"0.60142535",
"0.60139394",
"0.6006689",
"0.60053885",
"0.5997338",
"0.5992704",
"0.597... | 0.76882887 | 0 |
return true for access to all medias | вернуть true для доступа ко всем медиафайлам | public function accessMediasAll()
{
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function accessMediasFolder()\n {\n return true;\n }",
"function have_social_media(){\n\t$social_media = get_social_media();\n\treturn !empty($social_media) && is_array($social_media);\n}",
"function medias_autoriser(){}",
"public function hasAccessions(){\n return $this->_has(2);\n ... | [
"0.75399274",
"0.62205935",
"0.6086819",
"0.6074327",
"0.6074327",
"0.60022575",
"0.5942303",
"0.5923139",
"0.5902539",
"0.5868946",
"0.58608055",
"0.58599037",
"0.58539873",
"0.58443487",
"0.5833725",
"0.5824039",
"0.5806448",
"0.57999045",
"0.5782044",
"0.57721424",
"0.5744... | 0.83000135 | 0 |
function for view device by serial no | функция для просмотра устройства по серийному номеру | public function viewDeviceBySerialNo($serial_no)
{
return view('device.viewDeviceBySerialNo')->with('serial_no',$serial_no);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function common_serial_scan() {\r\n\t//Daftar perangkat serial, untuk Linux akan dimulai dengan ttyACMx atau ttyUSBx\r\n\t$acm = \"ttyACM\";\r\n\t$usb = \"ttyUSB\";\r\n\t//Dapatkan daftar perangkat yang terhubung ke komputer\r\n\t$cmd = shell_exec('ls /dev/');\r\n\t//Cari perangkat serial yang tersedia\r\n\t//cari... | [
"0.62772214",
"0.6093572",
"0.59758425",
"0.5955758",
"0.59378195",
"0.58300835",
"0.58300835",
"0.58300835",
"0.581561",
"0.580171",
"0.5744735",
"0.57388157",
"0.57330567",
"0.56916225",
"0.5655128",
"0.5590313",
"0.55436873",
"0.55338913",
"0.5526923",
"0.5488235",
"0.5481... | 0.7112821 | 0 |
returns an instance of given class , using filename(without php):classname syntax | возвращает экземпляр заданного класса, используя синтаксис filename(without php):classname | function getClassInstance($cval, $cdir = ".")
{
$cdef = explode(":", $cval);
$cname = $cdef[0];
$cclass = $cdef[1];
$cinst = null;
$cfile = "$cdir/$cname.php";
if (file_exists($cfile)) {
require_once($cfile);
if (class_exists($cclass)) {
$cinst = new $cclass();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function _get_classname($filename) {\n $directoriesAndFilename = explode('/', $filename);\n $filename = array_pop($directoriesAndFilename);\n $nameAndExtension = explode('.', $filename);\n $className = array_shift($nameAndExtension);\n\n return $className;\n }",
"public func... | [
"0.7098066",
"0.69614136",
"0.68885815",
"0.68237007",
"0.6781415",
"0.6779528",
"0.67582613",
"0.6720721",
"0.6715708",
"0.66904676",
"0.6665561",
"0.6662886",
"0.66133976",
"0.65810966",
"0.6567645",
"0.65563035",
"0.654873",
"0.6546931",
"0.65306056",
"0.652753",
"0.652418... | 0.7128029 | 0 |
Returns the wanted engine from an option list If engine not set in option list, uses default magmi product import engine | Возвращает требуемый движок из списка вариантов. Если движок не указан в списке вариантов, используется стандартный движок magmi для импорта продуктов | function getEngineInstance($options)
{
if (!isset($options["engine"])) {
$options["engine"] = "magmi_productimportengine:Magmi_ProductImportEngine";
}
$enginst = getClassInstance($options["engine"], dirname(dirname(__FILE__)) . "/engines");
return $enginst;
} | {
"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 defaultEngine()\n\t{\n\t\t$result = $this->forceQuery( \"SHOW ENGINES\" );\n\n... | [
"0.63054395",
"0.6207224",
"0.5604958",
"0.5604958",
"0.5604958",
"0.5564409",
"0.54435474",
"0.54213566",
"0.5394931",
"0.53948236",
"0.5393504",
"0.5393504",
"0.5393504",
"0.5393504",
"0.53626406",
"0.53577644",
"0.5348854",
"0.5333888",
"0.5333888",
"0.5323873",
"0.5277167... | 0.72079325 | 0 |
Get the value of homeAsset | Получить значение homeAsset | public function getHomeAsset()
{
return $this->homeAsset;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getAssetHome()\n {\n return Asset::getAssets($this->command_home_id, Asset::ASSETABLE_TEAM, NULL, true);\n }",
"public static function getAsset() {\n if (Asset::$asset == null) {\n Asset::$asset = new Asset();\n }\n return Asset::$asset;\n }",
"public function getAss... | [
"0.70280415",
"0.6118717",
"0.61041343",
"0.5941297",
"0.59242886",
"0.584535",
"0.5801846",
"0.57573164",
"0.56482726",
"0.56482726",
"0.5599456",
"0.5599456",
"0.55926114",
"0.558182",
"0.55703515",
"0.55480605",
"0.5526919",
"0.5523788",
"0.54999506",
"0.54999197",
"0.5486... | 0.7727357 | 0 |
Gets as deliveryTypeCode Code | Получает в качестве deliveryTypeCode код | public function getDeliveryTypeCode()
{
return $this->deliveryTypeCode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getCargoTypeCode()\n {\n return $this->cargoTypeCode;\n }",
"public function getDeliveryType()\n {\n return $this->promotional ? self::PROMOTIONAL_SMS_TYPE : self::TRANSACTIONAL_SMS_TYPE;\n }",
"public function getDeliverySuggestionCode()\n {\n return $this->... | [
"0.7144264",
"0.6750127",
"0.67304283",
"0.6581555",
"0.6529176",
"0.6417792",
"0.6384525",
"0.63663036",
"0.6302588",
"0.6289274",
"0.6289274",
"0.6235546",
"0.6181606",
"0.6153845",
"0.6131201",
"0.60879403",
"0.6071748",
"0.6057977",
"0.6043644",
"0.5999875",
"0.5934796",
... | 0.8811494 | 0 |
Gets as functionCode Function Code | Получает в качестве функцииКод Код функции | public function getFunctionCode()
{
return $this->functionCode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"final function getCode();",
"public function getCode();",
"public function getCode();",
"public function getCode();",
"public function getCode();",
"public function getCode();",
"public function getCode();",
"public function getCode() {}",
"public function getFunction(): string;",
"public functio... | [
"0.77001256",
"0.7582147",
"0.7582147",
"0.7582147",
"0.7582147",
"0.7582147",
"0.7582147",
"0.73663723",
"0.7260165",
"0.7084964",
"0.7084964",
"0.7084964",
"0.70793",
"0.7051512",
"0.69164765",
"0.6910575",
"0.67951214",
"0.67759025",
"0.6757675",
"0.6729739",
"0.67108184",... | 0.844891 | 0 |
Sets a new functionCode Function Code | Устанавливает новый функциональный код Function Code | public function setFunctionCode($functionCode)
{
$this->functionCode = $functionCode;
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setCode($code);",
"public function setCode($code);",
"function setFunction($name, $code)\n {\n $head = $this->getFunctionHead($name);\n\n if (!$head) { \n return PEAR::raiseError(\"'$name' is not a valid handler function\");\n }\n\n if (isset($this->fun... | [
"0.691724",
"0.691724",
"0.67143655",
"0.6652989",
"0.64913565",
"0.6460742",
"0.6420172",
"0.63634175",
"0.6313364",
"0.6300956",
"0.62917626",
"0.62861073",
"0.62782156",
"0.62552166",
"0.62133026",
"0.6208804",
"0.6189319",
"0.61691844",
"0.61589426",
"0.61544013",
"0.6149... | 0.75207967 | 0 |
Returns true if the value is invalid, false otherwise. | Возвращает true, если значение недействительно, и false в противном случае. | public function isInvalid(): bool; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function isInvalid()\n\t{\n\t\treturn $this->invalid;\n\t}",
"public static function isInvalid($value)\n {\n }",
"public function isInvalid(): bool\n {\n return $this->isInvalid;\n }",
"public function getIsValidValue($value)\r\n {\r\n return true;\r\n }",
"fu... | [
"0.7721601",
"0.76960987",
"0.76302385",
"0.7611262",
"0.75571644",
"0.7542331",
"0.74988",
"0.7496524",
"0.74368095",
"0.7432804",
"0.7421358",
"0.7402969",
"0.7402969",
"0.72976744",
"0.72551966",
"0.7197144",
"0.7196779",
"0.7192558",
"0.7189606",
"0.7153126",
"0.7151998",... | 0.7940015 | 0 |
Sets the maximum value. | Устанавливает максимальное значение. | public function setMaximumValue(int $maximumValue): void; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setMaximum($value) {\r\n $this->internalSetMaximum($value);\r\n }",
"public function setMaxValue($maxValue);",
"public function setMax( int $max ): void {\n\t\t\t$this->maximum = $max;\n\t\t}",
"public function setMaxValue($value)\n\t{\n\t\t$this->setViewState('MaxValue',$value,'');... | [
"0.87393725",
"0.8288531",
"0.81193125",
"0.80277133",
"0.7714891",
"0.7633965",
"0.7624217",
"0.7624217",
"0.7622483",
"0.75960815",
"0.7502521",
"0.730369",
"0.7245675",
"0.7223073",
"0.7223073",
"0.7158565",
"0.7113186",
"0.7079896",
"0.7049573",
"0.703732",
"0.69979477",
... | 0.85194576 | 1 |
Returns whether or not the group contains a specified contact. | Возвращает true, если группа содержит указанный контакт, и false в противном случае. | public function hasContact($contact)
{
return in_array($contact, $this->_contacts);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function hasGroup(Group $group): bool;",
"public function hasContacts() {\n return $this->_has(7);\n }",
"public function hasContacts() {\n return $this->_has(6);\n }",
"public function contactExist(){\n $result = \\CRest::call('crm.contact.list', [\n 'filter' => [\n ... | [
"0.6784583",
"0.663829",
"0.65261215",
"0.6468552",
"0.6397807",
"0.6363614",
"0.6338155",
"0.62432945",
"0.6133862",
"0.6127115",
"0.61217725",
"0.6018828",
"0.60024714",
"0.5972291",
"0.5965437",
"0.5962972",
"0.5957841",
"0.59288347",
"0.5918906",
"0.59168994",
"0.58917475... | 0.7337681 | 0 |
Tests getting a service that does not exist. | Тестирование получения услуги, которая не существует. | public function testGetNonExistentService()
{
$kraken = new Kraken(self::$tokenProvider);
$nonExistentService = $kraken->nonExistentService;
$this->assertNull($nonExistentService);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testServiceIsNotLoaded()\n {\n $di = new \\Anax\\DI\\DI();\n $di->get(\"nosuchservice\");\n }",
"public function testGetNotExistingServiceThrowsServiceNotFoundException()\n {\n $this->expectException(NotImplementedException::class);\n $this->factory->TotallyNo... | [
"0.761422",
"0.72460777",
"0.7200595",
"0.71815944",
"0.69702506",
"0.68143904",
"0.6752525",
"0.6732149",
"0.6536667",
"0.6523738",
"0.6427612",
"0.6418032",
"0.6385894",
"0.63550574",
"0.6315674",
"0.6301985",
"0.6246462",
"0.62090546",
"0.62090546",
"0.61601675",
"0.615547... | 0.7700394 | 0 |
Creates a new Tax model. If creation is successful, the browser will be redirected to the 'view' page. | Создает новый модель налога. Если создание успешно, браузер будет перенаправлен на страницу 'view'. | public function actionCreate()
{
$model = new Tax;
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['index', 'added' => 'yes']);
} else {
return $this->render('create', [
'model' => $model,
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function actionCreate()\n {\n $model = new ShopxieItemsTaxes();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'item_id' => $model->item_id, 'name' => $model->name, 'percent' => $model->percent]);\n } else {\n ... | [
"0.77047896",
"0.73592496",
"0.71454525",
"0.6890505",
"0.6795924",
"0.6737533",
"0.67239124",
"0.6703881",
"0.6661391",
"0.66416603",
"0.6607807",
"0.6584708",
"0.65461546",
"0.65369743",
"0.6530149",
"0.6496384",
"0.6496313",
"0.64959645",
"0.6479927",
"0.6454354",
"0.64435... | 0.8544336 | 0 |
Updates an existing Tax model. If update is successful, the browser will be redirected to the 'view' page. | Обновляет существующую модель НДС. Если обновление успешно, браузер будет перенаправлен на страницу 'view'. | public function actionUpdate($id)
{
$model = $this->findModel($id);
if(isset($_REQUEST['state_tax_add']))
{
$state_tax = new StateTax();
$state_tax->tax_id = $model->id;
$state_tax->country_id = $_REQUEST['country_id'];
$state_tax->state_id = $_REQUEST['state_id'];
$state_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function taxupdate() {\n $arr['page'] = 'taxdetail';\n\t\t$arr['active'] = 'other';\n\t\t$arr['productTax'] = $this->setting->getTax('product');\n\t\t$arr['shippingTax'] = $this->setting->getTax('shipping');\n\t\t$this->load->view('vwSettingTax',$arr);\n\t}",
"public function update(TaxRequest $req... | [
"0.7157986",
"0.66738486",
"0.6617845",
"0.65309966",
"0.6493573",
"0.6478861",
"0.6460543",
"0.6356671",
"0.63507396",
"0.6284373",
"0.6257521",
"0.625109",
"0.62469536",
"0.62460065",
"0.6240163",
"0.62206984",
"0.6215298",
"0.62109154",
"0.6210483",
"0.6206177",
"0.6197185... | 0.7122444 | 1 |
Call Form to Add New piutang | Форма вызова для добавления нового piutang | public function add()
{
$data['piutang'] = $this->piutangs->add();
$data['action'] = 'piutang/save';
$tmp_statuss = $this->statuss->get_all();
foreach($tmp_statuss as $row){
$statuss[$row['id']] = $row['status'];
}
$data['statuss'] = $status... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function formNew() {\n $this->data->options = array(\n 'RJ' => 'Rio de Janeiro',\n 'MG' => 'Minas Gerais',\n 'SP' => 'São Paulo',\n 'ES' => 'Espírito Santo',\n 'BA' => 'Bahia',\n 'RS' => 'Rio Grande do Sul'\n );\n $this->... | [
"0.7782539",
"0.7616908",
"0.72061646",
"0.7161777",
"0.7098529",
"0.70531094",
"0.70238715",
"0.6961184",
"0.6956053",
"0.69269323",
"0.69188076",
"0.68870133",
"0.6872788",
"0.687093",
"0.68341297",
"0.6820888",
"0.6819221",
"0.6807095",
"0.6807095",
"0.67986774",
"0.679813... | 0.7671869 | 1 |
! store /! Stores the priority object to the database. Returnes the ID to the eZPriority object if the store is a success. | ! store /! Сохраняет приоритетный объект в базу данных. Возвращает ID объекта eZPriority, если сохранение успешно. | function store()
{
$db =& eZDB::globalDatabase();
$db->begin();
$name = $db->escapeString( $this->Name );
if ( !isSet ( $this->ID ) )
{
$db->lock( "eZTodo_Priority" );
$this->ID = $db->nextID( "eZTodo_Priority", "ID" );
$res[] = $db->query(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function store()\r\n {\r\n $db =& eZDB::globalDatabase();\r\n $db->begin();\r\n $name = $db->escapeString( $this->Name );\r\n if ( !isSet( $this->ID ) )\r\n {\r\n $db->lock( \"eZBug_Priority\", \"ID\" );\r\n $this->ID = $db->nextID( \"eZBug_Priority\", \"... | [
"0.73478216",
"0.6146865",
"0.59704375",
"0.59031457",
"0.58239263",
"0.5774159",
"0.57718825",
"0.56800765",
"0.5678249",
"0.55945253",
"0.5577415",
"0.5536928",
"0.5475828",
"0.54411244",
"0.5431008",
"0.54254156",
"0.5420518",
"0.5405187",
"0.53961384",
"0.539141",
"0.5388... | 0.7347838 | 0 |
! delete /! Deletes the priority object in the database. | ! удалить /! Удаляет объект приоритета в базе данных. | function delete()
{
$db =& eZDB::globalDatabase();
$res[] = $db->query( "DELETE FROM eZTodo_Priority WHERE ID='$this->ID'" );
eZDB::finish( $res, $db );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function delete()\r\n {\r\n $db =& eZDB::globalDatabase();\r\n $db->begin();\r\n if ( isSet( $this->ID ) )\r\n {\r\n // remove all bugs from the database that have this priority.\r\n $res[] = $db->query( \"DELETE FROM eZBug_Bug WHERE PriorityID='$this->ID'\" );\... | [
"0.7065781",
"0.6524918",
"0.6393256",
"0.62788355",
"0.6278826",
"0.61970556",
"0.61510783",
"0.61495304",
"0.61289716",
"0.6091433",
"0.6091433",
"0.6091433",
"0.6091433",
"0.6091433",
"0.6091433",
"0.6091433",
"0.6091433",
"0.6091433",
"0.6091433",
"0.6091433",
"0.6091433"... | 0.79533213 | 0 |
! get /! Gets a priority object from the database, where ID == $id | ! get /! Получает объект с приоритетом из базы данных, где ID == $id | function get( $id )
{
$db =& eZDB::globalDatabase();
if ( $id != "" )
{
$db->array_query( $priority_array, "SELECT * FROM eZTodo_Priority WHERE ID='$id'" );
if ( count( $priority_array ) > 1 )
{
die( "Error: Priority's with the same... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function get( $id=-1 )\r\n {\r\n $db =& eZDB::globalDatabase();\r\n \r\n if ( $id != \"\" )\r\n {\r\n $db->array_query( $priority_array, \"SELECT * FROM eZBug_Priority WHERE ID='$id'\" );\r\n if ( count( $priority_array ) > 1 )\r\n {\r\n ... | [
"0.8308334",
"0.75252944",
"0.72039574",
"0.67708397",
"0.67096704",
"0.6706009",
"0.6556438",
"0.6556438",
"0.6556438",
"0.6556438",
"0.6556438",
"0.6556438",
"0.6556438",
"0.6521293",
"0.63966674",
"0.63934004",
"0.63934004",
"0.63934004",
"0.63934004",
"0.63934004",
"0.639... | 0.80858976 | 1 |
! getAll /! Gets all the priority informasjon from the database. Returns the array in $priority_array ordered by name. | ! getAll /! Получает все приоритетные информационные данные из базы данных. Возвращает массив в $priority_array, отсортированный по имени. | function getAll()
{
$db =& eZDB::globalDatabase();
$priority_array = 0;
$return_array = array();
$priority_array = array();
$db->array_query( $priority_array, "SELECT ID FROM eZTodo_Priority ORDER BY Name" );
for ( $i = 0; $i < count( $priority_ar... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getAll()\r\n {\r\n $db =& eZDB::globalDatabase();\r\n \r\n $return_array = array();\r\n $priority_array = array();\r\n \r\n $db->array_query( $priority_array, \"SELECT ID FROM eZBug_Priority ORDER BY Name\" );\r\n \r\n for ( $i = 0; $i < count( $p... | [
"0.7740308",
"0.59975815",
"0.5781731",
"0.5781731",
"0.5781731",
"0.5781731",
"0.5781731",
"0.5781731",
"0.5781731",
"0.5773293",
"0.56855875",
"0.56855875",
"0.56855875",
"0.56855875",
"0.56855875",
"0.56855875",
"0.56848073",
"0.56848073",
"0.56848073",
"0.56848073",
"0.56... | 0.7793983 | 0 |
public function testLocationAndTexts($loc, $texts) | public function testLocationAndTexts($loc, $texts) | public function testLocationAndTexts() {
for($i = 0; $i < 9; $i++) {
echo '$loc[' . $i . ']: ' . $loc[$i] . '<br/>';
}
for($i = 0; $i < 9; $i++) {
echo '$texts[' . $i . ']: ' . $texts[$i] . '<br/>';
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testEntitiesLocation()\n {\n $this->assertEquals(['San Francisco', 'California'], array_map(fn ($e) => $e['text'], $this->model()->doc('San Francisco, California')->entities()));\n }",
"function locationsLocation($text){\n array_push($text, array('key' => 'PARENT_LOCAT... | [
"0.61980546",
"0.575134",
"0.56312054",
"0.5535762",
"0.5505625",
"0.5480813",
"0.5403789",
"0.53566146",
"0.52759683",
"0.52288765",
"0.51975435",
"0.51908535",
"0.5173987",
"0.5170342",
"0.5144197",
"0.5135644",
"0.5127906",
"0.51078236",
"0.5087798",
"0.50846356",
"0.50675... | 0.7811721 | 0 |
Test to see if api has routes. | Тестирование для проверки наличия маршрутов в API. | public function assertApiHasRoutes()
{
$hasApiRoutes = !empty($this->getApiRoutes());
$this->assertTrue($hasApiRoutes);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function isAPI(){\n $paths = explode(\"/\", $this->path);\n if(isset($paths[0]) && strtolower($paths[0])==\"api\"){\n return true;\n }\n return false;\n }",
"static public function isApi() {\n return\n isset($_SERVER['REQUEST_URI'])\n && strpos($_SERV... | [
"0.7396384",
"0.72979194",
"0.7265841",
"0.71385115",
"0.7075723",
"0.6975065",
"0.6828985",
"0.662841",
"0.6576508",
"0.65702516",
"0.6551226",
"0.65436375",
"0.6517882",
"0.64878744",
"0.6474332",
"0.64546555",
"0.64290226",
"0.64149535",
"0.6411126",
"0.64097136",
"0.63927... | 0.84471804 | 0 |
Test to ensure that factory exists for user class. | Тест для обеспечения существования фабрики для класса пользователя. | public function assertUserFactoryExists()
{
$user = '';
try {
$user = factory(User::class)->create();
} catch (Exception $e) {
$msg = 'User factory does not exist.';
echo $msg."\n";
}
$this->assertTrue(is_object($user));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testGetUserClass()\n {\n $this->assertSame(User::class, $this->userFactory->getUserClass());\n }",
"public function assertApiUserCanBeCreated()\n {\n $user = '';\n\n try {\n $user = $this->createApiUser();\n } catch (Exception $e) {\n $ms... | [
"0.7854189",
"0.7219381",
"0.71085256",
"0.70269436",
"0.69999033",
"0.69828624",
"0.69828624",
"0.69465977",
"0.69077957",
"0.69077957",
"0.68437886",
"0.65859085",
"0.65836823",
"0.65811414",
"0.6567217",
"0.6535938",
"0.65201205",
"0.65005386",
"0.64811844",
"0.6465053",
"... | 0.844734 | 0 |
Test to determine whether all api routes are auth protected when unauthorized. | Тест для определения того, защищены ли все маршруты api при неавторизованном доступе. | public function assertApiRoutesAreProtectedWhenUnauthorized()
{
$assertion = true;
$routes = $this->getApiRoutes();
foreach ($routes as $route) {
if (!$this->assertApiRouteIsProtectedWhenUnauthorized($route)) {
$assertion = false;
break;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function assertApiRoutesAreAccessibleWhenAuthorized()\n {\n $assertion = true;\n $user = $this->createApiUser();\n $routes = $this->getApiRoutes();\n\n foreach ($routes as $route) {\n if (!$this->assertApiRouteIsAccessibleWhenAuthorized($user, $route)) {\n ... | [
"0.6949788",
"0.6596504",
"0.6492743",
"0.64046144",
"0.63840234",
"0.636518",
"0.6313334",
"0.62931424",
"0.6286597",
"0.62824655",
"0.6261985",
"0.625756",
"0.6204028",
"0.6204028",
"0.6160442",
"0.61475825",
"0.6137355",
"0.6099606",
"0.60989857",
"0.60989857",
"0.6090924"... | 0.84711444 | 0 |
Test to determine whether all api routes are auth accessible when authorized. | Тест для определения того, все ли маршруты API доступны при авторизации. | public function assertApiRoutesAreAccessibleWhenAuthorized()
{
$assertion = true;
$user = $this->createApiUser();
$routes = $this->getApiRoutes();
foreach ($routes as $route) {
if (!$this->assertApiRouteIsAccessibleWhenAuthorized($user, $route)) {
$assert... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function assertApiRoutesAreProtectedWhenUnauthorized()\n {\n $assertion = true;\n $routes = $this->getApiRoutes();\n\n foreach ($routes as $route) {\n if (!$this->assertApiRouteIsProtectedWhenUnauthorized($route)) {\n $assertion = false;\n bre... | [
"0.75427353",
"0.7148738",
"0.7148738",
"0.6673261",
"0.66666585",
"0.66666585",
"0.66119295",
"0.655883",
"0.6542547",
"0.6520588",
"0.64801896",
"0.6421942",
"0.64187485",
"0.6364759",
"0.6341637",
"0.6341637",
"0.6334451",
"0.632988",
"0.6321661",
"0.6319062",
"0.6304363",... | 0.8226918 | 0 |
Returns the item associated with the $url and $itemId parameters. | Возвращает элемент, связанный с параметрами $url и $itemId. | abstract public function getItem($url,$itemId); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract public function getByItemId($itemId);",
"public function getItem() \n {\n $this->checkUserIsLogged();\n $params = Route::getUrlParameters();\n $id = $params['id'];\n try {\n $item = new Item;\n $item->getItem($id);\n View::renderJson($item);\n } catch (Exception $e) {\n ... | [
"0.7126773",
"0.66874415",
"0.6543226",
"0.6519115",
"0.6519115",
"0.63402456",
"0.6339694",
"0.6337537",
"0.63267297",
"0.6291047",
"0.6223154",
"0.6195329",
"0.613709",
"0.6099963",
"0.60682136",
"0.6017344",
"0.6005366",
"0.593501",
"0.5928628",
"0.5919055",
"0.59173965",
... | 0.8202763 | 0 |
Find all resources currently allocate but that have expired | Найдите все ресурсы, которые в настоящее время выделены, но истекли срок действия | public function get_expired_resource_ids() {
$sql = 'SELECT id
FROM resources
WHERE is_allocated = 1
AND expires_at < datetime("now", "localtime")';
$query = $this->pdo->prepare($sql);
$query->execute();
$return_ids = [];
while ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function findAllExpired()\n {\n $queryBuilder = $this->createQueryBuilder('r');\n $date = date('Y-m-d', strtotime(\"-30 days\"));\n\n $queryBuilder\n ->where('r.validated = :state')\n ->setParameter('state', 0)\n ->andWhere('r.addedOn <= :date')\n ... | [
"0.6867886",
"0.6741279",
"0.6412352",
"0.6227189",
"0.59769595",
"0.5892161",
"0.57972",
"0.57641435",
"0.5714313",
"0.5696892",
"0.5669896",
"0.558484",
"0.55630225",
"0.5532975",
"0.55148304",
"0.5505943",
"0.5490172",
"0.54790586",
"0.54754454",
"0.5473949",
"0.5453143",
... | 0.71450806 | 0 |
Tests the camelize function | Тестирует функцию camelize | public function testCamelizeString()
{
$camelizeTests = array (
'camelize' => 'Camelize',
'CameLiZe' => 'Camelize',
'cAmeLize' => 'Camelize',
'_camelize' => 'Camelize',
'123camelize' => '123camelize',
'c_a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testCamelize(): void\n {\n $this->assertSame('TestThing', Inflector::camelize('test_thing'));\n $this->assertSame('Test-thing', Inflector::camelize('test-thing'));\n $this->assertSame('TestThing', Inflector::camelize('test thing'));\n\n $this->assertSame('Test_thing',... | [
"0.7303995",
"0.7071802",
"0.6716854",
"0.67168254",
"0.67031264",
"0.65307015",
"0.6488207",
"0.6400467",
"0.6382514",
"0.63583636",
"0.6356602",
"0.6311481",
"0.62587583",
"0.62282217",
"0.61995745",
"0.6102701",
"0.6033682",
"0.5951755",
"0.5937952",
"0.58610725",
"0.58007... | 0.7087927 | 1 |
Tests the uncamelize function | Тестирует функцию uncamelize | public function testUncamelizeString()
{
$uncamelizeTests = array (
'camelize' => 'camelize',
'CameLiZe' => 'came_li_ze',
'cAmeLize' => 'c_ame_lize',
'_camelize' => '_camelize',
'123camelize' => '123camelize',
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testUncamelizeString()\n {\n\n $uncamelizeTests = array (\n 'camelize' => 'camelize',\n 'CameLiZe' => 'came_li_ze',\n 'cAmeLize' => 'c_ame_lize',\n '_camelize' => '_camelize',\n '123camelize' => '123came... | [
"0.82096046",
"0.68356997",
"0.6718839",
"0.658856",
"0.6580776",
"0.65368646",
"0.6467511",
"0.63593733",
"0.6289693",
"0.6238954",
"0.622931",
"0.6084131",
"0.6034757",
"0.6008928",
"0.5958751",
"0.59172827",
"0.58838797",
"0.58158505",
"0.57967883",
"0.5791183",
"0.5786682... | 0.82265043 | 0 |
Add one entry for the user. An entry is a question, answer or comment made by the user. | Добавьте одну запись для пользователя. Запись — это вопрос, ответ или комментарий, отправленный пользователем. | public function addOneEntry($id)
{
// Connect to db
$user = new User();
$user->setDb($this->di->get("db"));
// Get the user
$user->find("id", $id);
// Add one to entry
$user->entries += 1;
// Save to database
$user->save();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function add_entry($entry);",
"public function addEntry()\n\t{\n\t\t//Get all data\n\t\t$data = \\Input::all();\n\t\t//Get the user id of the currently logged in user\n\t\t$userId = Sentry::getUser()->id;\n\t\t//Add Data\n\t\t$result = $this->timesheet->addEntry($data,$userId);\n\n\n\t\t//代辦事項\n\t\t$user... | [
"0.6912321",
"0.68866163",
"0.68612796",
"0.66941863",
"0.6548754",
"0.6497419",
"0.6375338",
"0.6313286",
"0.6271791",
"0.6266682",
"0.62505454",
"0.618784",
"0.61505485",
"0.6134415",
"0.6126833",
"0.61211896",
"0.6097093",
"0.60969305",
"0.6068578",
"0.6064921",
"0.6061022... | 0.73830783 | 0 |
Returns the response reverseproxy cache TTL in seconds. | Возвращает время жизни кэша reverseproxy в секундах. | private function getReverseProxyTtl(Response $response)
{
if (null !== $maxAge = $response->headers->get(self::HEADER_REVERSE_PROXY_TTL)) {
return $maxAge - $response->getAge();
}
return;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getCacheTTL()\n {\n return $this->CacheTTL;\n }",
"static public function get_cache_ttl() {\n\t\treturn (int) get_option( 'azure_browse_cache_results', 15 );\n\t}",
"public function cacheTtl()\n {\n return $this->cacheTtl;\n }",
"public function getCacheTTL();",
"p... | [
"0.7687667",
"0.7604624",
"0.7484438",
"0.7405803",
"0.7264091",
"0.71832955",
"0.71566445",
"0.70539904",
"0.67780447",
"0.67198795",
"0.66668385",
"0.6659387",
"0.66316783",
"0.6627184",
"0.66146934",
"0.6599704",
"0.6596325",
"0.6586837",
"0.65842485",
"0.6556928",
"0.6541... | 0.76557946 | 1 |
Get user first and last names by id | Получить имя и фамилию пользователя по id | public function sGetUserNameById($id)
{
return $this->db->fetchRow('SELECT firstname, lastname FROM s_user WHERE id = ?', [$id]) ?: [];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function userName($user_id)\n {\n global $obj_rep;\n \n $condtion = \" user_id='\" . $user_id . \"'\";\n \n $sql = $obj_rep->query(\"first_name,last_name\", \"user_registration\", $condtion);\n \n $result = $obj_rep->get_all_row($sql);\n return $fullName =... | [
"0.72485834",
"0.7246301",
"0.7214275",
"0.71091497",
"0.70772904",
"0.70335823",
"0.69225025",
"0.689695",
"0.68910676",
"0.68407595",
"0.68389434",
"0.68058455",
"0.67779696",
"0.6741069",
"0.67406046",
"0.6716611",
"0.6702744",
"0.67000663",
"0.66759706",
"0.6673928",
"0.6... | 0.73101276 | 0 |
Sends a mail to the given recipient with a given template. If the opt in parameter is set, the sConfirmLink variable will be filled by the opt in link. | Отправляет письмо получателю с заданным шаблоном. Если параметр opt in установлен, переменная sConfirmLink будет заполнена ссылкой на опрос. | private function sendMail($recipient, $template, $optIn = '')
{
$context = [];
if (!empty($optIn)) {
$context['sConfirmLink'] = $optIn;
}
$context = $this->eventManager->filter(
'Shopware_Modules_Admin_sendMail_FilterVariables',
$context,
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function actionSendConfirmationEmail() {\n\n\t\t$userId = User::checkLogged();\n\t\t$confirmation = User::generateConfirmationCode($userId);\n\t\t$subject = \"Confirm your account on JustRegMe\";\n\t\t$bodyPath = ROOT . '/template/email/confirmation.php';\n\t\t$body = include($bodyPath); //loads HTML-body f... | [
"0.6234691",
"0.6106375",
"0.6096961",
"0.6016459",
"0.6001218",
"0.594294",
"0.5923907",
"0.58889985",
"0.5819079",
"0.5775859",
"0.5656832",
"0.5656049",
"0.5592117",
"0.55730987",
"0.5566652",
"0.55658007",
"0.55518407",
"0.5551262",
"0.5550386",
"0.5546065",
"0.5510988",
... | 0.78587025 | 0 |
Helper function for sAdmin::sGetUserData() Gets user shipping data (address, payment) | Вспомогательная функция для sAdmin::sGetUserData() Получает данные по доставке пользователя (адрес, оплата) | private function getUserShippingData($userId, $userData, $countryQuery)
{
$entityManager = Shopware()->Container()->get('models');
$customer = $entityManager->find(Shopware\Models\Customer\Customer::class, $userId);
$shipping = $this->convertToLegacyAddressArray($customer->getDefaultShipping... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function get_sess_cart_shipping_address()\n {\n if (!empty($this->session->userdata('mds_cart_shipping_address'))) {\n return $this->session->userdata('mds_cart_shipping_address');\n }\n $std = new stdClass();\n $row = null;\n\n if ($this->auth_check) {\n ... | [
"0.7246272",
"0.71778035",
"0.71730024",
"0.7015795",
"0.6859685",
"0.68350685",
"0.68225974",
"0.67981505",
"0.6784124",
"0.6773099",
"0.665142",
"0.65968907",
"0.6590311",
"0.6561609",
"0.65583825",
"0.65365237",
"0.64675266",
"0.64496833",
"0.6417536",
"0.6412033",
"0.6372... | 0.72326213 | 1 |
Helper method for sAdmin::sGetPremiumDispatchSurcharge() Calculates the surcharge for the current basket and dispatches | Помощь метод для sAdmin::sGetPremiumDispatchSurcharge() Вычисляет надбавку для текущей корзины и отправляет | private function calculateDispatchSurcharge($basket, $dispatches)
{
$surcharge = 0;
if (empty($dispatches)) {
return $surcharge;
}
foreach ($dispatches as $dispatch) {
if (empty($dispatch['calculation'])) {
$from = round($basket['weight'], 3)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function calculate_surcharges()\r\n\t{\r\n\t\t$surcharge_total = $surcharge_tax_total = 0;\r\n\r\n\t\t// If a cart surcharge exists.\r\n\t\tif (! empty($this->flexi->cart_contents['settings']['surcharges']))\r\n\t\t{\r\n\t\t\tforeach($this->flexi->cart_contents['settings']['surcharges'] as $surcharge_id => ... | [
"0.6822242",
"0.64624405",
"0.59522253",
"0.57534915",
"0.5548291",
"0.5527045",
"0.54818153",
"0.54186946",
"0.5410674",
"0.5375279",
"0.5361482",
"0.5342786",
"0.531966",
"0.52533567",
"0.52455425",
"0.52376264",
"0.5225098",
"0.5180784",
"0.5154781",
"0.51543784",
"0.51411... | 0.75456345 | 0 |
Get the user loaner id. | Получить идентификатор пользователя-заемщика. | public function getUserLoanerId() {
return $this->userLoanerId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function _getLogedUserId()\r\n\t{\r\n\t\t// check if user is authenticated\r\n\t\tif (!Zend_Registry::get('Authenticated')) {\r\n\t\t\tthrow new Exception('User not authenticated!');\r\n\t\t}\r\n\t\t$user = Zend_Registry::get('User');\r\n\t\treturn $user->Id;\r\n\t}",
"public function get_user_id();",... | [
"0.7443131",
"0.72592044",
"0.7030363",
"0.7023806",
"0.70179963",
"0.699486",
"0.69850785",
"0.6976341",
"0.6975573",
"0.6959622",
"0.69332176",
"0.69235516",
"0.6921081",
"0.6868253",
"0.68442273",
"0.6825159",
"0.6810565",
"0.68013257",
"0.68007284",
"0.6795852",
"0.679585... | 0.8807201 | 0 |
Get the users interest date. | Получить дату интереса пользователя. | public function getUserInterestDate($format = 'Y-m-d') {
$date = strtotime('+' . $this->userInterestDays . ' day');
return date($format, $date);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getDate_naissance_user()\r\n {\r\n return $this->date_naissance_user;\r\n }",
"public function user_date()\n {\n // get user's timezone\n try {\n $tz = new DateTimeZone($this->config->get('timezone'));\n $date = new DateTime('now', $tz);\n ... | [
"0.63534075",
"0.6301002",
"0.6171488",
"0.61411816",
"0.5988344",
"0.59685177",
"0.5963905",
"0.59354514",
"0.5846391",
"0.58295286",
"0.58191574",
"0.580479",
"0.578327",
"0.57262665",
"0.57245654",
"0.57189256",
"0.56952417",
"0.5655017",
"0.5651314",
"0.56495243",
"0.5619... | 0.7583261 | 0 |
Get pickup agency id. | Получить идентификатор агентства выдачи. | public function getPickupAgencyId() {
return $this->pickupAgencyId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function get_agreement_id()\n {\n return $this->get_default_property(self :: PROPERTY_AGREEMENT_ID);\n }",
"public function getAgency()\n {\n return isset($this->agency) ? $this->agency : null;\n }",
"public function getIdOrga(): int\r\n {\r\n return $this->idOrga;\r\n }"... | [
"0.6183827",
"0.609174",
"0.5992793",
"0.596524",
"0.59182996",
"0.5878408",
"0.58653164",
"0.5857862",
"0.5844493",
"0.5807831",
"0.58074313",
"0.5804526",
"0.57817143",
"0.5761381",
"0.57496846",
"0.5742464",
"0.5733479",
"0.56874657",
"0.5682865",
"0.56669647",
"0.56521446... | 0.8278005 | 0 |
Add a box to the house | Добавьте коробку на дом | public function addBox(Box $box) {
$this->_boxes[] = $box;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function addBox($quantityStubTube,\n $wallAOfTheBoxHigh, $wallAOfTheBoxWidth,\n $wallBOfTheBoxHigh, $wallBOfTheBoxWidth,\n $wallCOfTheBoxHigh, $wallCOfTheBoxWidth)\n {\n $this->tabWithBoxes[] = [\"quantityStubTube\" => $... | [
"0.6757821",
"0.6682582",
"0.65495056",
"0.6339241",
"0.6216247",
"0.61851585",
"0.6144704",
"0.60180193",
"0.59667355",
"0.58930767",
"0.58702123",
"0.5855397",
"0.5855356",
"0.5819531",
"0.58142745",
"0.58115065",
"0.56885135",
"0.56878084",
"0.56529033",
"0.5647076",
"0.55... | 0.77038944 | 0 |
Count the number of spare spaces in boxes in the house | Посчитайте количество запасных пространств в коробках в доме | public function countSpareBoxSpaces() {
$catsInside = $this->getCatsInside();
$totalCatsInside = count($catsInside);
$capacity = $this->getBoxCapacity();
$spareBoxes = $capacity-$totalCatsInside;
if($spareBoxes<=0){
$spareBoxes = 0;
}
return $spareBoxes;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getBoxCapacity() {\r\n\t\t$boxes = $this->getBoxes();\r\n\t\t$count = 0;\r\n\t\tforeach($boxes as $box) {\r\n\t\t\t$boxclass = new $box;\r\n\t\t\t$count = $count + $box->getCapacity();\r\n\t\t}\r\n\t\treturn $count;\r\n\t}",
"public function getBoxesCount()\n {\n $boxes = 0;\n\n ... | [
"0.68879545",
"0.6481454",
"0.643372",
"0.625828",
"0.622962",
"0.6127871",
"0.6034288",
"0.5882435",
"0.5821603",
"0.58160126",
"0.58074725",
"0.5743437",
"0.56215537",
"0.5584604",
"0.55557656",
"0.5537397",
"0.5534085",
"0.55340487",
"0.5502715",
"0.54588205",
"0.54538673"... | 0.83134913 | 0 |
Find a box with a spare space | Найдите коробку с дополнительным пространством | public function findSpareBox() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function countSpareBoxSpaces() {\r\n\t\t $catsInside = $this->getCatsInside();\r\n\t\t $totalCatsInside = count($catsInside);\r\n\t\t $capacity = $this->getBoxCapacity();\r\n\t\t $spareBoxes = $capacity-$totalCatsInside;\r\n\t\t if($spareBoxes<=0){\r\n\t\t $spareBoxes = 0;\r\n\t\t }\r\n\t\t return $spareB... | [
"0.6840874",
"0.6303459",
"0.59071255",
"0.5523862",
"0.5454425",
"0.5337225",
"0.5316577",
"0.5309208",
"0.5301903",
"0.517269",
"0.5049511",
"0.5026869",
"0.5024625",
"0.49846277",
"0.49747646",
"0.49636745",
"0.48936582",
"0.4823152",
"0.4815055",
"0.47945866",
"0.4785297"... | 0.823598 | 0 |
Get the total cat capacity of all the boxes in the house | Получить общую вместимость кошек всех коробок в доме | public function getBoxCapacity() {
$boxes = $this->getBoxes();
$count = 0;
foreach($boxes as $box) {
$boxclass = new $box;
$count = $count + $box->getCapacity();
}
return $count;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function countSpareBoxSpaces() {\r\n\t\t $catsInside = $this->getCatsInside();\r\n\t\t $totalCatsInside = count($catsInside);\r\n\t\t $capacity = $this->getBoxCapacity();\r\n\t\t $spareBoxes = $capacity-$totalCatsInside;\r\n\t\t if($spareBoxes<=0){\r\n\t\t $spareBoxes = 0;\r\n\t\t }\r\n\t\t return $spareB... | [
"0.75743043",
"0.6888084",
"0.68589",
"0.6796344",
"0.6583714",
"0.6402419",
"0.6389165",
"0.62949944",
"0.62347734",
"0.61769426",
"0.61011136",
"0.6059335",
"0.6001059",
"0.5980817",
"0.5980817",
"0.5980817",
"0.5977552",
"0.5953903",
"0.59031737",
"0.587659",
"0.587659",
... | 0.75759095 | 0 |