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
Returns a specific attribute's value.
public function getAttribute($name) { return isset($this->attributes[$name]) ? $this->attributes[$name] : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getValue(string $attr)\n {\n $this->checkAttribute($attr);\n return $this->attributes[$attr];\n }", "public function getAttributeValue() {\n return $this->attributeValue;\n }", "protected function getValueAttribute() {}", "public function get($attribute);", "public f...
[ "0.78913975", "0.787744", "0.771705", "0.7589927", "0.7490661", "0.7460217", "0.74111396", "0.74111396", "0.74007154", "0.7334138", "0.73008835", "0.7271243", "0.72355705", "0.7179387", "0.70937955", "0.7079936", "0.7054835", "0.70451367", "0.7037552", "0.70287085", "0.701450...
0.0
-1
Returns the complete list of attributes.
public function getAttributes() { return $this->attributes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAttributesList() {\n return $this->_get(15);\n }", "public function getAttributesList() {\n return $this->_get(15);\n }", "public function getAttributesList() {\n return $this->_get(3);\n }", "public function getAttributesList() {\n return $this->_get(9);\n ...
[ "0.89482707", "0.89482707", "0.89339507", "0.89335936", "0.8927971", "0.88580924", "0.88564575", "0.8570846", "0.84294623", "0.84294623", "0.84294623", "0.84294623", "0.84294623", "0.84294623", "0.84294623", "0.84294623", "0.84294623", "0.833937", "0.8339077", "0.82954544", "...
0.81309664
43
Sets a value for the given attribute.
public function setAttribute($name, $value) { $this->attributes[$name] = $value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __set($attribute, $value) {\n $this->setAttribute($attribute, $value);\n }", "public function __set($attribute, $value){\n\t\t$this->$attribute = $value;\n\t}", "public function set($attribute, $value)\n {\n $this->attributes[$attribute] = $value;\n }", "public function...
[ "0.80472577", "0.8011223", "0.79856044", "0.7949723", "0.79295194", "0.7867541", "0.78109133", "0.78092843", "0.7802309", "0.77509403", "0.7714959", "0.7709848", "0.7653544", "0.7652067", "0.75434214", "0.7524011", "0.7512217", "0.7475069", "0.7378125", "0.73721987", "0.73660...
0.0
-1
Removes a given attribute.
public function removeAttribute($name) { unset($this->attributes[$name]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function removeAttribute($attribute)\n {\n array_forget($this->attributes, $attribute);\n\n $this->update();\n }", "public function remove_attribute(string $attribute){\n foreach($this -> attributes as $key => $value){\n if($value -> get_name() === $attribute){\n ...
[ "0.8545562", "0.8482212", "0.8288129", "0.7683771", "0.7680496", "0.76372504", "0.76035696", "0.7075978", "0.7051292", "0.70143247", "0.6998553", "0.6882367", "0.6881658", "0.68251914", "0.67144495", "0.6658942", "0.661745", "0.6587951", "0.6547517", "0.65115285", "0.6483042"...
0.74216807
7
Set corresponding local User.
public function setLocalUser(User $localUser) { $this->localUser = $localUser; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function set_current_user()\n\t{\n\t\tif (class_exists('Auth'))\n\t\t{\n\t\t\t// Load our current logged in user for convenience\n\t\t\tif ($this->auth->is_logged_in())\n\t\t\t{\n\t\t\t\t$this->current_user = clone $this->auth->user();\n\n\t\t\t\t$this->current_user->user_img = gravatar_link($this->curre...
[ "0.7277967", "0.7128469", "0.70145345", "0.70145345", "0.6991974", "0.6967478", "0.689965", "0.688801", "0.6885629", "0.68811667", "0.686088", "0.6854882", "0.68166864", "0.6748146", "0.6740178", "0.67283535", "0.67283535", "0.6717387", "0.6712223", "0.67119133", "0.66672444"...
0.78205454
0
Get corresponding local User. If localUser is not set, but current one has an ID it means it's the localUser itself.
public function getLocalUser() { if (!is_null($this->localUser)) { return $this->localUser; } elseif ($this->hasAttribute('id')) { return $this; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCurrentUser()\n {\n return $this->remoteUser;\n }", "protected function _current_user()\n {\n $user_id = $this->session->userdata(\"user_id\");\n \n if($user_id)\n {\n $this->load->model('user_model');\n $this->current_user = $t...
[ "0.69484097", "0.6771217", "0.6744726", "0.66957664", "0.6641173", "0.6627476", "0.66004485", "0.65811694", "0.65578705", "0.655593", "0.6550819", "0.65069574", "0.6505726", "0.64932466", "0.64867026", "0.64727896", "0.6452841", "0.64420944", "0.64406025", "0.64173543", "0.64...
0.8325109
0
/ Smarty plugin feito pelo Werneck File: function.input.php Type: function Name: input Purpose: input helper
function smarty_function_input($params, &$view) { function print_label(&$params) { if ( isset($params['label']) ) { $id = $params['id']; $text = $params['label']; unset($params['label']); return "\n<label id='$id"."_label' for='$id'>$text</la...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function input($data);", "public function getInput();", "public function getInput();", "public function getInput();", "function input ()\n\t{}", "public function get_input()\n {\n }", "public function getInput() {}", "function inputfield($input){\r\n\t\t$fieldData = explode(\":::\", $in...
[ "0.71775526", "0.7171455", "0.7171455", "0.7171455", "0.69136107", "0.69056034", "0.6841431", "0.6808807", "0.67503345", "0.6728398", "0.6717288", "0.6638018", "0.6534847", "0.64427245", "0.6429353", "0.6428228", "0.64245075", "0.63496983", "0.62882113", "0.626617", "0.625863...
0.69789606
4
Display a listing of the resource.
public function index() { $this->middleware('auth'); $serviceName = ConfigData::getArrayService(); $arrImage = ConfigData::getArrTypeImage(); $myServiceContact = MyServiceContact::orderBy('updated_at','desc')->with('serviceFile')->paginate(10); return view('layouts.admin.serv...
{ "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.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.717428...
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { try { $isOK = MyUserContactInfo::checkThresholdRequest($request); if(!$isOK) { return response()->json([ 'success' => false, 'msg' => " Bạn ơi ! Đừng Phá Nữa! Một ngày làm gì mà vào tran...
{ "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) { $serviceContact = MyServiceContact::with('serviceFile')->find($id); $serviceContact->is_read = 'Y'; $serviceContact->save(); $arrDichVu = ConfigData::getArrayService(); $arrImageType = ConfigData::getArrTypeImage(); return view('layouts.adm...
{ "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
/ Reply email from customer requirements
public function reply($id) { $arrService = ConfigData::getArrayService(); $serviceContact = MyServiceContact::with('mailService')->find($id); return view('layouts.admin.service_contact.mail') ->withArrService($arrService) ->withServiceContact($serviceContact); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function send_request_for_approval_to($email,$name,$date_from,$date_to,$reason,$approve_link,$reject_link){\n $message = \"<p> Dear supervisor, <br> Employee {$name} requested for some time off, starting on {$date_from} and ending on {$date_to}, stating the reason: {$reason}.<br> Click on one of the belo...
[ "0.67429835", "0.6695579", "0.66486675", "0.6643884", "0.6523445", "0.6513181", "0.65096194", "0.6471242", "0.64430153", "0.64331913", "0.64321166", "0.63985485", "0.63820887", "0.6362166", "0.6361974", "0.6361637", "0.63221854", "0.62815845", "0.62721807", "0.6269956", "0.62...
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.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
Remove the specified resource from storage.
public function delete($id) { }
{ "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
Remove the specified resource from storage.
public function destroy($id) { // }
{ "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
Run the database seeds.
public function run() { $books = factory(Book::class, 10)->create()->each(function($books){ $books->save(); }); }
{ "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.8013876", "0.79804534", "0.7976992", "0.79542726", "0.79511505", "0.7949612", "0.794459", "0.7942486", "0.7938189", "0.79368967", "0.79337025", "0.78924936", "0.78811055", "0.78790957", "0.78787595", "0.787547", "0.7871811", "0.78701615", "0.7851422", "0.7850352", "0.78414...
0.0
-1
Generates the SQL statement required to alter DB2 to match DB1
public function generateDiff() { $schema1 = $this->getTables($this->conn1); $schema2 = $this->getTables($this->conn2); //store tables to create $toCreate = array(); //store tables to alter $toAlter = array(); //check for tables to create $this->cre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function schema2()\n {\n $sql = \"ALTER TABLE teams CHANGE deletable_xp deletable_xp TINYINT(1) NOT NULL DEFAULT '1'\";\n if (!$this->pdo->q($sql)) {\n throw new Exception('Problem updating!');\n }\n }", "protected function toBaseSQL() {\r\n\t\t$sql=' FROM '.$this->r...
[ "0.5477178", "0.5414272", "0.5347232", "0.5252474", "0.5222257", "0.51853985", "0.5185376", "0.5151345", "0.5133469", "0.51305354", "0.51128876", "0.5103744", "0.5059702", "0.5023436", "0.5022924", "0.5014251", "0.4990164", "0.49865946", "0.4968751", "0.49463898", "0.49287277...
0.5954895
0
Retrieve tables in a database
private function getTables($conn) { $result = $conn->query("SHOW TABLES"); $empty = array(); if (!$result) { return $empty; } $tables = array(); while ($row = $result->fetch_row()) { $tables[] = $row[0]; } return $tables; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTables()\n {\n\treturn $this->query('select [name] from [tables]');\n }", "public function get_tables()\n\t{\n\t\treturn $this->driver_query('table_list');\n\t}", "public function getTables();", "public function getTables();", "public function getTables();", "protected function g...
[ "0.8079658", "0.7967531", "0.79313266", "0.79313266", "0.79313266", "0.7930999", "0.78861904", "0.78677094", "0.78179747", "0.78092945", "0.7774368", "0.77431226", "0.77372384", "0.7734772", "0.772946", "0.7718756", "0.7692954", "0.761949", "0.7614649", "0.7589895", "0.758774...
0.0
-1
Check if table is equal in both databases
private function tableIsEqual($table) { //check columns if ($this->getMissingCols($table)) { return false; } //check structure $table1 = $this->getTableStmt($this->conn1, $table); $table2 = $this->getTableStmt($this->conn2, $table); return $this->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function verifyTable($database, $table)\n{\n\t$tableName = (string)$table->attributes()->name;\n\t$previousColumnName = null;\n\t\n\t//get the DB connection\n\t$testDB = gettestConnection();\n\t\n\t//get a description of the table\n\t$sql = \"DESC `$tableName`\";\n\t$desc = $testDB->query($sql)->fetchAll(PDO::FETC...
[ "0.6481861", "0.62387013", "0.6230727", "0.62185556", "0.61919284", "0.61423093", "0.60518616", "0.60299504", "0.5995493", "0.59480834", "0.58699113", "0.5843688", "0.5785049", "0.5737134", "0.5727618", "0.57268965", "0.57060957", "0.5703064", "0.5689404", "0.5625847", "0.561...
0.6768221
0
Get missing Cols between two databases
private function getMissingCols($table) { $columns1 = $this->getColumns($this->conn1, $table); $columns2 = $this->getColumns($this->conn2, $table); $columns = array(); foreach ($columns1 as $col) { if (!in_array($col, $columns2)) { $columns[] = $col; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function remain_columns($db_name, $table, $coulumns)\n {\n $this->db->where('db_name', $db_name);\n $this->db->where('table_from', $table);\n $this->db->select('column_from');\n $matched = $this->db->get('imports')->result();\n\n $mached_columns = [];\n foreach($...
[ "0.57098305", "0.5606768", "0.55516094", "0.5522178", "0.53464115", "0.5178424", "0.5094073", "0.50908995", "0.50629896", "0.50226647", "0.49765235", "0.49666712", "0.49642324", "0.49623576", "0.49595815", "0.49279368", "0.49010235", "0.48482466", "0.4786663", "0.4782277", "0...
0.645943
0
Get create statement for a table
private function getTableStmt($conn, $table) { $sql = "SHOW CREATE TABLE $table"; $result = $conn->query($sql); $str = $result->fetch_array()['Create Table']; $str = $this->trimTblStr($str); return $str; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _getCreateTablesStatement() {\n\t\t$models = $this->getGarpModels();\n\t\t$statement = '';\n\n\t\tforeach ($models as $model) {\n\t\t\t$statement .= $model->getCreateStatement();\n\t\t}\n\t\t\n\t\t$statement .= $this->getBindingModel()->getCreateStatement();\n\n\t\treturn $statement;\n\t}", "p...
[ "0.76792735", "0.7569164", "0.7329643", "0.72008574", "0.715777", "0.69907665", "0.68374974", "0.66649735", "0.66541404", "0.65622663", "0.65330976", "0.64803505", "0.64720833", "0.64709675", "0.64445615", "0.64390165", "0.63832176", "0.6378467", "0.63542384", "0.63541275", "...
0.61607045
33
Hash table query to do comparison.
private function tblStmtHash($stmt) { $strs = explode(",\n", $stmt); $tmp = array(); foreach ($strs as $str) { $tmp[] = md5($str); } sort($tmp); return implode("", $tmp); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function compare();", "public function get_compare($query)\n {\n }", "public function hash();", "private function compareData() {\n if ($this->remove_table) {\n\n foreach ($this->two_db_tables as $two_table_name => $val2) {\n\n if (!array_key_exists($two_...
[ "0.57639587", "0.5756324", "0.563901", "0.56166506", "0.5450024", "0.53944445", "0.5390083", "0.5380888", "0.5373909", "0.5349638", "0.52823865", "0.52490705", "0.52019334", "0.51915604", "0.5132626", "0.5124461", "0.5122483", "0.5072433", "0.5055973", "0.5050239", "0.5049144...
0.4649782
56
Get the sql statement to craete column
private function getTableColStmt($conn, $table, $col) { $str = $this->getTableStmt($conn, $table); $i = strpos($str, '(') + 1; $j = strrpos($str, ')') - $i; $str = substr($str, $i, $j); $strs = explode(",\n", $str); foreach ($strs as $s) { $s = trim($s); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSqlCol()\n {\n return $this->sqlCol;\n }", "public function getSql() { \n return $this->sql;\n }", "public function getSql() : string {\n return $this->sql;\n }", "public function getSql()\n {\n return $this->sql;\n }", "public function get_s...
[ "0.75442445", "0.73509806", "0.73495007", "0.72959334", "0.72848105", "0.7263234", "0.72510606", "0.7176805", "0.71532136", "0.7095713", "0.7091456", "0.70842147", "0.70146316", "0.70146316", "0.69908154", "0.692176", "0.68753904", "0.6871116", "0.6840705", "0.6831266", "0.68...
0.0
-1
Get sql statement to create multiple columns
private function getTableColsStmt($conn, $table) { $str = $this->getTableStmt($conn, $table); $i = strpos($str, '(') + 1; $j = strrpos($str, ')') - $i; $str = substr($str, $i, $j); $strs = explode(",\n", $str); $cols = array(); foreach ($strs as $s) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function setFields()\n\t{\t\n\t\t$sql = '';\n\t\t\n\t\tforeach (array_keys($this->data) as $key)\n\t\t{\n\t\t\t$sql .= '`' . $key . '` = ? , ';\n\t\t}\n\t\t\n\t\t$sql = rtrim($sql, ', ');\n\t\t\n\t\treturn $sql;\n\t}", "private function setAddColumnSql() {\n\n if (!empty($this->add_columns)) {\n\n...
[ "0.65985125", "0.659184", "0.65565556", "0.64728564", "0.6453785", "0.6420045", "0.6285544", "0.62074447", "0.61744285", "0.6168812", "0.6105403", "0.6077841", "0.6021931", "0.598963", "0.5988348", "0.59591025", "0.59286547", "0.5899012", "0.5893821", "0.58878946", "0.5882600...
0.0
-1
Generate SQL scripts to create missing Tables
private function genCreateScripts($tables) { $query = ''; foreach ($tables as $table) { $query .= $this->getTableStmt($this->conn1, $table) . "; \n"; } return $query; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create_missing_tables() {\n\n\t\t/* Create the network snippets table if it doesn't exist */\n\t\tif ( is_multisite() && ! self::table_exists( $this->ms_table ) ) {\n\t\t\t$this->create_table( $this->ms_table );\n\t\t}\n\n\t\t/* Create the table if it doesn't exist */\n\t\tif ( ! self::table_exists...
[ "0.74753577", "0.730183", "0.6954204", "0.6892642", "0.6853322", "0.68402696", "0.68378234", "0.67185974", "0.666569", "0.6654323", "0.66479784", "0.6608254", "0.6603424", "0.6579308", "0.65528923", "0.6542217", "0.651491", "0.6425598", "0.6418259", "0.6418239", "0.6403711", ...
0.6284172
27
Generate scripts for columns to add with ALTER statement
private function genColAddScripts($table, $columns) { $query = ""; $i = 0; foreach ($columns as $col) { $stmt = $this->getTableColStmt($this->conn1, $table, $col); if ($stmt) { $query .= "\nADD `$col` $stmt"; if ($i < count($columns) - ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function setAddColumnSql() {\n\n if (!empty($this->add_columns)) {\n\n foreach ($this->add_columns as $key => $value) {\n\n foreach ($value as $keys) {\n\n $column_data = $this->one_db_table_columns[$key][$keys];\n\n\n\n $add_colum_para...
[ "0.72382426", "0.70832366", "0.66887176", "0.64868546", "0.6432664", "0.62657857", "0.6260357", "0.62456304", "0.6220175", "0.6202838", "0.61726505", "0.6124889", "0.61131096", "0.60669154", "0.6009233", "0.5935588", "0.5879991", "0.58746326", "0.5874404", "0.5873499", "0.586...
0.60229415
14
Generate scripts for columns to modify with ALTER statement
private function genColModifyScripts($stmts) { $query = ""; $i = 0; foreach ($stmts as $name => $stmt) { $query .= "\nCHANGE `$name` `$name` $stmt"; if ($i < count($stmts) - 1) { $query .= ','; } $i++; } return $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function verifyAlterTableModifyColumnSql()\n {\n $id = new Integer('id', ['size' => Size::big(), 'autoIncrement' => true]);\n $name = new Text('name', ['size' => Size::small()]);\n $username = new Varchar('username', '255');\n\n $expected = \"ALTER TABLE users ALTER COLUMN (\...
[ "0.64594615", "0.64287376", "0.6322922", "0.61468196", "0.60781825", "0.6036055", "0.60065687", "0.5972964", "0.5957744", "0.5902392", "0.5861897", "0.5855081", "0.58274615", "0.57992774", "0.5774789", "0.5769912", "0.57570547", "0.5745607", "0.5725143", "0.5724537", "0.57047...
0.6506189
0
Registers the services provided by this provider.
public function register() { $this->app->singleton('Concrete\Core\Routing\Router'); $this->app->bind('Concrete\Core\Routing\RouterInterface', 'Concrete\Core\Routing\Router'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerServices(): void\n {\n $this->registerKernels();\n $this->registerFactories();\n $this->registerMicroServices();\n }", "protected function registerServiceProviders()\n {\n foreach ($this->providers as $provider) {\n $this->app->register($...
[ "0.72447574", "0.7118114", "0.7098606", "0.70736206", "0.69873106", "0.6972155", "0.6964593", "0.6953777", "0.6952104", "0.6898789", "0.68671525", "0.685651", "0.6856122", "0.68460053", "0.68358904", "0.68225646", "0.6793617", "0.67836314", "0.67458814", "0.67358583", "0.6729...
0.0
-1
/ It checks if the post has the same author as the user that is logged in, If the author of the post is the same as logged in user, the user will not be able to vote on that post. Also if the user has already voted on a particular post, A different colored icon will appear, indicating that the user already has upvoted ...
function btnUp($revid, $revUsr){ global $dbLink; $temp = '<img src="img/voteup.png" alt="Vote up button">'; if(isset($_SESSION['userid']) AND $_SESSION['userid'] != $revUsr){ $sqlStr = "SELECT * FROM votes WHERE user_id=" . $_SESSION['userid'] . " AND " . "review_id=" . $revid; $result = mysqli_query($...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function restrict_to_author() {\n if ($this->post->author_id != $this->current_user->id) {\n forbidden();\n }\n }", "function AlreadyLiked( $post_id ) { // test if user liked before\n\tif ( is_user_logged_in() ) { // user is logged in\n\t\t$user_id = get_current_user_id(); // current user\n...
[ "0.6557398", "0.64419055", "0.63030905", "0.6282383", "0.62217695", "0.622039", "0.6212669", "0.6126381", "0.6030616", "0.6019769", "0.60100734", "0.6000504", "0.5978918", "0.59319586", "0.5922361", "0.5861244", "0.5856329", "0.5827706", "0.58159494", "0.58119535", "0.5805441...
0.0
-1
/ It checks if the post has the same author as the user that is logged in, If the author of the post is the same as logged in user, the user will not be able to vote on that post. Also if the user has already voted on a particular post, A different colored icon will appear, indicating that the user already has upvoted ...
function btnDown($revid, $revUsr){ global $dbLink; $temp = '<img src="img/votedown.png" alt="Vote down button">'; if(isset($_SESSION['userid']) AND $_SESSION['userid'] != $revUsr){ $sqlStr = "SELECT * FROM votes WHERE user_id=" . $_SESSION['userid'] . " AND " . "review_id=" . $revid; $result = mysqli_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function restrict_to_author() {\n if ($this->post->author_id != $this->current_user->id) {\n forbidden();\n }\n }", "function AlreadyLiked( $post_id ) { // test if user liked before\n\tif ( is_user_logged_in() ) { // user is logged in\n\t\t$user_id = get_current_user_id(); // current user\n...
[ "0.65568054", "0.6440382", "0.63008064", "0.6279999", "0.6221791", "0.6219301", "0.621129", "0.61265767", "0.60298485", "0.6019741", "0.6009451", "0.6000669", "0.5978249", "0.5931679", "0.5921155", "0.5860686", "0.58562934", "0.5828014", "0.5814971", "0.5811936", "0.58051145"...
0.0
-1
/ TODO: Convert all getresult calls into mysql calls, paging isn;t needed
function index() { /* TODO: This logic can be optimized more */ $datevalue2 = $this->_date; if($_GET['log_file']) define("log_file", $_GET['log_file']); if($_GET['DEBUG']) define("DEBUG", $_GET['DEBUG']); $this->log_info(log_file, "CA [delist live index] process started"); $final_arra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getPagedStatement($sql,$page,$items_per_page);", "function spilit_result($page,$results_per_page,$base_query,$query_param){\r\n\ttry{\r\n\t\tglobal $conn;\r\n\t\t$start = ($page-1) * $results_per_page;\r\n\t\t$sql_quary = $base_query.\" LIMIT \".$start.\", \".$results_per_page;\r\n\t\t$sql = $conn->prep...
[ "0.69604933", "0.67967105", "0.6788396", "0.65831876", "0.6570568", "0.6556256", "0.6554063", "0.6503087", "0.6477262", "0.6453024", "0.64524233", "0.643447", "0.6430515", "0.64138544", "0.6409704", "0.63980305", "0.6339109", "0.62925607", "0.6291087", "0.6289536", "0.6282342...
0.0
-1
returns array ['total' => value (int)]
public function calculateTracksTotal(array $tracks): array { $query = 'SELECT SUM(UnitPrice) as total FROM track WHERE TrackId in ('; $isFirst = true; $params = array(); foreach ($tracks as $track) { if ($isFirst) { $isFirst = false; $query...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function provideTotal()\n {\n return [\n [[1, 2, 5, 8], 16],\n [[-1, 2, 5, 8], 14],\n [[1, 2, 8], 11]\n ];\n }", "public function getTotal();", "public function getTotal();", "public function getTotal()\n\t{\n\t\treturn $this->getKeyValue('total');...
[ "0.75422364", "0.7429837", "0.7429837", "0.7333929", "0.70342565", "0.70342565", "0.70342565", "0.6950585", "0.6901074", "0.6897808", "0.6800766", "0.67900074", "0.67744714", "0.6766019", "0.6759868", "0.6754739", "0.67486686", "0.673623", "0.6717068", "0.66844267", "0.667516...
0.0
-1
BUILD CUSTOMER CHECK XML MAGE ORDER IS REQUIRED
public function _build_CustomerCheckObject($customer=NULL, $order=NULL){ if(isset($order)){ $data = array('Email'=> $order->getCustomerEmail()); return $data; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function before_process() {\n global $order, $db, $currencies, $messageStack;\n\n\t// if the card number has the blanked out middle number fields, it has been processed, the message that \n\t// the charges were not processed were set in pre_confirmation_check, just return to continue without processing.\n\tif (...
[ "0.56734866", "0.5653487", "0.54889673", "0.5481389", "0.54630226", "0.54387885", "0.54221576", "0.53732985", "0.5372549", "0.5352796", "0.5327821", "0.53190565", "0.53187746", "0.52689195", "0.525908", "0.5174643", "0.5171875", "0.51714057", "0.5161103", "0.51509553", "0.514...
0.5629082
2
BUILD CUSTOMER INSERT XML MAGE QUOTE IS REQUIRED
public function _build_CustomerInsertObject($customer=NULL, $order=NULL){ if(isset($order)){ //LOAD QUOTE BILLING ADDRESS AS PRIMARY ACCOUNT ID $primaryAddress = $order->getBillingAddress(); //CHECK IF CUSTOMER NAME IS GUEST NULL IF SO USE BILLING NAME if($order->getCustomerFirstname() != NULL){ //C...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function saveCustomer($customerName = \"Kevin\", $customerNumber = \"734\", $active = \"true\", $address =\"test\", $city=\"amarillo\", $zip=\"12345\", $type=\"Main Office\", $state = 'UT', $phone=\"800-555-5555\", $email=\"email\") {\n // Setup XML\n\t\t$xml = \" <CustomerSaveRq>\\n\".\...
[ "0.60072535", "0.5640426", "0.56282777", "0.54501015", "0.5387274", "0.53286725", "0.5319429", "0.5209273", "0.519859", "0.515852", "0.5149743", "0.5130419", "0.5120224", "0.506147", "0.506041", "0.5046479", "0.50456685", "0.50343233", "0.5015807", "0.50102156", "0.5007105", ...
0.55465275
3
CHECK IF CUSTOMER IS GUEST
public function checkVistaCustomerId($customer, $order, $payment){ $guest = $order->getCustomerIsGuest(); //LOAD CURRENT VISTA IF AVAILABLE $vista_customer_id = $customer->getVistacustomer_id(); //LOAD CURRENT VISTA ORDER STATUS $vistaorder_status = $order->getData('vistaorder_status'); if(($vista_c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCustomerIsGuest();", "function isGuest()\n {\n return true;\n }", "public static function isGuestCustomer()\n {\n return self::getProfile() ? self::getProfile()->getAnonymous() : true;\n }", "public function customerIsGuest()\n {\n $quote = $this->getQuo...
[ "0.72123855", "0.679316", "0.67813504", "0.6598857", "0.65378064", "0.65225255", "0.6521084", "0.642299", "0.642299", "0.6398613", "0.62511283", "0.62346184", "0.6222345", "0.6218198", "0.61790115", "0.61769146", "0.61251473", "0.61104935", "0.610632", "0.6105252", "0.6092992...
0.0
-1
Show the application dashboard.
public function index() { return view('mania.myroom.main'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function dashboard()\n {\n\n $pageData = (new DashboardService())->handleDashboardLandingPage();\n\n return view('application', $pageData);\n }", "function dashboard() {\r\n\t\t\tTrackTheBookView::render('dashboard');\r\n\t\t}", "public function showDashboard() { \n\t\n ...
[ "0.77850926", "0.7760142", "0.7561336", "0.75147176", "0.74653697", "0.7464913", "0.73652893", "0.7351646", "0.7346477", "0.73420244", "0.7326711", "0.7316215", "0.73072463", "0.7287626", "0.72826403", "0.727347", "0.727347", "0.727347", "0.727347", "0.7251768", "0.7251768", ...
0.0
-1
Add column to the list
public function addColumn(Column $column): self { $this->columns[] = $column; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addColumn($value) {\n array_push($this->columns, $value);\n }", "public function addColumn()\n {\n if ($this->name || $this->timestamps) {\n $this->columns[] = [\n 'column' => $this->name,\n 'length' => $this->length,\n '...
[ "0.691291", "0.67886543", "0.6755727", "0.6656633", "0.66427547", "0.65994024", "0.65244436", "0.65121233", "0.6507631", "0.64250404", "0.63732356", "0.634214", "0.63036186", "0.62983435", "0.62752855", "0.6266015", "0.6252392", "0.6243858", "0.62344396", "0.6180512", "0.6167...
0.5658998
63
Add callback with query parameter before passing to Builder
public function addQueryCallback(Closure $callback, $relation = null): self { $this->queryCallback[$relation ?? 0] = $callback; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function buildQueryCallback() {\n }", "public function addWhereBuilderCallback($callback)\n {\n if (!is_callable($callback)) {\n throw new Exception('The callback argument must be callable.');\n }\n\n $this->datatableQuery->addCallback($callback);\n\n return $...
[ "0.7101882", "0.59416616", "0.5862994", "0.57035625", "0.568139", "0.56650984", "0.5647788", "0.56138855", "0.55822134", "0.5559605", "0.54942054", "0.5493273", "0.53923553", "0.5325428", "0.5325428", "0.53172445", "0.53172445", "0.53093404", "0.53093404", "0.53093404", "0.53...
0.5968681
1
Add policies to the result data about given model
public function addPolicies(array $actions = []): self { if (empty($actions)) { $actions = ['view', 'update', 'delete']; } $this->addColumn( (new Column('policy'))->onlyExtra() ->noDB() ->printCallback(static function ($model) use ($act...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function transform($policy, string $model): array;", "public function loadPolicy(Model $model) : void\n {\n $this->filtered = false;\n\n empty($this->filter) ?\n parent::loadPolicy($model) :\n $this->loadFilteredPolicy($model, $this->filter);\n }", "protected function w...
[ "0.64171684", "0.56815547", "0.56513333", "0.5649101", "0.5405694", "0.5294349", "0.5138858", "0.5109953", "0.5071041", "0.5011557", "0.5000518", "0.49765074", "0.49765074", "0.48819378", "0.48620453", "0.48361465", "0.48092788", "0.47801685", "0.47702074", "0.47043642", "0.4...
0.4359729
56
Get base query builder
public function getModel(): Builder { return $this->model; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function newBaseQueryBuilder()\n {\n $conn = $this->getConnection();\n\n $grammar = $conn->getQueryGrammar();\n\n $builder = new Builder($conn, $grammar, $conn->getPostProcessor());\n\n if (isset($this->rememberFor)) {\n $builder->remember($this->rememberFor);\n ...
[ "0.83278674", "0.832287", "0.8294608", "0.82792115", "0.82299155", "0.8187923", "0.8161696", "0.8156728", "0.8156728", "0.81525886", "0.8104989", "0.80890113", "0.8066093", "0.80168265", "0.79883605", "0.7860701", "0.7747423", "0.773752", "0.76794857", "0.76304543", "0.761415...
0.0
-1
Get columns for the given relation null for the base
public function getRelationColumns(?string $relation = null): array { if ($relation == '*') { return $this->columns; } $columns = []; foreach ($this->columns as $column) { if ($column->isRelation($relation)) { $columns[] = $column; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getAllColumns()\n {\n $cols = $this->getTable()->getColumns();\n $rels = $this->getTable()->getRelations();\n $columns = array();\n foreach ($cols as $name => $col)\n {\n // we set out to replace the foreign key to their corresponding aliases\n $found = null;\n foreach ($rel...
[ "0.6080719", "0.60792714", "0.5962379", "0.59486115", "0.5940805", "0.59330106", "0.5932999", "0.59206635", "0.578908", "0.57323647", "0.5727756", "0.57201785", "0.57201785", "0.57201785", "0.57201785", "0.5718355", "0.5718355", "0.5705923", "0.5694293", "0.56826776", "0.5681...
0.68644994
0
Return all relations which will be used
public function getRelations(): array { $relations = []; foreach ($this->columns as $column) { if (!empty($column->relation) && !\in_array($column->relation, $relations)) { $relations[] = $column->relation; } } return $relations; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRelations();", "public function getRelations();", "protected function getRelations()\n {\n return array();\n }", "public function getWithRelations();", "public function getRelations()\n {\n return $this->discoverRelations();\n }", "protected static function _r...
[ "0.84582865", "0.84582865", "0.8332625", "0.8232025", "0.8168764", "0.8065648", "0.8017736", "0.79360557", "0.79360557", "0.78075343", "0.78075343", "0.7749575", "0.7744672", "0.7679599", "0.76605123", "0.74979705", "0.7449011", "0.73883253", "0.7381348", "0.73416334", "0.730...
0.0
-1
Get columns to be selected
public function getSelectColumns(bool $addId = false, ?string $relation = null, bool $addNoDBColumns = true): array { $columns = []; foreach ($this->getRelationColumns($relation) as $column) { if ($column->isSelectable() || $addNoDBColumns) { $columns[] = $column; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getColumns()\n {\n return $this->select_list;\n }", "public function getColumns();", "public function getColumns();", "public function getColumns();", "public function getColumns();", "public function getColumns();", "public function getColumns();", "public function getCo...
[ "0.8110724", "0.77093726", "0.77093726", "0.77093726", "0.77093726", "0.77093726", "0.77093726", "0.77093726", "0.76994485", "0.76527405", "0.7587094", "0.75037694", "0.74644774", "0.7462351", "0.74535424", "0.73912984", "0.73912984", "0.73912984", "0.73912984", "0.7387915", ...
0.0
-1
Get columns to be filtered by WHERE clause
public function getWhereColumns(?string $relation = null): array { $columns = []; foreach ($this->getRelationColumns($relation) as $column) { if ($column->isSearchable()) { $columns[] = $column; } } return $columns; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getfilterColumns()\n\t{\n\t\treturn array(\"latitude\", \"longitude\", \"address_id\");\n\t}", "public function getfilterColumns()\n\t{\n\t\treturn array(\"name\",\"last_name\", \"country\");\n\t}", "function get_columns( ) {\r\n\t\treturn self::mla_manage_columns_filter();\r\n\t}", "protecte...
[ "0.75369704", "0.71655405", "0.6858591", "0.6742213", "0.66724145", "0.6604418", "0.65998065", "0.65998065", "0.65016896", "0.6490776", "0.6430841", "0.6426612", "0.6336801", "0.63160753", "0.6312391", "0.6289299", "0.62747633", "0.6239843", "0.62203664", "0.62188995", "0.620...
0.58219236
74
Return nth column which is from given related model
public function getNthVisibleTableColumn(int $index, ?string $relation = null): ?Column { $nthVisibleColumn = \collect($this->getSelectColumns(false, '*')) ->filter(static function (Column $column) { return $column->inTable; }) ->values() ->get...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function modelColumn();", "public function getModelIndex();", "protected function get_column() {\n\n\t\t$column = $this->foreign_column ?: $this->foreign_table->get_primary_key();\n\t\t$columns = $this->foreign_table->get_columns();\n\n\t\treturn $columns[ $column ];\n\t}", "public function column() ...
[ "0.55568475", "0.5545168", "0.5501802", "0.5367582", "0.53578705", "0.5310639", "0.53054166", "0.52904314", "0.5268357", "0.52356637", "0.5149108", "0.51488876", "0.51345277", "0.512895", "0.512465", "0.511355", "0.51116186", "0.5084443", "0.50785595", "0.50603694", "0.504824...
0.58586085
0
Display a listing of the resource.
public function index() { $persons= Person::all(); return view('crudmodel')->with('persons',$persons); }
{ "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.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.717428...
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { $this->validate($request,[ 'username' => 'required|string|min:6|max:30', 'email' => ['required', 'min:6', 'max:30', 'email', 'regex:/(.*)@(met|gmail)\.com/i', 'unique:users'], 'password' => 'required|string|min:6|max:30', ...
{ "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) { $this->validate($request,[ 'editusername' => 'required|string|min:6|max:30', 'editimajl' => ['required', 'min:6', 'max:30', 'email', 'regex:/(.*)@(met|gmail)\.com/i'], 'editpassword' => 'required|string|min:6|max:30', ...
{ "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.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { $personToDelete = Person::find($id); $personToDelete->delete(); return redirect('/person')->with('success','Person is deleted'); }
{ "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
Initiate Database connection RestoreSchedule constructor.
public function __construct() { //setup database connection $db_pdo = new PDOService(); $this->db = $db_pdo->getConnection(); //initiate repository $this->rSchedule = new ScheduleRepository($this->db); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct()\n\t{\n\t\t$this->database = new Database();\n\t\t\n\t\tif ($this->trace)\n\t\t\t$this->database->activateTrace();\n\t}", "public function __construct(){\n //get the configuration for connection to database\n $data_base_opt = System\\Config::get_instance()->get_database...
[ "0.612839", "0.6056428", "0.59698004", "0.5951899", "0.5944841", "0.59288555", "0.5915126", "0.5914149", "0.58893347", "0.58842885", "0.58760077", "0.5862356", "0.5856264", "0.5855101", "0.5853812", "0.58469605", "0.5833933", "0.5830785", "0.58298147", "0.5784159", "0.5767633...
0.57264966
25
Display a listing of the resource.
public function index(Request $request) { if (Auth::user()->canReadSiteContact()) { if ($request->searchField) { $siteContacts = DB::table('site_contacts') ->select('site_contacts.*', 'sites.name as site_name') ->join('sites', 'sites.uuid',...
{ "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
Store a newly created resource in storage.
public function store(Request $request) { $validator = Validator::make($request->all(), [ 'name' => 'required|string|min:3', 'phone' => 'required', 'email' => 'required|email', 'message' => 'required' ]); if ($validator->fails()) { ...
{ "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
Show the form for editing the specified resource.
public function edit(SiteContact $siteContact) { if (Auth::user()->canUpdateSiteContact()) { return View('site_contact.edit', [ 'siteContact' => $siteContact ]); } else { return $this->accessDenied(); } }
{ "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, SiteContact $siteContact) { // }
{ "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.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
/ component untuk remotecombobox / drop down field =================================================== CITY =======================================================================
function cmdCity($name, $caption, $width = null) { $url = "services/runCRUD.php?func=datasource&lookup=mst/city&pk=city_code&sk=city_name&order=city_name"; //remotecombobox($name,$caption,100,$url,'city_code','city_name'); $field = array ( array("city_code", "Code", 100), array("city...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cmbPoNo($name1, $caption, $width = null) {\n $url = \"services/runCRUD.php?func=datasource&lookup=trx/veh_prh\";\n //remotecombobox($name,$caption,180,$url,'wrhs_code','wrhs_name');\n $field = array\n (\n array(\"po_date\", \"Date\", 220, 'formatDate'),\n array(\"po_no\", \"C...
[ "0.7338778", "0.6848784", "0.6779455", "0.6768895", "0.66438544", "0.66383314", "0.6619359", "0.66182745", "0.65613806", "0.6561338", "0.65589637", "0.6530612", "0.6481544", "0.6471164", "0.6442882", "0.64303577", "0.6411608", "0.6411608", "0.6405863", "0.6383955", "0.635164"...
0.7818018
0
=========================================================== LAST EDUCATION ==========================================================//
function cmdLastEdu($name, $caption, $width = null) { $url = "services/runCRUD.php?func=datasource&lookup=mst/educ_lev&pk=educ_code&sk=educ_name&order=educ_name"; //remotecombobox($name,$caption,100,$url,'educ_code','educ_name'); $field = array ( array("educ_code", "Code", 100), arra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getFinal()\n {\n }", "public function getLast();", "public function getLast();", "public function getLastuploaddate() {}", "protected function recordLastTransactionID()\n {\n }", "final public function getLast() {\n\t\treturn null;\n\t}", "public function getEnd() {...
[ "0.63555044", "0.60601836", "0.60601836", "0.597374", "0.58420527", "0.5828705", "0.5822153", "0.5814822", "0.57910067", "0.57516104", "0.57433856", "0.57433856", "0.57215947", "0.5709341", "0.5708102", "0.57049966", "0.568036", "0.568036", "0.56715417", "0.5655618", "0.56356...
0.0
-1
=========================================================== LEVEL PURCHASER ==========================================================//
function cmdPurLev($name, $caption, $width = null) { $url = "services/runCRUD.php?func=datasource&lookup=mst/prep_lev&pk=plev_code&sk=plev_name&order=plev_name"; //remotecombobox($name,$caption,100,$url,'plev_code','plev_name'); $field = array ( array("plev_code", "Code", 100), array...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function setLevel()\n\t{\n\t\t$level_count = $this->db->cacheGetOne(\"SELECT COUNT(*) FROM `bin_level` WHERE 1\");\n\t\tif ($level_count > 1) // binary level\n\t\t{\n\t\t\t$this->levelType = 1;\n\t\t\t$this->levelArr = $this->db->getAssoc(\"SELECT `id`, `name` FROM `bin_level` WHERE 1\");\n\t\t}else{\n\t\...
[ "0.5735492", "0.54666686", "0.54318523", "0.5358458", "0.52342904", "0.51537025", "0.5150229", "0.5138846", "0.5124559", "0.5120771", "0.5120491", "0.5094132", "0.5086679", "0.5066173", "0.50476515", "0.50221276", "0.50037366", "0.4969952", "0.49611047", "0.49320048", "0.4931...
0.0
-1
=========================================================== SALES LEVEL ==========================================================//
function cmdSalesLevel($name, $caption, $width = null) { $url = "services/runCRUD.php?func=datasource&lookup=mst/srep_lev&pk=slev_code&sk=slev_name&order=slev_name"; //remotecombobox($name,$caption,100,$url,'slev_code','slev_name'); $field = array ( array("slev_code", "Code", 100), a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sys_sales($oConnect, $link, $startDate, $endDate,&$sys_log) {\n $sSQL = \"sp_report SalesByItemDetail show Text, Blank, TxnType, Date, Memo, Name, Quantity, UnitPrice, Amount parameters DateFrom = {d'$startDate'}, DateTo= {d'$endDate'}\";\n // Perform the query\n $oResult = odbc_exec($oConnect, ...
[ "0.565303", "0.5579179", "0.55210316", "0.5481978", "0.5477473", "0.5382674", "0.5379858", "0.53626794", "0.53390884", "0.52761173", "0.5228048", "0.5219267", "0.51945424", "0.51913977", "0.51879215", "0.51806825", "0.51705086", "0.5140504", "0.5124287", "0.5122996", "0.51210...
0.0
-1
=========================================================== COLLECTOR LEVEL ==========================================================//
function cmdCollectorLevel($name, $caption, $width = null) { $url = "services/runCRUD.php?func=datasource&lookup=mst/coll_lev&pk=clev_code&sk=clev_name&order=clev_name"; //remotecombobox($name,$caption,100,$url,'clev_code','clev_name'); $field = array ( array("clev_code", "Code", 100), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function lcs()\n {\n }", "function getLevel();", "private function __() {\n }", "public function getLevel() {}", "function getMultilevel() {\n\t\t}", "private function setLevel()\n\t{\n\t\t$level_count = $this->db->cacheGetOne(\"SELECT COUNT(*) FROM `bin_level` WHERE 1\");\n\t\ti...
[ "0.616696", "0.5820516", "0.5616098", "0.5594202", "0.5587774", "0.5554759", "0.5504243", "0.5428301", "0.5327506", "0.5315251", "0.5302604", "0.5301615", "0.52843225", "0.5284153", "0.527225", "0.5262843", "0.5253945", "0.5237699", "0.52318865", "0.52318865", "0.5231422", ...
0.0
-1
=========================================================== BUSINESS TYPE ==========================================================//
function cmdBusType($name, $caption, $width = null) { $url = "services/runCRUD.php?func=datasource&lookup=mst/bus_fld&pk=fld_code&sk=fld_name&order=fld_name"; //remotecombobox($name,$caption,100,$url,'fld_code','fld_name'); $field = array ( array("fld_code", "Code", 100), array("fld_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getType()\t { return $this->type;\t }", "private function get_type() {\n\n\t}", "public function get_type(){ return $this->_type;}", "abstract public function type();", "abstract public function type();", "abstract protected function getType();", "abstract public function getType();", ...
[ "0.7750238", "0.761517", "0.75185186", "0.74225175", "0.74225175", "0.7357865", "0.7269444", "0.7269444", "0.7269444", "0.7269444", "0.7269444", "0.7269444", "0.7238075", "0.72380525", "0.7238015", "0.71903235", "0.7189553", "0.7189553", "0.7188795", "0.71874946", "0.7172504"...
0.0
-1
=========================================================== BUSINESS PRODUCT ==========================================================//
function cmdBusProd($name, $caption, $width = null) { $url = "services/runCRUD.php?func=datasource&lookup=mst/bus_item&pk=item_code&sk=item_name&order=item_name"; //remotecombobox($name,$caption,100,$url,'item_code','item_name'); $field = array ( array("item_code", "Code", 100), arra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function catalogos() \n\t{\n\t}", "abstract protected function extractProductDetail();", "public function getProduct();", "public function manufacture(): void;", "public function product(){\n\n }", "function app_products() {\r\n $this->name=\"app_products\";\r\n $this->title=\"<#LANG_APP_PROD...
[ "0.64375436", "0.63806796", "0.6151428", "0.60882306", "0.6026221", "0.60112214", "0.5856818", "0.5851321", "0.58490366", "0.5823785", "0.5804556", "0.57854384", "0.5772262", "0.5771764", "0.575438", "0.574231", "0.57391435", "0.572467", "0.57183444", "0.5696283", "0.5694082"...
0.0
-1
=========================================================== JOB DESCRIPTION ==========================================================//
function cmdJob($name, $caption, $width = null) { $url = "services/runCRUD.php?func=datasource&lookup=mst/job_fld&pk=job_code&sk=job_name&order=job_name"; //remotecombobox($name,$caption,100,$url,'job_code','job_name'); $field = array ( array("job_code", "Code", 100), array("job_name...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function makeJob();", "abstract public function makeJob();", "function run_job()\r\n\t{\r\n\t}", "public function getJobDescription() {\n\t\treturn t('Generate the sitemap.xml file that search engines use to crawl your site.');\n\t}", "public function testJobListPreparationAndReleaseTaskSta...
[ "0.64584297", "0.64584297", "0.6369252", "0.6084626", "0.60344285", "0.59260684", "0.5897978", "0.5806412", "0.57364994", "0.572691", "0.5683657", "0.5667085", "0.56658757", "0.56602705", "0.5655508", "0.5653995", "0.5594398", "0.55541384", "0.5553529", "0.55494654", "0.55371...
0.55824655
17
=========================================================== PO NO ==========================================================//
function cmbPoNo($name1, $caption, $width = null) { $url = "services/runCRUD.php?func=datasource&lookup=trx/veh_prh"; //remotecombobox($name,$caption,180,$url,'wrhs_code','wrhs_name'); $field = array ( array("po_date", "Date", 220, 'formatDate'), array("po_no", "Code", 100), ); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function __() {\n }", "public function extra_voor_verp()\n\t{\n\t}", "public function oops () {\n }", "public function nadar()\n {\n }", "public function get_nonces()\n {\n }", "public function AggiornaPrezzi(){\n\t}", "private function _i() {\n }", "final f...
[ "0.6090624", "0.60543895", "0.5952807", "0.59158814", "0.5813363", "0.57694954", "0.5765511", "0.56824356", "0.5671667", "0.5562728", "0.5533139", "0.5502185", "0.5488509", "0.54884577", "0.5417666", "0.5416068", "0.5413273", "0.53778416", "0.5320597", "0.53032374", "0.526455...
0.0
-1
=========================================================== SPK SOURCE ==========================================================//
function cmdSoSrc($name, $caption, $width = null) { $url = "services/runCRUD.php?func=datasource&lookup=mst/so_source&pk=sosrc_code&sk=sosrc_name&order=id"; //remotecombobox($name,$caption,100,$url,'sosrc_code','sosrc_name'); $field = array ( array("sosrc_code", "Code", 100), array("...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function package()\n\t{\n\t\t\n\t}", "private function __() {\n }", "function Kravatte_SANSE($key)\n \t{\n \t$this->TAG_SIZE = 32;\n\tself::k_key($key);\n\tself::reset_state();\n self::initialize_history('',True);\n\t}", "function getPackageKey() ;", "private function _i() {\...
[ "0.5888362", "0.5747936", "0.5745322", "0.5625257", "0.55770266", "0.5569431", "0.54830754", "0.54732126", "0.5447066", "0.5376993", "0.5375843", "0.5375234", "0.5334785", "0.5325378", "0.5319058", "0.53147924", "0.53131896", "0.5290303", "0.52800083", "0.5273379", "0.5253741...
0.0
-1
/ component untuk remotecombobox / drop down field =================================================== COLOR TYPE NAME =======================================================================
function cmdColorType($name, $caption, $width = null) { $url = "services/runCRUD.php?func=datasource&lookup=mst/col_type&pk=coltp_code&sk=coltp_name&order=id"; //remotecombobox($name,$caption,100,$url,'color_code','coltp_name'); $field = array ( array("coltp_code", "Code", 150), arra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cmdBusType($name, $caption, $width = null) {\n $url = \"services/runCRUD.php?func=datasource&lookup=mst/bus_fld&pk=fld_code&sk=fld_name&order=fld_name\";\n //remotecombobox($name,$caption,100,$url,'fld_code','fld_name');\n $field = array\n (\n array(\"fld_code\", \"Code\", 100),\n ...
[ "0.6645372", "0.6526639", "0.6383302", "0.6199828", "0.6172438", "0.6163833", "0.61595273", "0.6121122", "0.61131215", "0.61096466", "0.6063311", "0.6043673", "0.6029335", "0.60131997", "0.59927577", "0.5988284", "0.5985506", "0.5931266", "0.59176666", "0.58463883", "0.582433...
0.81459844
0
========================================================== PEMBAYARAN UANG MUKA ==========================================================//
function cmdUangMuka($name, $caption, $width = null) { $url = "services/runCRUD.php?func=datasource&lookup=mst/pay_type&pk=pay_type&sk=pay_name&order=pay_type"; //remotecombobox($name,$caption,100,$url,'pay_code','pay_name'); $field = array ( array("pay_code", "Code", 100), array("pa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hapus_toko(){\n\t}", "function data_mhs(){\r\n\t\t\techo \"KodeMataKuliah : \".$this->KodeMataKuliah.\"<br />\";\r\n\t\t\techo \"SKS : \".$this->SKS.\"<br />\";\r\n\t\t\techo \"Daftar matakuliah yang diambil:<br />\";\r\n\t\t\t\r\n\t\t\t$i = 0; // nomor urut daftar SKS matakuliah yang diambil\r\n...
[ "0.6805118", "0.66546184", "0.650026", "0.6461531", "0.6394681", "0.6325149", "0.63033944", "0.62212473", "0.6105203", "0.61024064", "0.610147", "0.608904", "0.60469854", "0.60037225", "0.60011286", "0.59865856", "0.59527016", "0.5908777", "0.58997303", "0.5899136", "0.589905...
0.0
-1
========================================================== STANDARD OPTIONAL ==========================================================//
function cmdStdopt($name, $caption, $width = null) { $url = "services/runCRUD.php?func=datasource&lookup=mst/veh_stdopt&pk=stdoptcode&sk=stdoptname&order=stdoptname"; //remotecombobox($name,$caption,100,$url,'brnd_code','brnd_name'); $field = array ( array("stdoptcode", "Code", 100), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function helper()\n\t{\n\t\n\t}", "private function _i() {\n }", "public function custom()\n\t{\n\t}", "private function __() {\n }", "public function extra();", "private function __construct()\t{}", "final private function __construct(){\r\r\n\t}", "final private function __constr...
[ "0.66149116", "0.6458849", "0.6450461", "0.6413597", "0.6384213", "0.6379296", "0.61664677", "0.6127494", "0.6127494", "0.6121472", "0.6094014", "0.6056389", "0.60539603", "0.60539603", "0.60539603", "0.60322386", "0.60205144", "0.6009465", "0.595749", "0.5946966", "0.5943798...
0.0
-1
========================================================== BRAND ACC ==========================================================//
function cmdBrndAcc($name, $caption, $width = null) { $url = "services/runCRUD.php?func=datasource&lookup=mst/brand&pk=brand_code&sk=brand_name&order=brand_name"; //remotecombobox($name,$caption,100,$url,'brand_code','brand_name'); $field = array ( array("brand_code", "Code", 100), a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function footer_branding()\n\t\t{\n\t\t}", "function custom_construction() {\r\n\t\r\n\t\r\n\t}", "public function custom()\n\t{\n\t}", "public function boleta()\n\t{\n\t\t//\n\t}", "public function helper()\n\t{\n\t\n\t}", "private function __() {\n }", "public function ogs()\r\n ...
[ "0.5839425", "0.58295894", "0.5770359", "0.5739501", "0.55969834", "0.55025905", "0.54905707", "0.547995", "0.54602283", "0.5452752", "0.53876823", "0.5384973", "0.53764373", "0.535556", "0.53487164", "0.5314203", "0.5313814", "0.530883", "0.5289701", "0.5288777", "0.5282785"...
0.0
-1
========================================================== SUB GROUP ==========================================================//
function cmdSubGroup($name, $caption, $width = null) { $url = "services/runCRUD.php?func=datasource&lookup=mst/prt_sgrp&pk=sgrp_code&sk=sgrp_name&order=sgrp_name"; //remotecombobox($name,$caption,100,$url,'sgrp_code','sgrp_name'); $field = array ( array("sgrp_code", "Code", 100), arr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSubgroup() {}", "function getGroup() ;", "abstract protected function getGroupStructure();", "public abstract function getGroup();", "public function getSubGroups() {}", "public function getGroup();", "public function getGroup();", "public function getGroup();", "public function ...
[ "0.71502006", "0.6923453", "0.676523", "0.63798076", "0.62794966", "0.6241637", "0.6241637", "0.6241637", "0.6221984", "0.6221984", "0.61847484", "0.6121844", "0.6121844", "0.6121844", "0.6121844", "0.6117281", "0.60878813", "0.605053", "0.5957744", "0.5924805", "0.58352584",...
0.54294956
46
/ component untuk combogrid / drop down field ===================================================== COMBOGRID ========================================================================== =================================================== KODE KENDARAAN ====================================================================...
function cmdVeh($name, $caption, $key = null, $key2 = null, $width = null) { $url = "services/runCRUD.php?func=read&lookup=mst/veh_vtyp&pk=veh_code&sk=veh_name&field=id,veh_code,veh_name"; $field = array ( array("veh_code", "Code", 150), array("veh_name", "Name", 300), ); cmbGrid...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cmbPoNo($name1, $caption, $width = null) {\n $url = \"services/runCRUD.php?func=datasource&lookup=trx/veh_prh\";\n //remotecombobox($name,$caption,180,$url,'wrhs_code','wrhs_name');\n $field = array\n (\n array(\"po_date\", \"Date\", 220, 'formatDate'),\n array(\"po_no\", \"C...
[ "0.7351688", "0.69668895", "0.6701256", "0.66541916", "0.6618749", "0.6576238", "0.65636665", "0.6470236", "0.64225006", "0.64119124", "0.6404504", "0.640127", "0.6371282", "0.6309735", "0.63085204", "0.62848276", "0.6283386", "0.62704533", "0.62704533", "0.62053573", "0.6196...
0.0
-1
==============================================================================================================================// =========================================================== ARRAY ============================================================// ==============================================================...
function cmdMailTo($name, $caption) { $optpostaddr = array ( array("", ""), array("Office", "1"), array("Home", "2"), array("Do not send", "3"), ); ?> <tr> <td><?php getCaption($caption); ?> :</td> <td> <select class="easyui-combobox" ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mailto()\n {\n $people_to_email = $this->input->post('ids');\n \n if ($people_to_email != false) {\n $mailto_url = 'mailto:';\n foreach ($this->Person->get_multiple_info($people_to_email)->result() as $person) {\n if ($person->email) {\n ...
[ "0.6679551", "0.6511959", "0.6371511", "0.62930995", "0.61808795", "0.617425", "0.61693954", "0.6093834", "0.60934883", "0.60561514", "0.6010005", "0.6005399", "0.5997223", "0.5993517", "0.59706825", "0.59698725", "0.59698725", "0.5967122", "0.59669197", "0.5923619", "0.59168...
0.0
-1
=========================================================== CUSTOMER TYPE ==========================================================//
function cmdCustType($name, $caption) { $optcust_type = array ( array("", ""), array("End User", "1"), array("Dealer / Reseller", "2"), array("Goverment / BUMN", "3"), ); ?> <tr> <td><?php getCaption($caption); ?> :</td> <td> <select cl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function get_type() {\n\n\t}", "public function get_type()\n {\n }", "public function get_type()\n {\n }", "public function get_type()\n {\n }", "public function get_type()\n {\n }", "public function get_type()\n {\n }", "pub...
[ "0.6862122", "0.6705907", "0.6705538", "0.6705538", "0.670528", "0.6704581", "0.6567695", "0.6567695", "0.65091294", "0.65008545", "0.6481323", "0.644411", "0.644411", "0.64401186", "0.6432194", "0.6417743", "0.6403287", "0.6401338", "0.6398241", "0.6371076", "0.63542193", ...
0.0
-1
=========================================================== MARITAL STATUS ==========================================================//
function cmdMarital($name, $caption) { $optmarital = array ( array("", ""), array("Single", "1"), array("Married", "2"), ); ?> <tr> <td><?php getCaption($caption); ?> :</td> <td> <select class="easyui-combobox" id="<?php ech...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getStatus() ;", "function getStatus() ;", "function getStatus() ;", "public function status();", "public function status();", "function getStatus();", "abstract public function getStatus();", "public function getStatus();", "public function getStatus();", "public function getStatus();", ...
[ "0.77272385", "0.7726141", "0.7726141", "0.7315285", "0.7315285", "0.7294891", "0.7178818", "0.71152055", "0.71152055", "0.71152055", "0.71152055", "0.71152055", "0.71152055", "0.71152055", "0.71152055", "0.71152055", "0.71152055", "0.7104143", "0.7089674", "0.7061248", "0.70...
0.0
-1
=========================================================== JENIS HARGA ==========================================================//
function cmdJenHar($name, $caption) { $optJenHar = array ( array("", ""), array("On the road", "1"), array("OFF the road", "2"), ); ?> <tr> <td><?php getCaption($caption); ?> :</td> <td> <select class="easyui-combobox" id="<...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function j() {\n }", "public function boleta()\n\t{\n\t\t//\n\t}", "public function hapus_toko(){\n\t}", "public function jalan() {\n echo \"method jalan() berisi : Hewan ini terbang\";\n }", "public function jalan() {\n return \"Hewan ini berjalan<br/>\";\n }",...
[ "0.66554224", "0.62445325", "0.61140764", "0.6072167", "0.5981446", "0.58228743", "0.58228517", "0.57296324", "0.56281924", "0.56255144", "0.56253606", "0.5600066", "0.55733705", "0.5555915", "0.5527376", "0.5468435", "0.54456586", "0.54424", "0.5438711", "0.5425909", "0.5418...
0.0
-1
=========================================================== PURCHASE TERHITUNG SEJAK ==========================================================//
function cmdSinceP($name, $caption) { $optsinceP = array ( array("", ""), array("Order", "1"), array("Received", "2"), array("Purchase", "3"), ); ?> <tr> <td>Day</td> <td> <select class="easyui-combobox" id="<?php ec...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deliveryPriceOutDhaka()\n {\n }", "public function finishPurchase() {}", "public function payWayPurchase()\n\t{\n\t}", "function purchaseTicket($ar){\n\nif (isset($GLOBALS['RRTESTSTA'])){\n XLogs::critical(get_class($this), '::purchaseTicket RRTESTSTA');\n throw new Exception('Coucou'...
[ "0.6364933", "0.6266864", "0.61752325", "0.5856565", "0.5710253", "0.56460565", "0.56230927", "0.5582874", "0.5582469", "0.5573155", "0.5551417", "0.553946", "0.55196214", "0.5492479", "0.5472198", "0.5464941", "0.5453838", "0.54335415", "0.5402819", "0.5395577", "0.539275", ...
0.0
-1
=========================================================== SALES TERHITUNG SEJAK ==========================================================//
function cmdSinceS($name, $caption) { $optsinceS = array ( array("", ""), array("Delivery Order", "1"), array("Sales Invoice", "2"), ); ?> <tr> <td>Hari</td> <td> <select class="easyui-combobox" id="<?php echo $name; ?>" ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function OCLSalida($oc_id=0,$empresa_id=0){\n $reg=oc::edit('S',$oc_id); \n $search=array(\"<\",\">\");\n $replace=array(\"\",\"\");\n $lbl_id='Id';\n $lbl_prod_nombre='Descripción';\n $lbl_cantidad='Cantidad';\n $lbl_precio='Precio';\n $lbl_st='Sub Total'; \n \n \n $items=oc:...
[ "0.640499", "0.62296736", "0.6117024", "0.60044205", "0.5815878", "0.5750478", "0.5733866", "0.57176423", "0.5684423", "0.5669332", "0.5647137", "0.5645042", "0.5644696", "0.56318367", "0.5620883", "0.55876946", "0.5582867", "0.5573011", "0.55625236", "0.5557919", "0.555588",...
0.0
-1
/ Combo Master Barang Accesoris
function cmdacc_mst($name, $caption, $key = null, $key2 = null, $width2 = null) { $url = "services/runCRUD.php?func=datasource&lookup=mst/acc_mst&pk=part_code&sk=part_name"; //remotecombobox($name,$caption,100,$url,'sgrp_code','sgrp_name'); $field = array ( array("part_code", "Code", 100), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cmdUangMuka($name, $caption, $width = null) {\n $url = \"services/runCRUD.php?func=datasource&lookup=mst/pay_type&pk=pay_type&sk=pay_name&order=pay_type\";\n //remotecombobox($name,$caption,100,$url,'pay_code','pay_name');\n $field = array\n (\n array(\"pay_code\", \"Code\", 100),\n...
[ "0.6187269", "0.61815983", "0.61037934", "0.6049474", "0.60044533", "0.5847441", "0.5778144", "0.57774425", "0.5774407", "0.57588965", "0.57149255", "0.5705856", "0.5693706", "0.56906885", "0.5679961", "0.56364745", "0.5619597", "0.5583275", "0.55565363", "0.5550717", "0.5533...
0.6141562
2
Lists all turn entities.
public function indexAction() { $em = $this->getDoctrine()->getManager(); $turns = $em->getRepository('AppBundle:Turn')->findAll(); return $this->render('turn/index.html.twig', array( 'turns' => $turns, )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n $entities = $em->getRepository('PruebasBundle:Turno')->findAll();\n return array('entities' => $entities,);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getEntityManager(...
[ "0.7032227", "0.65366524", "0.65244955", "0.6434925", "0.64341325", "0.63310724", "0.6290744", "0.6285318", "0.6284318", "0.6283933", "0.6247244", "0.624246", "0.62380373", "0.618216", "0.6181683", "0.616719", "0.61646634", "0.61588186", "0.6155701", "0.6099731", "0.60746694"...
0.7021832
1
Creates a form to delete a turn entity.
private function createDeleteForm(Turn $turn) { return $this->createFormBuilder() ->setAction($this->generateUrl('turn_delete', array('id' => $turn->getId()))) ->setMethod('DELETE') ->getForm() ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createDeleteForm(Livr $livr)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('livr_delete', array('idv' => $livr->getIdv())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "private function createDeleteForm(Cours $li...
[ "0.6633935", "0.6597195", "0.6573036", "0.6571494", "0.6557634", "0.65572494", "0.65270644", "0.6523953", "0.65223503", "0.6504556", "0.64889795", "0.6488635", "0.64845455", "0.64761585", "0.64706886", "0.646556", "0.646529", "0.6421705", "0.64169", "0.64083046", "0.6399298",...
0.8001636
0
Look up a directory entry by name and get its attributes. see In early versions of FUSE, fuse_entry_out::nodeid had to be nonzero. Lookup failure was handled by ENOENT only. This restriction was lifted in v7.6, so that a lookup response with nodeid == 0 meant a cacheable lookup failure. Each successful lookup increment...
public function lookup(string $path): int { // step 1. Find tree node under /root matching path. $parts = explode('/', $path); $root = $this->root(); list($node_id, $node) = $root; if($path == '/') { list($node_id, $node) = $root; } else { if($pa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readdir(int $ino_dir, int $fh, int $offset): ?array {\n $r = $this->replica;\n\n // 1. find directory tree ID, given ino\n $parent_id = $this->ino_to_tree_id($ino_dir);\n\n // 2. find child matching offset.\n $children = $r->state->tree->children($parent_id);\n ...
[ "0.50125957", "0.49754563", "0.4874769", "0.4870229", "0.48141813", "0.47589782", "0.4753923", "0.46720576", "0.46136168", "0.4611195", "0.45922908", "0.4565107", "0.45453578", "0.45431066", "0.45373023", "0.44964802", "0.44890496", "0.44821018", "0.44487196", "0.4431121", "0...
0.5478358
0
/ Forget about an inode The nlookup parameter indicates the number of lookups previously performed on this inode. If the filesystem implements inode lifetimes, it is recommended that inodes acquire a single reference on each lookup, and lose nlookup references on each forget. The filesystem may ignore forget calls, if ...
public function forget(int $ino, int $nlookup) { // 1. Find local entry. $entry = $this->ino_to_local_entry($ino); // decrement ref count $entry->ref_count --; // or -= $nlookup ?? // note: in a real impl, we would de-allocate the inode here, // when ref-count drops...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function forget($key);", "public function forget($key);", "public function forget($key);", "public function forget($key);", "public function forget($key);", "public function forget($key = null);", "public function unlink(int $parent_ino, string $name) {\n\n $r = $this->replica;\n...
[ "0.47967103", "0.46308756", "0.46308756", "0.46308756", "0.46308756", "0.45927975", "0.45537412", "0.44522542", "0.4407284", "0.4344718", "0.4340387", "0.43103006", "0.42842308", "0.42507514", "0.4229209", "0.41909584", "0.41760695", "0.41412267", "0.4125061", "0.41130584", "...
0.8219516
0
Open a directory note: stateless.
public function opendir(int $ino_dir): ?int { return PHP_INT_MAX; // stateless fh. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function open() {\n $this->setPointer(opendir($this->directory->getPath()));\n return parent::open();\n }", "public function openDir($dir, $recursive = false) {\n if (!is_dir($dir))\n throw new InvalidArgumentException(\"Invalid directory provided: $dir\");\n if (is...
[ "0.6952486", "0.60568696", "0.58709997", "0.57275695", "0.57090855", "0.57090855", "0.5701609", "0.5592816", "0.5474504", "0.53951055", "0.5353254", "0.53470975", "0.53398377", "0.5328387", "0.5305089", "0.5295704", "0.5282454", "0.5276118", "0.5190282", "0.518405", "0.514629...
0.5294964
16
Read a directory. note: stateless, fh is ignored.
public function readdir(int $ino_dir, int $fh, int $offset): ?array { $r = $this->replica; // 1. find directory tree ID, given ino $parent_id = $this->ino_to_tree_id($ino_dir); // 2. find child matching offset. $children = $r->state->tree->children($parent_id); $child_i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readDirectory(Path $path): Directory;", "public function dir_readdir() {}", "public function readDirectory($path, $recursive = false)\n {\n \n }", "public function getDirectory(): ReadInterface\n {\n $path = $this->getDirectoryRelativePath();\n\n return $this->fi...
[ "0.65929216", "0.6309602", "0.6282176", "0.6243443", "0.5877919", "0.58531404", "0.55884475", "0.55789816", "0.55567956", "0.5511992", "0.54956305", "0.5460913", "0.5418004", "0.5392456", "0.5381492", "0.5343762", "0.5342837", "0.53210956", "0.5259132", "0.5241434", "0.522463...
0.5180489
22
Release an open directory
public function releasedir(int $ino_dir, ?int $fh) { // no-op, because stateless. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function dir_rewinddir() {}", "public function __destruct()\n\t{\n\t\tif ('\\\\' === \\DIRECTORY_SEPARATOR && file_exists($this->gitDir)) {\n\t\t\t(new Filesystem)->chmod($this->gitDir, 0755, 0000, true);\n\t\t}\n\n\t\t(new Filesystem)->remove($this->gitDir);\n\t}", "public function closedir() {\n ...
[ "0.56548554", "0.5483252", "0.5469231", "0.5332056", "0.5332056", "0.52174723", "0.5176655", "0.5143909", "0.5078455", "0.50362134", "0.4994258", "0.49919957", "0.49648818", "0.49631348", "0.49330172", "0.4926219", "0.48701307", "0.48680767", "0.48445472", "0.4828297", "0.482...
0.6980674
0
Rename a file, dir, or symlink
public function rename(int $parent_ino, string $name, int $newparent_ino, string $newname) { $r = $this->replica; // 1. find parent_id from parent_ino. $parent_id = $this->ino_to_tree_id($parent_ino); // 2. find newparent_id from newparent_ino // optimization todo: check if th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rename($file, $new_file);", "public function rename($newname);", "public function rename($path, $newpath)\n {\n }", "public function rename($name, $new_name);", "abstract function rename($old_file, $new_file, $move = FALSE);", "public function rename($source, $destination);", "fun...
[ "0.7510787", "0.7447001", "0.7170855", "0.7106151", "0.70833987", "0.68923587", "0.67977685", "0.6783187", "0.67815524", "0.6734063", "0.6715523", "0.66329885", "0.6452916", "0.6398675", "0.6332479", "0.63318044", "0.6320497", "0.62993425", "0.62661684", "0.62063384", "0.6186...
0.5463394
72
Open a file note: stateless
public function open(int $file_ino, $flags) { // no-op, stateless io. return PHP_INT_MAX; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function openFile() {}", "protected function _openFile($filename) {}", "public function openFile() {\n $this->file = fopen($this->_dir . $this->_filename,\"r\");\n }", "abstract public function open();", "public function open() {\n $this->fileHandle = fopen($this->fileName, 'rb');\n...
[ "0.75247204", "0.7219751", "0.67893994", "0.6778008", "0.66003406", "0.6528987", "0.6528987", "0.6396559", "0.63610286", "0.63498867", "0.6299875", "0.6245988", "0.6245988", "0.61282223", "0.60640097", "0.6041462", "0.6025017", "0.60112786", "0.6008006", "0.5993459", "0.59920...
0.53775483
65
Write data to a file
public function write(int $file_ino, int $fh, string $data) { $r = $this->replica; $ops = []; // 1. find inode_id from file_ino. $inode_id = $this->ino_to_tree_id($file_ino); // 2. find tree node from inode_id $tree_node = $this->tree_find($inode_id); // 3. App...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function writeFile($data);", "public function writeToFile($data){\t\n\t\tfwrite($this->fptr,$data);\n\t}", "public function writeFile($path, $data);", "protected function filewrite($data = NULL) {\n ob_start();\n print_r($data);\n $c = ob_get_clean();\n $fc = fopen('txtfile...
[ "0.89562184", "0.8615562", "0.8444986", "0.8075249", "0.79037", "0.78557485", "0.77168274", "0.76620305", "0.75567013", "0.75567013", "0.75567013", "0.75567013", "0.75393754", "0.73755556", "0.72806126", "0.72677636", "0.7204457", "0.7151145", "0.7146511", "0.71414405", "0.71...
0.0
-1
Read data from a file
public function read(int $file_ino, int $fh) { $r = $this->replica; // 1. find inode_id from file_ino. $inode_id = $this->ino_to_tree_id($file_ino); $tree_node = $this->tree_find($inode_id); return $tree_node->meta->content; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function read($file);", "function readData()\r\n\t{\r\n\t\tif( !file_exists( $this->source_file ) )\r\n\t\t{\r\n\t\t\tdie( \"Can not proceed: Can not locate data file: '\" . $this->source_file . \"'\" );\r\n\t\t}\r\n\t\t$this->m_aData = fopen( $this->source_file , 'r');\r\n\t}", "public function read($f...
[ "0.7782599", "0.742396", "0.73303115", "0.71772623", "0.70414263", "0.6975181", "0.6967921", "0.69652057", "0.6962545", "0.69053596", "0.68720895", "0.6746966", "0.6721863", "0.67074656", "0.66553515", "0.6652835", "0.6624243", "0.6613673", "0.65987575", "0.659704", "0.658742...
0.0
-1
Flush any buffered data to file note: stateless
public function flush(int $file_ino) { // no-op, stateless io. return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function flush() {\n\t\tfflush($this->fp);\n\t}", "function flush() {\n fflush($this->fp);\n }", "abstract function flush();", "public function flush()\n {\n $this->line($this->buffer);\n $this->buffer = \"\";\n }", "abstract public function flush();", "public function flus...
[ "0.79473066", "0.77224714", "0.72797424", "0.72201014", "0.71981996", "0.714729", "0.69931686", "0.6985446", "0.6985446", "0.6985446", "0.6985446", "0.6985446", "0.6985446", "0.6985446", "0.6985446", "0.6985446", "0.6985446", "0.6985446", "0.6985446", "0.6985446", "0.6985446"...
0.6251586
70
Release an open file note: stateless
public function release(int $file_ino) { // no-op, stateless io. return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _closeFile() {}", "protected function _closeFile() {}", "protected function closeFile() {}", "public function __destruct(){\n \n fclose( $this->getFilePointer() );\n \n }", "public function closeFile(){\n if(is_resource($this->_filePointer) ...
[ "0.67710906", "0.67710906", "0.6609618", "0.65704703", "0.6551373", "0.6458547", "0.64205766", "0.6370598", "0.6333961", "0.6152797", "0.61270314", "0.61131537", "0.6110647", "0.6107078", "0.6041628", "0.6037028", "0.60363597", "0.6032014", "0.5993704", "0.5967126", "0.594334...
0.6636523
2
Create a hard link
public function link(int $target_ino, int $parent_ino, string $name): int { $r = $this->replica; $ops = []; // 1. find parent_id (uuid of fs_inode_entry) from parent_ino. $parent_id = $this->ino_to_tree_id($parent_ino); // 2. find target id. $target_local_inode = $this...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function CreatePublicSymLink()\n {\n $filemanager = $this->getFileManager();\n\n $fullPath = PATH_OUTBOX.'/public/'.$this->sqlData['cms_document_tree_id'].'/';\n if (!is_dir($fullPath)) {\n $filemanager->mkdir($fullPath, 0777, true);\n }\n $targetFile = $this...
[ "0.74029845", "0.72076255", "0.6583421", "0.6527318", "0.64806837", "0.6367358", "0.6357306", "0.62722635", "0.6098354", "0.6075225", "0.60329205", "0.60041815", "0.5999445", "0.5970029", "0.5957186", "0.58944595", "0.58255374", "0.58248127", "0.58244807", "0.58176297", "0.58...
0.0
-1
Remove (unlink) a file
public function unlink(int $parent_ino, string $name) { $r = $this->replica; $t = $r->state->tree; $ops = []; // 1. find parent_id (uuid of fs_inode_entry) from parent_ino. $parent_id = $this->ino_to_tree_id($parent_ino); // 2. find child of parent that matches $name ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function unlink($file);", "protected function removeFile()\n {\n if (@is_file($this->getFilePath())) {\n @unlink($this->getFilePath());\n }\n }", "public function remove(): void\n {\n $file = $this->getAbsolutePath();\n if (!is_file($file) || !file_exists(...
[ "0.84944594", "0.80436295", "0.7863028", "0.77449554", "0.76668113", "0.7533592", "0.736805", "0.7335398", "0.73270375", "0.73208475", "0.7305574", "0.72816414", "0.72716653", "0.7265614", "0.71444625", "0.7142781", "0.7124346", "0.7108125", "0.709493", "0.70907164", "0.70857...
0.0
-1
Create a symlink (softlink)
public function symlink(string $link, int $parent_ino, string $name): int { $r = $this->replica; $ops = []; // 1. find parent_id (uuid of fs_inode_entry) from parent_ino. $parent_id = $this->ino_to_tree_id($parent_ino); // 2. find parent dir (under /root/) $inode_entry...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createSoftLink()\n {\n if (stripos(__DIR__, 'vendor/adamasantares/migra-php') !== false) {\n shell_exec('ln -s ' . __FILE__ . ' ' . __DIR__ . '/../../../migra');\n shell_exec('chmod +x ' . __DIR__ . '/../../../migra');\n if (is_file(__DIR__ . '/../../../mi...
[ "0.73222154", "0.7308045", "0.7257418", "0.698105", "0.6845755", "0.6748276", "0.6568657", "0.6194246", "0.60215175", "0.59464145", "0.5892154", "0.57516944", "0.5749992", "0.5749068", "0.57026297", "0.5701868", "0.5670474", "0.56499314", "0.5592759", "0.5587848", "0.5582684"...
0.54686856
24
prints current state of the filesystem
public function print_current_state(string $description="") { $title = $description ? "fs state after: $description" : 'current filesystem state'; echo "\n\n------- $title -------\n"; print_tree($this->replica->state->tree, true); echo "\nino --> fs_inode_local:\n"; foreach($thi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function printState() {\n\t\t$state = $this->getState();\n\t\techo $state;\n\n\t\n\t}", "protected function getFileSystemStatus() {}", "final public function dump() {\n\t\tprint(\"Registered filesystem backends:\\n\");\n\t\tforeach ($this->map as $backendk => $backendv)\n\t\t\tprintf(\" %s\\n\", $backendv->ge...
[ "0.6572923", "0.63882965", "0.6383825", "0.60026073", "0.58918786", "0.56195766", "0.53893936", "0.53702724", "0.52774423", "0.5260151", "0.52525264", "0.5223683", "0.52160096", "0.521004", "0.5204523", "0.51331955", "0.51227427", "0.5118223", "0.5116179", "0.5113586", "0.509...
0.7306231
0
creates fs_inode_local entry and adds it to indexes.
private function add_fs_inode_local($tree_id, string $kind) { // 1. Create fs_inode_local $local = new fs_inode_local(); $local->ino = ++$this->ino_counter; $local->tree_id = $tree_id; $local->ref_count = 1; $local->links = 1; $local->is_file = $kind == inode_kind...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function ino_to_local_entry(int $ino) {\n // 1. find parent_id (uuid of fs_inode_entry) from parent_ino.\n $local_inode = @$this->ino_inodes_local[$ino];\n if(!$local_inode) {\n throw new Exception(\"ino not found: $ino\");\n }\n return $local_inode;\n }", ...
[ "0.5744043", "0.47443557", "0.45167753", "0.44709346", "0.44406918", "0.4416015", "0.4369997", "0.43613142", "0.4309189", "0.42837203", "0.4256598", "0.4230067", "0.42183423", "0.4203027", "0.42017803", "0.4198588", "0.41964927", "0.41918364", "0.4181211", "0.4181211", "0.418...
0.6783042
0
return crdttree node for a given ID.
private function tree_find(int $node_id) { $node = $this->replica->state->tree->find($node_id); if(!$node) { throw new Exception("Missing entry for $node_id"); } return $node; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_node_by_id($id)\n {\n }", "public static function getNodeById($id){\n\t\treturn FfNodeQuery::create()->findOneById($id);\n\t}", "protected function getNodeById($id) {\n return Db::test('SELECT * FROM categories WHERE id=?', [$id])->fetchObject();\n }", "protected f...
[ "0.7912843", "0.7633138", "0.7355304", "0.73188317", "0.7053993", "0.67989343", "0.6732175", "0.67243475", "0.6666664", "0.6580526", "0.6569663", "0.65559584", "0.6532108", "0.6464436", "0.63906884", "0.6344051", "0.6250273", "0.6085107", "0.60769117", "0.598579", "0.59578466...
0.6679837
8