_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c25800 | train | // analyseNewNamespace returns version and the others params | {
"resource": ""
} | ||
c25801 | train | // String returns the source code string for the Table struct | {
"resource": ""
} | ||
c25802 | train | // String returns the ORM tag string for a column | {
"resource": ""
} | ||
c25803 | train | // getTableObjects process each table name | {
"resource": ""
} | ||
c25804 | train | // GetGoDataType maps an SQL data type to Golang data type | {
"resource": ""
} | ||
c25805 | train | // GetTableNames for PostgreSQL | {
"resource": ""
} | ||
c25806 | train | // GetConstraints for PostgreSQL | {
"resource": ""
} | ||
c25807 | train | // GetGoDataType returns the Go type from the mapped Postgres type | {
"resource": ""
} | ||
c25808 | train | // deleteAndRecreatePaths removes several directories completely | {
"resource": ""
} | ||
c25809 | train | // writeModelFiles generates model files | {
"resource": ""
} | ||
c25810 | train | // writeControllerFiles generates controller files | {
"resource": ""
} | ||
c25811 | train | // writeRouterFile generates router file | {
"resource": ""
} | ||
c25812 | train | // InitBanner loads the banner and prints it to output
// All errors are ignored, the application will not
// print the banner in case of error. | {
"resource": ""
} | ||
c25813 | train | // Out returns the out writer of the current command.
// If cmd.output is nil, os.Stderr is used. | {
"resource": ""
} | ||
c25814 | train | // readPump pumps messages from the websocket connection to the broker. | {
"resource": ""
} | ||
c25815 | train | // handleWsRequest handles websocket requests from the peer. | {
"resource": ""
} | ||
c25816 | train | // LoadConfig loads the bee tool configuration.
// It looks for Beefile or bee.json in the current path,
// and falls back to default configuration in case not found. | {
"resource": ""
} | ||
c25817 | train | // IsInGOPATH checks whether the path is inside of any GOPATH or not | {
"resource": ""
} | ||
c25818 | train | // IsBeegoProject checks whether the current path is a Beego application or not | {
"resource": ""
} | ||
c25819 | train | // snake string, XxYy to xx_yy | {
"resource": ""
} | ||
c25820 | train | // formatSourceCode formats source files | {
"resource": ""
} | ||
c25821 | train | // WriteToFile creates a file and writes content to it | {
"resource": ""
} | ||
c25822 | train | // BeeFuncMap returns a FuncMap of functions used in different templates. | {
"resource": ""
} | ||
c25823 | train | // TmplToString parses a text template and return the result as a string. | {
"resource": ""
} | ||
c25824 | train | // GetFileModTime returns unix timestamp of `os.File.ModTime` for the given path. | {
"resource": ""
} | ||
c25825 | train | // runMigration is the entry point for starting a migration | {
"resource": ""
} | ||
c25826 | train | // migrate generates source code, build it, and invoke the binary who does the actual migration | {
"resource": ""
} | ||
c25827 | train | // checkForSchemaUpdateTable checks the existence of migrations table.
// It checks for the proper table structures and creates the table using MYSQL_MIGRATION_DDL if it does not exist. | {
"resource": ""
} | ||
c25828 | train | // writeMigrationSourceFile create the source file based on MIGRATION_MAIN_TPL | {
"resource": ""
} | ||
c25829 | train | // changeDir changes working directory to dir.
// It exits the system when encouter an error | {
"resource": ""
} | ||
c25830 | train | // removeTempFile removes a file in dir | {
"resource": ""
} | ||
c25831 | train | // formatShellErrOutput formats the error shell output | {
"resource": ""
} | ||
c25832 | train | // formatShellOutput formats the normal shell output | {
"resource": ""
} | ||
c25833 | train | // MigrateUpdate does the schema update | {
"resource": ""
} | ||
c25834 | train | // MigrateRollback rolls back the latest migration | {
"resource": ""
} | ||
c25835 | train | // MigrateReset rolls back all migrations | {
"resource": ""
} | ||
c25836 | train | // MigrateRefresh rolls back all migrations and start over again | {
"resource": ""
} | ||
c25837 | train | // If a file is excluded | {
"resource": ""
} | ||
c25838 | train | // NewModeColorWriter create and initializes a new ansiColorWriter
// by specifying the outputMode. | {
"resource": ""
} | ||
c25839 | train | // ShowShortVersionBanner prints the short version banner. | {
"resource": ""
} | ||
c25840 | train | // NewWatcher starts an fsnotify Watcher on the specified paths | {
"resource": ""
} | ||
c25841 | train | // AutoBuild builds the specified set of files | {
"resource": ""
} | ||
c25842 | train | // Kill kills the running command process | {
"resource": ""
} | ||
c25843 | train | // Restart kills the running command process and starts it again | {
"resource": ""
} | ||
c25844 | train | // Start starts the command process | {
"resource": ""
} | ||
c25845 | train | // shouldIgnoreFile ignores filenames generated by Emacs, Vim or SublimeText.
// It returns true if the file should be ignored, false otherwise. | {
"resource": ""
} | ||
c25846 | train | // shouldWatchFileWithExtension returns true if the name of the file
// hash a suffix that should be watched. | {
"resource": ""
} | ||
c25847 | train | // GetBeeLogger initializes the logger instance with a NewColorWriter output
// and returns a singleton | {
"resource": ""
} | ||
c25848 | train | // SetOutput sets the logger output destination | {
"resource": ""
} | ||
c25849 | train | // mustLog logs the message according to the specified level and arguments.
// It panics in case of an error. | {
"resource": ""
} | ||
c25850 | train | // mustLogDebug logs a debug message only if debug mode
// is enabled. i.e. DEBUG_ENABLED="1" | {
"resource": ""
} | ||
c25851 | train | // Debug outputs a debug log message | {
"resource": ""
} | ||
c25852 | train | // Debugf outputs a formatted debug log message | {
"resource": ""
} | ||
c25853 | train | // Infof outputs a formatted information log message | {
"resource": ""
} | ||
c25854 | train | // Warnf outputs a formatted warning log message | {
"resource": ""
} | ||
c25855 | train | // Errorf outputs a formatted error log message | {
"resource": ""
} | ||
c25856 | train | // Fatal outputs a fatal log message and exists | {
"resource": ""
} | ||
c25857 | train | // Fatalf outputs a formatted log message and exists | {
"resource": ""
} | ||
c25858 | train | // Successf outputs a formatted success log message | {
"resource": ""
} | ||
c25859 | train | // Hintf outputs a formatted hint log message | {
"resource": ""
} | ||
c25860 | train | // Criticalf outputs a formatted critical log message | {
"resource": ""
} | ||
c25861 | train | // GetOrganizationByName returns the organization with the given name. | {
"resource": ""
} | ||
c25862 | train | // SetOrganizationInformation sets the currently targeted organization. | {
"resource": ""
} | ||
c25863 | train | // SetSpaceInformation sets the currently targeted space. | {
"resource": ""
} | ||
c25864 | train | // SetTargetInformation sets the currently targeted CC API and related other
// related API URLs. | {
"resource": ""
} | ||
c25865 | train | // SetUAAClientCredentials sets the client credentials. | {
"resource": ""
} | ||
c25866 | train | // V7SetSpaceInformation sets the currently targeted space. | {
"resource": ""
} | ||
c25867 | train | // NewActor returns a new V3 actor. | {
"resource": ""
} | ||
c25868 | train | // UnmarshalJSON helps unmarshal a Cloud Controller Service Binding response. | {
"resource": ""
} | ||
c25869 | train | // DeleteServiceBinding deletes the specified Service Binding. An updated
// service binding is returned only if acceptsIncomplete is true. | {
"resource": ""
} | ||
c25870 | train | // GetServiceBinding returns back a service binding with the provided GUID. | {
"resource": ""
} | ||
c25871 | train | // GetServiceBindings returns back a list of Service Bindings based off of the
// provided filters. | {
"resource": ""
} | ||
c25872 | train | // GetServiceInstanceServiceBindings returns back a list of Service Bindings for the provided service instance GUID. | {
"resource": ""
} | ||
c25873 | train | // GetConfigFeatureFlags retrieves a list of FeatureFlag from the Cloud
// Controller. | {
"resource": ""
} | ||
c25874 | train | // WrapConnection wraps the current Client connection in the wrapper. | {
"resource": ""
} | ||
c25875 | train | // ClearTarget clears target information from the actor. | {
"resource": ""
} | ||
c25876 | train | // UnmarshalJSON helps unmarshal a Cloud Controller Space response. | {
"resource": ""
} | ||
c25877 | train | // CreateSpace creates a new space with the provided spaceName in the org with
// the provided orgGUID. | {
"resource": ""
} | ||
c25878 | train | // DeleteSpace deletes the Space associated with the provided
// GUID. It will return the Cloud Controller job that is assigned to the
// Space deletion. | {
"resource": ""
} | ||
c25879 | train | // GetSecurityGroupSpaces returns a list of Spaces based on the provided
// SecurityGroup GUID. | {
"resource": ""
} | ||
c25880 | train | // GetSpaces returns a list of Spaces based off of the provided filters. | {
"resource": ""
} | ||
c25881 | train | // UpdateSpaceDeveloper grants the space developer role to the user or client
// associated with the given UAA ID. | {
"resource": ""
} | ||
c25882 | train | // UpdateSpaceManagerByUsername grants the given username the space manager role. | {
"resource": ""
} | ||
c25883 | train | // NewInfo returns back a new | {
"resource": ""
} | ||
c25884 | train | // CreateServiceKey creates a new service key using the provided name and
// parameters for the requested service instance. | {
"resource": ""
} | ||
c25885 | train | // DownloadExecutableBinaryFromURL fetches a plugin binary from the specified
// URL, if it exists. | {
"resource": ""
} | ||
c25886 | train | // FileExists returns true if the file exists. It returns false if the file
// doesn't exist or there is an error checking. | {
"resource": ""
} | ||
c25887 | train | // PluginCommands returns the plugin's commands sorted by command name. | {
"resource": ""
} | ||
c25888 | train | // String returns the plugin's version in the format x.y.z. | {
"resource": ""
} | ||
c25889 | train | // CommandName returns the name of the plugin. The name is concatenated with
// alias if alias is specified. | {
"resource": ""
} | ||
c25890 | train | // AddPlugin adds the specified plugin to PluginsConfig | {
"resource": ""
} | ||
c25891 | train | // GetPlugin returns the requested plugin and true if it exists. | {
"resource": ""
} | ||
c25892 | train | // GetPluginCaseInsensitive finds the first matching plugin name case
// insensitive and returns true if it exists. | {
"resource": ""
} | ||
c25893 | train | // RemovePlugin removes the specified plugin from PluginsConfig idempotently | {
"resource": ""
} | ||
c25894 | train | // WritePluginConfig writes the plugin config to config.json in the plugin home
// directory. | {
"resource": ""
} | ||
c25895 | train | // NewActor returns a pluginaction Actor | {
"resource": ""
} | ||
c25896 | train | // DeleteService deletes the service with the given GUID, and returns any errors and warnings. | {
"resource": ""
} | ||
c25897 | train | // UnmarshalJSON helps unmarshal a Cloud Controller Service response. | {
"resource": ""
} | ||
c25898 | train | // GetService returns the service with the given GUID. | {
"resource": ""
} | ||
c25899 | train | // GetServices returns a list of Services given the provided filters. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.