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 |
|---|---|---|---|---|---|---|
Gets the specified meta structure | function getModel($name); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getMeta();",
"public function getMeta();",
"public function getMeta(){\n // $this->meta();\n }",
"private function getMetaData ()\n\t\t{\n\t\t\t$data = file_get_contents (\"META.inf\");\n\t\t\t$o = json_decode ($data,true);\n\t\t\treturn $o;\t\n\t\t}",
"public function get_meta()... | [
"0.7505508",
"0.7505508",
"0.72435355",
"0.69990873",
"0.6959177",
"0.6959177",
"0.69226617",
"0.6887989",
"0.6864568",
"0.6864568",
"0.685798",
"0.68293184",
"0.68270427",
"0.68270427",
"0.68270427",
"0.68270427",
"0.68270427",
"0.6811633",
"0.677654",
"0.67394435",
"0.67193... | 0.0 | -1 |
Create a meta structure | function createModel($name, array $conf); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function createMetaData()\n\t{\n\t\tparent::createMetaData();\n\t\t$this->saveAuthorToMetadata();\n\t}",
"public static function meta();",
"private function packMeta()\n {\n $transport = $this->modx->fromJSON(file_get_contents(__DIR__ . '/../transport.json'));\n unset($transport['support']['db... | [
"0.7326244",
"0.7054287",
"0.67588043",
"0.6650297",
"0.6578447",
"0.64957935",
"0.64384145",
"0.6429619",
"0.64207697",
"0.64207697",
"0.64066815",
"0.6364772",
"0.6361225",
"0.6340315",
"0.62636006",
"0.62346756",
"0.6181033",
"0.61781067",
"0.61549956",
"0.6140334",
"0.611... | 0.0 | -1 |
Create a select statement | public function select(
IModel $target, $statement, array $parameters = null
); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract function getSelectStatement();",
"protected abstract function getSelectStatement();",
"public function createSelectSql(): \\Hx\\Db\\Sql\\SelectInterface;",
"public function createSelect()\n {\n return $this->getConnection()->select();\n }",
"protected function getSelect() {\... | [
"0.8003893",
"0.8003893",
"0.74862105",
"0.74015784",
"0.7202667",
"0.7047833",
"0.6992635",
"0.6975984",
"0.69068956",
"0.6823758",
"0.6819437",
"0.6816849",
"0.6809907",
"0.67685044",
"0.67463523",
"0.6730124",
"0.6730124",
"0.6730124",
"0.67271376",
"0.67024565",
"0.668040... | 0.59700483 | 95 |
Executes the specified query and returns a statement reader | public function query($command); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function executeQuery() \r\n\t{\r\n\t\t$Result = $this->objStatement->execute();\r\n\t\t\r\n\t\tif($Result)\r\n\t\t{\r\n\t\t\t$Result = new DatabaseStatement($this->objStatement);\r\n\t\t}\r\n\t\t\r\n\t\treturn $Result;\r\n\t}",
"public function query()\n {\n $statement = null;\n $args ... | [
"0.68564725",
"0.66371757",
"0.65742147",
"0.65702254",
"0.6392775",
"0.6391776",
"0.6297167",
"0.62868977",
"0.6217043",
"0.6179345",
"0.6161859",
"0.6160129",
"0.6149424",
"0.6113733",
"0.61010784",
"0.6072828",
"0.60718584",
"0.6037863",
"0.60378236",
"0.6037531",
"0.60373... | 0.0 | -1 |
Create a select statement | public function delete(IModel $target, array $primaries); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract function getSelectStatement();",
"protected abstract function getSelectStatement();",
"public function createSelectSql(): \\Hx\\Db\\Sql\\SelectInterface;",
"public function createSelect()\n {\n return $this->getConnection()->select();\n }",
"protected function getSelect() {\... | [
"0.8003893",
"0.8003893",
"0.74862105",
"0.74015784",
"0.7202667",
"0.7047833",
"0.6992635",
"0.6975984",
"0.69068956",
"0.6823758",
"0.6819437",
"0.6816849",
"0.6809907",
"0.67685044",
"0.67463523",
"0.6730124",
"0.6730124",
"0.6730124",
"0.67271376",
"0.67024565",
"0.668040... | 0.0 | -1 |
Inserts values and returns the created primary | public function insert(IModel $target, array $values); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract public function insert_id();",
"public function insert(array $data){\n\t\t$primary = parent::insert($data);\n\t\treturn $primary;\n\t}",
"public function insert_id();",
"abstract public function insertId();",
"abstract public function insertId();",
"abstract public function insertId();",
"publ... | [
"0.73167276",
"0.7205334",
"0.7183379",
"0.7174677",
"0.7174677",
"0.7174677",
"0.7171911",
"0.7146467",
"0.7093169",
"0.7081764",
"0.7025659",
"0.698334",
"0.69248796",
"0.68974847",
"0.6879531",
"0.6876342",
"0.6865404",
"0.68501794",
"0.6798837",
"0.6751948",
"0.6749092",
... | 0.0 | -1 |
Update the specified record with specified values | public function update(IModel $target, array $values, $primary); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function update($record);",
"public function updateRecord() \n {\n $str = \"Id = :Id\";\n array_walk($this->arrayKeysValues(), function ($value, $key) use (&$str) {\n $str .= \", $key = :$key\";\n });\n $sql = sprintf(\"UPDATE Cubans SET %s WHERE Id = :Id\", $str... | [
"0.82367384",
"0.7632844",
"0.739537",
"0.73464715",
"0.70177495",
"0.6954069",
"0.6850906",
"0.6843063",
"0.67875826",
"0.67875826",
"0.67875826",
"0.6772654",
"0.67018396",
"0.6687194",
"0.6659693",
"0.66580313",
"0.6634291",
"0.6583869",
"0.6581958",
"0.65147096",
"0.64951... | 0.6280086 | 42 |
Deploys the specified model (creates database or tables) | public function deploy(IModel $target); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function install() {\r\n\tforeach ($this->getModel() AS $model) {\r\n\t $this->getEntity($model->getName())->createTable();\r\n\t}\r\n }",
"private function createDatabase()\n {\n // get entity manager\n $em = $this->modelManager;\n\n // get our schema tool\n $tool = n... | [
"0.63962144",
"0.61090654",
"0.5910637",
"0.5844688",
"0.5838799",
"0.5819756",
"0.5747207",
"0.5732298",
"0.567137",
"0.56622267",
"0.566218",
"0.5627514",
"0.5576937",
"0.5574871",
"0.55736446",
"0.55699295",
"0.55678767",
"0.5538005",
"0.55229115",
"0.55125004",
"0.5493417... | 0.65553904 | 0 |
Destroys the specified model (destroy table) | public function destroy(IModel $target); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function delete(Model $model);",
"public function delete(Model $model);",
"public function destroy(Model $model)\n {\n return $model->delete();\n }",
"public function delete(Model $model): void\n {\n $model->delete();\n }",
"public abstract function deleteModel(\\MPF\\Db\\M... | [
"0.7536335",
"0.7536335",
"0.7527087",
"0.7518178",
"0.7451491",
"0.7434802",
"0.73631895",
"0.7336215",
"0.7266159",
"0.7240518",
"0.7206452",
"0.71506834",
"0.7147833",
"0.70841825",
"0.7007743",
"0.6984051",
"0.6968334",
"0.6935222",
"0.69305015",
"0.68517077",
"0.68297917... | 0.74198854 | 6 |
Check if the reader has results | public function hasResults(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function hasResults() {\n\t\treturn $this->count() >= 1;\n\t}",
"public function has_result()\n\t{\n\t\treturn !empty($this->result);\n\t}",
"public function isHasResults();",
"function has_results() {\n\t\treturn ($this->QueryID && $this->record_count() !== 0);\n\t}",
"public function hasResult()\n... | [
"0.7550277",
"0.7321628",
"0.71564066",
"0.71380705",
"0.7032356",
"0.6996233",
"0.6973486",
"0.69299275",
"0.69299275",
"0.69299275",
"0.6929449",
"0.6820699",
"0.67693126",
"0.66812176",
"0.6623584",
"0.6577766",
"0.6526286",
"0.64603376",
"0.64056975",
"0.6260377",
"0.6258... | 0.7315757 | 2 |
Gets the model identifier (from application layer) | public function getIdentifier(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getModelId()\n {\n return $this->model_id;\n }",
"public function id()\n {\n return $this->identity['modelId'];\n }",
"public function getModelId() {\n\t\treturn $this->getSourceId();\n\t}",
"public function getModelId()\n\t{\n\t\treturn $this->handler->get_table_id(... | [
"0.80809444",
"0.7959677",
"0.7790302",
"0.76912934",
"0.768398",
"0.7511605",
"0.74707663",
"0.73653173",
"0.73382854",
"0.72158283",
"0.7149864",
"0.7099018",
"0.68585443",
"0.68329597",
"0.6809018",
"0.6809018",
"0.6809018",
"0.67942435",
"0.67265695",
"0.66449255",
"0.664... | 0.0 | -1 |
Gets the current application layer | public function getApplication(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function getLayer()\n {\n if (Mage::helper('enterprise_search')->getIsEngineAvailableForNavigation()) {\n return Mage::getSingleton('enterprise_search/catalog_layer');\n } else {\n return Mage::getSingleton('catalog/layer');\n }\n }",
"public static func... | [
"0.6989154",
"0.69404596",
"0.6679831",
"0.66767746",
"0.6650761",
"0.6649103",
"0.6647848",
"0.6647848",
"0.6647848",
"0.6647848",
"0.6621214",
"0.66071594",
"0.66071594",
"0.6589666",
"0.6589666",
"0.657651",
"0.6574386",
"0.6544676",
"0.65162444",
"0.65162444",
"0.65162444... | 0.63308066 | 39 |
Gets the storage name | public function getName(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function _getStorageName() {\n\t\tif($this->_rememberMe) {\n\t\t\treturn self::TOKEN_COOKIE_STORAGE;\n\t\t}\n\n\t\treturn self::TOKEN_SESSION_STORAGE;\n\t}",
"public static function getStorageName()\n {\n return 'nb_icontact_prospect';\n }",
"public static function getStorageName()\n {\... | [
"0.7858911",
"0.7590557",
"0.7529293",
"0.7461326",
"0.7345516",
"0.72785527",
"0.7262415",
"0.71614605",
"0.7153258",
"0.70877033",
"0.7080479",
"0.6989476",
"0.6968452",
"0.69403946",
"0.69370455",
"0.69190955",
"0.69190955",
"0.6918465",
"0.69129115",
"0.69124234",
"0.6912... | 0.0 | -1 |
Gets the primary key name | public function getPrimary(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPrimaryKeyName()\n {\n return self::$primary_key_name;\n }",
"protected function getPrimaryKeyName(): string\n {\n return $this->query->getModel()->getKeyName();\n }",
"public function getPrimaryKeyName()\n {\n return $this->primaryKeyName;\n }",
"pub... | [
"0.8921222",
"0.87215143",
"0.85805094",
"0.8467421",
"0.84068537",
"0.83795667",
"0.8359384",
"0.828755",
"0.8258604",
"0.8234142",
"0.8215452",
"0.81679165",
"0.81679165",
"0.8149795",
"0.80913776",
"0.8045215",
"0.80201024",
"0.8016582",
"0.80136645",
"0.80011845",
"0.7973... | 0.0 | -1 |
Gets the storage driver | public function getStorage(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function getCloudDriver()\r\n\t{\r\n\t\treturn $this->royalcms['config']['filesystems.cloud'];\r\n\t}",
"function get_storage()\n{\n return env('FILESYSTEM_DRIVER');\n}",
"public function getDriver()\n {\n return $this->driver;\n }",
"final public function getDriver() {\n ret... | [
"0.7497664",
"0.7287567",
"0.7251915",
"0.72392464",
"0.72338384",
"0.71996075",
"0.71996075",
"0.7143535",
"0.71403944",
"0.7101628",
"0.70823747",
"0.70632714",
"0.7059553",
"0.7019716",
"0.70148635",
"0.70148635",
"0.6991683",
"0.69691885",
"0.691012",
"0.6881576",
"0.6875... | 0.6662417 | 49 |
Create a select request | public function query($statement, array $parameters = null); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getSelect();",
"public function getSelect();",
"public function select();",
"public function select();",
"public function select();",
"public function select(Request $request)\n {\n $response = $this->postService::select($request->id, $request->select);\n\n return json_en... | [
"0.6695744",
"0.6695744",
"0.6675248",
"0.6675248",
"0.6675248",
"0.6598708",
"0.6470805",
"0.6377854",
"0.62820184",
"0.6233816",
"0.6223679",
"0.6196871",
"0.61688024",
"0.6024678",
"0.59473556",
"0.59279233",
"0.5911109",
"0.58984977",
"0.5851167",
"0.5849457",
"0.58402073... | 0.0 | -1 |
Check if the specified column is defined | public function hasColumn($name); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function columnExists( $tablename, $columnname );",
"public function has(string $col) : bool;",
"function has_column($column_name)\n {\n if (empty($this->object->_table_columns)) {\n $this->object->lookup_columns();\n }\n return array_search($column_name, $this->object... | [
"0.77556634",
"0.7698059",
"0.76775366",
"0.76289475",
"0.7594199",
"0.7578685",
"0.7512257",
"0.750773",
"0.74582183",
"0.7422181",
"0.7347159",
"0.7330013",
"0.7303591",
"0.7299614",
"0.7227518",
"0.7213966",
"0.7136048",
"0.71041787",
"0.7025581",
"0.7018138",
"0.6970771",... | 0.75849193 | 5 |
Gets a cache provider from its configuration key | public function get($name = null); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function getCacheProvider()\n {\n if (!self::$provider) {\n self::$provider = new ArrayCache();\n }\n\n return self::$provider;\n }",
"static public function cache($provider = null) {\n $impl = self::instance();\n return $impl->get_resource('cache', $prov... | [
"0.6603842",
"0.659212",
"0.63904166",
"0.6322412",
"0.62412536",
"0.6240189",
"0.618221",
"0.618221",
"0.618221",
"0.6134023",
"0.60815746",
"0.6041094",
"0.6034874",
"0.6025759",
"0.6007863",
"0.59743553",
"0.5965432",
"0.5962093",
"0.5957115",
"0.5952038",
"0.5928211",
"... | 0.0 | -1 |
Creates a cache instance for the specified driver | public function create($driver, array $conf = null); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static public function factory($driver, array$options = array())\n {\n $filename = 'DiggLite/Cache/' . str_replace('_', '/', $driver . '.php');\n $class = 'DiggLite_Cache_' . $driver;\n\n include_once $filename;\n if (!class_exists($class)) {\n throw new DiggLite_Except... | [
"0.75100785",
"0.71562785",
"0.6999679",
"0.68367475",
"0.68360806",
"0.6551046",
"0.6537155",
"0.6470437",
"0.64093834",
"0.62414515",
"0.6234608",
"0.62163323",
"0.61792094",
"0.61789596",
"0.61775446",
"0.6112251",
"0.60689586",
"0.60364455",
"0.6023417",
"0.6001358",
"0.5... | 0.522758 | 67 |
Gets the value from the specified key | public function getValue($key); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function get($key);",
"public static function get($key);",
"public function get( $key );",
"public function get(string $key);",
"public function get(string $key);",
"public function get(string $key);",
"public function get(string $key);",
"public function get(string $key);",
"public f... | [
"0.82606524",
"0.82606524",
"0.81740165",
"0.81134725",
"0.81134725",
"0.81134725",
"0.81134725",
"0.81134725",
"0.81134725",
"0.81134725",
"0.81134725",
"0.8084556",
"0.8084556",
"0.8084556",
"0.8084556",
"0.8084556",
"0.8084556",
"0.8084556",
"0.8084556",
"0.8084556",
"0.80... | 0.85932136 | 0 |
Get values from the specified keys | public function getValues(array $keys); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"final public function gets(...$keys)\n {\n return $this->onPrepareReturns(Base\\Arrs::gets($this->prepareKeys(...$keys),$this->arr(),$this->isSensitive()));\n }",
"function get_multi($keys) {\n\t\t$out = array();\n\t\tforeach($keys as $key)\n\t\t\t$out[$key] = $this->get($key);\n\t\treturn $out;\n\t... | [
"0.7525767",
"0.7384867",
"0.7322216",
"0.711976",
"0.7067325",
"0.6959175",
"0.69160396",
"0.69054425",
"0.68865305",
"0.684577",
"0.6799544",
"0.6787443",
"0.67829895",
"0.6650181",
"0.6595405",
"0.6522173",
"0.6469433",
"0.6445572",
"0.6443387",
"0.64412165",
"0.63946754",... | 0.82206994 | 0 |
Sets a value attached to the specified key | public function setValue($key, $value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function set( $key , $value ) {\n\t\teval( '$this->items' . $this->nodelize( $key ) . ' = $value;' );\n\t}",
"public function set( $key, $value );",
"public function set( $key, $value );",
"public function set ($key, $value);",
"public function set ($key, $value) {\r\n\t\t$this->_data[$key] = $value... | [
"0.8039327",
"0.799483",
"0.799483",
"0.79846686",
"0.79632014",
"0.7939078",
"0.7939078",
"0.7939078",
"0.7939078",
"0.7939078",
"0.7939078",
"0.7939078",
"0.7939078",
"0.7939078",
"0.7939078",
"0.7939078",
"0.7939078",
"0.7939078",
"0.7939078",
"0.7939078",
"0.7939078",
"... | 0.8491142 | 0 |
Set values attaches to specified indexes (keys) | public function setValues($values); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function set(int $index, $value);",
"public function set($index, $value)\n {\n $value = $this->cube($value);\n parent::set($index, $value);\n }",
"public function setAll($values)\r\n {\r\n foreach ($values as $key => $value)\r\n $this->$key = $value;\r\n }",
"public function offsetSet(... | [
"0.61397254",
"0.60747796",
"0.6003855",
"0.59997857",
"0.59621924",
"0.59521985",
"0.5922879",
"0.5886065",
"0.5852551",
"0.58256215",
"0.58017826",
"0.57910824",
"0.57674694",
"0.5764488",
"0.5760726",
"0.5754852",
"0.5726272",
"0.5686982",
"0.56772274",
"0.56738096",
"0.56... | 0.5428704 | 33 |
Remove the specified key | public function unsetValue($key); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function remove($key);",
"public function remove($key);",
"public function remove($key);",
"public function remove($key);",
"public function remove($key);",
"public function remove($key);",
"public function remove($key);",
"public function remove($key);",
"public function remove($key) {}",
... | [
"0.9050021",
"0.9050021",
"0.9050021",
"0.9050021",
"0.9050021",
"0.9050021",
"0.9050021",
"0.9050021",
"0.9031941",
"0.8973257",
"0.8888053",
"0.88026786",
"0.88026786",
"0.8745989",
"0.87223643",
"0.86377496",
"0.8516945",
"0.85098636",
"0.8495327",
"0.84766585",
"0.8470724... | 0.72163284 | 88 |
Remove the specified keys | public function unsetValues($keys); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function removekeys($src, $keys){\n return array_diff_key($src, array_flip($keys));\n}",
"final public function unset(...$keys):Main\\Map\n {\n $this->checkAllowed('unset');\n $return = $this->onPrepareThis('unset');\n Base\\Arrs::unsetsRef($return->prepareKeys(...$keys),$return->arr()... | [
"0.7571214",
"0.7452452",
"0.7195923",
"0.7117254",
"0.70979214",
"0.70221794",
"0.6965189",
"0.6965189",
"0.69491464",
"0.6922035",
"0.69086903",
"0.6907789",
"0.6907789",
"0.6866263",
"0.6823514",
"0.6787255",
"0.6738699",
"0.6729358",
"0.67291266",
"0.6713101",
"0.6653947"... | 0.7654068 | 0 |
Enabled the current plugin to the specified target level | function enable($target = 'core'); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function setLevel($level);",
"public function setLevel($level);",
"function disable($target = 'core');",
"public function onEnable() {\n $this->getLogger()->info(TextFormat::YELLOW . \"Enabling MaxPlugin...\");\n $this->getServer()->getPluginManager()->registerEvents($this,$this);\n }",
"public func... | [
"0.5906983",
"0.59058696",
"0.5755222",
"0.5707993",
"0.5691277",
"0.5691277",
"0.568822",
"0.5581171",
"0.55494344",
"0.55480134",
"0.5537755",
"0.54685503",
"0.54541266",
"0.54407394",
"0.54407394",
"0.54407394",
"0.54407394",
"0.5413409",
"0.539197",
"0.5346802",
"0.527397... | 0.69578433 | 0 |
Disable the current plugin from the specified target | function disable($target = 'core'); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function disable();",
"function disable()\n{\n\t$args = func_get_args();\n\tif (is_array($args[0])) $args = $args[0];\n\t$this->enable($args, false);\n}",
"public function hookDisable(): void\n {\n $this->say(\"Executing the Plugin's disable hook...\");\n $this->_exec(\"php ./src/hook_d... | [
"0.6849664",
"0.6794527",
"0.66730446",
"0.6635169",
"0.6602413",
"0.6591144",
"0.6584679",
"0.65350246",
"0.64985204",
"0.6464987",
"0.64152795",
"0.6355722",
"0.63463825",
"0.6325659",
"0.62966573",
"0.6193167",
"0.61840236",
"0.6132527",
"0.60985464",
"0.6062782",
"0.60082... | 0.83290714 | 0 |
Check if the current plugin is enabled | function isEnabled(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function is_enabled() {\n $enabled = file_exists(ABSPATH . '!sak4wp.php');\n return $enabled;\n }",
"public function isActive()\n {\n If ($this->theme_active == 1)\n {\n //plugin is active\n return true;\n\n } else {\n \n //plug... | [
"0.76779765",
"0.7460873",
"0.7416462",
"0.7342203",
"0.72720784",
"0.72714114",
"0.72692895",
"0.72678465",
"0.7264106",
"0.7226873",
"0.72131836",
"0.7201595",
"0.7187439",
"0.7183476",
"0.71778274",
"0.71583694",
"0.71244055",
"0.7122556",
"0.71217686",
"0.7116426",
"0.709... | 0.0 | -1 |
Gets the current plugin options | function getOptions(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function get_options(){\n\t\treturn $this->options;\n\t}",
"public function getOptions()\n {\n if (null === $this->options) {\n $this->setOptions(new PluginOptions());\n }\n return $this->options;\n }",
"public function get_options()\n\t\t{\n\t\t\treturn $this->_options;\n... | [
"0.7936512",
"0.78368706",
"0.78199166",
"0.7789982",
"0.7789982",
"0.7789982",
"0.7769649",
"0.77353895",
"0.7682485",
"0.7680586",
"0.7670967",
"0.7666574",
"0.7666574",
"0.7661475",
"0.7661475",
"0.7661475",
"0.7661475",
"0.7661475",
"0.7661475",
"0.7661475",
"0.7661475",
... | 0.0 | -1 |
Gets an option value | function getOption($name); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function value()\n {\n return $this->app->input->get('option');\n }",
"public function getValue() {\n \n $_aParams = func_get_args(); \n return AdminPageFramework_WPUtility::getOption( \n $this->oProp->sOptionKey, \n $_aParams, \n ... | [
"0.81025183",
"0.78691965",
"0.7766517",
"0.76527584",
"0.7548669",
"0.75312203",
"0.7469938",
"0.7469938",
"0.73346746",
"0.7297404",
"0.7297404",
"0.7268432",
"0.72565037",
"0.72553855",
"0.725166",
"0.7169674",
"0.71171886",
"0.7113178",
"0.7025064",
"0.7011615",
"0.698758... | 0.69670594 | 21 |
Gets a list of all available plugins | function getPlugins(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function get_plugins() {\n\t\treturn get_plugins();\n\t}",
"public function getAvailablePlugins()\n\t{\n\t\t$this->loadAvailablePlugins();\n\t\treturn self::$_plugins;\n\t}",
"public static function getPlugins() {\r\n\t\treturn self::getModulesForUser(Config::$sis_plugin_folder);\r\n\t}",
"protected f... | [
"0.82623965",
"0.80233794",
"0.79860055",
"0.7821467",
"0.78028935",
"0.77926046",
"0.7751574",
"0.7751574",
"0.7744255",
"0.7716211",
"0.7702277",
"0.7689137",
"0.7684541",
"0.7669164",
"0.76312727",
"0.76131165",
"0.76122475",
"0.7611972",
"0.75989395",
"0.75597006",
"0.751... | 0.79037666 | 3 |
Gets a list of enabled plugins | function getEnabledPlugins(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getEnabledPlugins() {\n if ( is_null($this->_enabled) ) {\n $this->_enabled = array();\n foreach( $this->getPlugins() as $name => $plugin ) {\n if ( $plugin->isEnabled() ) {\n $this->_enabled[ $name ] = $plugin;\n }\n ... | [
"0.82479465",
"0.80223155",
"0.7908184",
"0.7756952",
"0.7712163",
"0.7712163",
"0.77100235",
"0.7684768",
"0.76756185",
"0.7659897",
"0.7606471",
"0.76046383",
"0.75356615",
"0.7509681",
"0.7472184",
"0.74697685",
"0.74507105",
"0.74476135",
"0.74257755",
"0.74103165",
"0.74... | 0.87014973 | 0 |
Gets the specified plugin | function getPlugin($name); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPlugin();",
"public function getPlugin();",
"public function getPlugin(): Plugin {\n\t\treturn $this->loader;\n\t}",
"public function plugin(): Plugin\n {\n return $this->plugin;\n }",
"function &_getPlugin() {\n\t\t$plugin =& PluginRegistry::getPlugin('generic', OAS_PLUGIN_... | [
"0.8303084",
"0.8303084",
"0.7130766",
"0.70358217",
"0.6788941",
"0.6778452",
"0.6672697",
"0.66687506",
"0.64410067",
"0.64160967",
"0.64055437",
"0.6395915",
"0.63940465",
"0.63839054",
"0.617384",
"0.6125157",
"0.61245096",
"0.61226845",
"0.61167765",
"0.611197",
"0.61036... | 0.74830973 | 2 |
Check if the specified plugin is enabled or not | function isEnabled($name); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function is_plugin_enabled($plugin)\n\t{\n\t\tglobal $CONFIG;\n\t\t\n\t\treturn in_array($plugin, $CONFIG->enabled_plugins);\n\t}",
"abstract function is_plugin();",
"function acf_is_plugin_active()\n{\n}",
"function wpdc_check_active(){ \r\n\r\n // plugin is ok\r\n // do the actio... | [
"0.779948",
"0.7765498",
"0.72858274",
"0.72032857",
"0.7157867",
"0.7117273",
"0.7112665",
"0.71106577",
"0.70538133",
"0.7040197",
"0.69788605",
"0.6968064",
"0.6940967",
"0.69051784",
"0.6903759",
"0.68723",
"0.68649876",
"0.68343115",
"0.6822617",
"0.679283",
"0.6781917",... | 0.0 | -1 |
Gets the requested method type | public function getMethod(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getMethod() {\n\t\treturn $this->getDriver()->getType();\n\t}",
"protected function get_method_type() {\n\n\t\treturn isset( $this->response_data->expMonth ) ? 'credit_card' : 'echeck';\n\t}",
"public function fetch_method()\n\t{\n\t\t$method = $this->route_stack[self::SEG_METHOD];\n\t\treturn ... | [
"0.77031356",
"0.76252186",
"0.69732016",
"0.69721305",
"0.6921705",
"0.6906779",
"0.688603",
"0.6865695",
"0.68646896",
"0.6838046",
"0.68256617",
"0.68218493",
"0.6820166",
"0.6819947",
"0.6815083",
"0.68143773",
"0.67799747",
"0.67714304",
"0.6741448",
"0.67374915",
"0.673... | 0.66826963 | 43 |
Gets the requested unique ressource location | public function getLocation(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function oz_get_resource_path ()\r\n{\r\n\t//Defaults to \"./res/\" URI path relative to the current url.\r\n\t//This may be changed to point to some other folders in case Apache mod_rewrite or\r\n\t//SEO friendly urls are used and the \"./res/\" path doesn't point to correct location.\r\n\treturn $_REQUEST['oz_re... | [
"0.6839138",
"0.63785166",
"0.63706714",
"0.62864625",
"0.6214698",
"0.6211318",
"0.6211318",
"0.6098804",
"0.60958093",
"0.60439885",
"0.60365",
"0.6026259",
"0.60213095",
"0.5987472",
"0.5986834",
"0.59703714",
"0.59613425",
"0.5954918",
"0.59525234",
"0.5928864",
"0.592276... | 0.0 | -1 |
Gets the request base dir (to build requests) | public function getBaseDir(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function base_path() {\n return (new Server)->get('DOCUMENT_ROOT');\n }",
"function get_base_dir() {\n return $this->base_dir;\n }",
"public function getBaseDirectory()\n {\n return $this->getParam(DirectoryKeys::BASE);\n }",
"public function basePath() {\n return $this\... | [
"0.75013715",
"0.7467928",
"0.7378694",
"0.73451674",
"0.73366517",
"0.7319462",
"0.72973645",
"0.72922385",
"0.728756",
"0.7207071",
"0.69875634",
"0.6968603",
"0.6956582",
"0.695205",
"0.69432056",
"0.69432056",
"0.6939308",
"0.6938604",
"0.6913609",
"0.68929994",
"0.687899... | 0.66827744 | 40 |
Sets the requested unique ressource location | public function setLocation($url); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected function setResource(): String;",
"public function setImageSourcePath($strSource = NULL) {\r\n\t\t\t$this->objParent->source_path = __SITE_ROOT__ . str_replace(__SITE_ROOT__, \"\", $strSource);\t \r\n\t\t }",
"public function setResource( $uri ) {\n\t\tif ( self::validateResource($uri) ) {\n... | [
"0.62478775",
"0.5790452",
"0.57534426",
"0.5721154",
"0.56939644",
"0.5686513",
"0.5683104",
"0.56201917",
"0.5614116",
"0.5600559",
"0.55784714",
"0.5543054",
"0.54988563",
"0.5478185",
"0.54028666",
"0.53958887",
"0.53939724",
"0.53741175",
"0.5364088",
"0.5262536",
"0.525... | 0.4936088 | 51 |
Gets the response type : html, xml, json ... | public function getResponseType(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function responseType ();",
"public function get_response_type()\n\t{\n\t\treturn $this->response_type;\n\t}",
"public function get_response_type()\n\t{\n\t\treturn $this->response_type;\n\t}",
"public function get_response_content_type()\n {\n // Return.\n \n return $this->res... | [
"0.80709755",
"0.7766252",
"0.7766252",
"0.7680574",
"0.76071477",
"0.75916374",
"0.7584651",
"0.7536211",
"0.75220895",
"0.7482981",
"0.71942306",
"0.7140915",
"0.71140516",
"0.69506985",
"0.69484514",
"0.6908833",
"0.6768765",
"0.6711454",
"0.66994464",
"0.6695181",
"0.6556... | 0.70191544 | 14 |
Gets the list of requested parameters | public function getParameters(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getParams();",
"public function getParams();",
"public function getParams();",
"public function getParams();",
"public function getParams();",
"public function getParams();",
"public function getParams();",
"public function getParams();",
"public function getParams();",
"public fu... | [
"0.7846559",
"0.7846559",
"0.7846559",
"0.7846559",
"0.7846559",
"0.7846559",
"0.7846559",
"0.7846559",
"0.7846559",
"0.7846559",
"0.7749011",
"0.77256775",
"0.769754",
"0.76452947",
"0.7539867",
"0.7531967",
"0.75314534",
"0.75290227",
"0.7523318",
"0.75106794",
"0.74961907"... | 0.7767127 | 16 |
Gets the specified parameter | public function getParameter($name); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getParam($param);",
"public static function getParam() {\n\n\t}",
"public function getParameter($param)\n {\n return $this->params[$param];\n }",
"public function getParameter()\n\t{\n\t\treturn $this->parameter;\n\t}",
"function get_parameter($name)\r\n {\r\n if (arr... | [
"0.8390055",
"0.8133642",
"0.7935025",
"0.7919341",
"0.77266777",
"0.77056086",
"0.77056086",
"0.7672574",
"0.76158834",
"0.75969476",
"0.75969476",
"0.7533714",
"0.7508497",
"0.7489165",
"0.74523497",
"0.74330235",
"0.7390947",
"0.7384737",
"0.7329904",
"0.73122627",
"0.7310... | 0.72976863 | 23 |
Check if the specified parameter is defined | public function hasParameter($name); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function hasParam($name);",
"public function hasParam(){\n return $this->_has(2);\n }",
"public function hasParam(){\n return $this->_has(2);\n }",
"public function hasParam(){\n return $this->_has(2);\n }",
"public function hasParam(){\n return $this->_has(2);\n }",
... | [
"0.80165577",
"0.78514326",
"0.78514326",
"0.78514326",
"0.78514326",
"0.78514326",
"0.77363604",
"0.77131563",
"0.7612693",
"0.7603801",
"0.7590044",
"0.75522417",
"0.7532681",
"0.7447304",
"0.741078",
"0.74092716",
"0.7383242",
"0.7349386",
"0.7344325",
"0.73358464",
"0.732... | 0.8020747 | 1 |
Check if the specified configuration key is defined | public function hasConfig($key); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function hasConfig(string $key): bool;",
"public function has($configKey, $key);",
"public function has($key)\n {\n if(array_key_exists($key,$this->config_arr))\n return true;\n else\n return false;\n }",
"public function is_api_key_in_config() {\n\t\treturn d... | [
"0.83128804",
"0.78871",
"0.77189046",
"0.7514252",
"0.749829",
"0.73914665",
"0.7366664",
"0.7339544",
"0.7339544",
"0.7300253",
"0.7256063",
"0.7245127",
"0.7241233",
"0.71758795",
"0.71379906",
"0.7088905",
"0.7073178",
"0.7046484",
"0.7013935",
"0.7006623",
"0.69946253",
... | 0.83470756 | 0 |
Gets the configuration entry | public function getConfig($key); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function get_setting() {\n return get_config(NULL, $this->name);\n }",
"static function getConfig() {\n\t\treturn self::getRegistry()->get(self::REGISTRY_CONFIG);\n\t}",
"public function get_config()\n\t{\n\t\treturn $this->cfg;\n\t}",
"public function getConfig(){\n\t\treturn $this->_config;\n\t}"... | [
"0.68556684",
"0.68522304",
"0.6796613",
"0.6791402",
"0.6783485",
"0.67475647",
"0.67385405",
"0.67333084",
"0.67111236",
"0.66947687",
"0.6684268",
"0.6653622",
"0.6628087",
"0.6626794",
"0.6626794",
"0.6626794",
"0.6626794",
"0.6626794",
"0.6626794",
"0.6626794",
"0.662679... | 0.6278389 | 77 |
Sets the specified configuration entry | public function setConfig($key, $value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract function setConfig($key, $value);",
"public function set(string $name, $entry): void;",
"public function set($config){\n\t\t$this->configValues = $config;\n\t}",
"public static function set(array $config): void;",
"public static function set(string $config, mixed $value) : void{\n se... | [
"0.66165805",
"0.65699375",
"0.63935024",
"0.6250778",
"0.61605656",
"0.61542815",
"0.6114246",
"0.6112015",
"0.6097479",
"0.6025027",
"0.5976464",
"0.59111214",
"0.5896093",
"0.58916974",
"0.588156",
"0.5867874",
"0.5859758",
"0.5850123",
"0.5848494",
"0.5840159",
"0.5836502... | 0.67918986 | 0 |
Gets the application name | public function getName(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getApplicationName();",
"public function getAppName()\n {\n return $this->get(self::APP_NAME);\n }",
"public function getAppName()\n {\n return $this->app_name;\n }",
"public function getApplicationName()\n\t{\n\t\treturn $this->config->get('rocketeer::application_na... | [
"0.9057266",
"0.9048911",
"0.88671803",
"0.8817545",
"0.8754382",
"0.8615711",
"0.8615711",
"0.8615711",
"0.8576247",
"0.85309154",
"0.84452283",
"0.84452283",
"0.84452283",
"0.84452283",
"0.84452283",
"0.84452283",
"0.84257174",
"0.83318",
"0.8080606",
"0.79059196",
"0.78779... | 0.0 | -1 |
Sets the current application name | public function setName($value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function set_appname()\n\t{\n\t\t$appname = (string) ee()->config->item('newrelic_app_name');\n\n\t\t// -------------------------------------------\n\t\t//\tHidden Configuration Variable\n\t\t//\t- newrelic_app_name => Change application name that appears in\n\t\t//\t the New Relic dashboard\n\t\t// ------... | [
"0.81923616",
"0.78969496",
"0.7660342",
"0.7383096",
"0.72666734",
"0.70244753",
"0.70244753",
"0.70244753",
"0.7001436",
"0.69643253",
"0.6933383",
"0.6920582",
"0.68911856",
"0.6847645",
"0.6782782",
"0.67775947",
"0.67775947",
"0.67775947",
"0.67775947",
"0.67775947",
"0.... | 0.0 | -1 |
Gets the page title | public function getTitle(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function getPageTitle() {\r\n\t\treturn $this->pageTitle;\r\n\t}",
"static public function getTitle() {\n\t\treturn self::$page_title;\n\t}",
"private function getPageTitle() {\n return $this->pageTitle;\n }",
"public function getPageTitle()\n {\n return $this->page_title;\n ... | [
"0.9009089",
"0.8967029",
"0.896351",
"0.88662356",
"0.88571894",
"0.8848067",
"0.87375534",
"0.8672296",
"0.86392736",
"0.8609965",
"0.857358",
"0.8554077",
"0.85520476",
"0.8517262",
"0.8446222",
"0.83773357",
"0.83437395",
"0.82884854",
"0.8270993",
"0.8228507",
"0.8131040... | 0.0 | -1 |
Sets the current page title | public function setTitle($value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function setPageTitle() {\r\n\t\t$pageTitleText = (empty($this->settings['news']['semantic']['general']['pageTitle']['useAlternate'])) ? $this->newsItem->getTitle() : $this->newsItem->getAlternativeTitle();\r\n\t\t$pageTitleAction = $this->settings['news']['semantic']['general']['pageTitle']['action'];\r... | [
"0.8608421",
"0.8210156",
"0.80975467",
"0.80975467",
"0.7955799",
"0.78968316",
"0.7885441",
"0.7855212",
"0.7768573",
"0.77248245",
"0.77200997",
"0.77167785",
"0.77066576",
"0.7689272",
"0.76750165",
"0.76621085",
"0.7657394",
"0.7656129",
"0.76415116",
"0.76340866",
"0.76... | 0.0 | -1 |
Gets the page description | public function getDescription(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static public function getDescription() {\n\t\treturn self::$page_description;\n\t}",
"public function getPageDescription()\n {\n $element = $this->query('meta[name=\"description\"]')->first();\n if ($element) {\n return $element->getAttribute('content');\n }\n\n return ... | [
"0.8648934",
"0.8196595",
"0.7809184",
"0.7608427",
"0.7240764",
"0.7229498",
"0.7229498",
"0.7171623",
"0.710823",
"0.7091599",
"0.7070574",
"0.70604646",
"0.7012445",
"0.6990432",
"0.6990432",
"0.6943201",
"0.6942586",
"0.6940996",
"0.69359285",
"0.69316036",
"0.69229716",
... | 0.0 | -1 |
Sets the current page description | public function setDescription($value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static public function setDescription($new_description) {\n\t\tself::$page_description = (string)$new_description;\n\t}",
"public function setPageDescription($pageDescription)\n {\n $this->_pageDescription = $pageDescription;\n }",
"public static function description($description)\n {\n ... | [
"0.73607045",
"0.7340605",
"0.733745",
"0.71801484",
"0.7162514",
"0.7105265",
"0.69596016",
"0.6832081",
"0.676383",
"0.6745884",
"0.67338234",
"0.6675333",
"0.6656014",
"0.6656014",
"0.66074985",
"0.65842855",
"0.6569542",
"0.6543173",
"0.65217435",
"0.6484166",
"0.6455056"... | 0.58484894 | 82 |
Gets the page template | public function getTemplate(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function getTemplatePage()\n {\n return self::$templatePage;\n }",
"public function getTemplate() {}",
"protected function getPageTemplate()\n {\n return new Template();\n }",
"function get_template()\n {\n }",
"abstract public function getTemplate();",
"publ... | [
"0.8253101",
"0.7963465",
"0.7957704",
"0.78039616",
"0.7770169",
"0.77420676",
"0.77415496",
"0.77401656",
"0.75434214",
"0.74846995",
"0.74378026",
"0.73526937",
"0.7337524",
"0.73235005",
"0.7319462",
"0.7319462",
"0.7319462",
"0.7319462",
"0.7319462",
"0.7319462",
"0.7319... | 0.78896195 | 8 |
Sets the current page template | public function setTemplate($value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function switch_page_template() {\n\n global $post;\n\n $post_type = get_post_type($post->ID);\n\n if (is_page() or is_post_type_hierarchical($post_type)) {// Checks if current post type is a page, rather than a post\n $current_page_template = get_post_meta($post->ID, ... | [
"0.74465483",
"0.73770213",
"0.71014684",
"0.69857186",
"0.6966788",
"0.6963136",
"0.6935353",
"0.6910531",
"0.67657566",
"0.6762774",
"0.67554253",
"0.6744295",
"0.66103524",
"0.6574378",
"0.6544725",
"0.6530562",
"0.6507391",
"0.6503614",
"0.6480304",
"0.6456842",
"0.645453... | 0.6309752 | 29 |
Gets the page layout | public function getLayout(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPageLayout() {}",
"public function getLayout() {}",
"public static function getLayout()\n {\n return self::$layout;\n }",
"public function layout() {\n return $this->layout;\n }",
"public function layout()\n {\n return $this->layout;\n }",
"protected funct... | [
"0.83984214",
"0.8111321",
"0.7886529",
"0.78742516",
"0.78577316",
"0.7851324",
"0.78243285",
"0.7806092",
"0.7806092",
"0.77749616",
"0.77749616",
"0.77749616",
"0.7684648",
"0.7673303",
"0.7644296",
"0.7629937",
"0.76207805",
"0.7606771",
"0.75933015",
"0.7560993",
"0.7549... | 0.8087863 | 2 |
Sets the current page layout | public function setLayout($value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function set_layout($layout) {\n $this->layout = $layout;\n }",
"public function setLayout() {\n if ($this->controller == 'login' || $this->controller == 'infos') {\n $this->viewBuilder()->setLayout('empty');\n } else if ($this->controller == 'ajax') {\n $this->viewBuilder... | [
"0.70402616",
"0.70264167",
"0.6970801",
"0.6900936",
"0.688196",
"0.686234",
"0.6860369",
"0.6850382",
"0.6846939",
"0.68194157",
"0.6806891",
"0.677998",
"0.676616",
"0.6717198",
"0.6700342",
"0.6699667",
"0.6695285",
"0.6682658",
"0.66800773",
"0.66800773",
"0.66800773",
... | 0.69818175 | 2 |
Retrieves a list of routes from the configuration | public function getRoutes(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getRoutes() {}",
"public static function getRoutes();",
"public static function getRoutes();",
"public static function getRoutes() {\n return self::$instance->getRouteList();\n }",
"public function getRouteList() {\n return $this->routes;\n }",
"public static function routes()\n ... | [
"0.8112833",
"0.81005996",
"0.81005996",
"0.78083193",
"0.7688392",
"0.7659955",
"0.76549745",
"0.7652547",
"0.761148",
"0.761148",
"0.75968593",
"0.75691354",
"0.75691354",
"0.7551015",
"0.7546803",
"0.7545471",
"0.7545471",
"0.75180453",
"0.7514486",
"0.7514486",
"0.7514486... | 0.81995606 | 1 |
Gets the requested route | public function getRoute($url); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getRoute();",
"function getCurrentRoute() {\n $santitizedUrl = ''; \n if (!empty($_GET['route'])) {\n $santitizedUrl = trim($_GET['route']);\n }\n \n return $this->getMatchingRoute($santitizedUrl);\n }",
"public static function getRoute() ... | [
"0.8087906",
"0.7977709",
"0.78582853",
"0.7846032",
"0.7831022",
"0.77706826",
"0.7697197",
"0.7647665",
"0.7647665",
"0.7647665",
"0.7647665",
"0.7647665",
"0.7647665",
"0.7647665",
"0.7638722",
"0.7626381",
"0.7618621",
"0.757604",
"0.75664353",
"0.75005597",
"0.7486706",
... | 0.6751751 | 57 |
Gets a url from the specified route | public function getUrl($route, array $args = null); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getRoute($url);",
"public function getUrl($route = '', $params = []);",
"public function getUrl($route = '') {\r\n\t\treturn $this->protocol.'://'.$this->host.$this->getUri($route);\r\n\t}",
"public function getUri($route = '') {\r\n\t\treturn $this->baseUrl.(($this->lang == $this->defLang) ?... | [
"0.7969044",
"0.77095366",
"0.75016326",
"0.7209435",
"0.718855",
"0.71775043",
"0.71334857",
"0.7097974",
"0.7069494",
"0.7004759",
"0.69976777",
"0.69789064",
"0.69508755",
"0.6905447",
"0.6817693",
"0.6817693",
"0.6810103",
"0.66973996",
"0.66973996",
"0.66973996",
"0.6697... | 0.7695049 | 2 |
Sets the main layout | public function setLayout($file); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function setupLayout() {\n\t\tif (!is_null($this -> layout)) {\n\t\t\t$this -> layout = View::make($this -> layout);\n\t\t}\n\t}",
"protected function setupLayout()\n\t{\n\t\tdefine(\"aol_institute\", 68);\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\... | [
"0.76815957",
"0.7585661",
"0.7568264",
"0.7565859",
"0.7531949",
"0.7516235",
"0.7514122",
"0.7504507",
"0.7500381",
"0.7500381",
"0.7500381",
"0.7500381",
"0.7500381",
"0.7500381",
"0.7500381",
"0.7500381",
"0.7500381",
"0.7500381",
"0.7500381",
"0.7500381",
"0.7500381",
... | 0.0 | -1 |
Initialize the layout data | public function initLayout(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function initLayout()\n {\n $showLabels = $this->hasLabels();\n $showErrors = $this->getConfigParam('showErrors');\n $this->mergeSettings($showLabels, $showErrors);\n $this->buildLayoutParts($showLabels, $showErrors);\n }",
"public function init() {\n $this->_ren... | [
"0.74784905",
"0.7352771",
"0.72447485",
"0.7179165",
"0.70187014",
"0.6937582",
"0.6933395",
"0.68277776",
"0.6744103",
"0.6673735",
"0.6659935",
"0.6653137",
"0.66503954",
"0.66187465",
"0.6605295",
"0.66037834",
"0.66037834",
"0.66037834",
"0.66037834",
"0.66037834",
"0.66... | 0.7988071 | 0 |
Sets the templating file | public function setTemplate($file); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function setTemplate(){\n if (isset($this->data['template']) && !empty($this->data['template'])){\n $template = APP_ROOT.'/app/templates/'.trim($this->data['template']).'.tpl';\n if (file_exists($template)){\n $this->template = $template;\n return;... | [
"0.79774344",
"0.75542116",
"0.7224734",
"0.7034816",
"0.70116067",
"0.699214",
"0.6981164",
"0.6966653",
"0.69508386",
"0.6935955",
"0.69028425",
"0.688402",
"0.6855792",
"0.68525285",
"0.68309224",
"0.6800215",
"0.67743325",
"0.67334545",
"0.6725747",
"0.6717871",
"0.671644... | 0.7650752 | 1 |
Adds the specified data to the end of the specified zone (using the specified file for the rendering) | public function push($zone, $file, $datasource = null); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function insert($zone, $file, $datasource = null);",
"public function addFileAndRender(string $filename, Data $data = null) : Content;",
"function ccio_appendData($filename, $data) {\r\n\t//$fh = fopen($filename, \"ab\");\r\n\t$fh = fopen($filename, \"at\");\r\n\tfwrite($fh, $data);\t\t\r\n\tfclose($fh)... | [
"0.60472345",
"0.5827741",
"0.57640314",
"0.562386",
"0.5458309",
"0.53695035",
"0.5194372",
"0.51710063",
"0.51612914",
"0.5153576",
"0.51380014",
"0.5135394",
"0.51191866",
"0.5118629",
"0.5094536",
"0.5086821",
"0.50509304",
"0.5021039",
"0.5006363",
"0.500201",
"0.4991217... | 0.6148685 | 0 |
Attaching a widget data | public function attach(
$zone, $widget, $render = null, $datasource = null
); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function hotpro_load_widget() {register_widget( 'data_hotpro_widget' );}",
"public function addWidget()\r\n {\r\n }",
"function wpb_load_widget() {\n\t\tregister_widget( 'dmv_widget' );\n\t}",
"public function widget( $args, $instance ){}",
"public function setData($data);",
"public function setDat... | [
"0.5813366",
"0.5801722",
"0.57659507",
"0.57419205",
"0.5732824",
"0.5732824",
"0.5732824",
"0.5732824",
"0.5732824",
"0.5641692",
"0.56366014",
"0.56269574",
"0.5593759",
"0.55217165",
"0.5487126",
"0.5486198",
"0.54791874",
"0.5446405",
"0.54361975",
"0.5413151",
"0.540908... | 0.6202917 | 0 |
Adds the specified data to the top of the specified zone (using the specified file for the rendering) | public function insert($zone, $file, $datasource = null); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function push($zone, $file, $datasource = null);",
"public function addFileAndRender(string $filename, Data $data = null) : Content;",
"public static function add_row( $data, $file ){\n $file = fopen( $file, 'a' );\n\n fwrite( $file, $data.'.php'.PHP_EOL);\n fclose( $file );\n }",
... | [
"0.6210875",
"0.5761208",
"0.52427065",
"0.5217834",
"0.51564264",
"0.5043383",
"0.5036541",
"0.5029186",
"0.50273174",
"0.49912634",
"0.4987705",
"0.4975479",
"0.4961179",
"0.49594143",
"0.49518254",
"0.48995876",
"0.48541754",
"0.48439756",
"0.48052546",
"0.47781155",
"0.47... | 0.6056256 | 1 |
Renders the specified file | public function render($file, $datasource = null); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function render($file);",
"public static function renderFile();",
"protected function renderFile(): string\n {\n $this->emit(\"view.render\", func_get_args());\n\n extract(func_get_arg(1), EXTR_PREFIX_INVALID, \"v_\");\n ob_start();\n\n try {\n require func_get_... | [
"0.86191946",
"0.8505658",
"0.765269",
"0.76339024",
"0.7618459",
"0.7316097",
"0.71705717",
"0.71705717",
"0.7142561",
"0.7008925",
"0.6962622",
"0.69253635",
"0.6884727",
"0.68534327",
"0.6853291",
"0.68270504",
"0.67737705",
"0.67728055",
"0.6743015",
"0.6711079",
"0.66981... | 0.7608245 | 5 |
Renders the current template | public function renderTemplate(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function render_template()\n {\n }",
"protected function render_template()\n {\n }",
"protected function render_template()\n {\n }",
"protected function render_template()\n {\n }",
"protected function render()\n {\n $params = ['tit... | [
"0.82373667",
"0.82359314",
"0.82359314",
"0.82359314",
"0.77748024",
"0.7766651",
"0.7710936",
"0.76272416",
"0.75364435",
"0.7520371",
"0.7470599",
"0.7466101",
"0.7455567",
"0.7416329",
"0.73912007",
"0.7334547",
"0.73306084",
"0.7311963",
"0.72651744",
"0.7233991",
"0.723... | 0.7962683 | 4 |
Renders the current layout | public function renderLayout(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function render_screen_layout()\n {\n }",
"public function render()\n {\n $content = $this->__layoutContent();\n\n extract($this->getViewData());\n ob_start();\n include $content;\n ob_get_flush();\n }",
"protected function render()\n {\n ... | [
"0.78251404",
"0.7820134",
"0.7524449",
"0.73031497",
"0.72716683",
"0.72287303",
"0.72287303",
"0.7223757",
"0.69539994",
"0.68959033",
"0.6871749",
"0.6863259",
"0.68605965",
"0.6784333",
"0.6766792",
"0.67660457",
"0.67544264",
"0.6742559",
"0.67278874",
"0.67198277",
"0.6... | 0.8236504 | 0 |
Renders the current layout | public function renderPlaceholder($zone); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function renderLayout();",
"public function render_screen_layout()\n {\n }",
"public function render()\n {\n $content = $this->__layoutContent();\n\n extract($this->getViewData());\n ob_start();\n include $content;\n ob_get_flush();\n }",
"protect... | [
"0.8236504",
"0.78251404",
"0.7820134",
"0.7524449",
"0.73031497",
"0.72716683",
"0.72287303",
"0.72287303",
"0.7223757",
"0.69539994",
"0.68959033",
"0.6871749",
"0.6863259",
"0.68605965",
"0.6784333",
"0.6766792",
"0.67660457",
"0.67544264",
"0.6742559",
"0.67278874",
"0.67... | 0.0 | -1 |
Check if the specified package is defined | public function hasConfig($package); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function is_package_installed($package_name) {\n\treturn (get_package_id($package_name) != -1);\n}",
"public function providesPackage($package) {\n $this->cat->debug('Provides package:', $package);\n return FALSE;\n }",
"public function shouldRun(string $package): bool;",
"function isPackageInst... | [
"0.7064956",
"0.69058865",
"0.683608",
"0.66459346",
"0.65284795",
"0.64034563",
"0.6288972",
"0.62416685",
"0.62255186",
"0.62251943",
"0.62071484",
"0.6179173",
"0.6178118",
"0.6177836",
"0.6173065",
"0.6144382",
"0.6127692",
"0.6113306",
"0.61126256",
"0.6055814",
"0.60414... | 0.71680105 | 0 |
Gets the specified package configuration | public function getConfig($package); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getConfig($package)\n {\n $this->requirePackage($package);\n return $this->_config[$package];\n }",
"function read_package_configurationfile($package_name) {\n\t$pkg_config = array();\n\t$id = get_package_id($package_name);\n\t$pkg_data = config_get_path(\"installedpackages/pa... | [
"0.7676505",
"0.74666166",
"0.716535",
"0.70634085",
"0.6972135",
"0.6905367",
"0.6905367",
"0.6905367",
"0.6905367",
"0.6905367",
"0.6905367",
"0.6905367",
"0.6905367",
"0.68190837",
"0.68174106",
"0.6808387",
"0.68015826",
"0.67640966",
"0.6706287",
"0.6695867",
"0.66290444... | 0.8375832 | 0 |
Attach a package to the current app | public function attach($package); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function setupApplication()\n {\n $this->call('publish:assets', ['package' => 'antares/foundation']);\n }",
"public function attach($package)\n {\n $config = $this->getConfig($package);\n if (!in_array($package, $this->_packages)) {\n if (!empty($config['depends... | [
"0.5426096",
"0.54190946",
"0.53529376",
"0.5242404",
"0.52017766",
"0.51311",
"0.5119502",
"0.5117796",
"0.5117796",
"0.5112254",
"0.5111909",
"0.5104101",
"0.5102355",
"0.50645405",
"0.5060541",
"0.5007857",
"0.49526468",
"0.49481705",
"0.49430543",
"0.4942909",
"0.49337164... | 0.7527348 | 0 |
Remove the package usage | public function detach($package); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function uninstall(){}",
"public static function remove($package_name, $no_output=false) {\n if(isset(self::$_packages[$package_name])) {\n $version_installed = self::$_packages[$package_name];\n //remove from packagist\n unset(self::$_packages[$package_nam... | [
"0.68550855",
"0.6674843",
"0.65668994",
"0.65453833",
"0.65453833",
"0.653464",
"0.65149426",
"0.6496075",
"0.64959437",
"0.64959437",
"0.64502996",
"0.6413974",
"0.6395543",
"0.63544655",
"0.63543385",
"0.6279193",
"0.6248395",
"0.62456983",
"0.6236932",
"0.6205971",
"0.620... | 0.56102884 | 69 |
Retrieves the list of css includes | public function getCss(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function _getCSSIncludes () {\n $ret = array();\n foreach ($this->_styles as $stylesheet => $included) {\n if (!$included) {\n $this->_styles[$stylesheet] = true;\n array_push($ret, self::CSS_PATH . $stylesheet);\n }\n }\n\n return $ret;\n }",
"public function getCssI... | [
"0.82072735",
"0.7944311",
"0.72464216",
"0.70641977",
"0.6952895",
"0.6868816",
"0.6771906",
"0.67717993",
"0.66399837",
"0.65441114",
"0.6468665",
"0.6461765",
"0.6454715",
"0.6450248",
"0.6433037",
"0.6425735",
"0.6421455",
"0.64133936",
"0.6412627",
"0.64053965",
"0.63861... | 0.59400594 | 45 |
Gets a list of JS links | public function getJs(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function get_the_js_urls() {\n\n md_get_the_js_urls();\n \n }",
"function media_theplatform_mpx_extract_all_js_links($text) {\n $pattern = '/\\<script type\\=\\\"text\\/javascript\\\" src\\=\\\"(.*?)\\\"/';\n preg_match_all($pattern, $text, $results);\n $js_files = $results[1];\n return $js_... | [
"0.754033",
"0.72173184",
"0.70796365",
"0.7072843",
"0.6828327",
"0.66232353",
"0.65582126",
"0.6540702",
"0.6511497",
"0.64690715",
"0.6452827",
"0.6437438",
"0.64148706",
"0.6407451",
"0.63674444",
"0.63192534",
"0.62887824",
"0.628719",
"0.62673324",
"0.6227306",
"0.61929... | 0.5938235 | 36 |
Sets the response code | public function setCode($code, $message); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setResponseCode($code) {}",
"public function setResponseCode($code);",
"public function setResponseCode($responseCode);",
"function setResponseCode($code) {\n $this->responseCode = $code;\n }",
"public function setStatusCode($code)\r\n {\r\n http_response_code($code);\r\... | [
"0.8936094",
"0.88438815",
"0.86261517",
"0.85919845",
"0.83499694",
"0.8313988",
"0.83049965",
"0.80509216",
"0.7965356",
"0.78387505",
"0.7798392",
"0.7788019",
"0.77404714",
"0.7719749",
"0.77021325",
"0.7665892",
"0.76595813",
"0.76095223",
"0.7608377",
"0.7535599",
"0.75... | 0.0 | -1 |
Sets the response header | public function setHeader($attribute, $value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setHeader($header);",
"public function alter_header()\n\t{\n\t\theader(\"HTTP/1.0 $this->code $this->title\");\n\t}",
"public function setHeader($name, $value) {}",
"function _setHeaders(){\n header(\"HTTP/1.1 \" . $this->CodeHTTP . \" \" . $this->_getStatusMessage());\n header(... | [
"0.7343322",
"0.73036003",
"0.72854346",
"0.72572094",
"0.72545433",
"0.72390574",
"0.7191759",
"0.7167859",
"0.7141989",
"0.7139923",
"0.7120596",
"0.7120596",
"0.7094081",
"0.705503",
"0.6995691",
"0.69544315",
"0.6944884",
"0.6933261",
"0.6932088",
"0.69314253",
"0.6906020... | 0.6270414 | 86 |
Write a new line with the specified message | public function writeLine($message); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function line($message)\n {\n if (!$this->output) {\n return;\n }\n\n $this->output->writeln('<comment>'.$message.'</comment>');\n }",
"public function writeln($message, $type = self::OUTPUT_NORMAL);",
"protected function doWrite($message, $newline)\n {\n }",
... | [
"0.77565855",
"0.70670754",
"0.70101196",
"0.69325584",
"0.6917182",
"0.691411",
"0.69133765",
"0.6912606",
"0.68599546",
"0.6769",
"0.6764861",
"0.6736047",
"0.67350155",
"0.6723698",
"0.6723425",
"0.67175967",
"0.6713011",
"0.66564965",
"0.66382396",
"0.65873873",
"0.649964... | 0.8572327 | 0 |
Outputs the specified contents | public function write($message); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function showContents() {\n\t\techo $this -> getContents();\n\t\texit ;\n\t}",
"public function reports_output() {\n\n\t\t\t// CHANGE THIS\n\t\t\techo 'This is where your new content section\\'s content goes.';\n\t\t}",
"protected function output() {\n\t\treturn $this->before() . $this->option( 'content... | [
"0.73631585",
"0.7084481",
"0.70743924",
"0.7002538",
"0.7002538",
"0.7002538",
"0.7002538",
"0.7002538",
"0.7002538",
"0.7002538",
"0.7002538",
"0.7002538",
"0.7002538",
"0.7002538",
"0.7002538",
"0.7002538",
"0.70021236",
"0.70021236",
"0.70021236",
"0.70021236",
"0.7002123... | 0.0 | -1 |
1000 Gets the current logger level | function getLevel(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static function getLevel() {\n if (empty(static::$level)) {\n static::$level = Conf::getIniVal(Conf::LOG_LEVEL, 3);\n }\n return static::$level;\n }",
"public function getLevel() {\n return Logger::$LOG_LEVELS[$this->logLevel];\n }",
"public function level()... | [
"0.7491121",
"0.7451138",
"0.72190285",
"0.7191563",
"0.7121533",
"0.7104724",
"0.6834608",
"0.67593515",
"0.67529005",
"0.6742533",
"0.66894877",
"0.6653956",
"0.66330105",
"0.66326463",
"0.6604881",
"0.65810126",
"0.65754485",
"0.65754485",
"0.65754485",
"0.65754485",
"0.65... | 0.64021677 | 38 |
Sets the log level | function setLevel($level); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setLogLevel($level)\r\n {\r\n $this->level = $level;\r\n }",
"function setLogLevel($value)\n {\n $this->_props['LogLevel'] = $value;\n }",
"public function setLogLevel($level)\n {\n if (in_array($level, array(self::DEBUG, self::INFO, self::NOTICE, self::WARNING, self::ERROR)... | [
"0.77338636",
"0.75491667",
"0.7473436",
"0.72613066",
"0.72509813",
"0.7013065",
"0.68858266",
"0.6878487",
"0.66735476",
"0.6617552",
"0.66090184",
"0.6577425",
"0.65486836",
"0.6490456",
"0.64193326",
"0.62296426",
"0.6199628",
"0.6181714",
"0.61697227",
"0.6137941",
"0.61... | 0.6774788 | 8 |
Send a debug message | function debug($message); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function send_debug_email()\n {\n }",
"public function debug($message) {}",
"private function debug($msg = '')\n\t{\n\t\t$this->debugger .= $msg.\"<br/>\\n\";\t\n\t}",
"private function debug($message) {\n if ($this->debug) echo $message . \"\\n\";\n if ($this->htmldebug... | [
"0.7635329",
"0.74013096",
"0.7382801",
"0.73519367",
"0.73430616",
"0.7318158",
"0.7266779",
"0.7211658",
"0.72026914",
"0.7192122",
"0.70947415",
"0.7013982",
"0.6989866",
"0.6989812",
"0.6988725",
"0.6918641",
"0.6912888",
"0.69030833",
"0.6887846",
"0.68810534",
"0.685780... | 0.7231503 | 7 |
Sends an info message | function info($message); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function info($msg) {\n $this->writeLine($msg, 'info');\n }",
"public static function info($message)\n\t{\n\t\tstatic::write('Info', $message);\n\t}",
"public function info($message) {}",
"public function info($message)\n {\n $this->message($message, 'info');\n }",
"public fun... | [
"0.7375641",
"0.7306783",
"0.72605896",
"0.72250557",
"0.71504813",
"0.69928694",
"0.69401044",
"0.68801874",
"0.68567544",
"0.68342227",
"0.6824467",
"0.67547995",
"0.67479974",
"0.67441183",
"0.6710042",
"0.6671017",
"0.66673356",
"0.66599894",
"0.66182464",
"0.6610027",
"0... | 0.6979454 | 6 |
Send a warning message | function warning($message); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function warn()\r\n {\r\n// header('Location: '.$this->warning_url);\r\n $this->send_header($this->warning_url);\r\n exit;\r\n }",
"public function warning($message) {}",
"public static function warning()\n {\n static::returnCode(static::CODE_WARNING);\n }",
"p... | [
"0.7803262",
"0.7797021",
"0.75968295",
"0.75558376",
"0.73753834",
"0.7355787",
"0.73454607",
"0.7328113",
"0.72263426",
"0.7202831",
"0.7179409",
"0.715393",
"0.71315014",
"0.70912653",
"0.7077383",
"0.7074999",
"0.7010409",
"0.69900805",
"0.69827336",
"0.6973084",
"0.69527... | 0.7702714 | 2 |
Send an error message | function error($message); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract function send_error($ex=null) ;",
"public function sendError($error, $reason = NULL)\n {\n }",
"private function _sendErrors( ){\n\n\t\tglobal $mqRecurly;\n\n\t\t$site = strtoupper( strtok( $mqRecurly->getSetting('plan_id_prefix'), '-' ) );\n\n\t\t$message = print_r( $this->_errors, 1 ... | [
"0.751816",
"0.74529374",
"0.72794026",
"0.72360486",
"0.7165664",
"0.70984966",
"0.70768565",
"0.7024776",
"0.69102114",
"0.68900156",
"0.68390286",
"0.68381834",
"0.68347895",
"0.6830216",
"0.6767692",
"0.6766129",
"0.6735289",
"0.67235833",
"0.66881347",
"0.66830474",
"0.6... | 0.67011213 | 18 |
Attach an logger and starts watching errors | function attach(ILogger $logger); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function initLogger(): void\n {\n $customPath = $this->context->getConfigurationService()->getLogPath();\n $severity = $this->context->getConfigurationService()->getLogSeverity();\n\n Logger::resetErrors();\n $this->logger = Logger::getInstance(__CLASS__, $customPath, $seve... | [
"0.6739746",
"0.63609195",
"0.62981725",
"0.6030692",
"0.60109514",
"0.59167266",
"0.58882576",
"0.58331466",
"0.5797289",
"0.5766152",
"0.5752577",
"0.57494915",
"0.5692762",
"0.5625293",
"0.56187356",
"0.56178313",
"0.5605429",
"0.55914634",
"0.5574778",
"0.5570233",
"0.555... | 0.65516794 | 1 |
Detach the error handler | function detach(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function destruct()\n {\n restore_error_handler();\n }",
"public function __destruct()\n {\n set_error_handler($this->prevErrorHandler);\n set_exception_handler($this->prevExceptionHandler);\n }",
"public function restoreErrorHandler()\n {\n restore_error_handler($this... | [
"0.75664634",
"0.69011974",
"0.6808269",
"0.66556466",
"0.6476372",
"0.5883651",
"0.58746034",
"0.58707726",
"0.5821805",
"0.5771025",
"0.56899726",
"0.5676582",
"0.5663106",
"0.5639935",
"0.5565221",
"0.5533388",
"0.5533084",
"0.55019474",
"0.55019474",
"0.54761046",
"0.5431... | 0.0 | -1 |
Catch the specified exception | function raise(\Exception $ex); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function handleException($exception);",
"public function catchException()\n {\n // get the current exception\n $e = $this->getException();\n\n // throw a copy, with the original as the previous exception so that\n // we can see a full trace.\n $class = get_class($e);\... | [
"0.7185062",
"0.7140752",
"0.70744056",
"0.67647886",
"0.6673904",
"0.6662604",
"0.6646122",
"0.6598697",
"0.6597244",
"0.6554594",
"0.65510035",
"0.65149283",
"0.65019774",
"0.6465701",
"0.6463936",
"0.6445299",
"0.63876426",
"0.63616747",
"0.6335793",
"0.6279957",
"0.624968... | 0.61619127 | 28 |
Hook for the service starting | protected function _onStart()
{
$this->_raise(self::E_LOAD);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function start()\n {\n $this->startService();\n $this->startSession();\n }",
"public function start() {\n\n // TODO: Maybe sometimes\n\n }",
"public function start()\n {\n $this->registerDefaultServices();\n\n $this->handle($this->request->createFr... | [
"0.7615975",
"0.7588323",
"0.74830955",
"0.7401253",
"0.73121244",
"0.73031795",
"0.73031795",
"0.73031795",
"0.73020196",
"0.73020196",
"0.7301242",
"0.73005366",
"0.73005366",
"0.73005366",
"0.73005366",
"0.73005366",
"0.73005366",
"0.7300145",
"0.7246003",
"0.7223565",
"0.... | 0.6493986 | 56 |
Gets the current application | final public function getApplication()
{
return $this->_app;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getApp() {\n return $this->call->getApp();\n }",
"public static function getActiveApp()\n {\n return self::$_activeApp;\n }",
"public static function getApp()\n\t{\n\t\treturn static::$app;\n\t}",
"public function getApp()\n {\n return $this->app;\n }",
"... | [
"0.85277414",
"0.83977383",
"0.83349156",
"0.8165997",
"0.8165997",
"0.8165997",
"0.8165997",
"0.8165997",
"0.8165997",
"0.8075828",
"0.8071614",
"0.8052908",
"0.80133325",
"0.80133325",
"0.80133325",
"0.80133325",
"0.7992866",
"0.797287",
"0.797287",
"0.797287",
"0.797287",
... | 0.8077293 | 9 |
Processing Code retour Web Service | public function getAllCodeRetour($param = null)
{
$this->table = "sva_code_retour as c";
$this->champs = ["c.rowid","c.code","c.message_fr","c.message_en","c.etat"];
$this->condition = ["c.fk_webservice =" => $param[0]];
return $this->__processing();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function process() {\n\t\t$service = $this->getService();\n\t\t$service->hsts = HTTP_Helper::retrievePost( 'hsts_preload' );\n\t\t$service->include_subdomain = HTTP_Helper::retrievePost( 'include_subdomain' );\n\t\t$service->hsts_cache_duration = HTTP_Helper::retrievePo... | [
"0.6321294",
"0.62822425",
"0.6175986",
"0.6171486",
"0.61598414",
"0.6153813",
"0.6051371",
"0.6008579",
"0.5985304",
"0.59687394",
"0.59391046",
"0.59353423",
"0.5935129",
"0.59265566",
"0.58372366",
"0.58362305",
"0.5833884",
"0.58334816",
"0.5828011",
"0.58123714",
"0.580... | 0.0 | -1 |
Get Code retour Web Service | public function getCodeRetour($param = null)
{
$this->table = "sva_code_retour";
$this->__addParam($param);
return $this->__select();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getWebservice()\n {\n return $this->webservice;\n }",
"public function getServiceCode();",
"public function getWebService()\n {\n return $this->webService;\n }",
"public function getWebservice()\n {\n return $this->_webservice;\n }",
"public function g... | [
"0.63341224",
"0.631827",
"0.628465",
"0.6282912",
"0.62629604",
"0.6229585",
"0.5948279",
"0.5904576",
"0.5886976",
"0.5831039",
"0.5804756",
"0.5789038",
"0.5784752",
"0.5758446",
"0.5741594",
"0.5737841",
"0.5726511",
"0.567134",
"0.5623032",
"0.5609219",
"0.56089747",
"... | 0.0 | -1 |
Modification Code retour Web Service | public function updateCodeRetour($param)
{
$this->table = "sva_code_retour";
$this->__addParam($param);
return $this->__update();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testUpdateServiceData()\n {\n\n }",
"public function testUpdateService()\n {\n\n }",
"private function suivi_crm(){\t\n\t\t\t\n\t\t\tif($this->get_request_method() != \"GET\"){\n\t\t\t\t$this->response('',406);\n\t\t\t}\n\t\t\t\n\t\t\t$result=suivi_crm();\n\t\t\t$this->response($thi... | [
"0.64576244",
"0.6195699",
"0.6171193",
"0.604954",
"0.60006696",
"0.59804034",
"0.5875887",
"0.5858811",
"0.57946795",
"0.5790481",
"0.5714419",
"0.5713727",
"0.5709085",
"0.5706063",
"0.5699107",
"0.56985146",
"0.5675508",
"0.5670481",
"0.56413305",
"0.56309927",
"0.5629088... | 0.0 | -1 |
Suppression Code retour Web Service | public function deleteCodeRetour($param)
{
$this->table = "sva_code_retour";
$this->__addParam($param);
return $this->__delete();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function access_denied() {\n\t\tif ( ! php_version_at_least( '4.1.0' ) ) {\n\t\t\tglobal $_SERVER;\n\t\t}\n\n\t\t// Si viene por webservice no necesita estar logueado.\n\t\tif($_POST['code']=='14149989'){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif ( ! auth_is_user_authenticated() ) {\n\t\t\t$p_return_page = string_url( $... | [
"0.62086535",
"0.5529478",
"0.54679525",
"0.5438221",
"0.5413195",
"0.5401495",
"0.53559476",
"0.53470933",
"0.53345287",
"0.53296024",
"0.5327523",
"0.5291381",
"0.52533036",
"0.52481925",
"0.5240829",
"0.52199554",
"0.520719",
"0.5191429",
"0.5183137",
"0.514622",
"0.514472... | 0.0 | -1 |
Sanity test for Pages. Prevents user from persisting bogus Pages. This is the case if the Page has fallback content. In this case, the Page's content was overwritten with other data that is not meant to be persisted. more than one page has module home without cmd | protected function checkValidPersistingOperation($pageRepo, $page) {
global $_CORELANG;
if ($page instanceof Page) {
if ($page->isVirtual()) {
throw new PageEventListenerException('Tried to persist Page "'.$page->getTitle().'" with id "'.$page->getId().'". This Page is virtual and cannot be stored in the DB.');
}
if ($page->getModule() == 'Home'
&& $page->getCmd() == ''
&& $page->getType() == \Cx\Core\ContentManager\Model\Entity\Page::TYPE_APPLICATION
) {
$home = $pageRepo->findBy(array(
'module' => 'Home',
'cmd' => '',
'lang' => $page->getLang(),
'type' => \Cx\Core\ContentManager\Model\Entity\Page::TYPE_APPLICATION,
));
reset($home);
if ( count($home) > 1
|| ( count($home) == 1
&& current($home)->getId() != $page->getId())
) {
throw new PageEventListenerException('Tried to persist Page "'.$page->getTitle().'" with id "'.$page->getId().'". Only one page with module "home" and no cmd is allowed.');
// the following is not necessary, since a nice error message
// is display by javascript.
// find the other page to display a better error message:
if (current($home)->getId() == $page->getId()) {
$home = end($home);
} else {
$home = current($home);
}
throw new PageEventListenerException(sprintf($_CORELANG['TXT_CORE_CM_HOME_FAIL'], $home->getId(), $home->getPath()));
//SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1-110-Cx\Model\ContentManager\Page' for key 'log_class_unique_version_idx'
//'Tried to persist Page "'.$page->getTitle().'" with id "'.$page->getId().'". Only one page with module "home" and no cmd is allowed.');
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testCreatePage()\n {\n // 1. Create Page\n $this->createPage();\n\n // 2. Test if content is created\n $this->assertTrue(Content::first() ? true : false);\n }",
"static public function createPages() {\n\t\treturn false;\n\t}",
"function do_pages_exist() {\n ... | [
"0.67927974",
"0.6506271",
"0.6440512",
"0.64116126",
"0.6395689",
"0.63868475",
"0.63698274",
"0.6351664",
"0.6321068",
"0.62690365",
"0.62497926",
"0.61875457",
"0.61804336",
"0.6177266",
"0.61580765",
"0.6138884",
"0.61011314",
"0.609824",
"0.6086015",
"0.606491",
"0.60617... | 0.5639556 | 70 |
Fix the auto increment for the content_page table Ticket 1070 in bug tracker The last content page have been deleted and the website was moved to another server, in this case the auto increment does not match the log's last object_id. This will cause a duplicate primary key. | private function fixAutoIncrement() {
$database = \Env::get('db');
$result = $database->Execute("SELECT MAX(CONVERT(`object_id`, UNSIGNED)) AS `oldAutoIncrement`
FROM `" . DBPREFIX . "log_entry`
WHERE `object_class` = 'Cx\\\\Core\\\\ContentManager\\\\Model\\\\Entity\\\\Page'");
if ($result === false) return;
$oldAutoIncrement = $result->fields['oldAutoIncrement'] + 1;
$result = $database->Execute("SHOW TABLE STATUS LIKE '" . DBPREFIX . "content_page'");
if ($result !== false && $result->fields['Auto_increment'] < $oldAutoIncrement) {
$result = $database->Execute("ALTER TABLE `" . DBPREFIX . "content_page` AUTO_INCREMENT = " . contrexx_raw2db($oldAutoIncrement));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getNewContentId()\n {\n\t $row = db::fetch(\"SELECT MAX(id) AS id FROM content\");\n\t return $row['id']+1;\n }",
"private function resetInsertID() {\n $this->setInsertID(0);\n }",
"private function getNewID()\n\t{\n\t\t$ids = array_keys($this->metadata['posts']);\n\t\t$lastId = (... | [
"0.6191497",
"0.5767585",
"0.5607199",
"0.5572042",
"0.55339754",
"0.550124",
"0.5476622",
"0.5453601",
"0.54496634",
"0.5424661",
"0.5394438",
"0.5284311",
"0.5271356",
"0.52697486",
"0.52685416",
"0.5267947",
"0.5227927",
"0.52231306",
"0.51884216",
"0.5182833",
"0.518078",... | 0.8811373 | 0 |
Model constructor. Initializes the database. // NOT IMPLEMENTED: Generates the sample database if none exists. | public function __construct()
{
$this->db = new mysqli(
Model::DB_HOST,
Model::DB_USER,
Model::DB_PASS
// Model::DB_NAME
);
if (!$this->db) {
throw new \Exception($this->db->connect_error, $this->db->connect_errno);
}
$this->db->query("CREATE DATABASE IF NOT EXISTS " . Model::DB_NAME . ";");
if (!$this->db->select_db(Model::DB_NAME)) {
error_log("Mysql database not available!", 0);
throw new \mysqli_sql_exception();
}
$this->generateDatabase();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function __construct()\n\t\t{\n\t\t\t// Call the Model constructor\n\t\t\tparent::__construct();\n\t\t $this->load->database();\t\n\t\t}",
"private function initDatabase() {\n \n \n \n }",
"protected function initDatabaseRecord() {}",
"public function __construct()\n\t{\n\t\tif (!$... | [
"0.6978571",
"0.6820556",
"0.67710954",
"0.668322",
"0.66699487",
"0.6578554",
"0.6578554",
"0.6578554",
"0.65686005",
"0.6416867",
"0.63695395",
"0.6349996",
"0.6324611",
"0.6313741",
"0.63059694",
"0.62983906",
"0.62834656",
"0.6282961",
"0.6277901",
"0.62550557",
"0.625228... | 0.0 | -1 |
Generates the database and inserts dummy data. | public function generateDatabase()
{
$this->generateUserTable();
$this->generateEmployerTable();
$this->generateCandidateTable();
$this->generateGuidTable();
$this->generateWorkExperienceTable();
$this->generateShortListTable();
$this->generateQualTypeTable();
$this->generateQualLevelTable();
$this->generateQualificationsTable();
$this->generateFieldTable();
$this->generateSubFieldTable();
$this->generateSkillTable();
$this->generatePreferencesTable();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function seed()\n\t{\n\t\t$this->createDataType();\n\t\t$this->createDataRowForColumns();\n\t}",
"protected function createDatabaseStructure() {}",
"private function createMainDatabaseRecords()\n {\n // get the .sql file\n $sql = (string) @file_get_contents( $this->plugin->getPath() . \... | [
"0.7133806",
"0.70929074",
"0.7031884",
"0.6937879",
"0.6908523",
"0.68656486",
"0.683179",
"0.681498",
"0.68135667",
"0.6809421",
"0.6793708",
"0.67638826",
"0.6758844",
"0.67451596",
"0.6736322",
"0.67323965",
"0.6732012",
"0.6719655",
"0.6712371",
"0.6712051",
"0.66944695"... | 0.74469066 | 0 |
/ Category Part Show All Category | public function showCategory(Request $request) {
if($request->ajax()){
$this->index = 0;
$data = Category:: where('is_delete',0)->orderBy('position','ASC')->get();
return DataTables::of($data)
->addcolumn('index',function(){
$this->index++;
return $this->index;
})
->addColumn('action',function($data){
$text ='<div class="btn-group">
<button class="btn btn-info btn-sm dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Action
</button>
<div class="dropdown-menu dropdown-menu-right">
<a class="dropdown-item ajax-click-page" href="'.url('category/edit/'.$data->id).'" > <span class="fa fa-edit"></span> Edit </a>
<a class="dropdown-item ajax-click" onclick="return confirm(\'Are you sure to delete?\')" href="'.url('category/'.$data->id.'/delete').'" > <i class="fas fa-trash-alt"></i> Delete </a>
</div>
</div>';
return $text;
})
->editColumn('categoryImage',function($data){
return '<img src="'.asset($data->categoryImage).'" width="40" height="40" >';
})
->editColumn('haveSubCategory',function($data){
return $data->haveSubCategory == 1?'Yes':'No';
})
->editColumn('publicationStatus',function($data){
return $data->publicationStatus ==1?'Published':'Unpublished';
})
->RawColumns(['action','categoryImage'])
->make(true);
}
return view('backEnd.category.category');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getAllWithCategory();",
"public function showCategories(){\n return ArticleModel::showCategories();\n }",
"public function getAllCategories();",
"public function categories_all() {\n\t\t// Simple! Get the categories\n\t\t$this->data['categories'] = $this->mojo->blog_model->categories();\n... | [
"0.77067304",
"0.75610566",
"0.75562805",
"0.7487843",
"0.7470839",
"0.7463594",
"0.7374088",
"0.7373314",
"0.7373314",
"0.7335966",
"0.7313815",
"0.7296882",
"0.72924995",
"0.72580177",
"0.724382",
"0.72280276",
"0.7212707",
"0.7212707",
"0.7212707",
"0.71959364",
"0.7169989... | 0.0 | -1 |
Save Sub Category Information | public function storeSubCategory(Request $request) {
try {
DB::beginTransaction();
if(empty($request->id)){
$data = new SubCategory();
}else{
$data = SubCategory::find($request->id);
}
$data->subCategoryName = $request->subCategoryName;
$data->pageTitle = $request->pageTitle;
$data->metaTag = $request->metaTag;
$data->metaDescription = $request->metaDescription;
$data->categoryId = $request->categoryId;
$data->publicationStatus = $request->publicationStatus;
$data->position = $request->position;
$data->subCategoryImage = $this->UploadImage($request, 'subCategoryImage', $this->categoryDir, 268, 185, $data->subCategoryImage);
$data->save();
DB::commit();
$output = ['status'=>'success','message'=> 'Caregory add successfully', 'table' => 1,'modal'=>1];
return response()->json($output);
} catch (Exception $ex) {
DB::rollback();
$output = ['status'=>'error','message'=> 'Something went Wrong', 'table' => 1,'modal'=>1];
return response()->json($output);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function store()\n {\n $categories = Category::all();\n\n $subcategory = new Subcategory;\n $subcategory->name = request('name');\n foreach($categories as $category){\n if($category->name == request('cat')){\n $subcategory->categories_id = $category->... | [
"0.7122877",
"0.7028975",
"0.70189935",
"0.69578034",
"0.6935387",
"0.692066",
"0.6655768",
"0.6572077",
"0.6556841",
"0.6540793",
"0.65405697",
"0.6494302",
"0.64942795",
"0.64868104",
"0.6478652",
"0.6391975",
"0.6387141",
"0.6371994",
"0.6350344",
"0.6349655",
"0.63416207"... | 0.6645719 | 7 |
Construct the factory class. | public function __construct(Manager $manager)
{
$this->manager = $manager;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected static function newFactory()\n {\n //\n }",
"public static function factory()\r\n {\r\n return parent::factory(__CLASS__);\r\n }",
"public function construct() {\n\n }",
"public function construct()\n\t\t{\n\t\t}",
"public static function factory()\n {\n re... | [
"0.757677",
"0.7526373",
"0.72985935",
"0.7284462",
"0.7192799",
"0.717194",
"0.7158661",
"0.7158661",
"0.7158661",
"0.7028923",
"0.6976304",
"0.6953736",
"0.69053113",
"0.69053113",
"0.6884043",
"0.6884043",
"0.68712914",
"0.6854846",
"0.68022263",
"0.6780199",
"0.67793477",... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.