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
Tests that an exception is thrown with an unclosed sanitized tag
Тестирование того, что возбуждается исключение с незакрытым очищенным тегом
public function testExceptionThrownWithUnclosedSanitizedTag() { $this->expectException(RuntimeException::class); $this->parser->parse([new Token(TokenTypes::T_SANITIZED_TAG_OPEN, '{{', 1)]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testExceptionThrownWithUnclosedUnsanitizedTag()\n {\n $this->expectException(RuntimeException::class);\n $this->parser->parse([new Token(TokenTypes::T_UNSANITIZED_TAG_OPEN, '{{!', 1)]);\n }", "public function testExceptionThrownWithUnopenedUnsanitizedTag()\n {\n $thi...
[ "0.84074205", "0.8158409", "0.8038387", "0.76061594", "0.7287377", "0.7246887", "0.6789477", "0.65013283", "0.6474256", "0.64467573", "0.6328265", "0.6242057", "0.6168911", "0.6107316", "0.60190517", "0.5915151", "0.59044534", "0.5831684", "0.58190966", "0.5803011", "0.580020...
0.8293675
1
Tests that an exception is thrown with an unclosed unsanitized tag
Тестирование того, что выбрасывается исключение с незакрытым неочищенным тегом
public function testExceptionThrownWithUnclosedUnsanitizedTag() { $this->expectException(RuntimeException::class); $this->parser->parse([new Token(TokenTypes::T_UNSANITIZED_TAG_OPEN, '{{!', 1)]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testExceptionThrownWithUnclosedSanitizedTag()\n {\n $this->expectException(RuntimeException::class);\n $this->parser->parse([new Token(TokenTypes::T_SANITIZED_TAG_OPEN, '{{', 1)]);\n }", "public function testExceptionThrownWithUnopenedUnsanitizedTag()\n {\n $this->ex...
[ "0.828272", "0.8173837", "0.80187905", "0.76021165", "0.7249093", "0.7047251", "0.6811197", "0.67080814", "0.6522452", "0.61624944", "0.6158708", "0.6084741", "0.60743254", "0.6061694", "0.6030593", "0.5965938", "0.59454316", "0.5895563", "0.58823574", "0.5811371", "0.5787681...
0.8411154
0
Tests that an exception is thrown with an unopened comment
Тестирование того, что выбрасывается исключение с незакрытым комментарием
public function testExceptionThrownWithUnopenedComment() { $this->expectException(RuntimeException::class); $this->parser->parse([new Token(TokenTypes::T_COMMENT_CLOSE, '#}', 1)]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testExceptionThrownWithUnclosedComment()\n {\n $this->expectException(RuntimeException::class);\n $this->parser->parse([new Token(TokenTypes::T_COMMENT_OPEN, '{#', 1)]);\n }", "public function testExceptionThrownWithNestedComment()\n {\n $this->expectException(Runtim...
[ "0.8148764", "0.74532354", "0.6672016", "0.6584382", "0.6554698", "0.64434195", "0.6173636", "0.6105118", "0.6077048", "0.60733676", "0.6073128", "0.60723865", "0.60701853", "0.6059699", "0.60452676", "0.6015377", "0.6013479", "0.5979495", "0.5899401", "0.58848053", "0.586596...
0.83218473
0
Tests that an exception is thrown with an unopened directive
Тестирование того, что выбрасывается исключение с неоткрытым директивным указанием
public function testExceptionThrownWithUnopenedDirective() { $this->expectException(RuntimeException::class); $this->parser->parse([new Token(TokenTypes::T_DIRECTIVE_CLOSE, '%>', 1)]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testExceptionThrownWithUnclosedDirective()\n {\n $this->expectException(RuntimeException::class);\n $this->parser->parse([new Token(TokenTypes::T_DIRECTIVE_OPEN, '<%', 1)]);\n }", "public function testExceptionThrownWithNestedDirective()\n {\n $this->expectException(...
[ "0.74679774", "0.65892756", "0.6284434", "0.60818726", "0.60741603", "0.5808682", "0.56832075", "0.5539192", "0.553441", "0.54916227", "0.5484853", "0.5466608", "0.5453318", "0.5452398", "0.5442949", "0.5375022", "0.5335795", "0.5328659", "0.5284386", "0.52633274", "0.5261861...
0.80345947
0
Tests that an exception is thrown with an unopened unsanitized tag
Тестирование того, что выбрасывается исключение с незакрытым неочищенным тегом
public function testExceptionThrownWithUnopenedUnsanitizedTag() { $this->expectException(RuntimeException::class); $this->parser->parse([new Token(TokenTypes::T_UNSANITIZED_TAG_CLOSE, '!}}', 1)]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testExceptionThrownWithUnclosedUnsanitizedTag()\n {\n $this->expectException(RuntimeException::class);\n $this->parser->parse([new Token(TokenTypes::T_UNSANITIZED_TAG_OPEN, '{{!', 1)]);\n }", "public function testExceptionThrownWithUnclosedSanitizedTag()\n {\n $this-...
[ "0.7899553", "0.7653398", "0.7635022", "0.71695346", "0.70783186", "0.700527", "0.6662831", "0.64375657", "0.61832994", "0.61507475", "0.6094407", "0.6076113", "0.6007911", "0.59912914", "0.5989667", "0.5987655", "0.59805936", "0.58916813", "0.58734083", "0.584157", "0.579964...
0.7860566
1
Tests parsing a comment
Тестирование парсинга комментария
public function testParsingComment() { $tokens = [ new Token(TokenTypes::T_COMMENT_OPEN, '{#', 1), new Token(TokenTypes::T_EXPRESSION, 'foo', 1), new Token(TokenTypes::T_COMMENT_CLOSE, '#}', 1), ]; $commentNode = new CommentNode(); $commentNode->ad...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function parseComment()\r\n\t{\r\n\t\t$this->start = $this->reader->mark();\r\n\t\t// skip over the comment\r\n\t\t$stop = $this->reader->skipUntil('--%>');\r\n\t\tif (is_null($stop))\r\n\t\t{\r\n\t\t\tthrow_exception(new PhaseException('Comment not properly ended.'));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t$this->r...
[ "0.74719286", "0.74625003", "0.7433535", "0.73920083", "0.72663766", "0.7112882", "0.70976365", "0.70648134", "0.7044851", "0.69946146", "0.68706584", "0.6860167", "0.68212473", "0.6748082", "0.6748082", "0.6748082", "0.6649154", "0.6577982", "0.64356", "0.642419", "0.6399504...
0.8292627
0
Tests parsing a directive with an expression
Тестирование парсинга директивы с выражением
public function testParsingDirectiveWithExpression() { $tokens = [ new Token(TokenTypes::T_DIRECTIVE_OPEN, '<%', 1), new Token(TokenTypes::T_DIRECTIVE_NAME, 'foo', 1), new Token(TokenTypes::T_EXPRESSION, '("bar")', 1), new Token(TokenTypes::T_DIRECTIVE_CLOSE, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testParsingDirectiveWithNoExpression()\n {\n $tokens = [\n new Token(TokenTypes::T_DIRECTIVE_OPEN, '<%', 1),\n new Token(TokenTypes::T_DIRECTIVE_NAME, 'foo', 1),\n new Token(TokenTypes::T_DIRECTIVE_CLOSE, '%>', 1),\n ];\n $directiveNode = new...
[ "0.70226127", "0.61396766", "0.59973776", "0.57434547", "0.56889236", "0.5511345", "0.54598963", "0.5403845", "0.5323057", "0.53187656", "0.5253623", "0.5186064", "0.51696086", "0.51622033", "0.5096056", "0.5091365", "0.49928847", "0.4982029", "0.4968166", "0.4967375", "0.494...
0.7418258
0
Tests parsing a directive with no expression
Тестирование парсинга директивы без выражения
public function testParsingDirectiveWithNoExpression() { $tokens = [ new Token(TokenTypes::T_DIRECTIVE_OPEN, '<%', 1), new Token(TokenTypes::T_DIRECTIVE_NAME, 'foo', 1), new Token(TokenTypes::T_DIRECTIVE_CLOSE, '%>', 1), ]; $directiveNode = new DirectiveNo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testParseNoClass()\n {\n $file = '#test';\n $rule = [\n 'directive' => '~#test(\\s*\\(((.*))\\))?~',\n 'replace' => \\Caprice\\Directives\\PhpDirectives::class, // wrong class\n ];\n $extras = []; // extra needed parameters like paths \n\n ...
[ "0.6484447", "0.5981677", "0.597857", "0.590272", "0.5882822", "0.57158434", "0.5702819", "0.5680986", "0.5631366", "0.5600782", "0.5503056", "0.5474548", "0.5453887", "0.5431626", "0.5431249", "0.53707194", "0.5314895", "0.5302081", "0.524408", "0.51932484", "0.5191844", "...
0.80932873
0
Tests parsing empty tokens
Тестирование парсинга пустых токенов
public function testParsingEmptyTokens() { $this->assertEquals($this->ast, $this->parser->parse([])); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testInvalidSyntaxWithEmpty(): void\n {\n $this->expectException(ParserException::class);\n $this->expectExceptionMessage('Invalid Roman');\n $this->expectExceptionCode(ParserException::INVALID_ROMAN);\n\n $this->parser->parse([]);\n }", "public function testParse...
[ "0.76349837", "0.68583006", "0.68387187", "0.6755151", "0.65272874", "0.6498995", "0.63905066", "0.6351166", "0.62705547", "0.6188358", "0.61375195", "0.61357933", "0.60886574", "0.6078836", "0.6030208", "0.60111976", "0.6010221", "0.5951533", "0.59381485", "0.5899862", "0.58...
0.87584656
0
Tests parsing an expression
Тесты парсинга выражения
public function testParsingExpression() { $tokens = [ new Token(TokenTypes::T_EXPRESSION, 'foo', 1) ]; $this->ast->getCurrentNode() ->addChild(new ExpressionNode('foo')); $this->assertEquals($this->ast, $this->parser->parse($tokens)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testRegexes()\n {\n $grammar1 = $this->grammar->parse(\" S ::= /(ab)*/ \");\n $this->assertEquals(array(\"ababab\"), $grammar1->parse(\"ababab\"));\n $grammar = $this->grammar->parse(\" number ::= /a\\\\.b/ \");\n $this->assertEquals(array(\"a.b\"), $grammar->parse(\"...
[ "0.6976829", "0.66666293", "0.6474439", "0.6443412", "0.6436573", "0.63361114", "0.62323993", "0.61345196", "0.61034936", "0.606295", "0.603211", "0.59757894", "0.5902179", "0.5867491", "0.58648187", "0.585393", "0.58271235", "0.58271164", "0.5822173", "0.5784395", "0.577248"...
0.79947287
0
Tests parsing a PHP expression
Тесты парсинга выражения PHP
public function testParsingPhpExpression() { $tokens = [ new Token(TokenTypes::T_PHP_TAG_OPEN, '<?php', 1), new Token(TokenTypes::T_EXPRESSION, 'echo "foo";', 1), new Token(TokenTypes::T_PHP_TAG_CLOSE, '?>', 1) ]; $this->ast->getCurrentNode() -...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testParsingExpression()\n {\n $tokens = [\n new Token(TokenTypes::T_EXPRESSION, 'foo', 1)\n ];\n $this->ast->getCurrentNode()\n ->addChild(new ExpressionNode('foo'));\n $this->assertEquals($this->ast, $this->parser->parse($tokens));\n }", "p...
[ "0.7088678", "0.6580986", "0.623618", "0.6164177", "0.61276937", "0.6010764", "0.59711504", "0.58878875", "0.57848006", "0.5779877", "0.5689867", "0.5666583", "0.5658138", "0.5559046", "0.5556366", "0.55036134", "0.5502416", "0.54473734", "0.54329944", "0.54258084", "0.541893...
0.7822853
0
Tests parsing a sanitized tag
Тестирование парсинга очищенного тега
public function testParsingSanitizedTag() { $tokens = [ new Token(TokenTypes::T_SANITIZED_TAG_OPEN, '{{', 1), new Token(TokenTypes::T_EXPRESSION, 'foo', 1), new Token(TokenTypes::T_SANITIZED_TAG_CLOSE, '}}', 1), ]; $tagNode = new SanitizedTagNode(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testParsingUnsanitizedTag()\n {\n $tokens = [\n new Token(TokenTypes::T_UNSANITIZED_TAG_OPEN, '{{!', 1),\n new Token(TokenTypes::T_EXPRESSION, 'foo', 1),\n new Token(TokenTypes::T_UNSANITIZED_TAG_CLOSE, '!}}', 1),\n ];\n $tagNode = new Unsani...
[ "0.7690629", "0.6535942", "0.65152794", "0.646724", "0.64094126", "0.63268006", "0.6303501", "0.62761045", "0.62529093", "0.62221557", "0.6183478", "0.59321743", "0.59167707", "0.5880348", "0.58641833", "0.58608794", "0.5860806", "0.58581746", "0.57676786", "0.5705838", "0.57...
0.7553081
1
Tests parsing statements surrounded by expressions
Тесты парсинга утверждений, окружённых выражениями
public function testParsingStatementsSurroundedByExpressions() { $tokens = [ new Token(TokenTypes::T_EXPRESSION, 'a', 1), new Token(TokenTypes::T_SANITIZED_TAG_OPEN, '{{', 1), new Token(TokenTypes::T_EXPRESSION, 'b', 1), new Token(TokenTypes::T_SANITIZED_TAG_C...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testParsingExpression()\n {\n $tokens = [\n new Token(TokenTypes::T_EXPRESSION, 'foo', 1)\n ];\n $this->ast->getCurrentNode()\n ->addChild(new ExpressionNode('foo'));\n $this->assertEquals($this->ast, $this->parser->parse($tokens));\n }", "p...
[ "0.7127615", "0.6728833", "0.66969824", "0.6530444", "0.6418755", "0.63891256", "0.6215924", "0.61759776", "0.6067344", "0.59745544", "0.59168065", "0.58589065", "0.5842806", "0.5817042", "0.5804037", "0.57834405", "0.5749936", "0.56861025", "0.5672986", "0.56107664", "0.5577...
0.7801586
0
Tests parsing an unsanitized tag
Тестирование парсинга неочищенного тега
public function testParsingUnsanitizedTag() { $tokens = [ new Token(TokenTypes::T_UNSANITIZED_TAG_OPEN, '{{!', 1), new Token(TokenTypes::T_EXPRESSION, 'foo', 1), new Token(TokenTypes::T_UNSANITIZED_TAG_CLOSE, '!}}', 1), ]; $tagNode = new UnsanitizedTagNode...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testExceptionThrownWithUnclosedUnsanitizedTag()\n {\n $this->expectException(RuntimeException::class);\n $this->parser->parse([new Token(TokenTypes::T_UNSANITIZED_TAG_OPEN, '{{!', 1)]);\n }", "public function testParsingSanitizedTag()\n {\n $tokens = [\n n...
[ "0.7076817", "0.70035046", "0.68770164", "0.6872459", "0.6718784", "0.6704314", "0.6582288", "0.63514304", "0.5932405", "0.58447325", "0.5831277", "0.579108", "0.5784424", "0.5724619", "0.572019", "0.5688166", "0.5660182", "0.5632118", "0.5626975", "0.56245667", "0.56128395",...
0.78540546
0
Category has one WebsiteShareOnCategory.
Категория имеет один WebsiteShareOnCategory.
public function websiteShareOnCategory() { // hasOne(RelatedModel, foreignKeyOnRelatedModel = cate_id, localKey = cate_id) return $this->hasOne('App\WebsiteShareOnCategory','cate_id','cate_id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCategory()\n {\n return $this->hasOne(NewsCategory::className(), ['id' => 'category_id']);\n }", "public function category()\n {\n return $this->hasOne('fooCart\\src\\Category', 'category_id', 'category_id');\n }", "public function category(): HasOne\n {\n ...
[ "0.61733544", "0.6104846", "0.6069041", "0.6049541", "0.5930706", "0.59054744", "0.58798736", "0.5822822", "0.5822822", "0.57783586", "0.57712525", "0.57712525", "0.57712525", "0.5755309", "0.574219", "0.57417893", "0.5739147", "0.5725877", "0.57156736", "0.571346", "0.570097...
0.796353
0
Category has many CategoryProductRelations.
Категория имеет много отношений CategoryProductRelations.
public function categoryProductRelations() { // hasMany(RelatedModel, foreignKeyOnRelatedModel = cate_id, localKey = cate_id) return $this->hasMany('App\CategoryProductRelation','cate_id','cate_id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function products() {\n return $this->hasMany('App\\Product', 'category_id', 'id');\n }", "public function products() {\n return $this->hasMany('App\\Models\\Product', 'category_id', 'id');\n }", "public function categoryProduct(){\n return $this->hasMany(CategoryProduct::class);\n ...
[ "0.75365293", "0.74028045", "0.73917854", "0.7317702", "0.7295011", "0.7272673", "0.72397083", "0.70931435", "0.7025661", "0.70193547", "0.696187", "0.6862123", "0.6825606", "0.65833825", "0.657553", "0.6567236", "0.6566027", "0.6538682", "0.65233684", "0.65141743", "0.650324...
0.74972713
1
$this>_setJs(array( 'pathVars' => '', 'pathTpl' => '', 'arrFolder' => array(), 'strTableSearch' => '', 'strColumnSearch' => '', 'flagEntitySearch' => 0, 'flagAccountSearch' => 0, 'arrSearch' => array( 'idModule' => '', 'numLotNow' => 0, 'strTable' => '', 'arrOrder' => array(), 'arrWhere' => array(), ), ));
$this->_setJs(array( 'pathVars' => '', 'pathTpl' => '', 'arrFolder' => array(), 'strTableSearch' => '', 'strColumnSearch' => '', 'flagEntitySearch' => 0, 'flagAccountSearch' => 0, 'arrSearch' => array( 'idModule' => '', 'numLotNow' => 0, 'strTable' => '', 'arrOrder' => array(), 'arrWhere' => array(), ), ));
protected function _setJs($arr) { global $classSmarty; $vars = $this->getVars(array( 'path' => $arr['pathVars'], )); $rows = $this->getSearch($arr['arrSearch']); $vars = $this->_updateSearch(array( 'vars' => $vars, 'rows' => $rows, )); $vars['portal']['varsNavi'] = array(); $json = json_e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getJS(){\n \n // prepare for jqgrid\n $conf = $this->conf[$this->conf['key'].'.'];\n $conf['url'] = 'index.php?id='.$this->cObj->data['pid'].'&type='.$conf['typeNum'].'&tskey='.$this->conf['key'];\n $conf['pager'] = '#jqgrid-'.$this->uid.'-pager';\n $conf['datatype'] = 'xml';\n $conf['m...
[ "0.6915657", "0.6707993", "0.6632364", "0.65756345", "0.65636283", "0.64884853", "0.648505", "0.6484912", "0.64676976", "0.64343274", "0.64183104", "0.63998747", "0.6312701", "0.6307617", "0.6289995", "0.6271206", "0.6239197", "0.6237788", "0.6237416", "0.62217176", "0.622046...
0.7207897
0
$this>_setDelete(array( 'arrId' => array(), ));
$this->_setDelete(array( 'arrId' => array(), ));
protected function _setDelete($arr) { global $classDb; $dbh = $classDb->getHandle(); global $classCheck; global $varsAccount; global $varsPluginAccountingAccount; global $varsPluginAccountingEntity; if (!$this->_checkCurrent()) { $this->_setSearchDetail(array( 'flagIframe' => 0, )); } $fl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete(){\r\n $id=$_POST['del_row'];\r\n $id=implode(',',$id);\r\n $this->Events_Model->delete($this->table,$id);\r\n}", "public function delete() \n {\n $model = $this->model;\n $input = Input::all(); \n \n $arrayIdDelete = $input[$model::getPrimaryKey()];...
[ "0.66735476", "0.66663104", "0.6618676", "0.6542145", "0.6522986", "0.64785427", "0.64676464", "0.6455282", "0.6441356", "0.6418937", "0.6407675", "0.6396329", "0.6395248", "0.63872117", "0.63611805", "0.636091", "0.6356777", "0.6336735", "0.633555", "0.62716854", "0.6260336"...
0.74769926
0
Get player by account
Получить игрока по аккаунту
public function getPlayer(string $account, bool $withBalance = true): Player;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPlayer();", "public function GetPlayer($username)\n {\n $nono = new db($this->returnType);\n return $nono->Get(\"select * from players where username='$username';\");\n }", "public function getMe()\n {\n return $this->players[$this->myId];\n }", "public fun...
[ "0.7078031", "0.66323304", "0.6574051", "0.6521743", "0.6521743", "0.64439905", "0.6435035", "0.640329", "0.6323766", "0.6296247", "0.61858165", "0.6147653", "0.61404496", "0.6111183", "0.6091138", "0.602993", "0.6009964", "0.6009964", "0.59846777", "0.59846777", "0.59846777"...
0.7278095
0
/ Angular LIBRARY Js End Here / Angular Bootstrap Js start
/ Angular БИБЛИОТЕКА Js Завершается / Angular Bootstrap Js начинается
private function angularBootstrapJs() { $angularBootJs = ''; $angularBootJs .='<!--Angular Bootstrap Js--> <script src="' . $this->baseUrl("../angularJs/core/ui-bootstrap-tpls.min.js") . '"></script> <script src="' . $this->baseUrl("../angularJs/core/ui-bootstrap.min.js") . '"></script> ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function angularBootstrapJs() {\n $angularBootJs = '';\n $angularBootJs .='<!--Angular Bootstrap Js-->\n <script src=\"' . $this->baseUrl(\"../angularJs/core/ui-bootstrap-tpls.min.js\") . '\"></script>\n <script src=\"' . $this->baseUrl(\"../angularJs/core/ui-bootstrap.min.js\")...
[ "0.73437184", "0.6319253", "0.6165575", "0.6158445", "0.5889071", "0.58383226", "0.5703663", "0.57016015", "0.5664902", "0.5654946", "0.54857016", "0.54692155", "0.54610395", "0.5439492", "0.54321647", "0.54265696", "0.542548", "0.53548175", "0.53370076", "0.5319842", "0.5314...
0.7354476
0
Discussions module on_project_object_options event handler
Модуль обсуждений обработчик события on_project_object_options
function discussions_handle_on_project_object_options(&$options, $object, $user) { if(instance_of($object, 'Discussion') && $object->canEdit($user)) { if ($object->getIsPinned()) { $options->addAfter('unpin', array( 'url' => $object->getUnpinUrl(), 'text' => lang('Unpin'), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function options_discussion_add_js()\n {\n }", "public function describe_client_options() {\n echo '<p>The following options configure what URL to access when a post is published in this blog.</p>';\n }", "function harvest_handle_on_project_options(&$options, &$project, &$logged_user)\n{\n\tif(...
[ "0.5404037", "0.5271101", "0.5228284", "0.522513", "0.519314", "0.5160246", "0.5151085", "0.50958025", "0.5053436", "0.50255847", "0.49935886", "0.49288845", "0.49190903", "0.48473862", "0.48279494", "0.4771124", "0.47675234", "0.47559407", "0.47540587", "0.47469974", "0.4740...
0.72194445
0
Define the "web" routes for the application. These routes all receive session state, CSRF protection, etc.
Определите маршруты "web" для приложения. Все эти маршруты получают состояние сессии, защиту от CSRF и т.д.
protected function mapWebRoutes() { $this->mapDefaultWebRoutes(); $this->mapUnauthenticatedWebRoutes(); $this->mapAuthenticatedWebRoutes(); $this->mapAdminAuthenticatedWebRoutes(); $this->mapClientAuthenticatedWebRoutes(); $this->mapPaginationRoutes(); $thi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function mapWebRoutes()\n {\n Route::middleware('web')\n ->namespace($this->namespace)\n ->group(base_path('routes/web.php'));\n }", "protected function mapWebRoutes()\n {\n Route::group(lit_base_path('routes/web.php'));\n }", "protected function mapWebRoutes()\n {\...
[ "0.7653972", "0.7631945", "0.76263565", "0.76263565", "0.76263565", "0.76263565", "0.76263565", "0.76263565", "0.76263565", "0.76263565", "0.76263565", "0.76263565", "0.7625575", "0.7625575", "0.7625575", "0.7624785", "0.7531319", "0.74913883", "0.7476765", "0.7474766", "0.74...
0.7741437
0
getFormatted Returns a formatted string for UI presentation. Examples include: Toronto, Ontatio London, England Egypt Miami, Florida
getFormatted Возвращает отформатированную строку для отображения в интерфейсе. Примеры включают: Торонто, Онтарио Лондон, Англия Египет Майами, Флорида
public function getFormatted(): string { $pieces = array(); $city = $this->getCity(); $region = $this->getRegion(); $country = $this->getCountry(); $countryCode = $this->getCountryCode(); $countryCode = strtoupper($countryCode); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ToFormattedText() {\n $result = 'First Name: '.$this->firstName.'<br />';\n $result .= 'LastName: '.$this->lastName.'<br />';\n $result .= 'email: '.$this->email.'<br />';\n\n if( ! is_null($this->dob ) )\n $result .= 'Date of Birth: '.$this->dob.'<br />';\n\n...
[ "0.6611772", "0.65760624", "0.65293515", "0.64896923", "0.6301652", "0.62687725", "0.61948127", "0.6137249", "0.60361856", "0.5984798", "0.59708625", "0.59282756", "0.59282756", "0.59282756", "0.59261656", "0.5909132", "0.5872617", "0.58665884", "0.58463013", "0.5800825", "0....
0.7315018
0
Delete the item with the given ID from the given table.
Удалите элемент с указанным ID из указанной таблицы.
public function deleteItem(string $table, int $id): int { return $this->find($table)->whereEqual('id', $id)->delete(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($table, $id) {\n $sth = $this->prepare(\"DELETE FROM $table WHERE id = $id\");\n $sth->execute();\n }", "public function deleteItem( $id ) {\n\t}", "public function delete( $table, $id ) {\n\t\t$this->last_error = null;\n\n\t\t$this->fetchAll($table);\n\t\t$all = $this->get_last_...
[ "0.7827379", "0.7518908", "0.75163746", "0.7508031", "0.75033647", "0.7318255", "0.7305653", "0.7305295", "0.71640474", "0.71217865", "0.71070343", "0.7094066", "0.7035627", "0.7031754", "0.70248115", "0.69729906", "0.69729906", "0.69729906", "0.6949397", "0.69197917", "0.690...
0.81337893
0
Display a listing of the TruckTract.
Показать список TruckTract.
public function index() { $trucks = TruckTract::paginate(); return TruckTractResource::collection($trucks); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n $trucks = $this->truck->get();\n\n return view('trucks.index', compact('trucks'))->withTitle('Trucks');\n }", "public function index()\n {\n $this->list_trip();\n }", "public function index()\n {\n $trucks=Truck::all();\n return vi...
[ "0.71402544", "0.70936733", "0.6832219", "0.65987897", "0.6581558", "0.65438527", "0.65164286", "0.6435593", "0.6414053", "0.6406541", "0.6336649", "0.630922", "0.63084567", "0.6297165", "0.6291562", "0.6238374", "0.62378734", "0.6204616", "0.6202351", "0.61984456", "0.619598...
0.77375305
0
Store a newly created TruckTract in storage.
Храните только что созданный TruckTract в хранилище.
public function store(TruckTractRequest $request) { $truck = TruckTract::make($request->all()); $truck->carrier_id = $request->carrier_id; // $truck->device_id = $request->device_id; $truck->save(); $truck->assignDevice(Device::findOrFail($request->device_id)); retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store(TruckRequest $request)\n {\n $this->truck->create($request->all());\n return redirect('trucks')->with([\n 'flash_message' => 'A new truck has been created!',\n ]);\n }", "public function store()\n {\n /*$this->validate([\n 'title' =...
[ "0.6490029", "0.63749796", "0.5999158", "0.59943354", "0.59498346", "0.59220546", "0.5876626", "0.5869118", "0.58626074", "0.58626074", "0.58626074", "0.58602726", "0.5850313", "0.581576", "0.5803185", "0.5803185", "0.5803185", "0.5803185", "0.5803185", "0.5803185", "0.580318...
0.71762973
0
Sets the cache revalidation flag.
Устанавливает флаг повторной проверки кэша.
public function setRevalidate(bool $value) { $this->revalidate = $value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setCaching(bool $flag)\n {\n $this->cache = $flag;\n }", "function setValidateAgain ($validateAgain) {\r\n $this->_validateAgain = (bool)$validateAgain;\r\n }", "function setCache($cache) {\n if ($cache !== ($oldCache = $this->cache)) {\n $this->cache = ...
[ "0.65958506", "0.6509163", "0.6339599", "0.63356894", "0.6125721", "0.6119076", "0.6061337", "0.6048235", "0.59386766", "0.5815232", "0.5813845", "0.5807932", "0.5798036", "0.5758459", "0.57129544", "0.5695977", "0.56896126", "0.5686173", "0.5659684", "0.5647168", "0.56142926...
0.7301621
0
Returns the current response ETag value.
Возвращает текущее значение ETag ответа.
public function getETag() : string { return $this->ETag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getETag()\n {\n return $this->_headers[ODataConstants::HTTPRESPONSE_HEADER_ETAG];\n }", "public static function getETag() {}", "public function getEtag()\n {\n return $this->etag;\n }", "public function getEtag()\n {\n return $this->etag;\n }", "public...
[ "0.8144781", "0.7832173", "0.7772418", "0.7772418", "0.7772418", "0.7772418", "0.7772418", "0.7772418", "0.7772418", "0.7772418", "0.755168", "0.740668", "0.6573374", "0.64428544", "0.6238767", "0.62066615", "0.6118121", "0.61051154", "0.60943407", "0.6036677", "0.5999116", ...
0.7921639
1
Stores the restore config as yml and by given name defined in job
Хранит конфигурацию восстановления в формате yml и определяет её имя, заданное в задании
public function storeRestoreConfig(RestoreJob $job, array $data);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function restore($name) \n {\n // Copy the backup config file nd write the config values to the current config\n return copy($this->files[$name]['file_path'].'bak', $this->files[$name]['file_path']);\n }", "public function save()\n {\n $config_content = file_get_contents($thi...
[ "0.6172373", "0.56435037", "0.545457", "0.53883547", "0.5220646", "0.51434946", "0.513365", "0.5122924", "0.51074976", "0.5084515", "0.50698566", "0.5062503", "0.5029822", "0.49935362", "0.4992858", "0.49293962", "0.4860095", "0.48567545", "0.48336267", "0.48173013", "0.47847...
0.7181794
0
Symlink given path to latest in file system
Создать символическую ссылку на путь в файловой системе
public function symlinkLatestBackup($path);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createSymlink()\n {\n if (!File::exists(public_path('theme'))) {\n $folder = $this->active()->get('namespace');\n\n if (File::exists(theme_path(\"{$folder}/public\"))) {\n // Delete existing symlink if present\n File::delete(public_pa...
[ "0.578366", "0.5777974", "0.57756996", "0.57756996", "0.5737439", "0.57171214", "0.5693361", "0.56610405", "0.55402416", "0.5534924", "0.54666185", "0.5437523", "0.53929496", "0.5317567", "0.52793354", "0.52425486", "0.52300245", "0.5204866", "0.51956517", "0.51622427", "0.51...
0.8288752
0
Loads a file and parses the yaml content into an array
Загружает файл и парсит содержимое yaml в массив
public function loadYamlConfig($filepath);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function parseYamlToArray(): array\n {\n // Get the file contents\n $yaml = (file_get_contents($this->filePath));\n\n // Create an array of the lines in the yaml file\n $lines = explode(PHP_EOL, $yaml);\n\n // Initialize the array\n $array = [];\n\n // Loo...
[ "0.75977933", "0.7121287", "0.697036", "0.6869515", "0.683605", "0.6696271", "0.6633742", "0.6614876", "0.6448445", "0.638967", "0.63781065", "0.6295298", "0.62704974", "0.62660986", "0.62185574", "0.61772156", "0.60896844", "0.6071653", "0.6040868", "0.6039038", "0.60329026"...
0.7275121
1
Loads the mappings that are located in the filesystem of stored backup
Загружает отображения, находящиеся в файловой системе хранимой резервной копии
public function loadMappings($filepath);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function _loadMappingFile($file);", "abstract protected function _loadMappingFile($file);", "public function load()\n {\n foreach ($this->aMappingConfiguration as $sLinkedEntity => $aMappingSetup) {\n $this->loadMapped(new $sLinkedEntity());\n }\n }", "public...
[ "0.6554071", "0.6554071", "0.62022865", "0.5865084", "0.5814947", "0.5800645", "0.56852984", "0.56852984", "0.5676323", "0.5507039", "0.55041534", "0.54700106", "0.54523396", "0.5421894", "0.5416631", "0.54122347", "0.5384894", "0.53806424", "0.5374201", "0.53559923", "0.5354...
0.7238527
0
Loads all files for a index/type
Загружает все файлы для индекса/типа
public function loadDataFiles($path, $index, $type);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionIndexFiles()\n {\n $manager = new Manager(['module' => $this->module]);\n $manager->indexAll();\n }", "function _loadIndex () \n {\n $this->_enterSection('_loadIndex');\n \n $index = array();\n \n $a = strcspn ($this->_options['dsn']...
[ "0.7026701", "0.6680536", "0.647908", "0.6445907", "0.6317242", "0.6317242", "0.6317242", "0.6315559", "0.6315559", "0.6302977", "0.6271985", "0.6227512", "0.61374295", "0.6104281", "0.60813004", "0.6061601", "0.60111076", "0.59672964", "0.5876414", "0.5861103", "0.5832739", ...
0.7991931
0
Returns the Video publications of a single user.
Возвращает видеопубликации одного пользователя.
public function getVideoPublications($user) { return $this->getByCategoryType('Video', $user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_user_video($user_id){\n\n $user_id = intval($user_id);\n $uid = $this->get_uid($user_id);\n\n $query = \"SELECT `id`, `source`, `uid`, `filename_or_link` FROM `user_video` WHERE `uid`='$uid';\";\n\n $user_videos = [];\n\n if ($res = sql::$con->query($query, MY...
[ "0.7228334", "0.7021301", "0.69762707", "0.6801985", "0.67376596", "0.6713883", "0.6687975", "0.6558999", "0.6522971", "0.64891046", "0.6422546", "0.6421629", "0.6348982", "0.63413185", "0.63228333", "0.62221646", "0.60560805", "0.60472655", "0.59856695", "0.5918594", "0.5916...
0.85098314
0
Returns the Music publications of a single user.
Возвращает музыкальные публикации одного пользователя.
public function getMusicPublications($user) { return $this->getByCategoryType('Music', $user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllPublications($user)\n {\n return $this->getByUser($user);\n }", "public function getPhotoPublications($user)\n {\n return $this->getByCategoryType('Photo', $user);\n }", "public function songsLikedByUser()\n {\n $likes = \\App\\SongLike::where('user_id'...
[ "0.68307984", "0.6595469", "0.63264877", "0.6235633", "0.601821", "0.59909916", "0.5940896", "0.5909756", "0.5896671", "0.5875045", "0.5785531", "0.5772517", "0.5732526", "0.57078344", "0.56695956", "0.56210095", "0.5611185", "0.5589056", "0.5569945", "0.5565817", "0.5557683"...
0.8476468
0
Returns the Photo publications of a single user.
Возвращает фотопубликации одного пользователя.
public function getPhotoPublications($user) { return $this->getByCategoryType('Photo', $user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function people_getPublicPhotos ($user_id, $per_page = 25, $page = 1, $safe_search = 1, $extras = NULL) {\n\t\t$params = array();\n\t\t$params['method'] = 'flickr.people.getPublicPhotos';\n\t\t$params['user_id'] = $user_id;\n\t\t$params['per_page'] = $per_page;\n\t\t$params['page'] = $page;\n\t\t$params['safe_sear...
[ "0.7491937", "0.7057461", "0.69348145", "0.6791363", "0.6740359", "0.67056006", "0.66756916", "0.65588015", "0.64682627", "0.64099514", "0.6397173", "0.63524455", "0.6281825", "0.62780744", "0.62562966", "0.6237273", "0.6230155", "0.622764", "0.62268496", "0.6218996", "0.6192...
0.8635473
0
Returns the Location publications of a single user.
Возвращает публикации Location пользователя.
public function getLocationPublications($user) { return $this->getByCategoryType('Location', $user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllPublications($user)\n {\n return $this->getByUser($user);\n }", "public function getUserLocation();", "public function getPhotoPublications($user)\n {\n return $this->getByCategoryType('Photo', $user);\n }", "public function location()\n {\n return $t...
[ "0.6679474", "0.64557445", "0.62106085", "0.60180765", "0.57874966", "0.5772487", "0.5748536", "0.5692362", "0.5658708", "0.56136525", "0.5592556", "0.5553232", "0.5533843", "0.5524934", "0.55219233", "0.5494967", "0.5472085", "0.54688835", "0.5438746", "0.5397855", "0.537094...
0.8487102
0
Returns the Other publications of a single user.
Возвращает другие публикации одного пользователя.
public function getOtherPublications($user) { return $this->getByCategoryType('Other', $user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findOther($user): array\n {\n return $this->createQueryBuilder('c')\n ->where('c.creator != :user')\n ->andWhere('c.private = false')\n ->setParameter('user', $user )\n ->setMaxResults(4)\n ->getQuery()\n ->getResult();\n ...
[ "0.64782584", "0.6306442", "0.6151108", "0.59747183", "0.5947535", "0.5822453", "0.5790481", "0.5701683", "0.56842685", "0.5630005", "0.56142914", "0.561423", "0.55688524", "0.55590194", "0.55492723", "0.5546671", "0.5541457", "0.553686", "0.545307", "0.543266", "0.5420201", ...
0.82336086
0
Returns all publications of a single user.
Возвращает все публикации одного пользователя.
public function getAllPublications($user) { return $this->getByUser($user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPhotoPublications($user)\n {\n return $this->getByCategoryType('Photo', $user);\n }", "public function publishedBy($user_id)\n {\n return $this->model->where(compact('user_id'))->get();\n }", "public function getAllPublications() :array {\n $query='SELECT * F...
[ "0.70083964", "0.6829691", "0.68073297", "0.6737207", "0.66569704", "0.65738195", "0.65098786", "0.63204175", "0.62836444", "0.6186759", "0.61120677", "0.6096917", "0.6096917", "0.6031839", "0.60034776", "0.5958241", "0.59226537", "0.5920754", "0.59165955", "0.590649", "0.587...
0.8398507
0
Specifies the access control rules. This method is used by the 'accessControl' filter.
Устанавливает правила контроля доступа. Этот метод используется фильтром 'accessControl'.
public function accessRules() { return array( array('allow', 'actions'=>array('login','error','logout'), 'users'=>array('*'), ), array('allow', // allow authenticated user to perform 'create' and 'updat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function accessRules()\n\t{\n\t\treturn array(\n\t\t\tarray('allow', // allow admins only\n\t\t\t\t'users'=>Yii::app()->getModule('user')->getAdmins(),\n\t\t\t),\n\t\t\tarray('allow',\n\t\t\t\t\t\t/*'users' => array(\"?\"),*/\n 'expression' => array($this,'isLogedInOrHasKey'),\n ),\n\t\t\tar...
[ "0.7228763", "0.70905805", "0.7083254", "0.7078831", "0.7078758", "0.7078758", "0.7071383", "0.7071383", "0.70645475", "0.70633864", "0.70073724", "0.7003613", "0.70006496", "0.6997435", "0.698881", "0.69828933", "0.6975965", "0.6973628", "0.6971721", "0.6969118", "0.69682443...
0.7199851
1
/ Fungsi ini menginsertkan data ke dalam tabel pokemon. Parameter $data berisi data yang akan diinsertkan dalam bentuk associative array yang terdiri dari pasangan key=>value. Key adalan nama field, sedangkan value adalah nilai field
Этот функция вставляет данные в таблицу pokemon. Параметр $data содержит данные, которые будут вставлены в виде ассоциативного массива, состоящего из пар ключ=>значение. Ключ представляет собой имя поля, а значение — значение поля.
public function insert($data){ // TODO: Modif bagian ini $this->db->insert('pokemon', $data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function insertPelatihData($data){\n\t\t\t$id_propinsi = $data['id_propinsi'];\n\t\t\t$id_cabor = $data['id_cabor'];\n\t\t\t$pelatih = $data['pelatih'];\n $id_jk = $data['id_jk']; \n\t\t\t$alamat = $data['alamat']; \n\t\t\t\n $query = \"Insert into tbl_pelatih\n s...
[ "0.7719132", "0.7715798", "0.7594088", "0.74658656", "0.7414373", "0.73584265", "0.7336784", "0.7336276", "0.73210496", "0.7268005", "0.72430235", "0.7226111", "0.722541", "0.71888554", "0.7180806", "0.7152618", "0.71395487", "0.71135896", "0.7106051", "0.7098018", "0.7088778...
0.81122524
0
/ Fungsi ini mengupdate data ke dalam tabel pokemon yang memiliki id=$id. Parameter $data berisi data yang akan diinsertkan dalam bentuk associative array yang terdiri dari pasangan key=>value. Key adalan nama field, sedangkan value adalah nilai field
/ Эта функция обновляет данные в таблице pokemon, имеющей id=$id. Параметр $data содержит данные, которые будут вставлены в виде ассоциативного массива, состоящего из пар ключ=>значение. Ключ представляет собой имя поля, а значение — значение поля
public function update($data, $id){ // TODO: Modif bagian ini $this->db->where('id', $id); $this->db->update('pokemon', $data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update(array $data,$id);", "public function update($table, $data, $id) {\n ksort($data);\n\n $fieldDetails = null;\n foreach($data as $key => $value) {\n $fieldDetails .= \"`$key` = :$key,\";\n }\n\n $fieldDetails = rtrim($fieldDetails, ',');\n\n $sth = $this->prepare(\"UPD...
[ "0.7779599", "0.7722161", "0.76445174", "0.7618924", "0.7618924", "0.76027757", "0.75605583", "0.75583416", "0.7508149", "0.7508149", "0.74330646", "0.74326295", "0.7426929", "0.74160767", "0.7403957", "0.7372681", "0.7363193", "0.7359774", "0.7357888", "0.73563534", "0.73360...
0.83605504
0
grabs all guests from the database and puts them in ana array of objects
забирает всех гостей из базы данных и помещает их в массив объектов
public function showGuests(){ $sql = "SELECT * FROM " . $this->tblGuest; //execute the query $query = $this->dbConnection->query($sql); //if the query failed if(!$query) { header("Location: index.php?action=error&message=No guest was found."); exit; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function all()\n {\n return Guests::all();\n }", "public function getAllGuests ($data)\n {\n //$columns = $data['columns'];\n $order = $data['order'][0];\n $columns = [ \"name\", \"city\", \"state\", \"email\", \"mobile_no\" ];\n $column_name = $columns[$order['column']...
[ "0.69462174", "0.6508767", "0.63852787", "0.6362764", "0.6192368", "0.6188804", "0.618514", "0.61578417", "0.61557776", "0.6137923", "0.6130227", "0.6111321", "0.6092686", "0.6079987", "0.60543424", "0.6051006", "0.6026215", "0.60250866", "0.60235345", "0.60131276", "0.600853...
0.78228486
0
Get the editor href for a given file and line, if available.
Получите href редактора для заданного файла и строки, если он доступен.
protected function getEditorHref($filePath, $line) { if (empty(config('debugbar.editor'))) { return null; } if (empty($this->editors[config('debugbar.editor')])) { throw new InvalidArgumentException( 'Unknown editor identifier: ' . config('debugbar.ed...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function editorUri($file, $line = null)\n {\n if (Cheatsheet::$editor && $file && is_file($file)) {\n return strtr(Cheatsheet::$editor, ['%file' => rawurlencode($file), '%line' => $line ? (int) $line : '']);\n }\n }", "public static function editorLink($file, $line = ...
[ "0.78174037", "0.75892186", "0.63798004", "0.5777892", "0.54868716", "0.5480049", "0.54014534", "0.5349771", "0.5329979", "0.5320148", "0.53180486", "0.53180486", "0.53177047", "0.5215016", "0.5206717", "0.5180178", "0.51710784", "0.5140824", "0.5110529", "0.51065254", "0.508...
0.7881529
0
Hidden admin page to set draft status to specific post type/language.
Скрытая админ-страница для установки статуса черновика для определенного типа поста/языка.
public function set_draft_single_action() { ?> <div class="wrap"> <h1>WPGlobus :: <?php esc_html_e( 'Set Draft', 'wpglobus-plus' ); ?></h1> <hr /> <?php $ok_to_process = true; // Check for required parameters. if ( empty( $_GET['lang'] ) || empty( $_GET['post_type'] ) ) { esc_html_e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAsDraft();", "protected function set_draft_bulk_actions() {\n\t\t\t\n\t\t\t$post_id = '';\n\t\t\tif ( ! empty( $_GET['post_id'] ) ) {\n\t\t\t\t$post_id = (int) sanitize_text_field($_GET['post_id']);\n\t\t\t}\n\t\t\t?>\n\t\t\t<div class=\"wrap\">\n\t\t\t\t<h1>WPGlobus :: <?php esc_html_e( 'Set ...
[ "0.6924878", "0.6659406", "0.6413369", "0.628576", "0.628576", "0.628576", "0.62780744", "0.61363184", "0.61242265", "0.6101883", "0.60754114", "0.6048167", "0.60429823", "0.60427845", "0.6027057", "0.5995915", "0.59822345", "0.59810597", "0.597033", "0.5947639", "0.5932615",...
0.7610402
0
Hidden admin page to output results of bulk setting draft status.
Скрытая админ-страница для вывода результатов массового установки статуса черновика.
protected function set_draft_bulk_actions() { $post_id = ''; if ( ! empty( $_GET['post_id'] ) ) { $post_id = (int) sanitize_text_field($_GET['post_id']); } ?> <div class="wrap"> <h1>WPGlobus :: <?php esc_html_e( 'Set Draft', 'wpglobus-plus' ); ?></h1> <hr /> <?php $params = array(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set_draft_single_action() {\n\t\t\t?>\n\t\t\t<div class=\"wrap\">\n\t\t\t\t<h1>WPGlobus :: <?php esc_html_e( 'Set Draft', 'wpglobus-plus' ); ?></h1>\n\t\t\t\t<hr />\n\t\t\t\t<?php\n\n\t\t\t\t$ok_to_process = true;\n\n\t\t\t\t// Check for required parameters.\n\t\t\t\tif ( empty( $_GET['lang'] ) || ...
[ "0.67520326", "0.6323195", "0.6098542", "0.60653293", "0.60354483", "0.6009865", "0.59990287", "0.5968379", "0.5950524", "0.5931915", "0.58954626", "0.585014", "0.5783244", "0.576814", "0.57642376", "0.5727778", "0.57269996", "0.572662", "0.5723115", "0.57028604", "0.56909996...
0.7142925
0
Clean up output of stylesheet tags
Очистить вывод меток стилей
function sw_clean_style_tag($input) { preg_match_all("!<link rel='stylesheet'\s?(id='[^']+')?\s+href='(.*)' type='text/css' media='(.*)' />!", $input, $matches); $media = $matches[3][0] === 'print' ? ' media="print"' : ''; return '<link rel="stylesheet" href="' . esc_url( $matches[2][0] ) . '"' . $media . '>' . "...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fs_clean_style_tag( $input ) {\r\n\tpreg_match_all( \"!<link rel='stylesheet'\\s?(id='[^']+')?\\s+href='(.*)' type='text/css' media='(.*)' />!\", $input, $matches );\r\n\t// Only display media if it's print\r\n\t$media = $matches[3][0] === 'print' ? ' media=\"print\"' : '';\r\n\treturn '<link rel=\"styles...
[ "0.7233164", "0.70487666", "0.69583315", "0.6920292", "0.68972045", "0.67938346", "0.67189586", "0.6492633", "0.62799495", "0.62426597", "0.62313753", "0.6227686", "0.6202775", "0.6201512", "0.6188893", "0.61750656", "0.6172255", "0.61656153", "0.61656153", "0.61656153", "0.6...
0.7361643
0
This closes the form
Это закрывает форму
function closeForm() { # Open form and configure echo "</form>"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function close()\n\t{\n\t\treturn '</form>';\n\t}", "static function closeForm()\n {\n echo '</form>'.PHP_EOL;\n }", "public function close()\n {\n return '</form>';\n }", "public function close()\n {\n return '</form>';\n }", "public function close() {\n\t\tre...
[ "0.825081", "0.8160708", "0.81497127", "0.81497127", "0.81237364", "0.80452025", "0.7982476", "0.7869709", "0.78319377", "0.7794086", "0.7574034", "0.7501565", "0.74894893", "0.74258375", "0.73170304", "0.716834", "0.6862789", "0.68613833", "0.6823914", "0.6785757", "0.677535...
0.8445237
0
end method vName($name) Validate Name Method This method function validates alpha characters
end method vName($name) Метод проверки имени Этот метод проверяет наличие буквенных символов
function vAlpha( $name ) { return ctype_alpha( $name ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function validateName($name) {\n if (preg_match(\"/^[a-zA-Z]*$/\",$name))\n return true;\n else\n return false;\n }", "function validName($name)\r\n {\r\n $name = str_replace(' ', '', $name);\r\n return !empty($name) && ctype_alpha($name);\r\n }", "function validNam...
[ "0.80756146", "0.7972373", "0.7971554", "0.790553", "0.7826933", "0.7824815", "0.7800675", "0.7800347", "0.7778845", "0.77771544", "0.7695056", "0.76348805", "0.7585482", "0.7506745", "0.7496989", "0.7480855", "0.73191863", "0.7316122", "0.7265886", "0.7163066", "0.7149014", ...
0.80704457
1
end method vName($name) Validate Long Name Method This method function validates longer names (like combined last names) Names must be between 1 40 characters long and only contain a combination of letters (caseinsensitive) the space, a period, an apostrophe, and a hyphen
конец метода vName($name) Метод проверки длинного имени Этот метод проверяет более длинные имена (например, комбинированные фамилии) Имена должны быть длиной от 1 до 40 символов и содержать только комбинацию букв (независимо от регистра), пробел, точку, апостроф и дефис
function vLongName( $name ) { return preg_match ('/^[A-Z \',.-]{1,50}$/i', $name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function ValidateName($name){\n if (empty($name)){ //checks if empty\n $this->valid = False;\n }else if (strlen($name)>= 30){ //checks max length\n $this->valid = False;\n }else if(!preg_match(\"/^[a-zA-Z ]*$/\",$name)){ //checks format\n $this->valid =...
[ "0.74031585", "0.7221825", "0.7213831", "0.69535005", "0.6935333", "0.69202834", "0.68226326", "0.6760795", "0.67213297", "0.67172974", "0.6665835", "0.66642076", "0.66556084", "0.66169167", "0.6549225", "0.654128", "0.65393084", "0.65201896", "0.6501477", "0.64680374", "0.64...
0.85528654
0
end method vName($name) Validate Full Name Method This method function validates full names Names must be between 1 750 characters ( The longest name in the world is a little under 750 characters! ) long and only contain a combination of letters (caseinsensitive) the space, a period, an apostrophe, and a hyphen
конец метода vName($name) Метод проверки полного имени Этот метод проверяет полные имена Имена должны быть длиной от 1 до 750 символов (Самое длинное имя в мире чуть менее 750 символов!) и содержать только комбинацию букв (независимо от регистра), пробел, точку, апостроф и дефис
function vFullName( $name ) { return preg_match ('/^[A-Z \',.-]{1,750}$/i', $name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function vLongName( $name ) \r\n\t\t{\r\n\t\t\t return preg_match ('/^[A-Z \\',.-]{1,50}$/i', $name);\r\n\t\t\t\t\t\t \r\n\t\t}", "function vName( $name ) \r\n\t\t{\t \r\n\t\t\t\t\r\n\t\t\t\treturn preg_match (\"/^[a-zA-ZàáâäãåąćęèéêëìíîïłńòóôöõøùúûüÿýżźñçčšžÀÁÂÄÃÅĄĆĘÈÉÊËÌÍÎÏŁŃÒÓÔÖÕØÙÚÛÜŸÝŻŹÑßÇŒÆČŠŽ∂ð ,.'-]+$/...
[ "0.7977524", "0.7382228", "0.72816604", "0.72714263", "0.71109056", "0.7055057", "0.7000011", "0.693565", "0.6894662", "0.68716913", "0.6851824", "0.683465", "0.6811133", "0.6797025", "0.675656", "0.6686774", "0.661997", "0.65835583", "0.6575701", "0.65669715", "0.6565743", ...
0.7898668
1
end method vAlphanumeric( $string ) Sanitize Alphanumeric Method This method sanitize alphanumeric strings
end method vAlphanumeric( $string ) Метод очистки алфаванумерических строк Этот метод очищает алфаванумерические строки
function sAlphanumeric( $string ) { return preg_replace( '/[^a-zA-Z0-9]/', '', $string ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function vAlphanumeric( $string )\r\n\t\t{\r\n\t\t\treturn ctype_alnum ( $string );\r\n\t\t\t\t\r\n\t\t}", "function filter_alphanum($input) {\n return preg_replace(\"/[^a-zA-Z0-9]+/\", \"\", $input);\n}", "function is_alphanumeric($string, $min_length = 0, $max_length = 0){\r\n //$ret = _is_valid($strin...
[ "0.8472854", "0.75830704", "0.7570652", "0.7542457", "0.75387424", "0.7475464", "0.74378425", "0.73478067", "0.7302982", "0.72903717", "0.7266861", "0.72071445", "0.70685077", "0.70604885", "0.6986772", "0.698119", "0.6932596", "0.6925659", "0.6913565", "0.6898145", "0.689441...
0.82299244
1
function vProxy() Validate username Method This method function validates usernames only az, AZ, 09, and underscores Minimum 2 character maximum 30 characters (email address may be more) Size limit should match the restrictions on those same values in the database columns
Функция vProxy() Проверка имени пользователя Метод функции проверяет имена пользователей, состоящие только из букв az, AZ, цифр 09 и подчеркиваний Минимум 2 символа, максимум 30 символов (адрес электронной почты может быть длиннее) Ограничение по размеру должно соответствовать ограничениям на те же значения в столбцах ...
function vUsername( $username ) { return preg_match( '/^[a-zA-Z\d_@.]{2,30}$/i', $username ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function validateUsername() {\r\n $val = trim($this->data['username');\r\n \r\n if( empty($val) ) { \r\n $this->addError('username', 'username cannot be empty');\r\n } else {\r\n if(preg_match('/^[a-aA-Z0-9]{6,12}$/', $val)) {\r\n ...
[ "0.7980176", "0.77740335", "0.7581789", "0.7460802", "0.7457771", "0.74136335", "0.73682904", "0.7358264", "0.7311484", "0.7268704", "0.7244318", "0.72025174", "0.71616274", "0.7113548", "0.7079885", "0.70726943", "0.70674807", "0.70264596", "0.70264596", "0.69761264", "0.692...
0.78048486
1
end function vSex ( $sex ) This method sanitizes a persons sex
end function vSex ( $sex ) Этот метод очищает пол человека
function sSex ( $sex ) { return strtolower(substr($sex, 0, 1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function vSex ( $sex ) \r\n\t\t{\r\n\t\t\t# Strip string down to first character\r\n\t\t\t$sex = strtolower( substr( $sex, 0, 1) );\r\n\t\t\t\r\n\t\t\t# Checks if result is 'f' or 'm'\r\n\t\t\tif ( $sex != \"f\" OR $sex != \"m\" )\r\n\t\t\t\t$sex = true;\r\n\t\t\t\t\r\n\t\t\telse \r\n\t\t\t\t$sex = false;\r\n\t\t...
[ "0.7612771", "0.6398746", "0.6389797", "0.6275567", "0.60297316", "0.60297316", "0.60242575", "0.60242575", "0.60242575", "0.60242575", "0.60242575", "0.59680015", "0.5952877", "0.5948939", "0.58530843", "0.5714295", "0.56004864", "0.5535462", "0.54754174", "0.5460379", "0.54...
0.7483746
1
Tests the setAvecMiseEnSomm() method.
Проверяет метод setAvecMiseEnSomm().
public function testSetAvecMiseEnSomm() { $obj = new AppelsEnCours(); $obj->setAvecMiseEnSomm(true); $this->assertEquals(true, $obj->getAvecMiseEnSomm()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetSexe() {\n\n $obj = new Employes();\n\n $obj->setSexe(\"sexe\");\n $this->assertEquals(\"sexe\", $obj->getSexe());\n }", "public function testSetIndemnSupp() {\n\n $obj = new AttestationCacm();\n\n $obj->setIndemnSupp(true);\n $this->assertEqual...
[ "0.5617144", "0.53895754", "0.5128465", "0.50769323", "0.5073718", "0.5061851", "0.5042126", "0.49946684", "0.49723187", "0.49712935", "0.49638367", "0.49544883", "0.49345925", "0.49234295", "0.49031743", "0.48744994", "0.48641002", "0.4832173", "0.48278365", "0.48184556", "0...
0.754678
0
Tests the setCodeClient() method.
Проверяет метод setCodeClient().
public function testSetCodeClient() { $obj = new AppelsEnCours(); $obj->setCodeClient("codeClient"); $this->assertEquals("codeClient", $obj->getCodeClient()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetCodeClient() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setCodeClient(\"codeClient\");\n $this->assertEquals(\"codeClient\", $obj->getCodeClient());\n }", "public function testSetCodeClient() {\n\n $obj = new Materiels();\n\n $obj->setCodeCli...
[ "0.8287111", "0.82676274", "0.80846804", "0.7582541", "0.70428914", "0.70224595", "0.67550594", "0.67206407", "0.67206407", "0.67179495", "0.67179495", "0.67179495", "0.6610563", "0.6610563", "0.6610563", "0.6551113", "0.65487534", "0.6543593", "0.6516408", "0.64265424", "0.6...
0.8631553
0
Tests the setCodeCollaborateurDest() method.
Проверяет метод setCodeCollaborateurDest().
public function testSetCodeCollaborateurDest() { $obj = new AppelsEnCours(); $obj->setCodeCollaborateurDest("codeCollaborateurDest"); $this->assertEquals("codeCollaborateurDest", $obj->getCodeCollaborateurDest()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetCodeLiaisonDest() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeLiaisonDest(\"codeLiaisonDest\");\n $this->assertEquals(\"codeLiaisonDest\", $obj->getCodeLiaisonDest());\n }", "public function testSetCodeCollaborateur() {\n\n $obj = new FichesControlesE...
[ "0.76160085", "0.7205738", "0.71999377", "0.7127179", "0.69352776", "0.66217625", "0.6529964", "0.63375586", "0.62429214", "0.6156055", "0.60985494", "0.60008144", "0.590925", "0.589721", "0.5831031", "0.58237517", "0.58209634", "0.58125633", "0.5786191", "0.5776098", "0.5770...
0.8647756
0
Tests the setCodeCollaborateurEntrant() method.
Проверяет метод setCodeCollaborateurEntrant().
public function testSetCodeCollaborateurEntrant() { $obj = new AppelsEnCours(); $obj->setCodeCollaborateurEntrant("codeCollaborateurEntrant"); $this->assertEquals("codeCollaborateurEntrant", $obj->getCodeCollaborateurEntrant()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetCodeCollaborateur() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setCodeCollaborateur(\"codeCollaborateur\");\n $this->assertEquals(\"codeCollaborateur\", $obj->getCodeCollaborateur());\n }", "public function testSetCodeCollaborateurRedir() {\n\n $obj...
[ "0.7976614", "0.7534987", "0.7306632", "0.724139", "0.7230141", "0.6896255", "0.68764853", "0.6774421", "0.66592675", "0.66131216", "0.65850556", "0.65732026", "0.65513074", "0.6537581", "0.6484763", "0.6471101", "0.6466482", "0.64571625", "0.6445382", "0.64311", "0.64294887"...
0.8895324
0
Tests the setCodeCollaborateurRedir() method.
Тестирует метод setCodeCollaborateurRedir().
public function testSetCodeCollaborateurRedir() { $obj = new AppelsEnCours(); $obj->setCodeCollaborateurRedir("codeCollaborateurRedir"); $this->assertEquals("codeCollaborateurRedir", $obj->getCodeCollaborateurRedir()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetCodeCollaborateur() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setCodeCollaborateur(\"codeCollaborateur\");\n $this->assertEquals(\"codeCollaborateur\", $obj->getCodeCollaborateur());\n }", "public function testSetParcCodeRemorque() {\n\n $obj = new...
[ "0.79168737", "0.733127", "0.7093091", "0.69297284", "0.6919496", "0.69079167", "0.6812629", "0.67833877", "0.6747891", "0.67102665", "0.6637744", "0.6615478", "0.6544176", "0.6535499", "0.6513321", "0.65067834", "0.64785546", "0.6387829", "0.63466144", "0.63014776", "0.62970...
0.8663992
0
Tests the setCodeProduit() method.
Проверяет метод setCodeProduit().
public function testSetCodeProduit() { $obj = new AppelsEnCours(); $obj->setCodeProduit("codeProduit"); $this->assertEquals("codeProduit", $obj->getCodeProduit()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetCode() {\n\n $obj = new Collaborateurs();\n\n $obj->setCode(\"code\");\n $this->assertEquals(\"code\", $obj->getCode());\n }", "public function testSetCodeEquipe() {\n\n $obj = new PointBonTrav();\n\n $obj->setCodeEquipe(\"codeEquipe\");\n $this...
[ "0.72842157", "0.71684295", "0.7076179", "0.68811", "0.6808902", "0.6796815", "0.67744434", "0.67634887", "0.6761245", "0.67569524", "0.6748901", "0.67243755", "0.67243755", "0.6692446", "0.6624918", "0.65564424", "0.65294427", "0.65267134", "0.6485502", "0.64636153", "0.6440...
0.8571112
0
Tests the setCompteurTemps() method.
Тестирует метод setCompteurTemps().
public function testSetCompteurTemps() { $obj = new AppelsEnCours(); $obj->setCompteurTemps(10); $this->assertEquals(10, $obj->getCompteurTemps()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetPasSaisieDesTemps() {\n\n $obj = new Collaborateurs();\n\n $obj->setPasSaisieDesTemps(true);\n $this->assertEquals(true, $obj->getPasSaisieDesTemps());\n }", "public function testSetTempsPasse() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setTempsPasse...
[ "0.6966492", "0.66556805", "0.6475218", "0.6467856", "0.6422519", "0.624459", "0.61778104", "0.61338323", "0.61137927", "0.5850839", "0.5702462", "0.5599761", "0.5565481", "0.5564484", "0.5520471", "0.55104613", "0.54046", "0.53873384", "0.5379165", "0.5363112", "0.53501004",...
0.8214956
0
Tests the setConfidentiel() method.
Тестирует метод setConfidentiel().
public function testSetConfidentiel() { $obj = new AppelsEnCours(); $obj->setConfidentiel(true); $this->assertEquals(true, $obj->getConfidentiel()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetNiveauConfidentialite() {\n\n $obj = new Employes();\n\n $obj->setNiveauConfidentialite(\"niveauConfidentialite\");\n $this->assertEquals(\"niveauConfidentialite\", $obj->getNiveauConfidentialite());\n }", "public function testSetMessagesConfidentiels() {\n\n ...
[ "0.7019851", "0.6593965", "0.6490532", "0.6363675", "0.6243892", "0.6172747", "0.6168492", "0.60977024", "0.6067316", "0.604888", "0.60207456", "0.59562165", "0.595564", "0.59555244", "0.59554476", "0.5901317", "0.58861804", "0.5882842", "0.5873057", "0.5849589", "0.58290535"...
0.7908356
0
Tests the setConsequence() method.
Тестирует метод setConsequence().
public function testSetConsequence() { $obj = new AppelsEnCours(); $obj->setConsequence("consequence"); $this->assertEquals("consequence", $obj->getConsequence()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetTypeControle() {\n\n $obj = new ChantiersFrequencesControlesQualite();\n\n $obj->setTypeControle(\"typeControle\");\n $this->assertEquals(\"typeControle\", $obj->getTypeControle());\n }", "public function testSetTypeContrat() {\n\n $obj = new AttestationCacm(...
[ "0.6542602", "0.63094556", "0.623304", "0.6149944", "0.60910785", "0.591618", "0.5866969", "0.58521533", "0.5766778", "0.57638776", "0.5737716", "0.5724368", "0.5708407", "0.56806445", "0.5668753", "0.5603218", "0.5589602", "0.5582171", "0.5578648", "0.5557798", "0.555767", ...
0.8236827
0
Tests the setDateCreationClient() method.
Проверяет метод setDateCreationClient().
public function testSetDateCreationClient() { // Set a Date/time mock. $dateCreationClient = new DateTime("2018-09-10"); $obj = new AppelsEnCours(); $obj->setDateCreationClient($dateCreationClient); $this->assertSame($dateCreationClient, $obj->getDateCreationClient()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetCreationClient() {\n\n $obj = new Collaborateurs();\n\n $obj->setCreationClient(true);\n $this->assertEquals(true, $obj->getCreationClient());\n }", "public function setCreationDate($date) {}", "public function setCreationDate($date = true) {}", "public function...
[ "0.7206147", "0.7179996", "0.7141071", "0.6833998", "0.68209094", "0.6562347", "0.6435693", "0.6359219", "0.6284262", "0.62400293", "0.62132156", "0.6175595", "0.61736566", "0.61689335", "0.61672693", "0.61445814", "0.61253536", "0.6084976", "0.6084259", "0.60605574", "0.6054...
0.8642976
0
Tests the setDateEntree() method.
Проверяет метод setDateEntree().
public function testSetDateEntree() { // Set a Date/time mock. $dateEntree = new DateTime("2018-09-10"); $obj = new AppelsEnCours(); $obj->setDateEntree($dateEntree); $this->assertSame($dateEntree, $obj->getDateEntree()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetDateEntree() {\n\n // Set a Date/time mock.\n $dateEntree = new DateTime(\"2018-09-10\");\n\n $obj = new Collaborateurs();\n\n $obj->setDateEntree($dateEntree);\n $this->assertSame($dateEntree, $obj->getDateEntree());\n }", "public function testSetDate...
[ "0.8275836", "0.79716694", "0.77235353", "0.7212507", "0.69083124", "0.68758607", "0.6854668", "0.6770786", "0.67692846", "0.67617184", "0.6677814", "0.6674084", "0.6663907", "0.665032", "0.65753704", "0.65339303", "0.6525946", "0.6524426", "0.6507415", "0.65070254", "0.64937...
0.82308495
1
Tests the setDateMessageLu() method.
Проверяет метод setDateMessageLu().
public function testSetDateMessageLu() { // Set a Date/time mock. $dateMessageLu = new DateTime("2018-09-10"); $obj = new AppelsEnCours(); $obj->setDateMessageLu($dateMessageLu); $this->assertSame($dateMessageLu, $obj->getDateMessageLu()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetMessageLu() {\n\n $obj = new AppelsEnCours();\n\n $obj->setMessageLu(true);\n $this->assertEquals(true, $obj->getMessageLu());\n }", "public function testSetDateValidationNdF() {\n\n // Set a Date/time mock.\n $dateValidationNdF = new DateTime(\"2018-0...
[ "0.62668794", "0.6224664", "0.61659783", "0.60718167", "0.6058118", "0.5990925", "0.5981144", "0.59490794", "0.58531934", "0.5782089", "0.572274", "0.5645164", "0.56242007", "0.5615595", "0.56071264", "0.5570656", "0.5570357", "0.55523765", "0.55209637", "0.5512811", "0.55038...
0.8242982
0
Tests the setDateRedir() method.
Тестирует метод setDateRedir().
public function testSetDateRedir() { // Set a Date/time mock. $dateRedir = new DateTime("2018-09-10"); $obj = new AppelsEnCours(); $obj->setDateRedir($dateRedir); $this->assertSame($dateRedir, $obj->getDateRedir()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetDateVisiteReprise() {\n\n // Set a Date/time mock.\n $dateVisiteReprise = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setDateVisiteReprise($dateVisiteReprise);\n $this->assertSame($dateVisiteReprise, $obj->getDateVisiteReprise());\n ...
[ "0.6837725", "0.67015815", "0.621687", "0.6208729", "0.61947274", "0.61321783", "0.6127836", "0.607481", "0.6014806", "0.60033435", "0.5953378", "0.5924198", "0.5897611", "0.5873549", "0.58656543", "0.58529806", "0.5847973", "0.58401555", "0.5837337", "0.5831351", "0.58033764...
0.81862825
0
Tests the setDemandeAr() method.
Проверяет метод setDemandeAr().
public function testSetDemandeAr() { $obj = new AppelsEnCours(); $obj->setDemandeAr(true); $this->assertEquals(true, $obj->getDemandeAr()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetEtage() {\n\n $obj = new DevisZbe();\n\n $obj->setEtage(\"etage\");\n $this->assertEquals(\"etage\", $obj->getEtage());\n }", "public function testSetDestinatairesA() {\n\n $obj = new AppelsEnCours();\n\n $obj->setDestinatairesA(\"destinatairesA\");\n ...
[ "0.6429477", "0.6294888", "0.61768764", "0.6172999", "0.6159782", "0.6134775", "0.61336994", "0.61334383", "0.61174685", "0.61091113", "0.6100376", "0.6061139", "0.5994997", "0.5987511", "0.59829384", "0.59559", "0.5952942", "0.5942964", "0.5932328", "0.59262687", "0.59142727...
0.8229088
0
Tests the setDestinatairesA() method.
Проверяет метод setDestinatairesA().
public function testSetDestinatairesA() { $obj = new AppelsEnCours(); $obj->setDestinatairesA("destinatairesA"); $this->assertEquals("destinatairesA", $obj->getDestinatairesA()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetDestinatairesCc() {\n\n $obj = new AppelsEnCours();\n\n $obj->setDestinatairesCc(\"destinatairesCc\");\n $this->assertEquals(\"destinatairesCc\", $obj->getDestinatairesCc());\n }", "public function testSetDemandeAr() {\n\n $obj = new AppelsEnCours();\n\n ...
[ "0.67613196", "0.5835497", "0.57279766", "0.56903577", "0.5601056", "0.55196315", "0.5508661", "0.5433755", "0.53695667", "0.5341086", "0.5330395", "0.53098243", "0.52970123", "0.5191447", "0.514978", "0.5089185", "0.50865823", "0.5072616", "0.506882", "0.5065582", "0.5061065...
0.80177146
0
Tests the setDestinatairesCc() method.
Проверяет метод setDestinatairesCc().
public function testSetDestinatairesCc() { $obj = new AppelsEnCours(); $obj->setDestinatairesCc("destinatairesCc"); $this->assertEquals("destinatairesCc", $obj->getDestinatairesCc()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setCc() {}", "public function setCc($addresses);", "public function testSetCodeCollaborateurDest() {\n\n $obj = new AppelsEnCours();\n\n $obj->setCodeCollaborateurDest(\"codeCollaborateurDest\");\n $this->assertEquals(\"codeCollaborateurDest\", $obj->getCodeCollaborateur...
[ "0.67921686", "0.6313289", "0.5949214", "0.59176886", "0.5705867", "0.5633922", "0.56259334", "0.546864", "0.54668707", "0.54649895", "0.52716774", "0.5237775", "0.5224683", "0.5224408", "0.51868486", "0.5185401", "0.517604", "0.51652104", "0.51238835", "0.5120573", "0.511291...
0.79582185
0
Tests the setEmailAuteur() method.
Проверяет метод setEmailAuteur().
public function testSetEmailAuteur() { $obj = new AppelsEnCours(); $obj->setEmailAuteur("emailAuteur"); $this->assertEquals("emailAuteur", $obj->getEmailAuteur()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetEmail() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmail(\"email\");\n $this->assertEquals(\"email\", $obj->getEmail());\n }", "public function testSetEmailTete() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmailTete(\"emailTete\");\n $...
[ "0.76789415", "0.76727587", "0.74662477", "0.74215424", "0.74066997", "0.7144477", "0.7078825", "0.7021076", "0.679373", "0.67490935", "0.67407465", "0.6668396", "0.662283", "0.66158116", "0.6592973", "0.6570338", "0.6465228", "0.6433608", "0.64280236", "0.640289", "0.6365309...
0.8673019
0
Tests the setGroupeQualifiant() method.
Проверяет метод setGroupeQualifiant().
public function testSetGroupeQualifiant() { $obj = new AppelsEnCours(); $obj->setGroupeQualifiant("groupeQualifiant"); $this->assertEquals("groupeQualifiant", $obj->getGroupeQualifiant()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getGroupeQualifiant() {\n return $this->groupeQualifiant;\n }", "public function setGroupeQualifiant($groupeQualifiant) {\n $this->groupeQualifiant = $groupeQualifiant;\n return $this;\n }", "public function testSetQualification() {\n\n $obj = new Employes();\n...
[ "0.6662312", "0.6521199", "0.6296679", "0.61602795", "0.6106632", "0.5992423", "0.593471", "0.5903223", "0.58812404", "0.5776289", "0.5762643", "0.57268214", "0.5651308", "0.56285626", "0.56275266", "0.56017596", "0.558869", "0.55459774", "0.55441445", "0.5543989", "0.5539507...
0.8085849
0
Tests the setIdAppel() method.
Проверяет метод setIdAppel().
public function testSetIdAppel() { $obj = new AppelsEnCours(); $obj->setIdAppel(10); $this->assertEquals(10, $obj->getIdAppel()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setId()\n\t{\n\t}", "public function testSetId()\n {\n $this->alignment->setId(25);\n $this->assertEquals(25, $this->alignment->getId());\n }", "public function setId($id) ;", "function setAmocrmIntegreationId(string $id): void {\n\t}", "public function setId($_id);", ...
[ "0.69834805", "0.67509747", "0.6719003", "0.66901475", "0.66153806", "0.6581452", "0.6531209", "0.65034586", "0.64727557", "0.64569366", "0.64569366", "0.64569366", "0.64569366", "0.64569366", "0.64569366", "0.64569366", "0.64569366", "0.64569366", "0.64569366", "0.64569366", ...
0.82114303
0
Tests the setIntitule() method.
Проверяет метод setIntitule().
public function testSetIntitule() { $obj = new AppelsEnCours(); $obj->setIntitule("intitule"); $this->assertEquals("intitule", $obj->getIntitule()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetMatricule() {\n\n $obj = new Employes();\n\n $obj->setMatricule(\"matricule\");\n $this->assertEquals(\"matricule\", $obj->getMatricule());\n }", "public function testSetIndemnLegale() {\n\n $obj = new AttestationCacm();\n\n $obj->setIndemnLegale(true)...
[ "0.61584765", "0.59377265", "0.5907509", "0.5900523", "0.5836154", "0.5830875", "0.5761149", "0.5706922", "0.56871897", "0.5686666", "0.5682921", "0.56609154", "0.56487256", "0.5620633", "0.5607197", "0.5571806", "0.55453706", "0.553818", "0.55169207", "0.55051976", "0.549422...
0.76221037
0
Tests the setMessageLu() method.
Проверяет метод setMessageLu().
public function testSetMessageLu() { $obj = new AppelsEnCours(); $obj->setMessageLu(true); $this->assertEquals(true, $obj->getMessageLu()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetSuiviMessages() {\n\n $obj = new Collaborateurs();\n\n $obj->setSuiviMessages(true);\n $this->assertEquals(true, $obj->getSuiviMessages());\n }", "public function testSetMessage()\n {\n $inputInvalid = 'abcdefghij';\n $this->assertFalse($this->_vali...
[ "0.6113632", "0.5784787", "0.56682384", "0.55843866", "0.55360126", "0.5495807", "0.54100376", "0.5325049", "0.5325049", "0.5325049", "0.5323604", "0.5318052", "0.5262571", "0.52554864", "0.52109027", "0.5136884", "0.51324964", "0.51131517", "0.5106179", "0.5102471", "0.50930...
0.8231482
0
Tests the setMiseEnSommDateHeure() method.
Тестирует метод setMiseEnSommDateHeure().
public function testSetMiseEnSommDateHeure() { // Set a Date/time mock. $miseEnSommDateHeure = new DateTime("2018-09-10"); $obj = new AppelsEnCours(); $obj->setMiseEnSommDateHeure($miseEnSommDateHeure); $this->assertSame($miseEnSommDateHeure, $obj->getMiseEnSommDateHeure()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetHeureFin() {\n\n // Set a Date/time mock.\n $heureFin = new DateTime(\"2018-09-10\");\n\n $obj = new FichesControlesEntetes();\n\n $obj->setHeureFin($heureFin);\n $this->assertSame($heureFin, $obj->getHeureFin());\n }", "public function testSetHeureFin...
[ "0.6752285", "0.6685873", "0.66420746", "0.6591327", "0.6562906", "0.65058947", "0.64872503", "0.6486552", "0.6381115", "0.6329243", "0.63146186", "0.6263133", "0.6202213", "0.6151547", "0.6139104", "0.6128144", "0.6109237", "0.6039857", "0.59972805", "0.5964402", "0.5957712"...
0.8429147
0
Tests the setNature() method.
Проверяет метод setNature().
public function testSetNature() { $obj = new AppelsEnCours(); $obj->setNature("nature"); $this->assertEquals("nature", $obj->getNature()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setOfferNature ()\n {\n $this->offerNature = $this->offer->rate_nature->value;\n }", "public function hasNature() {\n return $this->_has(13);\n }", "public function testSetNiveauConfidentialiteQp() {\n\n $obj = new Collaborateurs();\n\n $obj->setNiveauConfi...
[ "0.6876614", "0.59056675", "0.5881819", "0.5876415", "0.5764116", "0.5736775", "0.57172036", "0.56988066", "0.56866527", "0.5660783", "0.56321627", "0.56088305", "0.5592019", "0.5587985", "0.55736065", "0.5570042", "0.5553849", "0.5520968", "0.5514924", "0.5499405", "0.548183...
0.8111339
0
Tests the setNbAppelsEnCours() method.
Проверяет метод setNbAppelsEnCours().
public function testSetNbAppelsEnCours() { $obj = new AppelsEnCours(); $obj->setNbAppelsEnCours(10); $this->assertEquals(10, $obj->getNbAppelsEnCours()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetJoursRttAcquis() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setJoursRttAcquis(10.092018);\n $this->assertEquals(10.092018, $obj->getJoursRttAcquis());\n }", "public function testSetNbPaniers() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setNbPaniers(1...
[ "0.594525", "0.5838081", "0.58287424", "0.5727683", "0.5719434", "0.5705013", "0.5689911", "0.5689152", "0.5613624", "0.56078166", "0.558375", "0.55640453", "0.55372", "0.5512517", "0.55095804", "0.5504416", "0.5476943", "0.5473393", "0.5463242", "0.54549575", "0.5450724", ...
0.8103522
0
Tests the setNomClient() method.
Проверяет метод setNomClient().
public function testSetNomClient() { $obj = new AppelsEnCours(); $obj->setNomClient("nomClient"); $this->assertEquals("nomClient", $obj->getNomClient()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetCodeClient() {\n\n $obj = new Materiels();\n\n $obj->setCodeClient(\"codeClient\");\n $this->assertEquals(\"codeClient\", $obj->getCodeClient());\n }", "public function testSetModifClient() {\n\n $obj = new Collaborateurs();\n\n $obj->setModifClient(\"...
[ "0.7168433", "0.7159496", "0.7046605", "0.6993658", "0.69169635", "0.68913656", "0.6631402", "0.66054475", "0.65886706", "0.64913595", "0.647554", "0.6437708", "0.64108545", "0.6283596", "0.62797695", "0.6276388", "0.6213732", "0.6202289", "0.61953074", "0.61948633", "0.61213...
0.8192547
0
Tests the setOrigine() method.
Проверяет метод setOrigine().
public function testSetOrigine() { $obj = new AppelsEnCours(); $obj->setOrigine("origine"); $this->assertEquals("origine", $obj->getOrigine()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set_origin($origin){\n \t$this->origin = $origin;\n }", "public function setOrigin($value)\n {\n $this->origin = $value;\n }", "public function setOrigin($_origin)\n {\n if (is_string($_origin)) {\n \t$this->_origin = $_origin;\n }\n }", "public f...
[ "0.60054934", "0.59006613", "0.5674569", "0.5621354", "0.55260885", "0.551059", "0.551059", "0.5510006", "0.5481833", "0.54813695", "0.54813695", "0.5400984", "0.53898543", "0.53063023", "0.52398944", "0.52330184", "0.5212955", "0.52028805", "0.519462", "0.5166414", "0.512783...
0.82384336
0
Tests the setPieceJointe() method.
Проверяет метод setPieceJointe().
public function testSetPieceJointe() { $obj = new AppelsEnCours(); $obj->setPieceJointe("pieceJointe"); $this->assertEquals("pieceJointe", $obj->getPieceJointe()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setPieceJointe($pieceJointe) {\n $this->pieceJointe = $pieceJointe;\n return $this;\n }", "public function testSetPrenomConjoint() {\n\n $obj = new Employes();\n\n $obj->setPrenomConjoint(\"prenomConjoint\");\n $this->assertEquals(\"prenomConjoint\", $obj->ge...
[ "0.6861192", "0.66055727", "0.6383213", "0.6144972", "0.606802", "0.6014025", "0.6003687", "0.5955767", "0.5754512", "0.571632", "0.5665178", "0.55968547", "0.55227196", "0.5429049", "0.54075503", "0.54064584", "0.5319187", "0.52917635", "0.5266273", "0.52549565", "0.52445614...
0.8625223
0
Tests the setReponse() method.
Тестирует метод setReponse().
public function testSetReponse() { $obj = new AppelsEnCours(); $obj->setReponse("reponse"); $this->assertEquals("reponse", $obj->getReponse()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setResponse() {\n }", "private function resetReponse()\n {\n $this->app->singleton(\"response\", function () {\n return new Response();\n });\n }", "public function setResponse(Response $response) {}", "protected function getReponseData() {}", "protected fu...
[ "0.71993184", "0.6692809", "0.65824956", "0.6371591", "0.6371591", "0.6371591", "0.6371591", "0.6371591", "0.6300629", "0.6240427", "0.62294984", "0.62087065", "0.61936235", "0.6181126", "0.6032007", "0.602602", "0.60229903", "0.6021044", "0.6010296", "0.6008554", "0.5968892"...
0.79259634
0
Tests the setSousRepRefGuid() method.
Тестирует метод setSousRepRefGuid().
public function testSetSousRepRefGuid() { $obj = new AppelsEnCours(); $obj->setSousRepRefGuid("sousRepRefGuid"); $this->assertEquals("sousRepRefGuid", $obj->getSousRepRefGuid()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetGeneRef1() {\n\t\techo (\"\\n********************Test SetGeneRef()*******************************************************\\n\");\n\t\t\n\t\t$this->gene->setGeneRef ( TRUE );\n\t\t$this->assertTrue( $this->gene->getGeneRef () );\n\t}", "public function testSetGeneRef2() {\n\t\techo (\"\\n**...
[ "0.6044776", "0.5874531", "0.5723988", "0.54481053", "0.5430104", "0.5412227", "0.53935784", "0.5282387", "0.5248087", "0.5219788", "0.52128184", "0.5190112", "0.5174583", "0.5171359", "0.51645696", "0.5158895", "0.5155973", "0.5151627", "0.5148142", "0.5141997", "0.51264024"...
0.82002395
0
Tests the setSpecial() method.
Проверяет метод setSpecial().
public function testSetSpecial() { $obj = new AppelsEnCours(); $obj->setSpecial("special"); $this->assertEquals("special", $obj->getSpecial()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isSpecial();", "public function isSpecial()\n\t{\n\t\t return false;\n\t}", "public function isSpecial()\n\t{\n\t\t return false;\n\t}", "public function testSpecial(): void {\n\t}", "public function setSpecials(array $arr): void {\n\t\t$this->m_specials = $arr;\n\t}", "function setSpecia...
[ "0.68443364", "0.6680994", "0.6680994", "0.64896363", "0.61493444", "0.5949069", "0.5888947", "0.5697638", "0.56693786", "0.5632598", "0.55830693", "0.5433713", "0.542669", "0.542357", "0.5420927", "0.5414073", "0.54081684", "0.5386072", "0.53671545", "0.53403455", "0.5329779...
0.7921905
0
Tests the setTel() method.
Проверяет метод setTel().
public function testSetTel() { $obj = new AppelsEnCours(); $obj->setTel("tel"); $this->assertEquals("tel", $obj->getTel()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetEtblTel() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblTel(\"etblTel\");\n $this->assertEquals(\"etblTel\", $obj->getEtblTel());\n }", "public function testSetTel1() {\n\n $obj = new Employes();\n\n $obj->setTel1(\"tel1\");\n $this->asse...
[ "0.7225685", "0.718668", "0.68716747", "0.6864146", "0.68144715", "0.6619897", "0.660373", "0.6399839", "0.6375337", "0.63333786", "0.63141924", "0.6296032", "0.6296032", "0.6296032", "0.62897277", "0.6248692", "0.6179527", "0.6179527", "0.6179527", "0.6179527", "0.60765153",...
0.8443904
0
Tests the setTypeMessage() method.
Проверяет метод setTypeMessage().
public function testSetTypeMessage() { $obj = new AppelsEnCours(); $obj->setTypeMessage("typeMessage"); $this->assertEquals("typeMessage", $obj->getTypeMessage()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setType($type=0){\n\t\t\tswitch ($type){\n\t\t\t\tcase 0:{$type = 0; break;}\n\t\t\t\tdefault:{$type = 0;}\n\t\t\t}\n\t\t\t$this->message_type = $type;\n\t\t}", "protected function setMessageType()\n {\n }", "protected function setMessageType()\n {\n $type = array();\n i...
[ "0.6794049", "0.6721844", "0.6645638", "0.6429519", "0.6406866", "0.6286968", "0.621868", "0.61709994", "0.60674417", "0.5991494", "0.59240305", "0.58575046", "0.5810989", "0.5752559", "0.5741783", "0.5667813", "0.5667813", "0.56544", "0.56442976", "0.56267995", "0.56125027",...
0.77325916
0
Tests the setUniqId() method.
Проверяет метод setUniqId().
public function testSetUniqId() { $obj = new AppelsEnCours(); $obj->setUniqId("uniqId"); $this->assertEquals("uniqId", $obj->getUniqId()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetUniqId() {\n\n $obj = new PointBonTrav();\n\n $obj->setUniqId(\"uniqId\");\n $this->assertEquals(\"uniqId\", $obj->getUniqId());\n }", "public function testSetUniqIdNoeud() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setUniqIdNoeud(\"uniqIdNoe...
[ "0.8041844", "0.7305565", "0.71556133", "0.65328586", "0.64997435", "0.64074606", "0.63856477", "0.63122135", "0.63101274", "0.60643125", "0.5891202", "0.58373976", "0.58290327", "0.5809616", "0.5762563", "0.57396734", "0.5698391", "0.56616837", "0.5656691", "0.56083256", "0....
0.8466172
0
Tests the setUrgent() method.
Проверяет метод setUrgent().
public function testSetUrgent() { $obj = new AppelsEnCours(); $obj->setUrgent(true); $this->assertEquals(true, $obj->getUrgent()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testReset()\n {\n $same = $this->uut->setConstraints([new MyConstraint()])->setValue(new ScalarValue('bar'))->reset();\n $this->assertSame($this->uut, $same);\n $this->assertFalse($this->uut->hasValue());\n $this->assertFalse($this->uut->hasViolation());\n }", "p...
[ "0.56347215", "0.5353508", "0.5245338", "0.52337307", "0.5215159", "0.51664233", "0.51046324", "0.5069629", "0.5068058", "0.5056844", "0.5038985", "0.50320375", "0.5023667", "0.50142294", "0.49771103", "0.49752867", "0.4961621", "0.4941191", "0.49396223", "0.49132115", "0.490...
0.738725
0
get detail information of the video
получить подробную информацию о видео
function getVideoDetails($operator_id, $video_id) { return $this->getResponse ( $this->getXmlApi (), 'getVideoDetails', array ('operator_id' => $operator_id, 'video_id' => $video_id ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIdVideoInfo()\n {\n return $this->idVideoInfo;\n }", "function getMovieDetails() {\n\t\t\t$url = \"http://api.brightcove.com/services/library?command=find_video_by_reference_id&media_delivery=http&reference_id=\".$this->getMovieID() .\"&video_fields=name,renditions&token=Ekg-LmhL4...
[ "0.7142759", "0.709181", "0.6864426", "0.685476", "0.6849452", "0.68382293", "0.6737644", "0.673282", "0.6729314", "0.6666441", "0.6654844", "0.6603146", "0.6585455", "0.65167034", "0.65167034", "0.65167034", "0.65167034", "0.65092564", "0.6474999", "0.6396961", "0.63529456",...
0.7228947
0
Loads configuration from the database
Загружает конфигурацию из базы данных
function loadFromDatabase(){ global $DB; $resource = $DB->config->get(); $list = array(); while($row = $DB->fetchAssoc($resource)) { if(!isset($this->sections[$row['section']])) $this->sections[$row['section']] = new ConfigSection($row['section']); $this->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function loadConfig(){\n $DB = DB::pass();\n $conf = $DB->loadConfig();\n if ( count($conf) > 0 ){\n foreach($conf as $c){\n $this->config->set($c['cluster'] . \".\" . $c['name'],$c['value']);\n }\n } else {\n throw new SystemExcep...
[ "0.750048", "0.7478839", "0.7289232", "0.6997606", "0.69788826", "0.6900978", "0.68721974", "0.6853569", "0.684791", "0.6838948", "0.674095", "0.6711513", "0.6707481", "0.66863006", "0.6599123", "0.65959144", "0.65727067", "0.6557945", "0.6515317", "0.6472515", "0.63874346", ...
0.768132
0
Remove empty default cases (no test and no descendants)
Удалить пустые случаи по умолчанию (нет тестов и нет потомков)
protected static function removeEmptyDefaultCases(DOMDocument $ir) { $xpath = new DOMXPath($ir); foreach ($xpath->query('//case[not(@test | node())]') as $case) { $case->parentNode->removeChild($case); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function DOM_delete_empty_attributes() {\r\n\t\t$query = '//' . ReTidy::get_html_namespace() . '*[@*=\"\"]';\r\n\t\t$tags_with_empty_attribute = $this->xpath->query($query);\r\n\t\tforeach($tags_with_empty_attribute as $tag) {\r\n\t\t\t$tagName = $tag->nodeName;\r\n\t\t\t$array_attributes = DTD::getAttributesForEl...
[ "0.59448594", "0.59151983", "0.55785483", "0.5568801", "0.5562449", "0.5528167", "0.5525032", "0.5470483", "0.5438268", "0.5404257", "0.5386804", "0.53515357", "0.5347305", "0.534641", "0.5343738", "0.53075516", "0.5287495", "0.5277462", "0.5238994", "0.52094066", "0.5206525"...
0.7284329
0
Clone closeTag elements that follow a switch into said switch If there's a right after a , clone the at the end of the every that does not end with a
Создайте копии элементов closeTag, следующих за переключателем, и вставьте их в сам переключатель. Если после запятой есть правая часть, скопируйте её в конец каждого элемента, который не заканчивается на закрывающий тег.
protected static function cloneCloseTagElementsIntoSwitch(DOMDocument $ir) { $xpath = new DOMXPath($ir); $query = '//switch[name(following-sibling::*) = "closeTag"]'; foreach ($xpath->query($query) as $switch) { $closeTag = $switch->nextSibling; foreach ($switch->childNodes as $case) { if (!$case-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static function cloneCloseTagElementsOutOfSwitch(DOMDocument $ir)\n\t{\n\t\t$xpath = new DOMXPath($ir);\n\t\t$query = '//switch[not(preceding-sibling::closeTag)]';\n\t\tforeach ($xpath->query($query) as $switch)\n\t\t{\n\t\t\tforeach ($switch->childNodes as $case)\n\t\t\t{\n\t\t\t\tif (!$case->firstChild...
[ "0.7497725", "0.5934671", "0.55218995", "0.546023", "0.5111059", "0.50501615", "0.5008064", "0.49384117", "0.47716224", "0.47434092", "0.4713318", "0.4704308", "0.45939013", "0.45880082", "0.45753303", "0.4548333", "0.45430762", "0.45400307", "0.45320222", "0.45142505", "0.45...
0.7243627
1
Clone closeTag elements from the head of a switch's cases before said switch If there's a at the beginning of every , clone it and insert it right before the unless there's already one
Создайте копии элементов closeTag из начала списка случаев переключателя перед самим переключателем. Если есть элемент в начале каждого случая, скопируйте его и вставьте перед ним, если такой элемент еще не существует.
protected static function cloneCloseTagElementsOutOfSwitch(DOMDocument $ir) { $xpath = new DOMXPath($ir); $query = '//switch[not(preceding-sibling::closeTag)]'; foreach ($xpath->query($query) as $switch) { foreach ($switch->childNodes as $case) { if (!$case->firstChild || $case->firstChild->nodeName ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static function cloneCloseTagElementsIntoSwitch(DOMDocument $ir)\n\t{\n\t\t$xpath = new DOMXPath($ir);\n\t\t$query = '//switch[name(following-sibling::*) = \"closeTag\"]';\n\t\tforeach ($xpath->query($query) as $switch)\n\t\t{\n\t\t\t$closeTag = $switch->nextSibling;\n\t\t\tforeach ($switch->childNodes a...
[ "0.67171896", "0.5414111", "0.5286976", "0.52604413", "0.4972362", "0.49691612", "0.48397407", "0.47564864", "0.47430477", "0.47416747", "0.47101745", "0.4681599", "0.46317613", "0.4616803", "0.46122682", "0.46082002", "0.45965534", "0.45804468", "0.45486313", "0.45252907", "...
0.71196574
0
Remove redundant closeTag elements from the tail of a switch's cases If there's a right after a , remove all nodes at the end of every
Удалите из хвоста случаев переключателя лишние элементы closeTag. Если есть правая скобка после запятой, удалите все узлы в конце каждого
protected static function removeRedundantCloseTagElementsInSwitch(DOMDocument $ir) { $xpath = new DOMXPath($ir); $query = '//switch[name(following-sibling::*) = "closeTag"]'; foreach ($xpath->query($query) as $switch) { foreach ($switch->childNodes as $case) { while ($case->lastChild && $case->lastCh...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static function cloneCloseTagElementsOutOfSwitch(DOMDocument $ir)\n\t{\n\t\t$xpath = new DOMXPath($ir);\n\t\t$query = '//switch[not(preceding-sibling::closeTag)]';\n\t\tforeach ($xpath->query($query) as $switch)\n\t\t{\n\t\t\tforeach ($switch->childNodes as $case)\n\t\t\t{\n\t\t\t\tif (!$case->firstChild...
[ "0.64101326", "0.64084274", "0.5618216", "0.5504648", "0.55023944", "0.54906845", "0.5339891", "0.53257865", "0.5192374", "0.5186191", "0.5167038", "0.51143306", "0.5110638", "0.5107019", "0.51027805", "0.5093856", "0.50618315", "0.50466627", "0.49944755", "0.49935943", "0.49...
0.7052264
0
Remove content from void elements For each void element, we find whichever elements close it and remove everything after
Удалить содержимое из пустых элементов Для каждого пустого элемента мы находим те элементы, которые закрывают его, и удаляем всё, что находится после
protected static function removeContentFromVoidElements(DOMDocument $ir) { $xpath = new DOMXPath($ir); foreach ($xpath->query('//element[@void="yes"]') as $element) { $id = $element->getAttribute('id'); $query = './/closeTag[@id="' . $id . '"]/following-sibling::*'; foreach ($xpath->query($query, $el...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function non_DOM_deleteme($opening_tag_string) {\r\n\t\tpreg_match_all('/' . $opening_tag_string . '/is', $this->code, $matches, PREG_OFFSET_CAPTURE);\r\n\t\t$size = sizeof($matches[0]) - 1;\r\n\t\twhile($size > -1) {\r\n\t\t\tpreg_match('/<(\\w+)/is', $matches[0][$size][0], $tagname_matches);\r\n\t\t\t$tagname = ...
[ "0.6062754", "0.6030016", "0.5790078", "0.57888585", "0.57779676", "0.5768118", "0.57214326", "0.5608887", "0.56022483", "0.55880326", "0.55454135", "0.54721254", "0.5429215", "0.54105604", "0.53806746", "0.53526574", "0.53453726", "0.53453726", "0.5336035", "0.5300345", "0.5...
0.7563846
0
Mark switch elements that are used as branch tables If a switch is used for a series of equality tests against the same attribute or variable, the attribute/variable is stored within the switch as "branchkey" and the values it is compared against are stored JSONencoded in the case as "branchvalues". It can be used to c...
Отметьте элементы switch, используемые в качестве таблицы ветвлений. Если switch используется для серии тестов на равенство по одному и тому же атрибуту или переменной, атрибут/переменная сохраняется внутри switch как "branchkey", а значения, по которым производится сравнение, сохраняются в виде JSON-закодированных "br...
protected static function markBranchTables(DOMDocument $ir) { $xpath = new DOMXPath($ir); // Iterate over switch elements that have at least two case children with a test attribute foreach ($xpath->query('//switch[case[2][@test]]') as $switch) { $key = null; $branchValues = []; foreach ($switch->chi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setBranchOf($value)\n {\n $this->branchOf = $value;\n }", "public function branching()\n {\n }", "public function setBranch($var)\n {\n GPBUtil::checkString($var, True);\n $this->branch = $var;\n\n return $this;\n }", "function wpc_braches...
[ "0.5274463", "0.5015091", "0.48326716", "0.48102018", "0.47833815", "0.4700621", "0.46001625", "0.45670772", "0.45391107", "0.45379442", "0.45202398", "0.45121533", "0.44424596", "0.442582", "0.44007412", "0.43802857", "0.43737704", "0.4356598", "0.43038946", "0.42774263", "0...
0.74532294
0
Clear current operation object
Очистить текущий объект операции
public function clearCurrentOperation() { $this->currentOperation = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clearOperations()\n {\n $this->_operations = array();\n\n return $this;\n }", "public function clear()\n\t{\n\t\t$this->getObject()->clear();\n\t}", "public function clear()\n {\n $this->op_prime_id = null;\n $this->op_id = null;\n $this->op_prime_lib...
[ "0.759081", "0.7087907", "0.70383245", "0.69579744", "0.6943701", "0.6943701", "0.6943701", "0.6943701", "0.6833984", "0.6793754", "0.67423064", "0.6732334", "0.67225605", "0.67165667", "0.6713597", "0.66961443", "0.66724914", "0.66724914", "0.66724914", "0.66724914", "0.6672...
0.8475614
0
$this>db>query("SELECT FROM `booking` WHERE `BK_Year` = $year && `BK_Month` = $month");
$this>db>query("SELECT FROM `booking` WHERE `BK_Year` = $year && `BK_Month` = $month");
function getBookingByMonth() { $query = $this->db->select('BK_Year,BK_Month,BK_Day') ->get('booking'); return $query->result(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function show_available_bookings(){\n global $db;\n $sql = \"SELECT * FROM booking_info;\";\n $result = $db->query($sql);\n return $result;\n}", "function thismonth(){\n\n $where = \"MONTH( reservation_startdate ) = MONTH( NOW() )\";\n\n $reservation = where( 'reservations', $where );\n\n ec...
[ "0.6195628", "0.6179713", "0.6139088", "0.6093335", "0.60876167", "0.59388876", "0.58544534", "0.58511853", "0.58161455", "0.5814881", "0.5701382", "0.569112", "0.56613433", "0.5659854", "0.562749", "0.56182504", "0.5613191", "0.5591653", "0.55549055", "0.5525527", "0.5507995...
0.71947354
0
$this>db = new SuperMySQLi('localhost', 'voipswitchuser', '+4H8ZXcSyWn7CuX', 'voipswitch');
$this>db = new SuperMySQLi('localhost', 'voipswitchuser', '+4H8ZXcSyWn7CuX', 'voipswitch');
public function __construct() { if(HOST_NAME == TESTING_SERVER_NAME || HOST_NAME == TESTING_SERVER_NAME1 ) $this->db = new SuperMySQLi('localhost', 'voip91_switch', 'yHqbaw4zRWrUWtp8', 'voip91_switch'); else $this->db = new SuperMySQLi('localhost', 'phone91', 'yHqba...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct(){\r\n $this->database = new mysqli(\"XXXX\", \"XXXX\", \"XXXX\", \"XXXX\");\r\n \r\n }", "function __construct()\r\n {\r\n $this->mysqli = new mysqli(servidor, usuario, password);\r\n }", "public function __construct(){\n\t\t$this->db=new mysqli('127.0...
[ "0.7033582", "0.69669753", "0.69102633", "0.6856741", "0.6731042", "0.67213786", "0.67175", "0.667095", "0.6652718", "0.6600131", "0.655671", "0.6544154", "0.6536987", "0.6509757", "0.6509757", "0.6492779", "0.64919984", "0.6488959", "0.64805895", "0.6477766", "0.647662", "...
0.75994664
0
Construct by using the credit card number
Создать с помощью номера кредитной карты
public function __construct($ccNumber, $validateLength = true) { // Keep only digits of $ccNumber into $number $ccNumber = (string)$ccNumber; $len = strlen($ccNumber); $number = ""; for ($k=0; $k<$len; $k++) { if ($ccNumber[$k] >= '0' && $ccNumber[$k] <= '9') $number .= $ccNumber[$k]; } // Bu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createCreditCard(CreditCard $creditCard): CreditCard;", "public function createToken($cardinfo){\n \\Stripe\\Stripe::setApiKey($this->getApi('secret_key'));\n $token = \\Stripe\\Token::create(array(\n \"card\" => array(\n \"number\" => $cardinfo['number'],\n ...
[ "0.66682965", "0.65728146", "0.6474136", "0.6464663", "0.6452378", "0.6407396", "0.64025116", "0.63660157", "0.6335622", "0.6335622", "0.6206476", "0.61737734", "0.615927", "0.6124269", "0.6121705", "0.6109675", "0.60799307", "0.6073159", "0.6051181", "0.60065717", "0.6003496...
0.74029833
0