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
Get bid of the related attribute
Получить ставку связанного атрибута
public function getBid() { return $this->getAttribute()->getBid(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function bid()\n {\n return $this->hasOne('App\\Bid', 'id', 'bid_id')->first();\n }", "public function getBidId(){\n return $this->bidId; \n }", "public function getB()\n {\n return $this->B;\n }", "public function getB()\n {\n return $this->b;\n }", ...
[ "0.7679489", "0.72444826", "0.6588604", "0.6468497", "0.63224006", "0.6229576", "0.61816615", "0.615477", "0.6086161", "0.6037028", "0.6033735", "0.5998887", "0.5998323", "0.59348416", "0.59070176", "0.5851722", "0.58379775", "0.5811908", "0.57385486", "0.5737315", "0.5725076...
0.8099031
0
Get participation this fillout is related to
Получить участие, связанное с этим заполнением
public function getParticipation() { return $this->participation; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getParticipant()\n {\n return $this->participant;\n }", "public function getParticipant()\n {\n return $this->participant;\n }", "public function getParticipant()\n\t{\n\t\treturn $this->getContext()->getParticipant();\n\t}", "public function getCoParticipante()\n\t{...
[ "0.65261936", "0.65261936", "0.65157956", "0.6278628", "0.62113637", "0.6134019", "0.6000006", "0.5910217", "0.58522767", "0.5808622", "0.58062255", "0.57796293", "0.57787335", "0.5766304", "0.5757657", "0.57290936", "0.5678475", "0.56509584", "0.56212366", "0.55770296", "0.5...
0.7549915
1
Get participant this fillout is related to
Получить участника, которому относится этот заполненный бланк
public function getParticipant() { return $this->participant; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getParticipant()\n\t{\n\t\treturn $this->getContext()->getParticipant();\n\t}", "public function participant()\n {\n return $this->hasOne(Participant::class, 'participantId');\n }", "function getAuthenticatedParticipant();", "public function participant()\n {\n return $...
[ "0.7337075", "0.70987356", "0.6454078", "0.62658966", "0.6194423", "0.61616534", "0.5980916", "0.5971064", "0.5970895", "0.5969184", "0.596007", "0.59462607", "0.59209406", "0.5864516", "0.5864516", "0.57761467", "0.57717115", "0.57717115", "0.57318264", "0.57267815", "0.5709...
0.75281656
1
Get user operating system.
Получить операционную систему пользователя.
public function getUserOS() { return $this->userOS ?: $this->userOS = @$this->os[mb_strtolower(PHP_OS)]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOs() : string\n {\n return $this->os;\n }", "function fetch_os()\n\t{\n\t\t$useragent = strtolower($this->my_getenv('HTTP_USER_AGENT'));\n\t\t\n\t\tif ( strstr( $useragent, 'mac' ) )\n\t\t{\n\t\t\treturn 'mac';\n\t\t}\n\t\t\n\t\tif ( preg_match( '#wi(n|n32|ndows)#', $useragent ) )...
[ "0.7973787", "0.7908422", "0.7847648", "0.78456306", "0.7811429", "0.76915485", "0.7686457", "0.76827884", "0.76729727", "0.7636006", "0.7588123", "0.75578225", "0.7519697", "0.7516318", "0.7448239", "0.74341", "0.7356072", "0.72741103", "0.7218641", "0.7206432", "0.7075052",...
0.862494
0
Test the inheritance of the AbstractConfiguration class.
Проверьте наследование класса AbstractConfiguration.
public function testInheritance() { AbstractConfigurationInstance::$allowedKeys = []; $config = new AbstractConfigurationInstance(); static::assertInstanceOf(JsonSerializable::class, $config); static::assertInstanceOf(IConfiguration::class, $config); static::assertInstanceOf(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAbstract() {\n $config = new Config();\n $this->assertInstanceOf('Nimbles\\Core\\Collection', $config);\n }", "abstract protected function defineConfiguration();", "public function setUp()\n {\n // to avoid side effects from inherited configuration contents\n ...
[ "0.708422", "0.70011544", "0.6797106", "0.6752929", "0.67355007", "0.6720633", "0.66240704", "0.66240704", "0.6567616", "0.6450353", "0.64374095", "0.6332026", "0.6322394", "0.6279407", "0.6279407", "0.6279407", "0.6272342", "0.6271856", "0.62573683", "0.6217386", "0.61964464...
0.8526012
0
Test unknown configuration key for set().
Тестирование неизвестного ключа конфигурации для set().
public function testUnknownConfigurationKeyForSet() { AbstractConfigurationInstance::$allowedKeys = ['asemoqTU']; (new AbstractConfigurationInstance())->set('JDsUJLrq', '84VUPgAS2i'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testInvalidValueForSet($value)\n {\n AbstractConfigurationInstance::$allowedKeys = ['FsgNGucN'];\n (new AbstractConfigurationInstance())->set('FsgNGucN', $value);\n }", "public abstract function setConfig($key, $value);", "public function testNonScalarValue()\n {\n ...
[ "0.65555", "0.6426069", "0.63175976", "0.6261107", "0.62466943", "0.6234555", "0.61278987", "0.61248803", "0.60766", "0.6051142", "0.6043123", "0.6039018", "0.6033855", "0.5983492", "0.59351486", "0.5892226", "0.58840126", "0.58713716", "0.5863587", "0.5863587", "0.58582014",...
0.80243826
0
Test get()ting an unset configuration key.
Тест получения неустановленного ключа конфигурации.
public function testGettingUnsetConfigurationKey() { AbstractConfigurationInstance::$allowedKeys = ['SXOtJQme']; static::assertNull((new AbstractConfigurationInstance())->get('SXOtJQme')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testUnknownConfigurationKeyForSet()\n {\n AbstractConfigurationInstance::$allowedKeys = ['asemoqTU'];\n (new AbstractConfigurationInstance())->set('JDsUJLrq', '84VUPgAS2i');\n }", "public function test__unset()\n {\n $struct = $this->_newStruct();\n unset($str...
[ "0.6237493", "0.622818", "0.6222418", "0.6204521", "0.6200154", "0.5994132", "0.5942739", "0.58634716", "0.57995206", "0.5774974", "0.5769001", "0.5761976", "0.575048", "0.5743165", "0.57411367", "0.57411367", "0.5706908", "0.5675809", "0.56694114", "0.56210077", "0.56160146"...
0.7552855
0
Test invalid value for set().
Тест недопустимого значения для set().
public function testInvalidValueForSet($value) { AbstractConfigurationInstance::$allowedKeys = ['FsgNGucN']; (new AbstractConfigurationInstance())->set('FsgNGucN', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setInvalid();", "public function testSetValueInvalid()\n {\n $this->expectException(\\InvalidArgumentException::class);\n\n $this->uut->setValue(new ArrayValue());\n }", "public function testSetInvalidProperty() {\n $permission = new GroupPermission();\n $permission->s...
[ "0.79281205", "0.7043785", "0.6871941", "0.6676211", "0.65778095", "0.654286", "0.6418724", "0.6404766", "0.63856095", "0.63595635", "0.62854904", "0.6283781", "0.62742513", "0.6249829", "0.62242323", "0.62035245", "0.61329883", "0.6106675", "0.6058078", "0.60500604", "0.6025...
0.74581975
1
Test valid configuration parameters for the constructor.
Тестировать допустимые параметры конфигурации для конструктора.
public function testInvalidConfigurationForConstructor($config) { new AbstractConfigurationInstance($config); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testConstructor()\n {\n $configuration = new GenerationConfiguration();\n\n $this->assertEquals(4, $configuration->getMinLength());\n $this->assertEquals(8, $configuration->getMaxLength());\n $this->assertEquals(true, $configuration->isLowercase());\n ...
[ "0.75349885", "0.7293292", "0.71996367", "0.6703363", "0.66785157", "0.6660085", "0.6654025", "0.656387", "0.6559569", "0.6548109", "0.6412955", "0.63954806", "0.6332192", "0.6328614", "0.6327635", "0.6313655", "0.63116765", "0.63032496", "0.62949", "0.6273584", "0.6261028", ...
0.740688
1
Data provider of ConfigTypeA configuration for jsonDecode().
Поставщик данных конфигурации ConfigTypeA для jsonDecode()
public static function provideJsonDecodeConfigTypeA() { return [ [[ConfigTypeA::JSON_ASHOST => 'ItulITyML1'], '{"'.ConfigTypeA::JSON_ASHOST.'":"ItulITyML1"}'], [[ConfigTypeA::JSON_SYSNR => '5345'], '{"'.ConfigTypeA::JSON_SYSNR.'":"5345"}'], [[ConfigTypeA::JSON_GWHOST => '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function provideJsonDecodeConfigTypeB()\n {\n return [\n [[ConfigTypeB::JSON_MSHOST => '4htV2O3BMH'], '{\"'.ConfigTypeB::JSON_MSHOST.'\":\"4htV2O3BMH\"}'],\n [[ConfigTypeB::JSON_R3NAME => 'XmJsmqU3ua'], '{\"'.ConfigTypeB::JSON_R3NAME.'\":\"XmJsmqU3ua\"}'],\n ...
[ "0.6211345", "0.59510255", "0.57608414", "0.57460463", "0.5730279", "0.57141906", "0.5609703", "0.5574615", "0.5561733", "0.5522167", "0.54687077", "0.54447937", "0.54251397", "0.5312214", "0.52961165", "0.5278268", "0.5276254", "0.5262003", "0.52612954", "0.5246548", "0.5234...
0.7564685
0
Test jsonDecode() for configuration type A.
Тестирование jsonDecode() для типа конфигурации A.
public function testJsonDecodeConfigTypeA($array, $json) { $config = AbstractConfiguration::jsonDecode($json); static::assertInstanceOf(ConfigTypeA::class, $config); static::assertSame($array, $config->toArray()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function provideJsonDecodeConfigTypeA()\n {\n return [\n [[ConfigTypeA::JSON_ASHOST => 'ItulITyML1'], '{\"'.ConfigTypeA::JSON_ASHOST.'\":\"ItulITyML1\"}'],\n [[ConfigTypeA::JSON_SYSNR => '5345'], '{\"'.ConfigTypeA::JSON_SYSNR.'\":\"5345\"}'],\n [[ConfigTypeA...
[ "0.7098414", "0.7013134", "0.65999025", "0.64418674", "0.63207453", "0.6243967", "0.59370196", "0.5880755", "0.58506066", "0.5845046", "0.5837098", "0.5687643", "0.5659686", "0.5568346", "0.5469558", "0.5429082", "0.5401638", "0.53582543", "0.5305189", "0.52824074", "0.526060...
0.7812988
0
Data provider of ConfigTypeB configuration for jsonDecode().
Поставщик данных конфигурации ConfigTypeB для jsonDecode()
public static function provideJsonDecodeConfigTypeB() { return [ [[ConfigTypeB::JSON_MSHOST => '4htV2O3BMH'], '{"'.ConfigTypeB::JSON_MSHOST.'":"4htV2O3BMH"}'], [[ConfigTypeB::JSON_R3NAME => 'XmJsmqU3ua'], '{"'.ConfigTypeB::JSON_R3NAME.'":"XmJsmqU3ua"}'], [[ConfigTypeB::JS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function provideJsonDecodeConfigTypeA()\n {\n return [\n [[ConfigTypeA::JSON_ASHOST => 'ItulITyML1'], '{\"'.ConfigTypeA::JSON_ASHOST.'\":\"ItulITyML1\"}'],\n [[ConfigTypeA::JSON_SYSNR => '5345'], '{\"'.ConfigTypeA::JSON_SYSNR.'\":\"5345\"}'],\n [[ConfigTypeA...
[ "0.700561", "0.61816907", "0.61342406", "0.6119167", "0.58669263", "0.5859454", "0.5794197", "0.5656938", "0.56465954", "0.56271636", "0.5615811", "0.5600631", "0.55964565", "0.5532361", "0.54648674", "0.54581505", "0.5412989", "0.5404486", "0.54007584", "0.5400697", "0.53896...
0.75461996
0
Test jsonDecode() for configuration type B.
Тестирование jsonDecode() для типа конфигурации B.
public function testJsonDecodeConfigTypeB($array, $json) { $config = AbstractConfiguration::jsonDecode($json); static::assertInstanceOf(ConfigTypeB::class, $config); static::assertSame($array, $config->toArray()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function provideJsonDecodeConfigTypeB()\n {\n return [\n [[ConfigTypeB::JSON_MSHOST => '4htV2O3BMH'], '{\"'.ConfigTypeB::JSON_MSHOST.'\":\"4htV2O3BMH\"}'],\n [[ConfigTypeB::JSON_R3NAME => 'XmJsmqU3ua'], '{\"'.ConfigTypeB::JSON_R3NAME.'\":\"XmJsmqU3ua\"}'],\n ...
[ "0.7113866", "0.7047182", "0.6887644", "0.6606072", "0.6230817", "0.61335796", "0.6078064", "0.6044948", "0.6000642", "0.5843041", "0.56589377", "0.5606569", "0.5528076", "0.5470798", "0.54222554", "0.539709", "0.5396047", "0.5370912", "0.5366884", "0.53646106", "0.5361973", ...
0.80289006
0
Test decoding a JSON that is not type specific.
Тест декодирования JSON, который не является типоспецифичным.
public function testNonSpecificJson($json) { AbstractConfiguration::jsonDecode($json); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function testDecodeWithSyntaxError() {\n\t\t$this->setExpectedException('JSON_SyntaxError');\n\t\tJSON_Processor::decode('{\"bar\":\"baz\"');\n }", "function is_JSON(...$args) \n{\n json_decode(...$args);\n return json_last_error() === JSON_ERROR_NONE;\n}", "public function decode($json);", "public ...
[ "0.69497246", "0.65844285", "0.65788585", "0.653992", "0.651317", "0.64169556", "0.6400858", "0.63747215", "0.6362822", "0.6330598", "0.62812257", "0.62739426", "0.62430686", "0.61888146", "0.61712384", "0.6140634", "0.61226857", "0.6091207", "0.6083912", "0.60808814", "0.607...
0.73973954
0
Get's a category by it's ID
Получает категорию по её ID
public function get($category_id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCategory(int $id)\n {\n }", "public function getCategory($id) {\n\t\treturn $this->query ( \"SELECT * FROM categorie WHERE cat_id = $id\" );\n\t}", "public function getCategoryById($id){ //print_r($id); die;\n $query = $this->db->get_where('category',array('id' => $id));...
[ "0.831528", "0.815478", "0.8076016", "0.8030953", "0.8029721", "0.7989801", "0.79873145", "0.79703295", "0.7863992", "0.78259456", "0.7785587", "0.77702606", "0.7758154", "0.7732127", "0.7731799", "0.769028", "0.76718855", "0.76718855", "0.7644957", "0.7634002", "0.76294965",...
0.83462447
0
Extracts all phrases from trans directives in the given string.
Извлекает все фразы из директив trans в заданной строке.
private function extractPhrasesFromTransDirective(string $data): void { $results = []; preg_match_all(Filter::CONSTRUCTION_PATTERN, $data, $results, PREG_SET_ORDER); for ($i = 0, $count = count($results); $i < $count; $i++) { if ($results[$i][1] === Filter::TRANS_DIRECTIVE_NAME) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_phrases_list($string) {\n $result = array();\n // create our dom\n $this->html = str_get_html('<span lang=\"xx\">' . $string . '</span>');\n // mark translateable elements\n $this->translate_tagging($this->html->root);\n foreach ($this->html->nodes as $ep) {\n...
[ "0.67545146", "0.5741423", "0.5378221", "0.5274673", "0.5246807", "0.5241071", "0.51732606", "0.51410455", "0.51396614", "0.5134297", "0.50704837", "0.50429124", "0.5037841", "0.49648082", "0.4949761", "0.493935", "0.49296102", "0.48385417", "0.48164445", "0.47224882", "0.469...
0.7217142
0
Displays a form to create a new Location entity.
Показывает форму для создания нового сущности Location.
public function newAction() { $entity = new Location(); $form = $this->createForm(new LocationType(), $entity); return $this->render('ACInst3LocationBundle:Location:new.html.twig', array( 'entity' => $entity, 'form' => $form->createView() )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createAction()\n {\n $entity = new Location();\n $request = $this->getRequest();\n $form = $this->createForm(new LocationType(), $entity);\n $form->bindRequest($request);\n\n if ($form->isValid()) {\n $em = $this->getDoctrine()->getEntityManager(...
[ "0.87142384", "0.76258236", "0.7563376", "0.75444967", "0.75136906", "0.7467955", "0.7405486", "0.7405486", "0.7405486", "0.71626866", "0.7010789", "0.6951086", "0.69398147", "0.68823814", "0.68157285", "0.6785195", "0.67776614", "0.6757236", "0.67503303", "0.66935736", "0.66...
0.860036
1
Creates a new Location entity.
Создает новую сущность Location.
public function createAction() { $entity = new Location(); $request = $this->getRequest(); $form = $this->createForm(new LocationType(), $entity); $form->bindRequest($request); if ($form->isValid()) { $em = $this->getDoctrine()->getEntityManager(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create(StoreLocationRequest $request)\r\n {\r\n $opening_hours = $this->formatOpeningHours($request);\r\n $disabled_dates = $this->formatDisabledDates($request);\r\n\r\n $location = $this->location->create([\r\n 'name' => $request->get('name'),\r\n ...
[ "0.69916123", "0.66480774", "0.6589519", "0.65444726", "0.65089387", "0.6419852", "0.6213203", "0.6177304", "0.6140012", "0.6101402", "0.60635626", "0.6063185", "0.60584146", "0.60576546", "0.6040598", "0.59959024", "0.5989737", "0.59752536", "0.59625214", "0.59613264", "0.59...
0.7728399
0
Displays a form to edit an existing Location entity.
Показывает форму для редактирования существующей сущности Location.
public function editAction($id) { $em = $this->getDoctrine()->getEntityManager(); $entity = $em->getRepository('ACInst3LocationBundle:Location')->find($id); if (!$entity) { throw $this->createNotFoundException('Unable to find Location entity.'); } $editForm = $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function editLocationAction() {\n\n //USER VALIDATION\n if (!$this->_helper->requireUser()->isValid())\n return;\n\n $this->view->resource_type = $resource_type = $this->_getParam('resource_type');\n\n switch ($resource_type) {\n case 'group':\n ...
[ "0.7889716", "0.7687307", "0.7687307", "0.73811734", "0.7247507", "0.72196907", "0.71161896", "0.70301527", "0.7003214", "0.6994773", "0.69815624", "0.69404525", "0.6904966", "0.6843878", "0.6842627", "0.6828383", "0.6817343", "0.6817343", "0.67741597", "0.6767378", "0.669821...
0.77660495
1
caluclate the percentage change between the values
вычислить процентное изменение между значениями
protected function calculateChange() { $difference = (int) $this->value['value'] - (int) $this->previous; // Prevent division by zero if ($difference !== 0) { $this->change = round(($difference / $this->value['value']) * 100, 2); } else { $this->change = 0; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function percentChanged()\n {\n if ($this->value == 0) {\n $value = $this->previous;\n } elseif ($this->previous == 0) {\n $value = $this->value;\n } else {\n $value = ($this->previous - $this->value) / $this->previous;\n }\n\n return ro...
[ "0.78573775", "0.72289646", "0.6914509", "0.6815351", "0.6688321", "0.6641185", "0.66389483", "0.6512807", "0.6445858", "0.6409126", "0.6306492", "0.62967336", "0.62613595", "0.6222472", "0.6210998", "0.6140415", "0.61319536", "0.6129944", "0.6107734", "0.6078935", "0.6031201...
0.768961
1
/ GENERADOR DE URLS NIKKENCHALLENGE
/ ГЕНЕРАТОР URL НИККЕНЧАЛЛЕНЖЕ
public function nikkenChallengeUrl(){ ini_set('max_execution_time', 300); $conexion=DB::connection('sqlsrvInconcert'); $abiurl = $conexion->table('DistributorMasterData') ->select('NumeroAbi') ->get(); foreach ($abiurl as $item){ //echo("el abi: ".$item->NumeroAbi." accede a su link...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createURL($key_word, $tipo_pasto){\r\n $url = \"http://localhost:5028/rec/?q=\" . $key_word .'&';\r\n\r\n/*\r\n if($tipo_dieta == 'balanced')\r\n $url = $url . \"diet=balanced&\";\r\n if($tipo_dieta == 'high-protein')\r\n $url = $url . \"diet=high-protein&\";\r\n if($tipo_dieta =...
[ "0.62435496", "0.5889244", "0.587089", "0.585981", "0.56708777", "0.563731", "0.5615403", "0.560313", "0.5598623", "0.55878186", "0.5573247", "0.55652446", "0.55621934", "0.55540437", "0.5553102", "0.5517917", "0.55106956", "0.5449753", "0.5434069", "0.540828", "0.53974396", ...
0.75460887
0
/ minlen Makes sure the length of a string is at least certain characters long: mdx:minlen php h:autoload mdx:minlen o
/ minlen Убеждается, что длина строки составляет не менее определенного количества символов: mdx:minlen php h:autoload mdx:minlen o
function testMinlen(){ #mdx:minlen Param::get('description')->filters()->minlen(10, "Description must be at least %d characters long!"); $error = Param::get('description')->process(['description'=>'Test'])->error; #/mdx var_dump($error) $this->assertContains('at least 10', $error); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMinUsernameLength();", "function validMinLength($value, $min)\n {\n return strlen($value) >= $min;\n }", "public static function getCryptedStringMinLength() {\n return self::$cryptedStringMinLength;\n }", "public function minLength(string $field, int $length) : bool\...
[ "0.68786466", "0.68634623", "0.6836843", "0.6689429", "0.66735303", "0.666466", "0.6662986", "0.66625714", "0.6604913", "0.65787333", "0.6555711", "0.6550713", "0.65391636", "0.6516242", "0.6515862", "0.6514986", "0.6513819", "0.6488231", "0.64805984", "0.64676654", "0.645088...
0.7478836
0
/ maxval Makes sure an integer is not more than certain value: mdx:maxval php h:autoload mdx:maxval o
/ maxval Обеспечивает, чтобы целое число не превышало определённое значение: mdx:maxval php h:autoload mdx:maxval o
function testMaxval(){ #mdx:maxval Param::get('age')->filters()->maxval(150, "Age cannot be more than %d!"); $error = Param::get('age')->process(['age'=>200])->error; #/mdx var_dump($error) $this->assertContains("more than 150", $error); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMaxValue();", "public function getMaxValue();", "function validate_maxVal($val, $max) {\n\tif (is_numeric($val) && $val <= $max) {\n\t\treturn true;\n\t}\n\n\treturn false;\n}", "function validMax($value, $max)\n {\n return $value <= $max;\n }", "public function setMaxValue(...
[ "0.759315", "0.759315", "0.7413394", "0.7289483", "0.7074745", "0.70396864", "0.6948957", "0.6907804", "0.6904527", "0.6826311", "0.67519176", "0.6743134", "0.6718416", "0.6707187", "0.66933966", "0.6685585", "0.66532564", "0.66177243", "0.65958714", "0.65947866", "0.65839285...
0.7650484
0
/ minval Makes sure the integer, if provided, is at least larger than X: mdx:minval php h:autoload mdx:minval o
/ minval Убедитесь, что целое число, если оно предоставлено, не меньше, чем X: mdx:minval php h:autoload mdx:minval o
function testMinval(){ #mdx:minval Param::get('age')->filters()->minval(1, "Age cannot be less than %d!"); $error = Param::get('age')->process(['age'=>0])->error; #/mdx var_dump($error) $this->assertContains("less than 1", $error); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setMinValue($minValue);", "abstract public function minMin(): int;", "private function process_min($value, $min) {\n if (is_numeric($value) === false) {\n if (is_array($value)) {\n $value = count($value);\n } else {\n $value = strlen($value)...
[ "0.65573484", "0.65040654", "0.64603764", "0.6447109", "0.64443517", "0.63674784", "0.634811", "0.6340255", "0.63124", "0.62927294", "0.6254534", "0.6254534", "0.61396027", "0.60436636", "0.6024867", "0.6009585", "0.5995945", "0.59954125", "0.59954125", "0.5989762", "0.598300...
0.72456443
0
$this>client = new \Swoole\Client($sockType,SWOOLE_SOCK_ASYNC);
$client = new \Swoole\Client($sockType,SWOOLE_SOCK_ASYNC);
public function __construct($sockType=SWOOLE_SOCK_TCP) { $this->client =new \Swoole\Async\Client($sockType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function test_client(){\n$client = new swoole_client(SWOOLE_SOCK_TCP, SWOOLE_SOCK_SYNC); //同步阻塞\nif(!$client->connect('127.0.0.1', 9501))\n{\n\texit(\"connect fail\\n\");\n}\nif(empty($argv[1]))\n{\n\t$loop = 1;\n}\nelse\n{\n\t$loop = intval($argv[1]);\n}\n\nfor($i=0; $i<$loop; $i++)\n{\n $client->send(str_repe...
[ "0.7063312", "0.624641", "0.6182755", "0.5995711", "0.5919692", "0.58959746", "0.5868264", "0.583856", "0.5824518", "0.58102584", "0.58051777", "0.574779", "0.5726777", "0.57231367", "0.5684255", "0.5666827", "0.56611747", "0.56478536", "0.56362146", "0.56097066", "0.5603998"...
0.7653462
0
Adds a JOIN clause to the query using the CiUsuariosRelatedByIdUserModified relation
Добавляет JOIN-запрос к запросу с использованием отношения CiUsuariosRelatedByIdUserModified
public function joinCiUsuariosRelatedByIdUserModified($relationAlias = null, $joinType = Criteria::INNER_JOIN) { $tableMap = $this->getTableMap(); $relationMap = $tableMap->getRelation('CiUsuariosRelatedByIdUserModified'); // create a ModelJoin object for this join $join = new Model...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function useCiUsuariosRelatedByIdUserModifiedQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n {\n return $this\n ->joinCiUsuariosRelatedByIdUserModified($relationAlias, $joinType)\n ->useQuery($relationAlias ? $relationAlias : 'CiUsuariosRelatedByIdUserModifie...
[ "0.68452066", "0.6297498", "0.6026903", "0.59044105", "0.56763065", "0.5539021", "0.55011815", "0.5377758", "0.5345634", "0.5345634", "0.5304695", "0.5247324", "0.5247324", "0.52466124", "0.5204363", "0.5202009", "0.51477474", "0.51477474", "0.510277", "0.5097945", "0.5092163...
0.7148464
0
Create a new personal game token for the user.
Создайте новый личный токен игры для пользователя.
public function createGameToken(string $name, int $provider, int $game = null, string $type = 'auth', bool $dashes = true, array $abilities = ['*']);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createToken();", "public function create_token(array $data)\n\t{\n\t\t// Create the token\n\t\tdo\n\t\t{\n\t\t\t$token = sha1(uniqid(Text::random('alnum', 32), TRUE));\n\t\t}\n\t\twhile($this->get_token($token)->loaded());\n\n\t\t// Store token in database\n\t\treturn $this->set(array(\n\t\t\t'us...
[ "0.73306143", "0.6843996", "0.67223716", "0.67067605", "0.6678495", "0.6527884", "0.6496594", "0.6488165", "0.6432121", "0.6386155", "0.6321868", "0.6295599", "0.628744", "0.62651324", "0.61987966", "0.6140291", "0.6139884", "0.6079618", "0.60682523", "0.6053693", "0.60431945...
0.72527367
1
Get the game token currently associated with the user.
Получить игровой токен, который в настоящее время ассоциирован с пользователем.
public function currentGameToken();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function get_token() {\n global $USER;\n $sid = session_id();\n return self::get_token_for_user($USER->id, $sid);\n }", "public function get_current_user_token() {\n\t\t$user_id = $this->current_user->ID;\n\n\t\t$user_token = get_option( 'livechat_user_' . $user_id . '_token...
[ "0.77432156", "0.7330032", "0.676562", "0.6607328", "0.66073275", "0.6576862", "0.6527524", "0.65195495", "0.65152436", "0.651168", "0.6483023", "0.6483023", "0.6483023", "0.6483023", "0.6483023", "0.6483023", "0.6483023", "0.6483023", "0.6483023", "0.6483023", "0.6483023", ...
0.7722607
1
Init the content of change state action
Инициализация содержимого действия изменения состояния
public function initChangeStateContent() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function initializeAction() {}", "public function initializeAction() {}", "public function initializeAction() {}", "public function initializeAction() {}", "public function initializeAction() {}", "protected function initializeAction() {}", "protected function initializeAction() {}", "protecte...
[ "0.64145434", "0.64145434", "0.64145434", "0.64145434", "0.64145434", "0.6357035", "0.63554996", "0.63554996", "0.6351653", "0.63082653", "0.59767133", "0.5965284", "0.5962579", "0.59563863", "0.5943301", "0.5943301", "0.59118885", "0.59100705", "0.5876801", "0.5862421", "0.5...
0.8559462
0
Inits the content of 'update_receipt' action Called in initContent()
Инициализирует содержимое действия 'update_receipt'. Вызывается в initContent()
public function initUpdateReceiptContent() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function initUpdateSupplyOrderContent()\n {\n }", "protected function postProcessUpdateReceipt()\n {\n }", "public function initContent() {\n\n parent::initContent();\n\n $this->context->smarty->assign(\n [\n 'errors' => $this->errors,\n ...
[ "0.740102", "0.647009", "0.6082727", "0.6004544", "0.60022974", "0.5999856", "0.5976271", "0.5974", "0.56724066", "0.56171227", "0.5606553", "0.56061536", "0.5577975", "0.55760133", "0.5571148", "0.55471206", "0.55144227", "0.5514355", "0.54883933", "0.5472497", "0.54468066",...
0.8540286
0
Ths method manage associated products to the order when updating it
Этот метод управляет связанными продуктами в заказе при его обновлении
public function manageOrderProducts() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateProduct()\n {\n \t$quote=$this->getQuote();\n \tif($quote)\n \t{\n \t\t$detailproduct=$this->getProduct();\n \t\t$quoteproduct=$quote->getProduct();\n \t\tif(\n\t\t\t\t$quote->getPrice()!=$this->getPrice() or\n\t\t\t\t$quote->getDiscrate()!=$this->getDiscrate() or\n\t\t\t\t$quote->getD...
[ "0.7064062", "0.70476633", "0.67988646", "0.6771316", "0.6736327", "0.67164963", "0.66836005", "0.66606116", "0.6640535", "0.66018605", "0.65782225", "0.6566261", "0.65057236", "0.650476", "0.6469635", "0.6466975", "0.64204353", "0.64116687", "0.6354348", "0.6345624", "0.6342...
0.77068734
0
method call when ajax request is made for search product to add to the order
вызов метода при ajax-запросе для поиска товара для добавления в заказ
public function ajaxProcessSearchProduct() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajaxAddProduct()\n\t{\n\n\t\t$modelUserCart = $this->getModel('usercart');\n\n\t\t$userId = $this->_getUserId();\n\n\n\t\t$jinput = JFactory::getApplication()->input;\n\t\t$produktID = $jinput->get('produktID');\n\t\t$quantity = $jinput->get('quantity');\n\t\t$eigenschaft = $jinput->get('eigenschaf...
[ "0.7071948", "0.6952969", "0.68157566", "0.66390485", "0.6581117", "0.655834", "0.65010923", "0.6493552", "0.64879346", "0.64818233", "0.6433269", "0.6421531", "0.6355081", "0.6353782", "0.62965786", "0.6287022", "0.6279978", "0.62662184", "0.62385595", "0.6228116", "0.622085...
0.8057572
0
Gets the current warehouse used
Получает текущий склад, используемый
protected function getCurrentWarehouse() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getWarehouse(): ?string\n {\n return isset($this->Warehouse) ? $this->Warehouse : null;\n }", "protected function getCurrentWarehouseId()\n\t{\n\t\tstatic $warehouse = 0;\n\n\t\tif ($warehouse == 0)\n\t\t{\n\t\t\t$warehouse = -1;\n\t\t\tif ((int)Tools::getValue('warehouse'))\n\t\t\t\...
[ "0.73454744", "0.7239294", "0.71724415", "0.69809", "0.69809", "0.6886462", "0.68531823", "0.68510413", "0.64947593", "0.648541", "0.64398164", "0.6396506", "0.63899237", "0.6386626", "0.62745625", "0.62317425", "0.62316275", "0.62212265", "0.61165124", "0.6097368", "0.608930...
0.83706266
0
Loads products which quantity (hysical quantity) is equal or less than $threshold
Загружает продукты, количество (физическая величина) которых равно или меньше $threshold
protected function loadProducts($threshold) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getThresholdProducts(){\n\t\t\n\t\t$this->db->select('(SUM(inw_qty) - SUM(outw_qty)) AS prod_stock, P.product_name, P.pid, P.min_qty');\n\t\t$this->db->from('product_stock AS PS');\n\t\t$this->db->join(\"product AS P\", \"P.pid = PS.pid\");\n\t\t$this->db->group_by('PS.pid');\n\t\t$this->db->having...
[ "0.6444908", "0.60787195", "0.59869635", "0.5718473", "0.54003423", "0.53233254", "0.52776116", "0.5174383", "0.50976324", "0.50802666", "0.50383127", "0.5012269", "0.50065404", "0.49734414", "0.4965311", "0.49083698", "0.4900192", "0.4896155", "0.48909825", "0.48825473", "0....
0.8001712
0
__construct Return formatted offset (in hours) $separator is used as a separator between hour and minutes part of formatted value
__construct Возвращает отформатированный сдвиг (в часах). Используется $separator как разделитель между часовой и минутной частью отформатированного значения
function getFormattedOffset($separator = ':') { if($this->offset == 0) { return ''; } // if $sign = $this->offset > 0 ? '+' : '-'; $hours = abs($this->offset) / 3600; if($hours < 10) { $hours = '0' . floor($hours); } // if $minutes = (abs($this->offset) %...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static function _offset_str() {\n // get the offset\n $offset = get_option( 'gmt_offset', 0 );\n\n // get the sign of the offset\n $sign = $offset < 0 ? '-' : '+';\n\n // get the suffix, either :00 or :30\n $offset = abs( $offset );\n $floored = floor( $of...
[ "0.560024", "0.5406659", "0.53971404", "0.52885264", "0.51786005", "0.5111599", "0.5099189", "0.5047155", "0.4936421", "0.49154708", "0.489826", "0.48935005", "0.4867687", "0.48573565", "0.48354527", "0.4822188", "0.48123193", "0.47892925", "0.46845275", "0.46837154", "0.4683...
0.7767719
0
getOffset Set offset value
getOffset Установить значение смещения
function setOffset($value) { $this->offset = $value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setOffset($offset);", "public function setOffset($offset);", "public function setOffset($offset) {}", "public function setOffset($offset) { $this->_offset = $offset; }", "public function setOffset($var)\n {\n GPBUtil::checkInt32($var);\n $this->offset = $var;\n }", "pu...
[ "0.7380748", "0.7380748", "0.7328481", "0.7130436", "0.71299195", "0.70659167", "0.6987159", "0.6970453", "0.6949419", "0.6949419", "0.6949419", "0.6946381", "0.6938955", "0.6899276", "0.68629164", "0.6859699", "0.68093836", "0.6684232", "0.6650577", "0.6632096", "0.6632096",...
0.74511856
0
getName Set name value
getName Задать значение имени
function setName($value) { $this->name = $value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _setName($name, $value) {}", "public function set_name($name);", "function setName($value) {\n $this->name = $value;\n }", "function setName( $value )\n {\n $this->Name = $value;\n }", "function setName( $value )\r\n {\r\n $this->Name = $value;\r\n }", ...
[ "0.784831", "0.7664291", "0.75768113", "0.7556895", "0.7513149", "0.7513149", "0.7513149", "0.7513149", "0.7513149", "0.7506896", "0.7506896", "0.75016284", "0.74490726", "0.74490726", "0.7400021", "0.7396805", "0.7382609", "0.73821324", "0.7367539", "0.7327302", "0.73148704"...
0.76670605
1
Create data paths if they don't exist
Создать пути данных, если они не существуют
function createDataPaths() { foreach ($this->data_paths as $path) { if (!file_exists($this->root . $path)) { mkdir($this->root . $path); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function checkPaths() {\n\tif(!file_exists(MODEL_PATH)) {\n\t\tmkdir(MODEL_PATH);\n\t}\n\tif(!file_exists(ENTITY_PATH)) {\n\t\tmkdir(ENTITY_PATH);\n\t}\n\tif(!file_exists(REPOSITORY_PATH)) {\n\t\tmkdir(REPOSITORY_PATH);\n\t}\n}", "protected function createPathIfNeeded() {}", "public function createDirectoriesI...
[ "0.67559695", "0.65342903", "0.6474291", "0.64642096", "0.64087284", "0.6195741", "0.6179369", "0.61084855", "0.6083956", "0.6069642", "0.6069642", "0.6013155", "0.5961295", "0.59612215", "0.5876574", "0.58550024", "0.5854584", "0.5849277", "0.58380944", "0.57846564", "0.5773...
0.8785431
0
Returns the absolute path of a blueprint
Возвращает абсолютный путь шаблона blueprint
function getBlueprintPath() { $blueprints_path = $this->root . "/includes/blueprints/"; $blueprint = $this->getBlueprint($this->getCurrentPage()); return $blueprints_path . $blueprint . ".php"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function baseRelPath()\n {\n if($this instanceof Layout)\n {\n $class = Application::getApp();\n }\n else\n {\n $class = \\get_class($this);\n }\n $reflector = new \\ReflectionClass($class);\n $parts = \\explode('\\\\', $reflector->getName());\n $parts = \\array_chu...
[ "0.6636436", "0.624166", "0.6204595", "0.6190389", "0.61745155", "0.61164665", "0.61068994", "0.6098502", "0.60939884", "0.60193497", "0.60184896", "0.60125136", "0.5975249", "0.59632146", "0.59573877", "0.5949806", "0.5940894", "0.59219027", "0.5902524", "0.58920044", "0.588...
0.8124123
0
Renders a page depending on a blueprint
Отображает страницу в зависимости от чертежа
function renderPage() { $parameters = explode("/", $this->getCurrentPage()); $folder = $parameters[1]; if (!in_array($folder, $this->folders) && $folder !== "api") { $name = $this->getCurrentPage(); require_once $this->getBlueprintPath(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract function render_page();", "public function render_page() {\n\t\t$this->render_template();\n\t}", "public function default_page_render()\r\n {\r\n // instances page 404\r\n include $this->bootstrap->base_controller_dir . 'Wpf_page_not_found.php';\r\n $pageNotFound = new \\WPFP\...
[ "0.7105096", "0.6464701", "0.62827325", "0.61327416", "0.6093963", "0.6043877", "0.6041936", "0.6041167", "0.5983265", "0.59358984", "0.59240687", "0.58928615", "0.58440727", "0.58274853", "0.58203477", "0.58203477", "0.5818994", "0.5811174", "0.5760676", "0.5749378", "0.5743...
0.72522646
0
Sets the class identity variable based on the id passed. Will iterate through users until it finds a match, then will set identity to said data.
Устанавливает переменную идентичности класса на основе переданного идентификатора. Произведет итерацию по пользователям, пока не найдет совпадение, затем установит идентичность в соответствии с этими данными.
private function setIdentity($id) { $userData = false; foreach ($this->users as $user) { if ($user['id'] === $id) { $userData = $user; } } $this->identity = $userData; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _setIdentity(){\n $this->_setUserData($this->getClassUser()->getIdentity());\n }", "public static function findIdentity($id);", "function get_id($user_id){\n\t\t$this->id = $user_id;\n\t}", "public function setId($id) {\n $this->set('id', $id, 'user');\n }", "public fun...
[ "0.6654597", "0.6404166", "0.62064993", "0.6159036", "0.59898984", "0.59032226", "0.5898", "0.58833015", "0.5874396", "0.5866208", "0.58438534", "0.58252287", "0.582191", "0.57798487", "0.5768004", "0.5762689", "0.5759598", "0.5749866", "0.5735913", "0.569147", "0.5685331", ...
0.7085421
0
Removes everything in $string from $first to $last including $first and $last
Удаляет всё в $string от $first до $last, включая $first и $last
function compress($string, $first, $last) { while(stripos($string,$first) && stripos($string,$last)) { $string = substr_replace($string, "", stripos($string,$first), stripos($string,$last) - stripos($string,$first) + strlen($last)); } return $string; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function cleanString($string) {\n\t\t$string = substr_replace($string, '', -1);\n\t\t$string = substr_replace($string, '', 0, 2);\n\t\treturn $string;\n\t}", "function delete($string, $start, $end) {\r\n // Get array of things that should be deleted from the input string\r\n $delete_array = find_al...
[ "0.6543164", "0.6451502", "0.62693065", "0.6115452", "0.60326743", "0.60282636", "0.5955155", "0.5844062", "0.5820183", "0.57753015", "0.5763713", "0.573698", "0.5713607", "0.5709206", "0.56904894", "0.5658109", "0.56528234", "0.56277275", "0.55814886", "0.5554717", "0.549731...
0.709177
0
Creates a form to delete a update_log entity.
Создает форму для удаления сущности update_log.
private function createDeleteForm(update_logs $update_log) { return $this->createFormBuilder() ->setAction($this->generateUrl('Admin_Logs_delete', array('id' => $update_log->getId()))) ->setMethod('DELETE') ->getForm() ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('timelog_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n ...
[ "0.6799153", "0.6712754", "0.6620106", "0.6481031", "0.63989073", "0.6243335", "0.62419444", "0.62402874", "0.6209475", "0.6206724", "0.6204789", "0.6197764", "0.618144", "0.61566037", "0.61527795", "0.61477715", "0.61199754", "0.61180043", "0.6113477", "0.60852754", "0.60813...
0.82641447
0
Render Verse, Instagram Area
Render Verse, Instagram Area
public function instagram() { # Get Verses # TODO : Make Random $verses = $this->getDoctrine()->getRepository(Verse::class) ->findAll(); return $this->render('components/_instagram-area.html.twig', [ 'verses' => $verses ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ajarRenderDinamycBlock($attributes, $content) {\n return '<h1 class=\"my-3\">'.$attributes['content'].'</h1>'.\n '<img src=\"'.$attributes['mediaURL'].'\" alt=\"'.$attributes['mediaAlt'].'\" />'.\n '<hr>';\n}", "public function render();", "public function render();", "publ...
[ "0.6009167", "0.60062855", "0.60062855", "0.60062855", "0.60062855", "0.60062855", "0.60062855", "0.60062855", "0.60062855", "0.60062855", "0.60062855", "0.60062855", "0.60062855", "0.60062855", "0.60062855", "0.60062855", "0.60062855", "0.60062855", "0.60062855", "0.59799767",...
0.78845495
0
get the ajax var name on self::clientOptions
получить имя переменной ajax в self::clientOptions
private function getAjaxVar() { return isset($this->clientOptions['ajaxVar']) ? $this->clientOptions['ajaxVar'] : 'ajax'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static function getAjaxName()\n\t{\n\t\tif (self::getGet('act') == 'editAll')\n\t\t{\n\t\t\treturn preg_replace('/.*_([0-9a-zA-Z]+)$/', '$1', self::getPost('name'));\n\t\t}\n\n\t\treturn self::getPost('name');\n\t}", "protected static function getAjaxKey()\n\t{\n\t\t$strAjaxKey = str_replace('_' . self...
[ "0.6479127", "0.6108383", "0.59873813", "0.5898519", "0.5782375", "0.5756452", "0.57536566", "0.56845564", "0.56514674", "0.5632686", "0.560963", "0.55833215", "0.5543889", "0.5535903", "0.55280155", "0.5502585", "0.5488254", "0.5466468", "0.5455532", "0.5436809", "0.5436809"...
0.7626559
0
get datetime pattern by format
получить шаблон даты и времени по формату
private function getDateTimeRegexp($format) { // MM/dd/yyyy hh:mm:ss a $format = preg_quote($format, '/'); $format = preg_replace('/[yMdhms]/', '\d', $format); $format = str_replace('a', '(?:am|pm|AM|PM)', $format); return '/' . $format . '/'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPattern()\n {\n// if ($this->getOption('pattern')) {\n// return $this->getOption('pattern');\n// }\n\n $pattern = $this->formatter->getPattern();\n\n // set right order with respect to locale (e.g.: de_DE=dd.MM.yy; en_US=M/d/yy)\n // lookup variou...
[ "0.72538805", "0.6905279", "0.65720147", "0.63748854", "0.63234246", "0.6298578", "0.6280233", "0.5825008", "0.581883", "0.581883", "0.5801467", "0.5801198", "0.576562", "0.576562", "0.56534725", "0.56534725", "0.5635633", "0.5604547", "0.5596793", "0.55018234", "0.54719716",...
0.71133804
1
Setup the Dusk environment.
Настройте окружение Dusk.
protected function setupDuskEnvironment() { if (file_exists(base_path($this->duskFile()))) { $this->backupEnvironment(); // Always back up the environment, no reason not to. $this->refreshEnvironment(); } $this->writeConfiguration(); $this->setupSignalHandl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setup() {\n $driver = new \\Behat\\Mink\\Driver\\GoutteDriver();\n $this->session = new \\Behat\\Mink\\Session($driver);\n $this->session->start();\n }", "protected function setUp(): void\n {\n $this->driver = RemoteWebDriver::createBySessionID(\n '...
[ "0.7185607", "0.7027301", "0.69704247", "0.6910772", "0.6827656", "0.6799014", "0.64508903", "0.6400689", "0.63791096", "0.63577527", "0.6346928", "0.624728", "0.6204289", "0.61977863", "0.61550087", "0.6151433", "0.61458135", "0.6144018", "0.61388075", "0.61267626", "0.61108...
0.8297342
0
Backup the current environment file.
Создайте резервную копию текущего файла окружения.
protected function backupEnvironment() { $fileNamesInBasePath = scandir(base_path()); foreach ($fileNamesInBasePath as $fileNameToCheck) { if (stripos($fileNameToCheck, '.env') === 0) { // We have a .env file that might be loaded by laravel, // back it up...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function restoreEnvironment()\n {\n $fileNamesInBasePath = scandir(base_path());\n foreach ($fileNamesInBasePath as $fileNameToCheck) {\n if (stripos($fileNameToCheck, '.dawn.backup') === 0) {\n\n // This is a file backup up by dusk on a previous run, just resto...
[ "0.6603401", "0.6422491", "0.60284895", "0.57470167", "0.5731741", "0.5622803", "0.5622803", "0.56014574", "0.5549392", "0.55100876", "0.5496493", "0.539659", "0.5323185", "0.531341", "0.5298305", "0.5296291", "0.5291173", "0.52907807", "0.52672464", "0.52618814", "0.52501285...
0.7850911
0
Lists all Course models.
Список всех моделей Course.
public function actionIndex() { $searchModel = new CourseSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); return $this->render('index', [ 'searchModel' => $searchModel, 'dataProvider' => $dataProvider, ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n return course::all();\n }", "public function getAllCourses()\n {\n $courses = $this->courseRepository->getAllCourses();\n if (isset($courses['errorMsg'])) {\n $courses = $this->makeEmptyCollection();\n }\n\n return view('front-e...
[ "0.7712203", "0.73487234", "0.7219559", "0.7214283", "0.71640027", "0.7126516", "0.7048838", "0.7030167", "0.7011372", "0.7003652", "0.6954217", "0.6951784", "0.69236356", "0.6913192", "0.6905824", "0.6890306", "0.6884599", "0.6884178", "0.6863142", "0.6845178", "0.68450785",...
0.7589027
1
Creates a new Course model. If creation is successful, the browser will be redirected to the 'view' page.
Создает новый объект модели Course. Если создание успешно, браузер будет перенаправлен на страницу просмотра.
public function actionCreate() { $model = new Course(); if ($model->load(Yii::$app->request->post()) && $model->save()) { return $this->redirect(['view', 'id' => $model->id]); } return $this->render('create', [ 'model' => $model, ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionCreate()\n {\n $model = new Course();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect('index');\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public fun...
[ "0.8770056", "0.7849875", "0.7742295", "0.7704673", "0.75669813", "0.75093937", "0.74525815", "0.7439547", "0.74310523", "0.74187607", "0.7366985", "0.73551005", "0.73551005", "0.7339402", "0.72946405", "0.72837156", "0.7261795", "0.7248397", "0.7248373", "0.7214029", "0.7208...
0.88550127
0
Loads assets related to the tour reports functionality.
Загружает ресурсы, связанные с функциональностью отчетов по турам.
protected function load_assets() { wp_enqueue_script( 'at_tour_reports', get_template_directory_uri() . '/assets/admin/WooCommerceTourReports.js' ); wp_localize_script( 'at_tour_reports', '_WooCommerceTourReportsCfg', array( 'purge_cache_btn_text' => __( 'Purge Cache', 'adventure-tours' ), )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function load_assets() {}", "public function load_assets() {\n\t\twponion_load_core_assets( $this->option( 'assets' ) );\n\t}", "private function _load_assets()\r\n {\r\n //set default page title\r\n $this->data['title'] = \"\";\r\n\r\n $this->data['base'] = $this->config->item(\...
[ "0.65653193", "0.6453832", "0.63521665", "0.6299803", "0.62571365", "0.62282807", "0.6082134", "0.6080862", "0.58901554", "0.5817477", "0.5792225", "0.57812613", "0.57686675", "0.5738319", "0.5735232", "0.5680602", "0.5671449", "0.56416476", "0.5494351", "0.54901075", "0.5474...
0.7239882
0
Returns current value for date_filter_mode property.
Возвращает текущее значение свойства date_filter_mode.
public function get_date_filter_mode() { static $value; if ( null === $value ) { $value = isset( $_REQUEST['date_filter_mode'] ) ? $_REQUEST['date_filter_mode'] : ''; $modes = $this->get_date_filter_mode_list( false ); if ( ! $modes ) { $value = ''; } elseif ( ! $value || ! in_array( $value, $modes ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getDateFilter() {\n return $this->getAdditionalProperty('date_filter', self::DATE_FILTER_ANY);\n }", "function getDateFilterSelectedDate() {\n $on = $this->getAdditionalProperty('date_filter_on');\n \n return $on ? new DateValue($on) : null;\n }", "public function getDateFilt...
[ "0.7019574", "0.6986066", "0.6444107", "0.6178794", "0.5908159", "0.5721359", "0.56791323", "0.56743014", "0.56449395", "0.5644237", "0.55513245", "0.5534319", "0.5500975", "0.5414848", "0.5394042", "0.53909534", "0.53610367", "0.5354044", "0.53426296", "0.53413725", "0.53389...
0.81214476
0
Renders selector for date_filter_mode.
Отображает выборку для date_filter_mode.
public function render_date_filter_mode_selector() { $modes = $this->get_date_filter_mode_list(); if ( ! $modes ) { return ''; } $selected = $this->get_date_filter_mode(); $select_html = '<select name="date_filter_mode" style="line-height:26px;height:26px;">'; foreach ( $modes as $key => $value) { $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDateFilterHtml()\n {\n return $this->getChildHtml('date_filter');\n }", "public function render() {\n Openbizx::$app->getClientProxy()->includeCalendarScripts();\n\n $format = $this->dateFormat ? $this->dateFormat : \"%Y-%m-%d\";\n\n $sHTML = parent::render();...
[ "0.6828684", "0.6088196", "0.5809791", "0.580905", "0.57622975", "0.5746768", "0.57143885", "0.5666682", "0.56525695", "0.564223", "0.5602316", "0.5586188", "0.55356795", "0.55218095", "0.546544", "0.54400355", "0.54118973", "0.5345859", "0.53264856", "0.5265446", "0.5225534"...
0.81189275
0
Checks if this title has trophy groups. These groups are typically DLC trophies.
Проверяет, имеет ли этот заголовок группы трофеев. Эти группы обычно представляют собой DLC-трофеи.
public function hasTrophyGroups(): bool { return $this->pluck('hasTrophyGroups'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasGroups(){\n return $this->_has(1);\n }", "public function hasGroups(){\n return $this->_has(3);\n }", "public function hasGroups(){\n return $this->_has(4);\n }", "public function hasGroups(){\n return $this->_has(4);\n }", "public function is_group(){\n ...
[ "0.61729485", "0.61393493", "0.61215264", "0.61215264", "0.60817313", "0.59335977", "0.58705825", "0.578532", "0.57577527", "0.57046217", "0.55779344", "0.5540533", "0.5407568", "0.54036504", "0.5375641", "0.5366624", "0.5348328", "0.5328382", "0.5313273", "0.52999413", "0.52...
0.7091644
0
Gets the icon URL for the title.
Получает URL иконки для заголовка.
public function iconUrl(): string { return $this->pluck('trophyTitleIconUrl'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function kind_icon_url ()\n {\n switch ($this->kind)\n {\n case History_item_published:\n return '{icons}indicators/released';\n case History_item_abandoned:\n return '{icons}buttons/abandon';\n case History_item_queued:\n return '{icons}buttons/queue';\n case History_item_...
[ "0.7112706", "0.7104242", "0.702835", "0.6930468", "0.6807157", "0.6645729", "0.6640553", "0.6575832", "0.65580004", "0.65063804", "0.6490686", "0.64880365", "0.64684904", "0.6467012", "0.6465994", "0.64631146", "0.64631146", "0.64240724", "0.640945", "0.63886124", "0.6346814...
0.796552
0
Gets the platform(s) this title is for.
Получает платформы, для которых предназначен этот титул.
public function platform(): array { $platforms = []; foreach (explode(",", $this->pluck('trophyTitlePlatform')) as $platform) { $platforms[] = ConsoleType::tryFrom($platform); } return $platforms; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPlatforms()\n {\n return $this->platforms;\n }", "public function getPlatforms()\n {\n if (array_key_exists(\"platforms\", $this->_propDict)) {\n return $this->_propDict[\"platforms\"];\n } else {\n return null;\n }\n }", "public f...
[ "0.73311675", "0.72463566", "0.71515214", "0.6664787", "0.66603947", "0.6650349", "0.65730226", "0.65640414", "0.648705", "0.6474174", "0.6407768", "0.6379583", "0.63727796", "0.63721454", "0.6335757", "0.6292647", "0.6199287", "0.61622036", "0.6115401", "0.6078722", "0.60479...
0.768104
0
Checks if this title has trophies.
Проверяет, имеет ли этот заголовок трофеи.
public function hasTrophies(): bool { $value = $this->pluck('definedTrophies'); return isset($value) && !empty($value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkTrophyTitle($title)\r\n {\r\n $model = new Ynidea_Model_DbTable_Trophies;\r\n $select = $model -> select()->where('title = ?',$title); \r\n $row = $model->fetchRow($select); \r\n if($row)\r\n return true;\r\n else\r\n return fa...
[ "0.6574532", "0.65394235", "0.65203327", "0.60338944", "0.5982859", "0.59706086", "0.5962511", "0.59620523", "0.5934544", "0.58606046", "0.5850512", "0.5842713", "0.5812476", "0.5811279", "0.5771113", "0.57586646", "0.5753423", "0.5745384", "0.572252", "0.57008564", "0.569227...
0.7789468
0
Checks if this title has a platinum trophy.
Проверяет, имеет ли этот заголовок золотую награду.
public function hasPlatinum(): bool { return $this->pluck('definedTrophies.platinum') ?? false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasPlatinum(): bool\n {\n return $this->pluck('definedTrophies.platinum') == 1;\n }", "public function checkTrophyTitle($title)\r\n {\r\n $model = new Ynidea_Model_DbTable_Trophies;\r\n $select = $model -> select()->where('title = ?',$title); \r\n $row ...
[ "0.75074804", "0.6197555", "0.6178559", "0.6040171", "0.60017276", "0.59060484", "0.5901795", "0.572043", "0.5696898", "0.5605122", "0.5577972", "0.5541635", "0.55347574", "0.5485853", "0.5467843", "0.5436457", "0.54346424", "0.54270375", "0.5413761", "0.5400906", "0.53757393...
0.7363484
1
Gets the total trophy count for this title.
Получает общее количество трофеев для этого названия.
public function trophyCount(): int { $count = ($this->bronzeTrophyCount() + $this->silverTrophyCount() + $this->goldTrophyCount()); if ($this->hasPlatinum()) { $count++; } return $count; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function totalTrophyCount(): int\n {\n $count = $this->bronze() + $this->silver() + $this->gold();\n\n return $this->hasPlatinum() ? ++$count : $count;\n }", "public function goldTrophyCount(): int\n {\n return $this->pluck('definedTrophies.gold');\n }", "public function...
[ "0.80158323", "0.697131", "0.69296044", "0.68659145", "0.67355156", "0.6700751", "0.669272", "0.66508394", "0.66328394", "0.65897274", "0.6569313", "0.65368253", "0.65368253", "0.6488574", "0.64780253", "0.64771575", "0.64762056", "0.6473574", "0.64592904", "0.645691", "0.638...
0.78547716
1
Gets the amount of bronze trophies.
Получает количество бронзовых трофеев.
public function bronzeTrophyCount(): int { return $this->pluck('definedTrophies.bronze'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function bronze(): int\n {\n return $this->pluck('definedTrophies.bronze');\n }", "public function earnedTrophiesBronzeCount(): int\n {\n return $this->pluck('earnedTrophies.bronze');\n }", "public function totalTrophyCount(): int\n {\n $count = $this->bronze() + $thi...
[ "0.7978242", "0.77563864", "0.6971082", "0.69356626", "0.6922722", "0.66939414", "0.6609167", "0.6478986", "0.6414117", "0.63766545", "0.6284179", "0.62556255", "0.6221483", "0.6214513", "0.61438465", "0.6138375", "0.61012805", "0.6092125", "0.6072539", "0.6065196", "0.606234...
0.81291276
0
Gets the amount of silver trophies.
Получает количество серебряных трофеев.
public function silverTrophyCount(): int { return $this->pluck('definedTrophies.silver'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function silver(): int\n {\n return $this->pluck('definedTrophies.silver');\n }", "public function earnedTrophiesSilverCount(): int\n {\n return $this->pluck('earnedTrophies.silver');\n }", "public function gold(): int\n {\n return $this->pluck('definedTrophies.gold')...
[ "0.82267976", "0.77601624", "0.70781845", "0.69287086", "0.6874111", "0.63416106", "0.63416106", "0.6309212", "0.6302712", "0.6293892", "0.6214397", "0.6165419", "0.61127955", "0.605494", "0.60480255", "0.6008686", "0.59945154", "0.59933674", "0.5984484", "0.5982333", "0.5974...
0.79281306
1
Gets the amount of gold trophies.
Получает количество золотых трофеев.
public function goldTrophyCount(): int { return $this->pluck('definedTrophies.gold'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function gold(): int\n {\n return $this->pluck('definedTrophies.gold');\n }", "public function earnedTrophiesGoldCount(): int\n {\n return $this->pluck('earnedTrophies.gold');\n }", "public function getGold() {\n\t\treturn $this->gold;\n\t}", "public function getGold()\n {...
[ "0.8345473", "0.79333484", "0.7632484", "0.76234716", "0.76234716", "0.7546886", "0.6965532", "0.68459314", "0.68085396", "0.6605607", "0.6545694", "0.6540271", "0.6471654", "0.6427731", "0.6301556", "0.63003105", "0.62922955", "0.6212029", "0.6175912", "0.61741984", "0.61452...
0.81173235
1
Gets the trophy list version number for this trophy title.
Получает версию списка трофеев для этого названия трофеев.
public function trophySetVersion(): string { return $this->pluck('trophySetVersion'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getVersionNo()\n {\n return $this->versionNo;\n }", "public function getLabelVersionNo()\n\t{\n\t\treturn $this->labelVersionNo;\n\t}", "public function get_version() {\n\t\treturn $this->version;\n\t}", "public function get_version() {\n\t\treturn $this->version;\n\t}", "publi...
[ "0.68849707", "0.6506227", "0.647724", "0.647724", "0.647724", "0.647724", "0.647724", "0.647724", "0.647724", "0.647724", "0.647724", "0.647724", "0.6458992", "0.64468724", "0.64468724", "0.641822", "0.64114183", "0.6397479", "0.63767767", "0.637446", "0.63687044", "0.6365...
0.70043635
0
Gets the amount of earned bronze trophies for this user.
Получает количество заработанных бронзовых трофеев для этого пользователя.
public function earnedTrophiesBronzeCount(): int { return $this->pluck('earnedTrophies.bronze'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function bronzeTrophyCount(): int\n {\n return $this->pluck('definedTrophies.bronze');\n }", "public function bronze(): int\n {\n return $this->pluck('definedTrophies.bronze');\n }", "public function totalTrophyCount(): int\n {\n $count = $this->bronze() + $this->silv...
[ "0.7126671", "0.6956779", "0.66269547", "0.64716566", "0.6406024", "0.63082033", "0.6177894", "0.608518", "0.60088813", "0.6007577", "0.5998727", "0.59893113", "0.59771043", "0.5930985", "0.5864334", "0.5860737", "0.582702", "0.58171093", "0.58098197", "0.5798422", "0.5789711...
0.7572422
0
Gets the amount of earned silver trophies for this user.
Получает количество заработанных серебряных трофеев для этого пользователя.
public function earnedTrophiesSilverCount(): int { return $this->pluck('earnedTrophies.silver'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function silver(): int\n {\n return $this->pluck('definedTrophies.silver');\n }", "public function earnedTrophiesGoldCount(): int\n {\n return $this->pluck('earnedTrophies.gold');\n }", "public function silverTrophyCount(): int\n {\n return $this->pluck('definedTrophi...
[ "0.72792", "0.71931636", "0.7070169", "0.6613299", "0.63579386", "0.6024753", "0.60221684", "0.59434694", "0.59289914", "0.5921802", "0.59190804", "0.59131396", "0.59131396", "0.5908181", "0.5905664", "0.5903013", "0.5877489", "0.5871551", "0.5866876", "0.5862005", "0.576389"...
0.7557068
0
Gets the amount of earned gold trophies for this user.
Получает количество заработанных золотых медалей для этого пользователя.
public function earnedTrophiesGoldCount(): int { return $this->pluck('earnedTrophies.gold'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function gold(): int\n {\n return $this->pluck('definedTrophies.gold');\n }", "public function goldTrophyCount(): int\n {\n return $this->pluck('definedTrophies.gold');\n }", "public function getGold() {\n\t\treturn $this->gold;\n\t}", "public function getGold()\n {\n ...
[ "0.7426699", "0.71247923", "0.6954024", "0.6908033", "0.68252903", "0.68252903", "0.63504285", "0.62736905", "0.62579834", "0.6224385", "0.6218199", "0.6204519", "0.61758447", "0.6128557", "0.59577703", "0.58911943", "0.5882279", "0.58628124", "0.5852499", "0.5841446", "0.583...
0.78356695
0
Gets the amount of earned platinum trophies for this user.
Получает количество заработанных платиновых наград для этого пользователя.
public function earnedTrophiesPlatinumCount(): int { return $this->pluck('earnedTrophies.platinum'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function totalTrophyCount(): int\n {\n $count = $this->bronze() + $this->silver() + $this->gold();\n\n return $this->hasPlatinum() ? ++$count : $count;\n }", "public function earnedTrophiesGoldCount(): int\n {\n return $this->pluck('earnedTrophies.gold');\n }", "public f...
[ "0.6870749", "0.68114036", "0.6410952", "0.6154621", "0.61471236", "0.6070527", "0.60606754", "0.6033722", "0.5978158", "0.59710264", "0.5962624", "0.5885135", "0.5862298", "0.5859952", "0.58546376", "0.5830061", "0.58248305", "0.5819418", "0.5805013", "0.5767616", "0.5758278...
0.74926335
0
Gets the trophy service name for this trophy.
Получает имя службы трофея для этого трофея.
public function serviceName(): string { return $this->serviceName ??= $this->pluck('npServiceName'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getServiceName()\n {\n return $this->argument('service');\n }", "public function getServiceName()\n {\n if (array_key_exists(\"serviceName\", $this->_propDict)) {\n return $this->_propDict[\"serviceName\"];\n } else {\n return null;\n ...
[ "0.68208694", "0.6699743", "0.66227925", "0.6603377", "0.63247275", "0.6276523", "0.62157434", "0.6209712", "0.61617833", "0.6142529", "0.61383855", "0.60994107", "0.60481864", "0.6028596", "0.5987589", "0.59794325", "0.5977117", "0.5972885", "0.59307873", "0.5916902", "0.588...
0.7078204
0
Get instructions text from config
Получить текст инструкций из конфига
public function getInstructions() { return trim($this->getConfigData('instructions')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function showInstructions()\n {\n\treturn $this->getConfigData('checkout/ship_instructions');\n }", "public function getCustomizeText(){\n\n $text = Mage::getStoreConfig(self::XPATH_CONFIG_INSTALLMENT_TEXT);\n if(!empty($text)){\n return $text;\n }\n return __...
[ "0.6331551", "0.6076512", "0.6063883", "0.58414894", "0.56060964", "0.56038326", "0.55345505", "0.54985046", "0.54667777", "0.54392076", "0.5429755", "0.5413888", "0.5392617", "0.53868264", "0.536503", "0.53647316", "0.5317611", "0.5312224", "0.5299757", "0.5251703", "0.52244...
0.74176586
1
///////////////////////////// INSTANTIATIONRELATED METHODS ///////////////////////////// Instantiate a StewardshipPledge from a Database Row. Takes in an optional strAliasPrefix, used in case another Object::InstantiateDbRow is calling this StewardshipPledge::InstantiateDbRow in order to perform early binding on refere...
///////////////////////////// МЕТОДЫ, СВЯЗАННЫЕ С ВЫЗОВОМ ///////////////////////////// Создание объекта StewardshipPledge из строки базы данных. Принимает необязательный параметр strAliasPrefix, который используется в случае, если другой метод Object::InstantiateDbRow вызывает этот метод StewardshipPledge::Instantiate...
public static function InstantiateDbRow($objDbRow, $strAliasPrefix = null, $strExpandAsArrayNodes = null, $objPreviousItem = null, $strColumnAliasArray = array()) { // If blank row, return null if (!$objDbRow) return null; // Create a new instance of the StewardshipPledge object $objToReturn = new Ste...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function createFromDbRow($row) {\r\n $obj = self::_instantiateThisObject();\r\n $obj->copyFromDbRow($row);\r\n return $obj;\r\n }", "public static function InstantiateCursor(QDatabaseResultBase $objDbResult) {\n\t\t\t// If blank resultset, then return empty r...
[ "0.58936715", "0.5424951", "0.52605414", "0.5213605", "0.5137157", "0.5062834", "0.50136495", "0.49766704", "0.4932962", "0.49067116", "0.48913214", "0.48452914", "0.48410317", "0.48284176", "0.47569084", "0.47067425", "0.4703189", "0.46663445", "0.46535507", "0.46390006", "0...
0.71215695
0
Reload this StewardshipPledge from the database.
Перезагрузите этот StewardshipPledge из базы данных.
public function Reload() { // Make sure we are actually Restored from the database if (!$this->__blnRestored) throw new QCallerException('Cannot call Reload() on a new, unsaved StewardshipPledge object.'); // Reload the Object $objReloaded = StewardshipPledge::Load($this->intId); // Update $this's ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function Reload() {\n\t\t\t// Make sure we are actually Restored from the database\n\t\t\tif (!$this->__blnRestored)\n\t\t\t\tthrow new QCallerException('Cannot call Reload() on a new, unsaved PersonWithLock object.');\n\n\t\t\t$this->DeleteFromCache();\n\n\t\t\t// Reload the Object\n\t\t\t$objReloaded = Pe...
[ "0.54728454", "0.5471684", "0.54434055", "0.54234797", "0.5400114", "0.53165555", "0.52890617", "0.5254038", "0.5234782", "0.5203394", "0.51827973", "0.5172557", "0.50905883", "0.5037387", "0.5028398", "0.4965485", "0.49507892", "0.49454638", "0.49453503", "0.49292684", "0.49...
0.83003294
0
Stops started Mink sessions.
Сессии Mink были завершены.
public static function stopMinkSessions() { self::$mink->stopSessions(); self::$mink = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function stop();", "public function stop();", "public function stop();", "public function stop();", "public function stop();", "public function stop();", "public function stop();", "public function stop();", "public function stop() {}", "public function stop() {\n\t\t$this->invoke(\"stop\"...
[ "0.68962294", "0.68962294", "0.68962294", "0.68962294", "0.68962294", "0.68962294", "0.68962294", "0.68962294", "0.6855274", "0.6817548", "0.6588094", "0.6573066", "0.65690076", "0.6564834", "0.6564834", "0.6564834", "0.6564834", "0.6564834", "0.6544543", "0.6535092", "0.6528...
0.8589254
1
Returns default show command.
Возвращает команду отображения по умолчанию.
private function getDefaultShowCmd() { if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { return 'explorer.exe $s'; } switch(PHP_OS) { case 'Darwin': return 'open %s'; case 'Linux': case 'FreeBSD': return 'xdg-open %...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(command $command)\n {\n //\n }", "public function show($command, $params, $user);", "public function getCommand();", "public function cli_help() {}", "public function show()\n {\n $command = '';\n $results = '';\n return view('gae-support-l5::artisa...
[ "0.66694593", "0.637217", "0.63148296", "0.62687373", "0.62531674", "0.6225458", "0.6189536", "0.6186525", "0.6170437", "0.6166553", "0.6166497", "0.61276996", "0.61008567", "0.60733634", "0.6048689", "0.6048275", "0.6043454", "0.60129493", "0.59919757", "0.5971635", "0.59716...
0.7500238
1
Delete PlatformCode by ID
Удалить PlatformCode по ID
public function deleteById($platformcodeId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function delPlatform($id)\n {\n global $mysqli;\n $sql=\"DELETE FROM platforms WHERE platformID=$id \";\n $mysqli->query($sql)or die(\"query failed due to \".mysqli_error());\n logSuccess(\"platform deleted successfully\");\n }", "public function deleteFromCode($code)\n {\n return parent:...
[ "0.7288525", "0.6505059", "0.63998044", "0.6319747", "0.63186884", "0.6250832", "0.61340326", "0.6104642", "0.60968256", "0.60391253", "0.6032522", "0.6001046", "0.59929764", "0.59882116", "0.5975672", "0.5854586", "0.5850863", "0.58318466", "0.57893926", "0.57674724", "0.575...
0.8694049
0
getAllMattersParentChildrenListTrimmed is men to be used by search page on referrals page
getAllMattersParentChildrenListTrimmed используется для поиска на странице ссылок
public function getAllMattersParentChildrenListTrimmed() { $matters = self::getAllMatters(); $clean_matters = []; foreach ($matters as $matter) { $clean_matters[] = [ 'id' => $matter['MatterID'], 'te...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getSelectableParents()\n {\n $roles = $this->all();\n $tree = $this->findChildren($roles, 0, 1);\n\n //recursively go trough the array and delete....\n\n $trimmed_tree = $this->removeTreeNode($tree, $this->id);\n return $trimmed_tree;\n\n\n\n\n }", "public functi...
[ "0.6041208", "0.5751979", "0.5751957", "0.55909216", "0.55325735", "0.5508117", "0.5479631", "0.54768145", "0.53848267", "0.5338396", "0.53180057", "0.53043497", "0.53043497", "0.5304182", "0.5303072", "0.53013927", "0.5274685", "0.525104", "0.52434933", "0.5240219", "0.52382...
0.780527
0
Test that we can construct an instance of UrlResult
Тестирование возможности создания экземпляра UrlResult
public function test__construct() { $urlResult = new \MphpFlickrPhotosGetInfo\Result\UrlResult($this->getAdapter()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetUrl()\n {\n $urlResult = new \\MphpFlickrPhotosGetInfo\\Result\\UrlResult($this->getAdapter());\n $this->assertSame($this->getAdapter()->getUrl(), $urlResult->getUrl());\n }", "public function testGetUrlParams()\n {\n //Mock request\n $request = Mockery...
[ "0.7427949", "0.6502077", "0.6494774", "0.63784486", "0.63549155", "0.63417876", "0.6287089", "0.6260201", "0.6237623", "0.62372756", "0.6195931", "0.61865216", "0.61578786", "0.6105983", "0.60349333", "0.6012021", "0.60075116", "0.5986312", "0.5970276", "0.59052426", "0.5884...
0.72890127
1
Test that attempting to construct with an invalid adapter throws an InvalidAdapterException
Тест на то, что попытка создания с недействительным адаптером вызывает исключение InvalidAdapterException
public function test__constructThrowsInvalidAdapterException() { $mockAdapter = $this->getMock('MphpFlickrBase\Adapter\Interfaces\Result\ResultAdapterInterface'); $this->assertInstanceOf('MphpFlickrBase\Adapter\Interfaces\Result\ResultAdapterInterface', $mockAdapter); $this->assertNotInstanc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testCreateWillThrowFactoryExceptionIfProvidedAdapterIsInvalid(): void\r\n {\r\n $factory = new ContainerFactory();\r\n\r\n $config = [\r\n 'adapter' => 123, // invalid adapter!\r\n ];\r\n\r\n $this->expectException(FactoryException::class);\r\n $this...
[ "0.7950066", "0.7397903", "0.6794294", "0.66880673", "0.65995187", "0.6472877", "0.6406719", "0.6368889", "0.6308904", "0.62370926", "0.6162188", "0.61039186", "0.60891813", "0.60059494", "0.6003531", "0.5996118", "0.5918089", "0.58713216", "0.58711827", "0.58585757", "0.5852...
0.77857065
1
Test that we can retrieve the url value
Тестирование возможности получения значения url
public function testGetUrl() { $urlResult = new \MphpFlickrPhotosGetInfo\Result\UrlResult($this->getAdapter()); $this->assertSame($this->getAdapter()->getUrl(), $urlResult->getUrl()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_getUrl_returnsString()\n\t{\n\t\t$url = 'http://example.com';\n\t\t\n\t\t$request = new Post($url);\n\t\t\n\t\t$this->assertEquals($url, $request->getUrl());\n\t}", "public function testGetUrl_urlSet_setReturned()\n {\n $sEndpointUrl = 'http://www.oxid-esales.com/index.php?anid=art...
[ "0.7307561", "0.69567806", "0.6939215", "0.6930271", "0.6888509", "0.6884988", "0.6873097", "0.6873097", "0.6873039", "0.68669677", "0.6865132", "0.68160766", "0.6812406", "0.67993337", "0.6790025", "0.67834586", "0.6774536", "0.6645556", "0.6617677", "0.6613017", "0.6597545"...
0.73083085
0
/ Plugin Name: Simple Meta shortcode Plugin URI: Description: A light plugin that allows you to easly shorcode your post meta data. Author: Riad Boukirou Version: 0.1 Author URI:
Название плагина: Simple Meta короткий код URI плагина: Описание: Легкий плагин, позволяющий легко использовать короткий код для метаданных поста. Автор: Riad Boukirou Версия: 0.1 URI автора:
function sm_shortcode( $atts ) { $a = shortcode_atts( array( 'post-id' => get_the_ID() , 'key' => '', 'single' => false, ), $atts ); return get_post_meta( $a["post-id"], $a["key"], $a["post-id"] ) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function add_shortcode_for_our_plugin ($attr , $content = null ){\n\t\textract(shortcode_atts(array(\n\t\t\t'post_type'=>'post',\n\t\t\t'posts_per_page'=>2,\n\t\t\t\n\t\t\t\n\t\t\n\t\t), $attr,'our_shortcode' ));\n\t\n\t$query = new WP_Query(array(\n\t\t'post_type'=>$post_type,\n\t\t'posts_per_page'=>$posts_per_p...
[ "0.70828265", "0.6838259", "0.6690986", "0.6593363", "0.65779173", "0.65209293", "0.65119934", "0.6497491", "0.6484403", "0.64677715", "0.646133", "0.6453369", "0.6447194", "0.6445118", "0.64407486", "0.64314324", "0.63998425", "0.63974226", "0.63912475", "0.6359737", "0.6306...
0.7576378
0
================================================== CHECKBOX FOR CRITICAL PATH
================================================== ЧЕКБОКС ДЛЯ КРИТИЧЕСКОГО ПУТИ
function drawOptionCriticalPath() { ?> <div style="white-space:nowrap; <?php echo (isNewGui())?'margin-right:6px;margin-top:5px;':'position:absolute; bottom:5px;left:10px;'; ?>" class="checkboxLabel"> <?php if (isNewGui()) {?><?php echo ucfirst(i18n('criticalPath'));?>&nbsp;<?php }?> <span title="<?php ec...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function drawOptionLeftWork() {\r\n global $saveShowWork;?>\r\n <table width=\"100%\">\r\n <tr class=\"checkboxLabel\">\r\n <td >\r\n <?php echo ucfirst(i18n(\"labelShowLeftWork\".((isNewGui()?'':'Short'))));?>\r\n </td>\r\n <td style=\"width:36px\">\r\n <div title=\"<?php echo i1...
[ "0.5743497", "0.53806967", "0.5268399", "0.52244884", "0.52199936", "0.5200469", "0.5171296", "0.5153462", "0.5145952", "0.50820106", "0.5079995", "0.50787973", "0.5053911", "0.5048998", "0.5024847", "0.49905547", "0.49757126", "0.4960597", "0.4959653", "0.49422473", "0.49337...
0.7565079
0
/ Valida que la fecha de la cita no sea menor a la actual
Проверяет, чтобы дата встречи не была меньше текущей
public function ValidarFecha($attribute){ $today = new DateTime(); $fecha = new DateTime($this->fecha_presupuesto); if( ($fecha < $today) && ($fecha->format('Y-m-d') <> $today->format('Y-m-d')) ){ $this->addError($attribute,"La fecha del presupusto no puede ser menor a la fecha actual."); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function validaNascimento($ano, $mes, $dia)\n{\n\n $dataCheck = $ano.'-'.$mes.'-'.$dia;\n if (checkdate($mes, $dia, $ano) && $dataCheck<=date('Y-m-d'))\n return true;\n else return false;\n}", "function validar_Fecha()\n {\n $this->resource = 'Actividades';\n $fecha_menor = strto...
[ "0.7211633", "0.71130294", "0.7104857", "0.7024683", "0.7018319", "0.6964844", "0.6942067", "0.6753298", "0.6715358", "0.6564063", "0.64971185", "0.64956445", "0.6481189", "0.6461642", "0.6425491", "0.6420492", "0.6398571", "0.6383489", "0.63787854", "0.63691384", "0.6368309"...
0.7161741
1
Test that loading from the Web source returns a CertInfo object.
Тестирование того, что загрузка из источника веб-сайта возвращает объект CertInfo.
public function test_it_should_return_an_certificate() { $web = new Web('somefile'); $this->assertInstanceOf(CertInfo::class, $web->load()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_it_should_return_an_invalid_certificate_on_bogus_certificate()\n {\n $web = new Web('somesource');\n $cert = $web->load();\n $this->assertInstanceOf(CertInfo::class, $cert);\n }", "public function test_an_invalid_source_location_returns_an_invalid_certificate()\n ...
[ "0.7462147", "0.7099127", "0.6180642", "0.601722", "0.59560156", "0.58785397", "0.585389", "0.58463436", "0.5795436", "0.57218194", "0.57035893", "0.56722283", "0.56566113", "0.5519399", "0.5465089", "0.5460221", "0.5427534", "0.5419434", "0.5372021", "0.533614", "0.5330176",...
0.8150528
0
Test that loading from a File source returns a certificate, even if this certificate is not valid.
Тест на то, что загрузка из источника файла возвращает сертификат, даже если этот сертификат недействителен.
public function test_it_should_return_an_invalid_certificate_on_bogus_certificate() { $web = new Web('somesource'); $cert = $web->load(); $this->assertInstanceOf(CertInfo::class, $cert); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_an_invalid_source_location_returns_an_invalid_certificate()\n {\n $web = new Web('somesource');\n $cert = $web->load();\n $this->assertFalse($cert->isValid());\n }", "public function test_it_should_return_an_certificate()\n {\n $web = new Web('somefile');...
[ "0.7602867", "0.70826757", "0.6145778", "0.61355513", "0.61056215", "0.60823023", "0.6003386", "0.5955131", "0.58452815", "0.5821699", "0.5795241", "0.5772825", "0.57656336", "0.5721717", "0.57123196", "0.5684935", "0.56510997", "0.5558494", "0.55413264", "0.55343443", "0.553...
0.71948373
1
/ write_log($message[, $logfile]) Parameters: $message: Message to be logged $logfile: Path of log file to write to. Optional. Default is log/session.log.
/ write_log($message[, $logfile]) Параметры: $message: Сообщение для записи $logfile: Путь к файлу журнала для записи. Необязательный. По умолчанию log/session.log.
function write_log($message, $logfile='log/session.log') { // Get time of request if( ($time = $_SERVER['REQUEST_TIME']) == '') { $time = time(); } // Get IP address if( ($remote_addr = $_SERVER['REMOTE_ADDR']) == '') { $remote_addr = "REMOTE_ADDR_UNKNOWN"; } // Format the date and time $dat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _log($message)\n{\n\tfwrite($GLOBALS['logfile'], date(\"Y-m-d H:i:s :: \", time()) . $message . \"\\n\");\n}", "public function write_log($log_file, $log_tag=\"i\", $log_msg){\n $fh = $this->open_log_file($log_file);\n\n $log_txt = \"[\".self::timestamp().\"]\";\n $log_txt .= \" \";...
[ "0.7662275", "0.7511298", "0.73815906", "0.7373889", "0.7371189", "0.72691953", "0.71529275", "0.7009658", "0.689738", "0.6883024", "0.68557763", "0.681926", "0.67920625", "0.677573", "0.67672193", "0.6757084", "0.6745794", "0.6685829", "0.6681875", "0.66586304", "0.6641417",...
0.7963543
0
Check Balance Check Paybill balance
Проверить баланс Проверить баланс платежного документа
public function check_balance() { $data = array( 'CommandID' => 'AccountBalance', 'PartyA' => $this->paybill, 'IdentifierType' => '4', 'Remarks' => 'Remarks or short description', 'Initiator' => $this->initiator_username, 'SecurityCrede...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract function checkBalance();", "public function checkBalance()\n {\n echo \"Check Balance of Dhanmondi Branch<br>\";\n }", "public function checkBalance()\n {\n if ($this->_client) {\n $balance = $this->_client->checkBalance();\n\n if ($balance['balance'] <= en...
[ "0.7905807", "0.7766445", "0.73912644", "0.7310934", "0.7189555", "0.70503175", "0.69931203", "0.6900509", "0.6888066", "0.688416", "0.6859427", "0.6832991", "0.68174773", "0.6789373", "0.6704706", "0.6674944", "0.662398", "0.6622932", "0.6608864", "0.6592967", "0.65906185", ...
0.78098285
1
select a user by ID
выберите пользователя по ID
function selectUser($id) { $connection = openDb(); $id = (int) $id; //Using prepared statements and parameterized queries: $sql = "SELECT * FROM users_view WHERE ID = ?"; $stmt = $connection->stmt_init(); if(!$stmt->prepare($sql)) { return false; } $stmt->bind_param("i",$id); return executeQuer...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function selectUserbyId($id){\r\n\r\n $query = 'SELECT * FROM user_tbl WHERE id = ?';\r\n $stmt = $this->_db->prepare($query);\r\n $stmt->execute([$id]);\r\n $users = $stmt->fetchAll(PDO::FETCH_OBJ);\r\n if ($stmt->rowCount()){\r\n return $users;\r\n }\r\...
[ "0.77708954", "0.75158393", "0.74531996", "0.7376245", "0.7363985", "0.7294908", "0.7284252", "0.72501427", "0.7233375", "0.7204514", "0.715932", "0.715932", "0.7108903", "0.705682", "0.705676", "0.7038046", "0.70080334", "0.700467", "0.70042306", "0.70039237", "0.69997346", ...
0.76145726
1
Update account balance of the sender/recipient during a transaction
Обновление баланса счета отправителя/получателя во время транзакции
function updateBalance($sender, $recipient, $amount) { $senderBalance = selectAccountById($sender)->BALANCE; $recipientBalance = selectAccountById($recipient)->BALANCE; $newSenderBalance = $senderBalance - $amount; $newRecipientbalance = $recipientBalance + $amount; $connection = openDb(); //Using prepar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function UpdateAccountBalances () \r\n {\r\n $table = \"BALANCE\";\r\n $query = \"DROP TABLE IF EXISTS ${table}\";\r\n Balance::Event ($query, \"\");\r\n if (!mysql_query($query, self::$db)) \r\n {\r\n Balance::Error (\"Can't remove old ${table} table\", mysql_error(self::...
[ "0.68273365", "0.67030984", "0.66548747", "0.6495199", "0.64870554", "0.64142996", "0.63911796", "0.62955135", "0.62158316", "0.61740804", "0.6151145", "0.6146981", "0.6131763", "0.61168474", "0.607866", "0.605699", "0.6014469", "0.60078704", "0.6000516", "0.59528303", "0.594...
0.74089664
0
select account account by user id
выберите account account по идентификатору пользователя
function selectAccountByUserId($id) { $connection = openDb(); $id = escape($id,$connection); $id = (int) $id; //Using prepared statements and parameterized queries: $sql = "SELECT * FROM accounts WHERE USER = ?"; $stmt = $connection->stmt_init(); if(!$stmt->prepare($sql)) { return false; } $stmt-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getAccount ($id = null) {\n if (!$id) { \n $id = session::getUserId();\n }\n $db = new db();\n $row = $db->selectOne('account', 'id', $id);\n return $row;\n }", "function selectAccountById($id) {\n $connection = openDb();\n\n //Using prepa...
[ "0.70628655", "0.6842537", "0.67984635", "0.67195326", "0.6679563", "0.6550828", "0.64835685", "0.6463842", "0.64523494", "0.6444841", "0.643139", "0.63601404", "0.63414294", "0.63248354", "0.6324651", "0.63052547", "0.6295274", "0.62917644", "0.6253331", "0.62479407", "0.623...
0.7779418
0
Return the SocialEntryProvider instance.
Верните экземпляр SocialEntryProvider.
public function getProvider(): SocialEntryProvider { return $this->provider; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSocial(string $provider)\n {\n return $this->socials()\n ->whereProvider($provider)\n ->first();\n }", "public static function getInstance(Provider $provider = null) {\r\n if (self::$_instance === false) {\r\n self::$_instance = new self($pr...
[ "0.63960457", "0.6043008", "0.6007957", "0.5887487", "0.5887487", "0.58579654", "0.57547295", "0.5694454", "0.5660538", "0.5660538", "0.5660538", "0.5556751", "0.55030274", "0.5476061", "0.5447619", "0.5440498", "0.53903556", "0.5349423", "0.5344297", "0.5333837", "0.53220415...
0.8689691
0
Returns clients using space in a Warehouse if no warehouse is specified, then a list of all clients is returned
Возвращает клиентов, использующих пространство в складе, если склад не указан, возвращается список всех клиентов
function getClientList( $warehouse = NULL ) { // if ($warehouse) { // $mid = "WHERE `project_name` STARTING '$project'"; // } else { $mid = ''; } $query = "SELECT ( SELECT COUNT(PARTNO) FROM `warehouse_partlist` pro WHERE pro.`client` = cl.`client` AND pro.`quantity` > 0 ) AS `stock`, cl.*, cu.* FROM `war...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function callWarehouse(){\n\t\t$data = $this->connection->createCommand('select id, name from warehouse where status = 1 and tenant_id = '. $this->tenant)->queryAll();\n\t\treturn $data;\n\t}", "public function getCreditmemoWarehouseList();", "protected function listClients() {\n\n\t\ttry {\n\n\t\t\t$c...
[ "0.6129523", "0.6010987", "0.59966457", "0.5894166", "0.58328325", "0.5792075", "0.5786333", "0.5777385", "0.57429516", "0.5730356", "0.57086724", "0.569353", "0.56410366", "0.5605764", "0.55739594", "0.5559629", "0.55433816", "0.5536944", "0.5524524", "0.5521801", "0.550472"...
0.70121163
0
Implements this to fetch total count of the main model data
Реализуйте это для получения общего количества основных данных модели
protected function fetchTotalCount() { //get total if fetching a list $this->main_model_obj = new $this->main_model(); $total_builder = $this->main_model_obj->getModelsManager()->createBuilder() ->columns(['COUNT(1) AS total']) ->from($this->main_model); $thi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTotalCount();", "public function getTotalCount();", "public function getTotalCount();", "public function totalCount();", "public function totalCount();", "public function getTotal() {\n\t\treturn $this->find('count', array(\n\t\t\t'contain' => false,\n\t\t\t'recursive' => false,\n\t\t\...
[ "0.77709144", "0.77709144", "0.77709144", "0.77280796", "0.77280796", "0.750715", "0.7473416", "0.7462102", "0.7422677", "0.7352281", "0.7269595", "0.72520584", "0.7246388", "0.7243094", "0.7242291", "0.7206019", "0.7189302", "0.71806926", "0.7172114", "0.71697116", "0.716461...
0.8656334
0
Implements this to fetch and attach an embed to the main model data
Реализуйте это для получения и прикрепления встраиваемого элемента к основным данным модели
protected function fetchEmbed($embed) { //checks if the main model's primary key is set in settings if (empty($this->settings[self::SETTING_MAIN_MODEL_PRIMARY_KEY])){ throw new \Exception('No primary key detected for main model'); } //checking if any main model data was f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fetch_embed_data() {\n\n\t\t$embed_url = $this->get_embed_url();\n\n\t\t// Bail if the URL is already est\n\t\t$key = 'embed_data_' . md5( $embed_url );\n\t\tif ( ! $embed_url || ( $this->get_meta( $key ) && ! $this->is_embed_data_errored() ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$type = $this->get_embe...
[ "0.65325564", "0.5813032", "0.5696687", "0.55912584", "0.55704874", "0.54963326", "0.549623", "0.54375595", "0.54113704", "0.53622496", "0.52818066", "0.5270425", "0.52447844", "0.52083826", "0.51926994", "0.5190219", "0.5186612", "0.51052713", "0.50748765", "0.5060507", "0.5...
0.75898945
0
Adds joins the query builder using the filters provided as inputs
Добавляет соединения в построитель запросов с использованием фильтров, предоставленных в качестве входных данных
protected function formJoinsUsingFilters(&$builder) { $this->join_models = []; foreach ($this->filters as $filter){ $field_parts = explode('.', $filter[self::FILTER_PARAM_FIELD]); if (count($field_parts) > 1) { unset($field_parts[count($field_parts) - 1]); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function buildJoins(): void {\r\n\r\n if(count($this -> joins) > 0) {\r\n\r\n $query = [];\r\n\r\n foreach($this -> joins as $join) {\r\n\r\n $parts = [];\r\n $parts[] = sprintf('%s JOIN', strtoupper($join['type']));\r\n $parts[] =...
[ "0.735921", "0.7072809", "0.7008494", "0.6901871", "0.645943", "0.62778056", "0.6237814", "0.62219", "0.61812884", "0.6171721", "0.6122712", "0.5990475", "0.5971004", "0.595362", "0.59530985", "0.5922878", "0.59156233", "0.58875453", "0.5869136", "0.58406353", "0.5837045", ...
0.7231658
1
Adds the `order by` component of the builder
Добавляет компонент `order by` построителя
protected function formOrderBy(&$builder, $order_by = null) { if (is_string($order_by)){ $builder->orderBy($order_by); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function orderBy() {\n $this->_orderBy = \"\";\n foreach ($this->_columns as $tableName => $table) {\n if (array_key_exists('order_bys', $table)) {\n foreach ($table['order_bys'] as $fieldName => $field) {\n $this->_orderBy[] = $field['dbAlias'];\n }\n }\n }\n $t...
[ "0.7496503", "0.7355641", "0.7172415", "0.70009357", "0.6997284", "0.6988222", "0.69461423", "0.68898", "0.6841022", "0.68391037", "0.68076575", "0.68013525", "0.67385966", "0.6683881", "0.66613436", "0.6641937", "0.6620022", "0.6620022", "0.6620022", "0.655186", "0.65236044"...
0.7402508
1
initialize elastic query's body
инициализация тела эластичного запроса
public function initQueryBody() { $this->queryBody = [ 'index' => $this->connection->index(), 'type' => $this->connection->type(), 'body' => [ 'query' => [ 'bool' => [ 'filter' => [ ] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function composeQuery()\n {\n $this->initQueryBody();\n if ($this->selectedFields) {\n array_set($this->queryBody, 'body._source', $this->selectedFields);\n $this->clearSelect();\n }\n if ($this->range) {\n $filter = array_get($this->queryBody,...
[ "0.6488196", "0.5701107", "0.56761444", "0.5669867", "0.5620023", "0.5612076", "0.56032425", "0.5560951", "0.55461764", "0.553059", "0.553059", "0.553059", "0.55295944", "0.55282354", "0.5468336", "0.54634506", "0.5444723", "0.5402092", "0.53944594", "0.5387586", "0.53637433"...
0.8490011
0
compose query based on all options we set before Query Example: [ 'index' => 'index name ', 'type' => 'type name', 'scroll'=> '30s',// how long between scroll requests. should be small! 'size' => '50', //results size for per shard scroll created 'body' => [ 'query' => [ 'bool' => [ "filter" => [ [ "range" => [
Составить запрос на основе всех опций, которые мы установили ранее Пример запроса: [ 'index' => 'название индекса ', 'type' => 'название типа', 'scroll'=> '30s',// продолжительность между запросами скролла. должна быть маленькой! 'size' => '50', // размер результатов для каждого скролла по шарду 'body' => [ 'query' => ...
public function composeQuery() { $this->initQueryBody(); if ($this->selectedFields) { array_set($this->queryBody, 'body._source', $this->selectedFields); $this->clearSelect(); } if ($this->range) { $filter = array_get($this->queryBody, 'body.query....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function initQueryBody()\n {\n $this->queryBody = [\n 'index' => $this->connection->index(),\n 'type' => $this->connection->type(),\n 'body' => [\n 'query' => [\n 'bool' => [\n 'filter' => [\n\n ...
[ "0.69548965", "0.6303724", "0.62315387", "0.6170522", "0.6113031", "0.60928065", "0.60184187", "0.59803873", "0.59728473", "0.59689045", "0.58549064", "0.5819524", "0.5791809", "0.5708326", "0.56649166", "0.56649166", "0.56649166", "0.56638473", "0.5636405", "0.5580414", "0.5...
0.74622375
0
Dump the raw elastic search result and end the script
Записать сырые результаты поиска Elastic и завершить скрипт
public function dump() { $this->composeQuery(); $result = $this->connection->client()->search($this->queryBody); dd($result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function execute() {\n\t\t$result = [\n\t\t\t'success' => false,\n\t\t\t'errorMessage' => '',\n\t\t];\n\t\t$options = $this->getRequest()->getParams();\n\t\ttry {\n\t\t\t$response = $this->clientResolver->create(\"elasticsearch7\", $options)->testConnection();\n\t\t\tif ($response) {\n\t\t\t\t$result['succe...
[ "0.6255106", "0.57790077", "0.55282617", "0.54906845", "0.54606426", "0.53962576", "0.53578985", "0.53196275", "0.53062725", "0.5285586", "0.518518", "0.51725453", "0.51361257", "0.5133688", "0.51203007", "0.511188", "0.5101683", "0.50789005", "0.50534815", "0.50501096", "0.5...
0.7193547
0
Private helper methods Checks whether a given description complies with a given metadata schema class name.
Приватные вспомогательные методы проверяют, соответствует ли заданное описание заданному классу схемы метаданных.
function _complies(&$metadataDescription, $schemaClassName) { if (!is_a($metadataDescription, 'MetadataDescription')) return false; $descriptionSchema =& $metadataDescription->getMetadataSchema(); return (is_a($descriptionSchema, $schemaClassName)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function is_valid($schema)\n {\n return class_exists($schema) && new $schema() instanceof SchemaBuilder;\n }", "public function hasClass($name);", "private function _checkClass()\n {\n if ($this->_useWithoutTypeCheck === true) {\n return true;\n }\n\n ...
[ "0.6009475", "0.59640753", "0.58750415", "0.58559376", "0.5710562", "0.55624115", "0.552243", "0.5398714", "0.5383959", "0.53812397", "0.53768843", "0.5371742", "0.52839214", "0.5282183", "0.5273172", "0.5249025", "0.523703", "0.5229246", "0.5222672", "0.52188474", "0.5213561...
0.8266973
0
index function. Returns all the content types
Функция index. Возвращает все типы содержимого
public function index() { $this->data["content"] = $this->mongo_db->order_by(array("_id"))->get("content_types"); $this->returndata(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n $types = Type::all();\n return $this->showAll($types);\n }", "public function index()\n {\n $types = Type::all();\n\n return $this->showAll($types);\n }", "private function getContentTypes() {\n return NodeType::loadMultiple();\n }", "...
[ "0.71098053", "0.70391136", "0.6954703", "0.69469166", "0.690027", "0.68272644", "0.6810678", "0.6800812", "0.6696595", "0.6651644", "0.6628819", "0.6595833", "0.6536104", "0.6510139", "0.64945745", "0.6493904", "0.6468829", "0.6451863", "0.64416206", "0.6404756", "0.6383315"...
0.8176327
0
Handler the main forum functions
Обработка основных функций форума
function forumHandler() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function forum_autoriser(){}", "function process()\n\t{\n\t\tswitch(getPOST('action',''))\n\t\t{\n\t\t\tcase 'forum_send':\n\t\t\t\tif(isInPOST(array(\"body\")))\n\t\t\t\t{\n\t\t\t\t\tif($this->sendMessage($_POST['body'],getGET($this->reply_to_get,0)))\n\t\t\t\t\t\t$this->message(FORUM_MESSAGE_SEND_MESSAGE_OK);\...
[ "0.754264", "0.68944496", "0.67088366", "0.65868694", "0.6571004", "0.65694106", "0.6556852", "0.65398574", "0.6417785", "0.6386574", "0.63636935", "0.6362771", "0.6346904", "0.6334447", "0.63334674", "0.6305061", "0.6299117", "0.6253327", "0.62343556", "0.61920244", "0.61735...
0.8874333
0