query stringlengths 7 5.25k | document stringlengths 15 1.06M | metadata dict | negatives listlengths 3 101 | negative_scores listlengths 3 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Function that set blog list type value for global blog option map | function fiorello_mikado_set_blog_masonry_gallery_type_global_option( $options ) {
$options['masonry-gallery'] = esc_html__( 'Blog: Masonry Gallery', 'fiorello' );
return $options;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function voyage_mikado_get_default_blog_list() {\n\n $blog_list = voyage_mikado_options()->getOptionValue('blog_list_type');\n\n return $blog_list;\n\n }",
"public function set_options() {\n\t\tif ( Kiwi_Social_Share_Helper::get_setting_value( 'click_to_tweet_posttypes', 'all' ) === 'all' ) {\n\... | [
"0.6528503",
"0.64273787",
"0.63894147",
"0.6312209",
"0.6174946",
"0.60502565",
"0.60122246",
"0.5982524",
"0.59763217",
"0.59639895",
"0.59012985",
"0.5872082",
"0.58705795",
"0.58605427",
"0.57956904",
"0.5679251",
"0.5645632",
"0.56443226",
"0.5592031",
"0.55707026",
"0.5... | 0.0 | -1 |
abcd1234...4321dcba // Colorize: green Colorize: green Colorize: green Colorize: green | function db_connect() // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string = \\cli\\Colors::colorize(\n $string,\n $colorize\n );\n return $colorized_string;\n}",
"static function colorize() {\n\t\tself::$colo... | [
"0.63541615",
"0.6212889",
"0.61202675",
"0.61165047",
"0.5972459",
"0.5945584",
"0.5936147",
"0.5851305",
"0.5805399",
"0.5768269",
"0.57282466",
"0.5678284",
"0.5671367",
"0.5664674",
"0.56436515",
"0.5623387",
"0.56159604",
"0.56011194",
"0.5572944",
"0.556644",
"0.5542524... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function db_disconnect($link) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7137396",
"0.66215855",
"0.63515484",
"0.6261399",
"0.6232191",
"0.6069502",
"0.5956803",
"0.5953466",
"0.5879444",
"0.58689076",
"0.5860924",
"0.58554953",
"0.58298475",
"0.5798921",
"0.57774603",
"0.574557",
"0.574557",
"0.574557",
"0.574557",
"0.574203",
"0.574203",
"... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function die_if_sql_failed($result, $link, $data, $sql) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7137396",
"0.66215855",
"0.63515484",
"0.6261399",
"0.6232191",
"0.6069502",
"0.5956803",
"0.5953466",
"0.5879444",
"0.58689076",
"0.5860924",
"0.58554953",
"0.58298475",
"0.5798921",
"0.57774603",
"0.574557",
"0.574557",
"0.574557",
"0.574557",
"0.574203",
"0.574203",
"... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function get_property_value($link, $data, $name) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7137396",
"0.66215855",
"0.63515484",
"0.6261399",
"0.6232191",
"0.6069502",
"0.5956803",
"0.5953466",
"0.5879444",
"0.58689076",
"0.5860924",
"0.58554953",
"0.58298475",
"0.5798921",
"0.57774603",
"0.574557",
"0.574557",
"0.574557",
"0.574557",
"0.574203",
"0.574203",
"... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function set_property_value($link, $data, $name, $value) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7136888",
"0.6622235",
"0.63520926",
"0.62617975",
"0.6232242",
"0.6069731",
"0.59585845",
"0.5954361",
"0.58800024",
"0.58694065",
"0.58624536",
"0.58557904",
"0.58307487",
"0.5800812",
"0.5778475",
"0.57459646",
"0.57459646",
"0.57459646",
"0.57459646",
"0.57424426",
"0.... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function get_server_name($link, $data) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7137396",
"0.66215855",
"0.63515484",
"0.6261399",
"0.6232191",
"0.6069502",
"0.5956803",
"0.5953466",
"0.5879444",
"0.58689076",
"0.5860924",
"0.58554953",
"0.58298475",
"0.5798921",
"0.57774603",
"0.574557",
"0.574557",
"0.574557",
"0.574557",
"0.574203",
"0.574203",
"... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function get_secret_key($link, $data) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7137396",
"0.66215855",
"0.63515484",
"0.6261399",
"0.6232191",
"0.6069502",
"0.5956803",
"0.5953466",
"0.5879444",
"0.58689076",
"0.5860924",
"0.58554953",
"0.58298475",
"0.5798921",
"0.57774603",
"0.574557",
"0.574557",
"0.574557",
"0.574557",
"0.574203",
"0.574203",
"... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function get_region_id($link, $data) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7137396",
"0.66215855",
"0.63515484",
"0.6261399",
"0.6232191",
"0.6069502",
"0.5956803",
"0.5953466",
"0.5879444",
"0.58689076",
"0.5860924",
"0.58554953",
"0.58298475",
"0.5798921",
"0.57774603",
"0.574557",
"0.574557",
"0.574557",
"0.574557",
"0.574203",
"0.574203",
"... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function set_region_id($link, $data, $value) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7136888",
"0.6622235",
"0.63520926",
"0.62617975",
"0.6232242",
"0.6069731",
"0.59585845",
"0.5954361",
"0.58800024",
"0.58694065",
"0.58624536",
"0.58557904",
"0.58307487",
"0.5800812",
"0.5778475",
"0.57459646",
"0.57459646",
"0.57459646",
"0.57459646",
"0.57424426",
"0.... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function get_app_id_for_codename($link, &$data, $codename) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7137396",
"0.66215855",
"0.63515484",
"0.6261399",
"0.6232191",
"0.6069502",
"0.5956803",
"0.5953466",
"0.5879444",
"0.58689076",
"0.5860924",
"0.58554953",
"0.58298475",
"0.5798921",
"0.57774603",
"0.574557",
"0.574557",
"0.574557",
"0.574557",
"0.574203",
"0.574203",
"... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function get_server_secret_key($link, $data, $address) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7137396",
"0.66215855",
"0.63515484",
"0.6261399",
"0.6232191",
"0.6069502",
"0.5956803",
"0.5953466",
"0.5879444",
"0.58689076",
"0.5860924",
"0.58554953",
"0.58298475",
"0.5798921",
"0.57774603",
"0.574557",
"0.574557",
"0.574557",
"0.574557",
"0.574203",
"0.574203",
"... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function validate_server($link, $data, $address, $secret_key) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7137396",
"0.66215855",
"0.63515484",
"0.6261399",
"0.6232191",
"0.6069502",
"0.5956803",
"0.5953466",
"0.5879444",
"0.58689076",
"0.5860924",
"0.58554953",
"0.58298475",
"0.5798921",
"0.57774603",
"0.574557",
"0.574557",
"0.574557",
"0.574557",
"0.574203",
"0.574203",
"... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function validate_this_server($link, $data, $secret_key) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7136888",
"0.6622235",
"0.63520926",
"0.62617975",
"0.6232242",
"0.6069731",
"0.59585845",
"0.5954361",
"0.58800024",
"0.58694065",
"0.58624536",
"0.58557904",
"0.58307487",
"0.5800812",
"0.5778475",
"0.57459646",
"0.57459646",
"0.57459646",
"0.57459646",
"0.57424426",
"0.... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function validate_access($link, $data, $my_address, $my_secret_key, $your_secret_key) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7137396",
"0.66215855",
"0.63515484",
"0.6261399",
"0.6232191",
"0.6069502",
"0.5956803",
"0.5953466",
"0.5879444",
"0.58689076",
"0.5860924",
"0.58554953",
"0.58298475",
"0.5798921",
"0.57774603",
"0.574557",
"0.574557",
"0.574557",
"0.574557",
"0.574203",
"0.574203",
"... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function validate_server_with_ping($link, $data, $my_address, $my_secret_key, $address, $secret_key) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7137396",
"0.66215855",
"0.63515484",
"0.6261399",
"0.6232191",
"0.6069502",
"0.5956803",
"0.5953466",
"0.5879444",
"0.58689076",
"0.5860924",
"0.58554953",
"0.58298475",
"0.5798921",
"0.57774603",
"0.574557",
"0.574557",
"0.574557",
"0.574557",
"0.574203",
"0.574203",
"... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function validate_app_secret_key($link, $data, $app_id, $secret_key) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7137396",
"0.66215855",
"0.63515484",
"0.6261399",
"0.6232191",
"0.6069502",
"0.5956803",
"0.5953466",
"0.5879444",
"0.58689076",
"0.5860924",
"0.58554953",
"0.58298475",
"0.5798921",
"0.57774603",
"0.574557",
"0.574557",
"0.574557",
"0.574557",
"0.574203",
"0.574203",
"... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function validate_app_version($link, $data, $app_version_id) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7136888",
"0.6622235",
"0.63520926",
"0.62617975",
"0.6232242",
"0.6069731",
"0.59585845",
"0.5954361",
"0.58800024",
"0.58694065",
"0.58624536",
"0.58557904",
"0.58307487",
"0.5800812",
"0.5778475",
"0.57459646",
"0.57459646",
"0.57459646",
"0.57459646",
"0.57424426",
"0.... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function avoid_duplicate_version($link, $data, $app_id, $app_version_id, $hash) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7137396",
"0.66215855",
"0.63515484",
"0.6261399",
"0.6232191",
"0.6069502",
"0.5956803",
"0.5953466",
"0.5879444",
"0.58689076",
"0.5860924",
"0.58554953",
"0.58298475",
"0.5798921",
"0.57774603",
"0.574557",
"0.574557",
"0.574557",
"0.574557",
"0.574203",
"0.574203",
"... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function get_delay_to_server($link, $data, $address) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7137396",
"0.66215855",
"0.63515484",
"0.6261399",
"0.6232191",
"0.6069502",
"0.5956803",
"0.5953466",
"0.5879444",
"0.58689076",
"0.5860924",
"0.58554953",
"0.58298475",
"0.5798921",
"0.57774603",
"0.574557",
"0.574557",
"0.574557",
"0.574557",
"0.574203",
"0.574203",
"... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function replicate_to_regions($link, $data, $replicate_data, $path, $region_id) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7137396",
"0.66215855",
"0.63515484",
"0.6261399",
"0.6232191",
"0.6069502",
"0.5956803",
"0.5953466",
"0.5879444",
"0.58689076",
"0.5860924",
"0.58554953",
"0.58298475",
"0.5798921",
"0.57774603",
"0.574557",
"0.574557",
"0.574557",
"0.574557",
"0.574203",
"0.574203",
"... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function replicate_by_region($link, $data, $replicate_data, $path, $region_id, $my_address) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7136888",
"0.6622235",
"0.63520926",
"0.62617975",
"0.6232242",
"0.6069731",
"0.59585845",
"0.5954361",
"0.58800024",
"0.58694065",
"0.58624536",
"0.58557904",
"0.58307487",
"0.5800812",
"0.5778475",
"0.57459646",
"0.57459646",
"0.57459646",
"0.57459646",
"0.57424426",
"0.... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function replicate($link, $data, $replicate_data, $path) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7137396",
"0.66215855",
"0.63515484",
"0.6261399",
"0.6232191",
"0.6069502",
"0.5956803",
"0.5953466",
"0.5879444",
"0.58689076",
"0.5860924",
"0.58554953",
"0.58298475",
"0.5798921",
"0.57774603",
"0.574557",
"0.574557",
"0.574557",
"0.574557",
"0.574203",
"0.574203",
"... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function endsWith($haystack, $needle) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7137396",
"0.66215855",
"0.63515484",
"0.6261399",
"0.6232191",
"0.6069502",
"0.5956803",
"0.5953466",
"0.5879444",
"0.58689076",
"0.5860924",
"0.58554953",
"0.58298475",
"0.5798921",
"0.57774603",
"0.574557",
"0.574557",
"0.574557",
"0.574557",
"0.574203",
"0.574203",
"... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function random_string($length, $keyspace = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7137396",
"0.66215855",
"0.63515484",
"0.6261399",
"0.6232191",
"0.6069502",
"0.5956803",
"0.5953466",
"0.5879444",
"0.58689076",
"0.5860924",
"0.58554953",
"0.58298475",
"0.5798921",
"0.57774603",
"0.574557",
"0.574557",
"0.574557",
"0.574557",
"0.574203",
"0.574203",
"... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function generate_download_name($compression_method) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7136888",
"0.6622235",
"0.63520926",
"0.62617975",
"0.6232242",
"0.6069731",
"0.59585845",
"0.5954361",
"0.58800024",
"0.58694065",
"0.58624536",
"0.58557904",
"0.58307487",
"0.5800812",
"0.5778475",
"0.57459646",
"0.57459646",
"0.57459646",
"0.57459646",
"0.57424426",
"0.... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function calculate_download_file_hash($path) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7137396",
"0.66215855",
"0.63515484",
"0.6261399",
"0.6232191",
"0.6069502",
"0.5956803",
"0.5953466",
"0.5879444",
"0.58689076",
"0.5860924",
"0.58554953",
"0.58298475",
"0.5798921",
"0.57774603",
"0.574557",
"0.574557",
"0.574557",
"0.574557",
"0.574203",
"0.574203",
"... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function calculate_app_version_hash($link, $data, $app_version_id) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7137396",
"0.66215855",
"0.63515484",
"0.6261399",
"0.6232191",
"0.6069502",
"0.5956803",
"0.5953466",
"0.5879444",
"0.58689076",
"0.5860924",
"0.58554953",
"0.58298475",
"0.5798921",
"0.57774603",
"0.574557",
"0.574557",
"0.574557",
"0.574557",
"0.574203",
"0.574203",
"... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function verify_address($address) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7137396",
"0.66215855",
"0.63515484",
"0.6261399",
"0.6232191",
"0.6069502",
"0.5956803",
"0.5953466",
"0.5879444",
"0.58689076",
"0.5860924",
"0.58554953",
"0.58298475",
"0.5798921",
"0.57774603",
"0.574557",
"0.574557",
"0.574557",
"0.574557",
"0.574203",
"0.574203",
"... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function verify_app_id($app_id) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7136888",
"0.6622235",
"0.63520926",
"0.62617975",
"0.6232242",
"0.6069731",
"0.59585845",
"0.5954361",
"0.58800024",
"0.58694065",
"0.58624536",
"0.58557904",
"0.58307487",
"0.5800812",
"0.5778475",
"0.57459646",
"0.57459646",
"0.57459646",
"0.57459646",
"0.57424426",
"0.... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function verify_app_file_id($app_file_id) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7137396",
"0.66215855",
"0.63515484",
"0.6261399",
"0.6232191",
"0.6069502",
"0.5956803",
"0.5953466",
"0.5879444",
"0.58689076",
"0.5860924",
"0.58554953",
"0.58298475",
"0.5798921",
"0.57774603",
"0.574557",
"0.574557",
"0.574557",
"0.574557",
"0.574203",
"0.574203",
"... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function verify_app_version_id($app_version_id) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7137396",
"0.66215855",
"0.63515484",
"0.6261399",
"0.6232191",
"0.6069502",
"0.5956803",
"0.5953466",
"0.5879444",
"0.58689076",
"0.5860924",
"0.58554953",
"0.58298475",
"0.5798921",
"0.57774603",
"0.574557",
"0.574557",
"0.574557",
"0.574557",
"0.574203",
"0.574203",
"... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function verify_codename($codename) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7137396",
"0.66215855",
"0.63515484",
"0.6261399",
"0.6232191",
"0.6069502",
"0.5956803",
"0.5953466",
"0.5879444",
"0.58689076",
"0.5860924",
"0.58554953",
"0.58298475",
"0.5798921",
"0.57774603",
"0.574557",
"0.574557",
"0.574557",
"0.574557",
"0.574203",
"0.574203",
"... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function verify_compression_method($compression_method) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7136888",
"0.6622235",
"0.63520926",
"0.62617975",
"0.6232242",
"0.6069731",
"0.59585845",
"0.5954361",
"0.58800024",
"0.58694065",
"0.58624536",
"0.58557904",
"0.58307487",
"0.5800812",
"0.5778475",
"0.57459646",
"0.57459646",
"0.57459646",
"0.57459646",
"0.57424426",
"0.... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function verify_content($content) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7137396",
"0.66215855",
"0.63515484",
"0.6261399",
"0.6232191",
"0.6069502",
"0.5956803",
"0.5953466",
"0.5879444",
"0.58689076",
"0.5860924",
"0.58554953",
"0.58298475",
"0.5798921",
"0.57774603",
"0.574557",
"0.574557",
"0.574557",
"0.574557",
"0.574203",
"0.574203",
"... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function verify_download_name($download_name) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7137396",
"0.66215855",
"0.63515484",
"0.6261399",
"0.6232191",
"0.6069502",
"0.5956803",
"0.5953466",
"0.5879444",
"0.58689076",
"0.5860924",
"0.58554953",
"0.58298475",
"0.5798921",
"0.57774603",
"0.574557",
"0.574557",
"0.574557",
"0.574557",
"0.574203",
"0.574203",
"... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function verify_email($email) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7137396",
"0.66215855",
"0.63515484",
"0.6261399",
"0.6232191",
"0.6069502",
"0.5956803",
"0.5953466",
"0.5879444",
"0.58689076",
"0.5860924",
"0.58554953",
"0.58298475",
"0.5798921",
"0.57774603",
"0.574557",
"0.574557",
"0.574557",
"0.574557",
"0.574203",
"0.574203",
"... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function verify_filename($filename) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7136888",
"0.6622235",
"0.63520926",
"0.62617975",
"0.6232242",
"0.6069731",
"0.59585845",
"0.5954361",
"0.58800024",
"0.58694065",
"0.58624536",
"0.58557904",
"0.58307487",
"0.5800812",
"0.5778475",
"0.57459646",
"0.57459646",
"0.57459646",
"0.57459646",
"0.57424426",
"0.... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function verify_hash($hash) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7137396",
"0.66215855",
"0.63515484",
"0.6261399",
"0.6232191",
"0.6069502",
"0.5956803",
"0.5953466",
"0.5879444",
"0.58689076",
"0.5860924",
"0.58554953",
"0.58298475",
"0.5798921",
"0.57774603",
"0.574557",
"0.574557",
"0.574557",
"0.574557",
"0.574203",
"0.574203",
"... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function verify_level($level) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7137396",
"0.66215855",
"0.63515484",
"0.6261399",
"0.6232191",
"0.6069502",
"0.5956803",
"0.5953466",
"0.5879444",
"0.58689076",
"0.5860924",
"0.58554953",
"0.58298475",
"0.5798921",
"0.57774603",
"0.574557",
"0.574557",
"0.574557",
"0.574557",
"0.574203",
"0.574203",
"... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function verify_name($name) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7137396",
"0.66215855",
"0.63515484",
"0.6261399",
"0.6232191",
"0.6069502",
"0.5956803",
"0.5953466",
"0.5879444",
"0.58689076",
"0.5860924",
"0.58554953",
"0.58298475",
"0.5798921",
"0.57774603",
"0.574557",
"0.574557",
"0.574557",
"0.574557",
"0.574203",
"0.574203",
"... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function verify_region_id($region_id) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7136888",
"0.6622235",
"0.63520926",
"0.62617975",
"0.6232242",
"0.6069731",
"0.59585845",
"0.5954361",
"0.58800024",
"0.58694065",
"0.58624536",
"0.58557904",
"0.58307487",
"0.5800812",
"0.5778475",
"0.57459646",
"0.57459646",
"0.57459646",
"0.57459646",
"0.57424426",
"0.... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function verify_secret_key($secret_key) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7137396",
"0.66215855",
"0.63515484",
"0.6261399",
"0.6232191",
"0.6069502",
"0.5956803",
"0.5953466",
"0.5879444",
"0.58689076",
"0.5860924",
"0.58554953",
"0.58298475",
"0.5798921",
"0.57774603",
"0.574557",
"0.574557",
"0.574557",
"0.574557",
"0.574203",
"0.574203",
"... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function verify_vendor_id($vendor_id) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7137396",
"0.66215855",
"0.63515484",
"0.6261399",
"0.6232191",
"0.6069502",
"0.5956803",
"0.5953466",
"0.5879444",
"0.58689076",
"0.5860924",
"0.58554953",
"0.58298475",
"0.5798921",
"0.57774603",
"0.574557",
"0.574557",
"0.574557",
"0.574557",
"0.574203",
"0.574203",
"... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function verify_version($version) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7137396",
"0.66215855",
"0.63515484",
"0.6261399",
"0.6232191",
"0.6069502",
"0.5956803",
"0.5953466",
"0.5879444",
"0.58689076",
"0.5860924",
"0.58554953",
"0.58298475",
"0.5798921",
"0.57774603",
"0.574557",
"0.574557",
"0.574557",
"0.574557",
"0.574203",
"0.574203",
"... | 0.0 | -1 |
Colorize: green Colorize: green Colorize: green Colorize: green | function verify_version_for_user($version) // Colorize: green
{ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function colorize() {\n\t\tself::$colorize = true;\n\t}",
"function onStandard($str) {\n return colorize($str)->onStandard();\n}",
"function colorize($string) {\n $colorize = true;\n if (Terminus::getConfig('colorize') == 'auto') {\n $colorize = !\\cli\\Shell::isPiped();\n }\n $colorized_string ... | [
"0.7136888",
"0.6622235",
"0.63520926",
"0.62617975",
"0.6232242",
"0.6069731",
"0.59585845",
"0.5954361",
"0.58800024",
"0.58694065",
"0.58624536",
"0.58557904",
"0.58307487",
"0.5800812",
"0.5778475",
"0.57459646",
"0.57459646",
"0.57459646",
"0.57459646",
"0.57424426",
"0.... | 0.0 | -1 |
Create instance, load current info based on session info | public function __construct($db, $sessionID, $userID) {
$this->db = $db;
$this->sessionID = $sessionID;
$this->auth = new \auth($db);
$this->userID = $this->auth->getUserID();
$this->calendar = new \CAL\calendar($this->db);
$this->lists = new \lists($this->db);
er... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function instantiate() {\n\n // Checking if a user session already exists.\n if ($this->session->userData('loggedIn') === true) {\n\n // Set the identity\n $this->setIdentity($this->session->userData('id'));\n\n // Set isGuest to false.\n $this->isGuest = false;\n }\n }",
"pu... | [
"0.71987313",
"0.68522227",
"0.68478286",
"0.66913664",
"0.6658467",
"0.665356",
"0.663392",
"0.6587899",
"0.6538324",
"0.6525835",
"0.65178853",
"0.6484138",
"0.6458319",
"0.64573425",
"0.64187515",
"0.6393522",
"0.6387542",
"0.63779044",
"0.63664305",
"0.6348507",
"0.631297... | 0.0 | -1 |
Returns DB table name for entity | public static function getTableName()
{
return 'b_report_visual_report_widget';
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getTableName(): string\n {\n return $this->getEntityDao()->getTableName();\n }",
"public static function getTableName()\n\t{\n\t\treturn 'b_timeman_monitor_entity';\n\t}",
"public static function getTableName()\n {\n return _DB_PREFIX_ . self::$definition['table'];\n }... | [
"0.8198709",
"0.78227067",
"0.7774555",
"0.77489454",
"0.7628899",
"0.7624275",
"0.7600482",
"0.75954634",
"0.7568148",
"0.7560134",
"0.7534309",
"0.7534309",
"0.75264937",
"0.7522785",
"0.751881",
"0.7515723",
"0.7515723",
"0.750556",
"0.7502512",
"0.7502512",
"0.7499902",
... | 0.0 | -1 |
Returns entity map definition. To get initialized fields. | public static function getMap()
{
return array(
new IntegerField(
'ID', array(
'primary' => true,
'autocomplete' => true,
)
),
new StringField('GID'),
new StringField('BOARD_ID'),
new Inte... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function getMap()\n\t{\n\t\treturn array(\n\t\t\t'ID' => new Entity\\IntegerField('ID', array(\n\t\t\t\t'primary' => true,\n\t\t\t\t'autocomplete' => true\n\t\t\t)),\n\t\t\t'ORDER_NEW_TASK' => new Entity\\StringField('ORDER_NEW_TASK', array(\n\t\t\t\t'required' => true\n\t\t\t))\n\t\t);\n\t}",
"pub... | [
"0.7015885",
"0.6892737",
"0.6874207",
"0.6847661",
"0.679989",
"0.67517155",
"0.664372",
"0.65369815",
"0.653322",
"0.65271753",
"0.6493772",
"0.6488595",
"0.6435219",
"0.64083576",
"0.6354096",
"0.6295647",
"0.62785566",
"0.6258927",
"0.6249063",
"0.6212577",
"0.6188243",
... | 0.53313196 | 84 |
Render view config object for current package and theme | public function getViewConfig(array $params = [])
{
$this->assetRepo->updateDesignParams($params);
$viewConfigParams = [];
if (isset($params['themeModel'])) {
/** @var \Magento\Framework\View\Design\ThemeInterface $currentTheme */
$currentTheme = $params['themeModel'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function render()\n\t{\n\t\t$config = json_decode(file_get_contents(JPATH_CONFIGURATION . '/config.json'));\n\n\t\t// @todo Twig can not foreach() over stdclasses...\n\t\t$cfx = ArrayHelper::fromObject($config);\n\n\t\t$this->renderer->set('config', $cfx);\n\n\t\treturn parent::render();\n\t}",
"public fu... | [
"0.7216423",
"0.65727717",
"0.6475849",
"0.63279325",
"0.63176644",
"0.6239308",
"0.6227612",
"0.6226452",
"0.622049",
"0.6193899",
"0.6158485",
"0.6158485",
"0.61206955",
"0.60963935",
"0.609497",
"0.60807675",
"0.6060992",
"0.60442007",
"0.6030099",
"0.6025871",
"0.6019336"... | 0.57904893 | 44 |
really should only be used in testing | public static function set(string $key, $value)
{
if (!self::$configLoaded) {
self::loadConfig();
}
self::$config[$key] = $value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function helper()\n\t{\n\t\n\t}",
"protected function test9() {\n\n }",
"private function _i() {\n }",
"protected function testObjects() {\n }",
"protected function __init__() { }",
"public function testPingTreeGetItem()\n {\n }",
"private function __construct () {}",
"private funct... | [
"0.59388685",
"0.59295464",
"0.5738805",
"0.570226",
"0.56354594",
"0.55978715",
"0.5595923",
"0.55617034",
"0.55609864",
"0.55609864",
"0.55609864",
"0.55609864",
"0.55609864",
"0.55609864",
"0.55609864",
"0.55609864",
"0.55609864",
"0.55609864",
"0.55609864",
"0.55609864",
... | 0.0 | -1 |
really should only be used in testing | public static function remove(string $key)
{
if (!self::$configLoaded) {
self::loadConfig();
}
unset(self::$config[$key]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function helper()\n\t{\n\t\n\t}",
"protected function test9() {\n\n }",
"private function _i() {\n }",
"protected function testObjects() {\n }",
"protected function __init__() { }",
"public function testPingTreeGetItem()\n {\n }",
"private function __construct () {}",
"private funct... | [
"0.59388685",
"0.59295464",
"0.5738805",
"0.570226",
"0.56354594",
"0.55978715",
"0.5595923",
"0.55617034",
"0.55609864",
"0.55609864",
"0.55609864",
"0.55609864",
"0.55609864",
"0.55609864",
"0.55609864",
"0.55609864",
"0.55609864",
"0.55609864",
"0.55609864",
"0.55609864",
... | 0.0 | -1 |
really should only be used in testing | public static function reset()
{
self::$config = null;
self::$configLoaded = false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function helper()\n\t{\n\t\n\t}",
"protected function test9() {\n\n }",
"private function _i() {\n }",
"protected function testObjects() {\n }",
"protected function __init__() { }",
"public function testPingTreeGetItem()\n {\n }",
"private function __construct () {}",
"private funct... | [
"0.59388685",
"0.59295464",
"0.5738805",
"0.570226",
"0.56354594",
"0.55978715",
"0.5595923",
"0.55617034",
"0.55609864",
"0.55609864",
"0.55609864",
"0.55609864",
"0.55609864",
"0.55609864",
"0.55609864",
"0.55609864",
"0.55609864",
"0.55609864",
"0.55609864",
"0.55609864",
... | 0.0 | -1 |
Returns usergroup as object | function getGroup()
{
return Factory::create('group', $this->_gid);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getUsergroup() {}",
"public function getUserGroup() {\n $c = $this->modx->newQuery('modUserGroup');\n $c->select($this->modx->getSelectColumns('modUserGroup','modUserGroup'));\n $c->select($this->modx->getSelectColumns('disUserGroupProfile','Profile','',array(\n 'p... | [
"0.7627634",
"0.73034847",
"0.72861236",
"0.7229572",
"0.68974304",
"0.6880989",
"0.6791159",
"0.67871755",
"0.67670745",
"0.676184",
"0.6642626",
"0.6581714",
"0.6552893",
"0.64736944",
"0.6462298",
"0.6435887",
"0.6404787",
"0.64014363",
"0.63675565",
"0.6359705",
"0.635842... | 0.6838569 | 6 |
Returns userid as integer | public function getId()
{
return $this->_uid;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getUserID() {\n\t\tif (is_numeric($this->user_id)) {\n\t\t\treturn $this->user_id;\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}",
"public function getUserId()\n {\n $value = $this->get(self::user_id);\n return $value === null ? (integer)$value : $value;\n }",
"public function ... | [
"0.8099202",
"0.8041971",
"0.8030892",
"0.79190314",
"0.77955824",
"0.7761836",
"0.77218616",
"0.77154535",
"0.76581895",
"0.76281166",
"0.7622093",
"0.7578695",
"0.75462484",
"0.7535741",
"0.7482632",
"0.7469782",
"0.7441039",
"0.7441039",
"0.7429418",
"0.7429418",
"0.742459... | 0.0 | -1 |
Returns user's name Either real if known or username. | public function getName($real = false)
{
if (true === $real && !is_null($this->_realName)) {
return $this->_realName;
} else {
return $this->_userName;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getUserOrProperName()\n {\n $person = $this->getPerson();\n if (strtolower($person->getEmail()) != strtolower($this->username)) {\n return $this->username;\n } else {\n $init = substr($person->getFirstname(), 0, 1);\n return \"{$init}. {$pers... | [
"0.8529275",
"0.80090934",
"0.7952243",
"0.78205526",
"0.7819316",
"0.7724812",
"0.77069783",
"0.76964736",
"0.76552254",
"0.7628716",
"0.7600707",
"0.76006466",
"0.75921065",
"0.7542373",
"0.75330985",
"0.7530391",
"0.7504881",
"0.74768025",
"0.7452608",
"0.7452132",
"0.7436... | 0.7585468 | 13 |
Mock a class and use the mock in the current request | protected function mock($class) {
$mock = Mockery::mock($class);
$this->app->instance($class, $mock);
return $mock;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static function mock(string $class, array $config = null)\n {\n return new self('mock', $class, $config);\n }",
"public function setUp() {\n\t\t$this->mockDecoratedRequestEngine = $this->getMockBuilder('TYPO3\\Flow\\Http\\Client\\RequestEngineInterface')->getMock();\n\t\t$this->cacheAwareRequestEngi... | [
"0.649648",
"0.6462462",
"0.6446028",
"0.63226396",
"0.6316294",
"0.6187786",
"0.61703694",
"0.6125306",
"0.6095034",
"0.60701096",
"0.6046694",
"0.6015498",
"0.5999807",
"0.5988255",
"0.5941094",
"0.5897924",
"0.5884926",
"0.5876863",
"0.57910377",
"0.57659394",
"0.5741918",... | 0.6734826 | 0 |
Sets up the fixture, for example, opens a network connection. This method is called before a test is executed. | protected function setUp() {
$this->response = new Response();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function fixture_setup() {\r\n $this->service = SQLConnectionService::get_instance($this->configuration);\r\n test_data_setup($this->service);\r\n }",
"public function setUp() {\n\t\t$options = [\n\t\t\t'db' => [\n\t\t\t\t'adapter' => 'Connection',\n\t\t\t\t'connection' => $this->_conn... | [
"0.75935996",
"0.71713233",
"0.69275117",
"0.6909655",
"0.6891774",
"0.68835247",
"0.6815039",
"0.68027806",
"0.6753642",
"0.6753079",
"0.67463374",
"0.6733237",
"0.6714164",
"0.6707088",
"0.6702115",
"0.6683724",
"0.6683724",
"0.6683724",
"0.6683724",
"0.6683724",
"0.6678992... | 0.0 | -1 |
Tears down the fixture, for example, closes a network connection. This method is called after a test is executed. | protected function tearDown() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function tearDown(): void\n {\n parent::tearDown();\n\n Mockery::close();\n\n unset($this->faker, $this->waqi);\n }",
"public function teardown()\n {\n //\n }",
"protected function tearDown(): void\n\t{\n\t\tglobal $modSettings;\n\n\t\t// remove temporary test dat... | [
"0.7306208",
"0.72364795",
"0.722002",
"0.71867394",
"0.71861356",
"0.71476674",
"0.7140671",
"0.7134978",
"0.7120237",
"0.710423",
"0.7080303",
"0.70796925",
"0.70759535",
"0.7052445",
"0.7048992",
"0.70331645",
"0.70227814",
"0.7014337",
"0.7000383",
"0.6999935",
"0.6999430... | 0.0 | -1 |
Get all contacts of a list | public function get_contacts($list_id = self::SENDGRID_FXPROTOOLS_LIST_ID)
{
$sg = new \SendGrid( self::SENDGRID_API_KEY );
$query_params = json_decode('{"page": 1, "page_size": 1, }');
$response = $sg->client->contactdb()->lists()->_($list_id)->recipients()->get(null, $query_params);
return $response->bo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getContactsList() {\n return $this->_get(7);\n }",
"public function getContacts();",
"public function getContactsList() {\n return $this->_get(6);\n }",
"public function getContactList()\r\n {\r\n return $this->exec('contact_list');\r\n }",
"public abstract func... | [
"0.8119534",
"0.8112432",
"0.8090667",
"0.7910372",
"0.786432",
"0.7675143",
"0.7629985",
"0.7605466",
"0.75427717",
"0.7514731",
"0.73729944",
"0.73159415",
"0.7295968",
"0.7267743",
"0.72498906",
"0.72162354",
"0.7180445",
"0.7032053",
"0.6987499",
"0.6973628",
"0.69224906"... | 0.7197231 | 16 |
Convert Gregorian to Hijri. | private static function gth($year, $month, $day)
{
$year = (int) $year;
$month = (int) $month - 1; // Month start with Zero
$day = (int) $day;
$y = $year;
$m = $month + 1;
// append January and February to the previous year (i.e. regard March as
// the first... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function hijri($format = 'f' ,$date = null)\n {\n return Tawkit::fullHijri($date,$format); \n }",
"public function ToHijri()\n {\n\n\n }",
"public function getHijriFromGregorian(Carbon $gregorian): HijriDate\n {\n $gregorian->setTimezone('+5:00'); // Ensure it is in... | [
"0.71889377",
"0.697227",
"0.6869283",
"0.668784",
"0.66581494",
"0.59770536",
"0.59620744",
"0.5860414",
"0.5798254",
"0.57149976",
"0.5642942",
"0.52831894",
"0.5256363",
"0.5247843",
"0.5230823",
"0.5226742",
"0.52052736",
"0.51164025",
"0.50938743",
"0.509317",
"0.5056252... | 0.49669415 | 24 |
Convert Hijri to Gregorian. | private static function htg($year, $month, $day)
{
$year = (int) $year;
$month = (int) $month;
$day = (int) $day;
$ii = $year - 1;
$iln = ($ii * 12) + 1 + ($month - 1);
$i = $iln - 16260;
$mcjdn = $day + self::$UQD[$i - 1] - 1;
$cjdn = $mcjdn + 240000... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getGregorianFromHijri(HijriDate $hijri): Carbon\n {\n $hijriYear = $hijri->getYear();\n $hijriMonth = $hijri->getMonth();\n $hijriDay = $hijri->getDay();\n\n // Hijri to Julian\n $julianDay = floor((11 * $hijriYear + 3) / 30) + floor(354 * $hijriYear) + floor(3... | [
"0.7710955",
"0.6919239",
"0.6804697",
"0.65273505",
"0.6479675",
"0.64742625",
"0.59714067",
"0.5959266",
"0.5917151",
"0.5848497",
"0.5801117",
"0.577381",
"0.5519993",
"0.5500969",
"0.54773843",
"0.5164702",
"0.5158118",
"0.509517",
"0.49717143",
"0.49648085",
"0.49166712"... | 0.42890292 | 59 |
Convert Julian to Gregorian. | private static function jtg($date)
{
$z = floor($date + 0.5);
$a = floor(($z - 1867216.25) / 36524.25);
$a = $z + 1 + $a - floor($a / 4);
$b = $a + 1524;
$c = floor(($b - 122.1) / 365.25);
$d = floor(365.25 * $c);
$e = floor(($b - $d) / 30.6001);
$day ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function jd_to_gregorian($jd, &$mo, &$da, &$yr) {\n\n\t\t$wjd = floor($jd - 0.5) + 0.5;\n\t\t$depoch = $wjd - GREGORIAN_EPOCH;\n\t\t$quadricent = floor($depoch / 146097);\n\t\t$dqc = $depoch % 146097;\n\t\t$cent = floor($dqc / 36524);\n\t\t$dcent = $dqc % 36524;\n\t\t$quad = floor($dcent / 1461);\n\t\t$dquad = $dc... | [
"0.7151603",
"0.67244",
"0.669998",
"0.66935",
"0.65778345",
"0.65248656",
"0.6336798",
"0.6270973",
"0.6110147",
"0.6035083",
"0.59958315",
"0.59077644",
"0.5686333",
"0.56845737",
"0.5643309",
"0.56056154",
"0.55932224",
"0.5560368",
"0.5431845",
"0.53751326",
"0.5357806",
... | 0.48555538 | 31 |
Get the associated Throwable. | public function getThrowable()
{
return $this->throwable;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getException(): Throwable;",
"public function getException(): Throwable;",
"public function getThrowable(): ?Throwable;",
"public function getThrowable(): ?Throwable;",
"public function getThrownException()\n {\n return $this->thrownException;\n }",
"public function getExcept... | [
"0.74499875",
"0.74499875",
"0.69755787",
"0.69755787",
"0.6706571",
"0.6662586",
"0.6662586",
"0.6662586",
"0.6662586",
"0.6662586",
"0.6662586",
"0.6570453",
"0.6463788",
"0.6428791",
"0.64262563",
"0.6349882",
"0.63245964",
"0.63133246",
"0.61544424",
"0.591493",
"0.588939... | 0.7599398 | 0 |
Display a listing of the resource. | public function index()
{
$players = Players::get()->toArray();
return view('players', compact('players'));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->re... | [
"0.7446777",
"0.736227",
"0.73005503",
"0.72478926",
"0.71631265",
"0.71489686",
"0.7131636",
"0.7105969",
"0.71029514",
"0.7101372",
"0.70508176",
"0.6995128",
"0.69890636",
"0.6934895",
"0.6900203",
"0.6899281",
"0.6891734",
"0.6887235",
"0.68670005",
"0.6849741",
"0.683052... | 0.0 | -1 |
Show the form for creating a new resource. | public function create()
{
//
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function create()\n {\n return $this->showForm('create');\n }",
"public function create()\n {\n return $this->showForm('create');\n }",
"public function create()\n {\n return view('admin.resources.create');\n }",
"public function create(){\n\n return view(... | [
"0.75921303",
"0.75921303",
"0.7586987",
"0.75781953",
"0.756992",
"0.7498765",
"0.7435984",
"0.74298537",
"0.7385191",
"0.7350131",
"0.7336855",
"0.73092943",
"0.72943234",
"0.72800833",
"0.7271207",
"0.7241119",
"0.7229479",
"0.7222803",
"0.71828884",
"0.7176647",
"0.717184... | 0.0 | -1 |
Store a newly created resource in storage. | public function store(Request $request)
{
$validation = [
'first_name' => 'required',
'last_name' => 'required',
'age' => 'required|numeric|min:15'
];
if($request->file('photo')!==null){
$validation['photo'] = 'required|file|max:2048|m... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function store($data, Resource $resource);",
"public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations... | [
"0.72865677",
"0.7145327",
"0.71325725",
"0.6640912",
"0.66209733",
"0.65685713",
"0.652643",
"0.65095705",
"0.64490104",
"0.637569",
"0.63736665",
"0.63657933",
"0.63657933",
"0.63657933",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.63424... | 0.0 | -1 |
Display the specified resource. | public function show($id)
{
//
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function show(Resource $resource)\n {\n // not available for now\n }",
"public function show(Resource $resource)\n {\n //\n }",
"function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id... | [
"0.8233718",
"0.8190437",
"0.6828712",
"0.64986944",
"0.6495974",
"0.6469629",
"0.6462615",
"0.6363665",
"0.6311607",
"0.62817234",
"0.6218966",
"0.6189695",
"0.61804265",
"0.6171014",
"0.61371076",
"0.61207956",
"0.61067593",
"0.6105954",
"0.6094066",
"0.6082806",
"0.6045245... | 0.0 | -1 |
Show the form for editing the specified resource. | public function edit($id)
{
//
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }",
"public function edit(Resource $resource)\n {\n //\n }",
"public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n ... | [
"0.78550774",
"0.7692893",
"0.7273195",
"0.7242132",
"0.7170847",
"0.70622855",
"0.7053459",
"0.6982539",
"0.69467914",
"0.6945275",
"0.6941114",
"0.6928077",
"0.69019294",
"0.68976134",
"0.68976134",
"0.6877213",
"0.68636996",
"0.68592185",
"0.68566656",
"0.6844697",
"0.6833... | 0.0 | -1 |
Update the specified resource in storage. | public function update(Request $request, $id)
{
//
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ... | [
"0.7423347",
"0.70622426",
"0.70568657",
"0.6896551",
"0.65835553",
"0.64519453",
"0.6348333",
"0.6212436",
"0.61450946",
"0.6122591",
"0.6114199",
"0.6101911",
"0.60876113",
"0.60528636",
"0.60177964",
"0.6006609",
"0.59725446",
"0.594558",
"0.59395295",
"0.5938792",
"0.5893... | 0.0 | -1 |
Remove the specified resource from storage. | public function destroy($id)
{
$data = Players::where('id', $id)->first()->toArray();
//unlink photo
if(file_exists('uploads/'.$data['photo'])){
unlink('uploads/'.$data['photo']);
Players::where(['id'=>$id])->delete();
}
return redirect()->back()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }",
"public function destroy(Resource $resource)\n {\n //\n }",
"public function removeResource($resourceID)\n\t\t{\n\t\t}",
"public function unpublishResource(PersistentResource $resource)\n {\n ... | [
"0.6672584",
"0.6659381",
"0.6635911",
"0.6632799",
"0.6626075",
"0.65424126",
"0.65416265",
"0.64648265",
"0.62882507",
"0.6175931",
"0.6129922",
"0.60893893",
"0.6054415",
"0.60428125",
"0.60064924",
"0.59337646",
"0.5930772",
"0.59199584",
"0.5919811",
"0.5904504",
"0.5897... | 0.0 | -1 |
this up() migration is autogenerated, please modify it to your needs | public function up(Schema $schema)
{
$this->abortIf($this->connection->getDatabasePlatform()->getName() != "mysql");
$this->addSql("CREATE TABLE config_sections (id INT AUTO_INCREMENT NOT NULL, parent_id INT DEFAULT NULL, name VARCHAR(125) NOT NULL, UNIQUE INDEX UNIQ_965EAD465E237E06 (name), INDEX ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected function up();",
"abstract public function up();",
"abstract public function up();",
"abstract public function up();",
"public function up()\n {\n $this->execute(\"\n ALTER TABLE `tcmn_communication` \n CHANGE `tcmn_pprs_id` `tcmn_pprs_id` SMALLINT(5) UNSIGNE... | [
"0.80062366",
"0.79145443",
"0.79145443",
"0.79145443",
"0.7572342",
"0.756089",
"0.75283176",
"0.7498379",
"0.7493237",
"0.7453656",
"0.74463314",
"0.7433381",
"0.74307704",
"0.7427088",
"0.741794",
"0.73779047",
"0.7374933",
"0.7370453",
"0.73637444",
"0.73505706",
"0.73290... | 0.0 | -1 |
this down() migration is autogenerated, please modify it to your needs | public function down(Schema $schema)
{
$this->abortIf($this->connection->getDatabasePlatform()->getName() != "mysql");
$this->addSql("ALTER TABLE config_sections DROP FOREIGN KEY FK_965EAD46727ACA70");
$this->addSql("ALTER TABLE app_config DROP FOREIGN KEY FK_318942FCD823E37A");
$th... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function down()\n {\n //add your migration here \n }",
"public function down()\n {\n //add your migration here\n }",
"public function down()\n\t{\n $this->dropColumn('producto','fecha');\n\n //add column fecha in producto\n $this->addColumn('calculo'... | [
"0.7950277",
"0.78636813",
"0.76065636",
"0.7493955",
"0.7320625",
"0.7245268",
"0.7187498",
"0.71543235",
"0.715298",
"0.7141911",
"0.7135835",
"0.71214414",
"0.71154845",
"0.71057886",
"0.7098064",
"0.70800334",
"0.7078775",
"0.70729095",
"0.7068331",
"0.7066272",
"0.705336... | 0.0 | -1 |
Creates the generic property. Parameters must be specified in key=>value syntax. | public function __construct(Component $root, $name, $value = null, array $parameters = [], $group = null)
{
$this->name = $name;
$this->group = $group;
$this->root = $root;
foreach ($parameters as $k => $v) {
$this->add($k, $v);
}
if (!is_null($value)) ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function createProperty();",
"static public function createProperty($name, $value, array $parameters = array()) {\n\n return new Property\\Text($name, $value, $parameters);\n\n }",
"public function create_property($name,$params){\n\t\t$endpoint = 'properties/'.$name;\n\n\t\ttry{\n\t\t\treturn json_de... | [
"0.7095304",
"0.6121014",
"0.6110994",
"0.60713995",
"0.60279053",
"0.5582816",
"0.55579007",
"0.55107677",
"0.5450155",
"0.5427665",
"0.5338361",
"0.53073525",
"0.5288827",
"0.52727246",
"0.51777196",
"0.5169115",
"0.5162658",
"0.5143158",
"0.5078803",
"0.5068681",
"0.500802... | 0.0 | -1 |
Updates the current value. This may be either a single, or multiple strings in an array. | public function setValue($value)
{
$this->value = $value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function update($listOfValue);",
"public function update($array = [])\n {\n $this->stored = array_replace_recursive($this->stored, $array);\n }",
"public function update(array $input)\n {\n }",
"function Update($array){\n\n }",
"function update_value( $value, $post_id, $field )... | [
"0.64449745",
"0.6397754",
"0.6241766",
"0.62135637",
"0.61436486",
"0.60610247",
"0.58764994",
"0.58764994",
"0.58764994",
"0.5872042",
"0.5857526",
"0.58362186",
"0.5834522",
"0.5834522",
"0.577558",
"0.57270944",
"0.57270944",
"0.5697672",
"0.5686683",
"0.56456715",
"0.560... | 0.0 | -1 |
Returns the current value. This method will always return a singular value. If this was a multivalue object, some decision will be made first on how to represent it as a string. To get the correct multivalue version, use getParts. | public function getValue()
{
if (is_array($this->value)) {
if (0 == count($this->value)) {
return;
} elseif (1 === count($this->value)) {
return $this->value[0];
} else {
return $this->getRawMimeDirValue();
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function valueOf() {\n return $this->_value;\n }",
"function getValue() {\n\t\treturn $this->sValue;\n\t}",
"public function value() { return $this->_m_value; }",
"public function getValue()\n {\n return $this->str_value;\n }",
"public function value()\n\t{\n\t\treturn... | [
"0.7281043",
"0.7149458",
"0.7119671",
"0.70677346",
"0.69635963",
"0.6960775",
"0.69368017",
"0.6928",
"0.69275326",
"0.6926312",
"0.69118303",
"0.68937355",
"0.68937355",
"0.68937355",
"0.68937355",
"0.68937355",
"0.68937355",
"0.68937355",
"0.68937355",
"0.68937355",
"0.68... | 0.0 | -1 |
Sets a multivalued property. | public function setParts(array $parts)
{
$this->value = $parts;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setMultivaluedAttributes(array $multivaluedAttributes)\n {\n $this->multivaluedAttributes = $multivaluedAttributes;\n }",
"function setMultiple($properties) {\n foreach ($properties as $property => $value) {\n $this->set($property, $value);\n }\n }",
"public function se... | [
"0.6653804",
"0.64490235",
"0.6063194",
"0.5949035",
"0.59296364",
"0.5835365",
"0.58082116",
"0.57395494",
"0.57071227",
"0.56968164",
"0.5676443",
"0.5521121",
"0.55210805",
"0.5473919",
"0.54721874",
"0.54564106",
"0.54215497",
"0.54201746",
"0.54077053",
"0.5405099",
"0.5... | 0.5325679 | 25 |
Returns a multivalued property. This method always returns an array, if there was only a single value, it will still be wrapped in an array. | public function getParts()
{
if (is_null($this->value)) {
return [];
} elseif (is_array($this->value)) {
return $this->value;
} else {
return [$this->value];
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getMultiValuedProp($obj,$propName) {\n\t\tif (isset($obj->properties[$propName])) {\n\t\t\treturn CmisRepositoryWrapper::getAsArray($obj->properties[$propName]);\n\t\t}\n\t\treturn array();\n\t}",
"public function getArray($prop) {\n\n\t\t\t// Get property\n\t\t\t$val = $this->get($prop);\n\n\t\t... | [
"0.66065663",
"0.65915537",
"0.615041",
"0.6074771",
"0.60474443",
"0.6039081",
"0.5952988",
"0.5952752",
"0.59083545",
"0.58923835",
"0.58785385",
"0.5867496",
"0.58608335",
"0.58434033",
"0.57784754",
"0.5752701",
"0.57506514",
"0.573795",
"0.573795",
"0.5685176",
"0.567941... | 0.65192133 | 2 |
Adds a new parameter. If a parameter with same name already existed, the values will be combined. If nameless parameter is added, we try to guess its name. | public function add($name, $value = null)
{
$noName = false;
if (null === $name) {
$name = Parameter::guessParameterNameByValue($value);
$noName = true;
}
if (isset($this->parameters[strtoupper($name)])) {
$this->parameters[strtoupper($name)]->add... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function addParameter(string $name, $value): self;",
"function addParam($name, $value) {\n if (!isset($this->params[$name])) {\n $this->setParam($name, $value);\n }\n else {\n $oldParam = $this->getParam($name);\n if (!is_array($oldParam)) {\n ... | [
"0.7609425",
"0.74151254",
"0.723744",
"0.72016764",
"0.6903158",
"0.6829956",
"0.6786749",
"0.6768711",
"0.6612406",
"0.6571901",
"0.6442025",
"0.6335826",
"0.6279073",
"0.6260762",
"0.61733204",
"0.6159857",
"0.615111",
"0.6135569",
"0.6121516",
"0.6104",
"0.60984266",
"0... | 0.75199574 | 1 |
Returns an iterable list of children. | public function parameters()
{
return $this->parameters;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function children()\n {\n $this->buildTree();\n return $this->childrenInternal();\n }",
"public function get_children();",
"function children() {\n\t\t$this->load_children();\n\t\treturn $this->_children;\n\t}",
"public function children()\n\t{\n\t\treturn $this->descendants(1);\n\... | [
"0.81731623",
"0.8165131",
"0.81080747",
"0.8102014",
"0.80517507",
"0.8026795",
"0.80030817",
"0.79813147",
"0.7974746",
"0.7974746",
"0.7974185",
"0.7974185",
"0.7972899",
"0.7972714",
"0.7972714",
"0.7972714",
"0.7972714",
"0.7972714",
"0.7972714",
"0.7972714",
"0.7972714"... | 0.0 | -1 |
Returns the type of value. This corresponds to the VALUE= parameter. Every property also has a 'default' valueType. | abstract public function getValueType(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getValueType()\n {\n return $this->valueType;\n }",
"public function getSettingValueType()\n {\n if (array_key_exists(\"settingValueType\", $this->_propDict)) {\n return $this->_propDict[\"settingValueType\"];\n } else {\n return null;\n ... | [
"0.79693156",
"0.7820938",
"0.7657003",
"0.76026684",
"0.727911",
"0.7104499",
"0.7099447",
"0.6911751",
"0.68960977",
"0.6884592",
"0.6855649",
"0.67692006",
"0.6716638",
"0.6665632",
"0.6658285",
"0.6627324",
"0.6584003",
"0.65415615",
"0.6537666",
"0.6524587",
"0.6524587",... | 0.72069305 | 5 |
Sets a raw value coming from a mimedir (iCalendar/vCard) file. This has been 'unfolded', so only 1 line will be passed. Unescaping is not yet done, but parameters are not included. | abstract public function setRawMimeDirValue($val); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract public function getRawMimeDirValue();",
"public function setFieldValue($fieldValue) : void\n {\n $parameters = explode(';', $fieldValue);\n $disposition = array_shift($parameters);\n\n $this->setDisposition($disposition);\n\n foreach ($parameters as $parameter)\n {\... | [
"0.5918399",
"0.53737795",
"0.5217325",
"0.5209312",
"0.51658964",
"0.51127756",
"0.5105218",
"0.49936762",
"0.49791798",
"0.49730372",
"0.49530643",
"0.4891328",
"0.48733544",
"0.48447856",
"0.48376006",
"0.48191825",
"0.4815819",
"0.48105448",
"0.4789574",
"0.47602153",
"0.... | 0.7474023 | 0 |
Returns a raw mimedir representation of the value. | abstract public function getRawMimeDirValue(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getValue()\n {\n if (is_array($this->value)) {\n if (0 == count($this->value)) {\n return;\n } elseif (1 === count($this->value)) {\n return $this->value[0];\n } else {\n return $this->getRawMimeDirValue();\n ... | [
"0.6638165",
"0.64884347",
"0.5961147",
"0.5959728",
"0.5773959",
"0.5760775",
"0.5721037",
"0.5710786",
"0.5683365",
"0.5672719",
"0.5672719",
"0.5672719",
"0.5672719",
"0.56609946",
"0.56423485",
"0.5634405",
"0.5634405",
"0.5598874",
"0.55460304",
"0.55460304",
"0.55460304... | 0.8279742 | 0 |
Turns the object back into a serialized blob. | public function serialize()
{
$str = $this->name;
if ($this->group) {
$str = $this->group.'.'.$this->name;
}
foreach ($this->parameters() as $param) {
$str .= ';'.$param->serialize();
}
$str .= ':'.$this->getRawMimeDirValue();
$str =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function toBlob($obj){\n return json_encode($obj);\n }",
"public function binarySerialize();",
"public function SerializeObject () {\n return serialize ($this);\n }",
"public function serialize() {}",
"public function serialize() {}",
"public function serialize() {}",
... | [
"0.76529354",
"0.69340897",
"0.687526",
"0.6444655",
"0.6444655",
"0.6444526",
"0.6444526",
"0.6444526",
"0.6444526",
"0.6444526",
"0.6444526",
"0.6431026",
"0.6431026",
"0.6431026",
"0.6409894",
"0.6346356",
"0.63043797",
"0.6257019",
"0.6257019",
"0.6253273",
"0.6253273",
... | 0.0 | -1 |
Returns the value, in the format it should be encoded for JSON. This method must always return an array. | public function getJsonValue()
{
return $this->getParts();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function value_get(){\n\t\t\n\t\tif ( is_serialized( $this->value ) ) {\n\t\t\t$this->value = unserialize( $this->value );\n\t\t} elseif ( is_string( $this->value ) && 0 === strpos( $this->value, '{' ) && is_object( $_value = json_decode( $this->value ) ) ) {\n\t\t\t$this->value = (array) $_value;\n\t\t}... | [
"0.7743304",
"0.76842266",
"0.7643654",
"0.76153016",
"0.7302808",
"0.72030026",
"0.7165669",
"0.7065285",
"0.7065285",
"0.7038927",
"0.69276077",
"0.6926736",
"0.69221723",
"0.6909973",
"0.689058",
"0.6867859",
"0.684111",
"0.6819488",
"0.6817244",
"0.68010044",
"0.6799306",... | 0.70048726 | 10 |
Sets the JSON value, as it would appear in a jCard or jCal object. The value must always be an array. | public function setJsonValue(array $value)
{
if (1 === count($value)) {
$this->setValue(reset($value));
} else {
$this->setValue($value);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function set( $jsonArray ){\n $this->json = $jsonArray;\n }",
"public function setValues(?Json $value): void {\n $this->getBackingStore()->set('values', $value);\n }",
"protected function value_set( $value ){\n\t\tif( is_array( $value ) ){\n\t\t\t$this->value = $value;\n\t\t}elseif( ... | [
"0.729661",
"0.7109855",
"0.7032107",
"0.70055914",
"0.67830986",
"0.6608558",
"0.6507313",
"0.64080405",
"0.6338523",
"0.6332766",
"0.63161224",
"0.61894107",
"0.61474985",
"0.61061877",
"0.60441905",
"0.60441905",
"0.60261565",
"0.6008471",
"0.59848577",
"0.59161085",
"0.59... | 0.78336257 | 0 |
This method returns an array, with the representation as it should be encoded in JSON. This is used to create jCard or jCal documents. | public function jsonSerialize()
{
$parameters = [];
foreach ($this->parameters as $parameter) {
if ('VALUE' === $parameter->name) {
continue;
}
$parameters[strtolower($parameter->name)] = $parameter->jsonSerialize();
}
// In jCard,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function toJsonArray()\n {\n return array(\n 'id' => $this->getId(),\n 'date_created' => $this->getDateCreated()->getTimestamp(),\n 'content' => $this->getContent(),\n );\n }",
"function jsonSerialize() {\n return $this->asArray();\n }... | [
"0.756",
"0.7436546",
"0.7418268",
"0.7415948",
"0.731795",
"0.7289095",
"0.7270646",
"0.7246787",
"0.7177691",
"0.71660787",
"0.7128287",
"0.7112438",
"0.71094584",
"0.7091476",
"0.7078943",
"0.7061801",
"0.7060112",
"0.70597476",
"0.70370114",
"0.7029604",
"0.7027257",
"0... | 0.0 | -1 |
Hydrate data from a XML subtree, as it would appear in a xCard or xCal object. | public function setXmlValue(array $value)
{
$this->setJsonValue($value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected function buildData(DOMDocument $xml);",
"function parse_xml($xml)\n\t{\n\t\t// PHP's XML array structures stink so make our own\n\t\tif ($this->parse_into_struct($xml) === FALSE)\n\t\t{\n\t\t\terror_log('Unable to parse XML data');\n\t\t\treturn FALSE;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$elements ... | [
"0.5695247",
"0.5576091",
"0.55355716",
"0.5468124",
"0.5425573",
"0.533159",
"0.5282869",
"0.5281103",
"0.52694905",
"0.52694905",
"0.52639276",
"0.52410084",
"0.5237841",
"0.5216843",
"0.51920295",
"0.51734436",
"0.5112408",
"0.5105196",
"0.50991386",
"0.5088285",
"0.507803... | 0.0 | -1 |
This method serializes the data into XML. This is used to create xCard or xCal documents. | public function xmlSerialize(Xml\Writer $writer)
{
$parameters = [];
foreach ($this->parameters as $parameter) {
if ('VALUE' === $parameter->name) {
continue;
}
$parameters[] = $parameter;
}
$writer->startElement(strtolower($this... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function toXML();",
"public function toXML()\n {\n // TODO: Implement toXML() method.\n }",
"function toXML()\n {\n // Not implemented yet.\n }",
"public function GetRawXml()\n\t\t{\n\t\t\t$xml = \"\";\n\n\t\t\tif (isset($this->InternalID))\n\t\t\t\t$xml .= \"<InternalID>$this->Inter... | [
"0.69224465",
"0.68389636",
"0.6811392",
"0.6603152",
"0.6524429",
"0.6431068",
"0.63286585",
"0.63255",
"0.62672925",
"0.6265436",
"0.6241309",
"0.62378",
"0.621041",
"0.6189859",
"0.61737996",
"0.61037415",
"0.6076019",
"0.60379934",
"0.6034699",
"0.5992452",
"0.5984355",
... | 0.0 | -1 |
This method serializes only the value of a property. This is used to create xCard or xCal documents. | protected function xmlSerializeValue(Xml\Writer $writer)
{
$valueType = strtolower($this->getValueType());
foreach ($this->getJsonValue() as $values) {
foreach ((array) $values as $value) {
$writer->writeElement($valueType, $value);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function serialize(PropertyHolder $data);",
"public function toProp() {\n\t\treturn htmlspecialchars(json_encode($this, true));\n\t}",
"public function serialize($value){\n return parent::serialize($value);\n }",
"protected function getSerializedPropertyValue(string $property, mixed $value):... | [
"0.62891006",
"0.6185028",
"0.6096705",
"0.60947424",
"0.6065271",
"0.6051029",
"0.5901154",
"0.5833393",
"0.58316964",
"0.58129174",
"0.5795927",
"0.5787745",
"0.5787745",
"0.57230127",
"0.57176393",
"0.57149845",
"0.57097036",
"0.5703373",
"0.5689171",
"0.567944",
"0.567944... | 0.0 | -1 |
Called when this object is being cast to a string. If the property only had a single value, you will get just that. In the case the property had multiple values, the contents will be escaped and combined with ,. | public function __toString()
{
return (string) $this->getValue();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function __toString()\n {\n return strval($this->value);\n }",
"public function __toString()\n {\n return strval($this->__value);\n }",
"public function __toString()\n {\n return strval($this->__value);\n }",
"public function __toString()\n {\n return strval($... | [
"0.6831965",
"0.68152416",
"0.68152416",
"0.68152416",
"0.68152416",
"0.68152416",
"0.68152416",
"0.68152416",
"0.68152416",
"0.68152416",
"0.68152416",
"0.68152416",
"0.68152416",
"0.68152416",
"0.68152416",
"0.68152416",
"0.68152416",
"0.68152416",
"0.68152416",
"0.68152416",... | 0.65930754 | 37 |
Returns a parameter. If the parameter does not exist, null is returned. | public function offsetGet($name)
{
if (is_int($name)) {
return parent::offsetGet($name);
}
$name = strtoupper($name);
if (!isset($this->parameters[$name])) {
return;
}
return $this->parameters[$name];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function get_parameter( $name ) {\n\t\treturn $this->has_parameter( $name ) ? $this->parameters[ $name ] : null;\n\t}",
"public function getParameter($parameter)\n {\n $params = $this->getParameters();\n\n return $params[$parameter] ?? null;\n }",
"public function getParam($param)... | [
"0.7663121",
"0.76570916",
"0.7503247",
"0.7490742",
"0.7447435",
"0.74230736",
"0.7319341",
"0.73065054",
"0.73043364",
"0.72721153",
"0.71931076",
"0.7192163",
"0.71884626",
"0.7186175",
"0.7174426",
"0.7166127",
"0.71328795",
"0.7132722",
"0.7122968",
"0.7114216",
"0.70962... | 0.0 | -1 |
Creates a new parameter. | public function offsetSet($name, $value)
{
if (is_int($name)) {
parent::offsetSet($name, $value);
// @codeCoverageIgnoreStart
// This will never be reached, because an exception is always
// thrown.
return;
// @codeCoverageIgnoreEnd
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function createParameter()\n {\n $param = new LiquibaseParameter();\n $this->parameters[] = $param;\n\n return $param;\n }",
"static public function createParameter($name, $value) {\n\n return new Parameter($name, $value);\n\n }",
"public function createParameter(Par... | [
"0.77203196",
"0.7223073",
"0.70504355",
"0.684999",
"0.6799934",
"0.6370717",
"0.62863684",
"0.6192162",
"0.6157101",
"0.61538124",
"0.6153628",
"0.61499363",
"0.6068639",
"0.606399",
"0.6039007",
"0.603646",
"0.59702665",
"0.59573305",
"0.59167486",
"0.5909457",
"0.5898068"... | 0.0 | -1 |
Removes one or more parameters with the specified name. | public function offsetUnset($name)
{
if (is_int($name)) {
parent::offsetUnset($name);
// @codeCoverageIgnoreStart
// This will never be reached, because an exception is always
// thrown.
return;
// @codeCoverageIgnoreEnd
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function removeParameter($name)\n {\n $this->getParameters();\n unset($this->parameters[$name]);\n }",
"public function removeParam($name)\n {\n if (isset($this->params[$name])) {\n unset($this->params[$name]);\n }\n return $this;\n }",
"public f... | [
"0.856868",
"0.79019105",
"0.7745078",
"0.7701082",
"0.7646328",
"0.7614606",
"0.7614606",
"0.7605631",
"0.7429224",
"0.7429224",
"0.7429224",
"0.7429224",
"0.7429224",
"0.7429224",
"0.74145716",
"0.7387351",
"0.72882324",
"0.71949214",
"0.7140386",
"0.7105685",
"0.69245136",... | 0.7324328 | 16 |
/ }}} This method is automatically called when the object is cloned. Specifically, this will ensure all child elements are also cloned. | public function __clone()
{
foreach ($this->parameters as $key => $child) {
$this->parameters[$key] = clone $child;
$this->parameters[$key]->parent = $this;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function __clone()\n\t{\n\t\t$this->children=[];\n\t}",
"public function __clone()\n {\n foreach ($this->children as $key => $value) {\n if (is_object($value)) {\n $this->children[$key] = clone $value;\n }\n }\n }",
"public function __clone()\n\t{... | [
"0.74635226",
"0.74169743",
"0.69734615",
"0.6656827",
"0.6631805",
"0.6631805",
"0.65919775",
"0.6550796",
"0.6538563",
"0.6538563",
"0.6503462",
"0.6482462",
"0.6472876",
"0.6472876",
"0.6467483",
"0.645982",
"0.645982",
"0.645982",
"0.645982",
"0.645982",
"0.645982",
"0.... | 0.0 | -1 |
Validates the node for correctness. The following options are supported: Node::REPAIR If something is broken, and automatic repair may be attempted. An array is returned with warnings. Every item in the array has the following properties: level (number between 1 and 3 with severity information) message (human readable ... | public function validate($options = 0)
{
$warnings = [];
// Checking if our value is UTF-8
if (!StringUtil::isUTF8($this->getRawMimeDirValue())) {
$oldValue = $this->getRawMimeDirValue();
$level = 3;
if ($options & self::REPAIR) {
$newValu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function validate()\n {\n $this->validateNode($this->tree);\n }",
"public function input_actionNodeMomentCreateFail()\n {\n return [\n [\n [\n \n ],\n 'Not a proper http method type, please send a POST'\n ... | [
"0.56747454",
"0.52841043",
"0.51420605",
"0.50204235",
"0.50131696",
"0.49983007",
"0.49960715",
"0.49330246",
"0.49330246",
"0.49193683",
"0.4826556",
"0.4786994",
"0.4786994",
"0.47321263",
"0.47202098",
"0.4678487",
"0.46487617",
"0.462426",
"0.4620259",
"0.46194282",
"0.... | 0.45355937 | 31 |
Call this method on a document if you're done using it. It's intended to remove all circular references, so PHP can easily clean it up. | public function destroy()
{
parent::destroy();
foreach ($this->parameters as $param) {
$param->destroy();
}
$this->parameters = [];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function __destruct() {\n unset($this->domDocument); \n }",
"public function __destruct()\n\t{\n\t\t//Remove temporal files\n\t\tif (isset($this->generated_documents['url_docx']) AND file_exists($this->generated_documents['url_docx']))\n\t\t{\n\t\t\tsystem('rm '.$this->generated_documents['url_d... | [
"0.6715091",
"0.6527338",
"0.65180194",
"0.63943803",
"0.63943803",
"0.6382288",
"0.6350902",
"0.62970805",
"0.62970805",
"0.6295955",
"0.62802106",
"0.6266954",
"0.622233",
"0.62058187",
"0.62058187",
"0.62058187",
"0.62058187",
"0.62058187",
"0.6150407",
"0.6129441",
"0.612... | 0.0 | -1 |
Run the database seeds. | public function run()
{
\App\Models\Surat::create([
'id' => 1,
'id_user' => 2,
'username' => 'user001',
'validator' => '',
'kode_surat' => 'BEMUIC',
'tanggal_masuk_surat' => '2021-02-07',
'nomor_surat' => 11,
'la... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function run()\n {\n // $this->call(UserTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(TagTableSeeder::class);\n // $this->call(PostTagTableSeeder::class);\n\n /*AB - use faker to populate table see file ModelFactory.php */\n fact... | [
"0.8014072",
"0.7980389",
"0.7977261",
"0.79545176",
"0.7951285",
"0.7949779",
"0.79447794",
"0.79427236",
"0.7938544",
"0.7937133",
"0.7933888",
"0.7892658",
"0.78813094",
"0.7879304",
"0.78790134",
"0.7875582",
"0.78718805",
"0.7870327",
"0.7851507",
"0.78506047",
"0.784165... | 0.0 | -1 |
constructor with $db as database connection | public function __construct($db){
$this->conn = $db;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function __construct($db) {\n $this->db = $db;\n }",
"function __construct($db) {\r\n\t\t$this->db = $db;\r\n\t}",
"public function __construct($db) {\r\n\r\n $this->conn = $db;\r\n\r\n }",
"public function __construct($db) {\n $this->conn = $db;\n }",
"public function __constru... | [
"0.887094",
"0.8836854",
"0.8794315",
"0.8782656",
"0.8782656",
"0.87762517",
"0.8769251",
"0.8769251",
"0.8769251",
"0.8769251",
"0.8769251",
"0.8769251",
"0.8769251",
"0.8769251",
"0.8769251",
"0.8769251",
"0.8769251",
"0.8769251",
"0.8769251",
"0.8769251",
"0.8766189",
"... | 0.0 | -1 |
used when signing in | function readOne(){
// query to read single record
$query = "SELECT * from companies where username='$this->username' AND password = '$this->password'";
// prepare query statement
$stmt = $this->conn->prepare( $query );
// execute query
$stmt->execute();
// get retrieved row
$row = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function signIn() {\n\t\t\n\t\t$newVoucher = VoucherProvider::getVoucher();\n\t}",
"private function login(){\n \n }",
"private function _signInRequested()\n {\n if ($this->model->signIn($_POST['username'], $_POST['password'])) {\n $this->utility->redirect('write');\n ... | [
"0.7127255",
"0.70592296",
"0.68540746",
"0.6777229",
"0.67323905",
"0.6672759",
"0.66717154",
"0.6583958",
"0.6581492",
"0.655704",
"0.6515096",
"0.6509866",
"0.6502137",
"0.64895",
"0.6471277",
"0.6471277",
"0.64657104",
"0.64610934",
"0.64397854",
"0.64232033",
"0.640978",... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.