_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c9000 | // generate fixed size array | |
c9001 | // only compare uint64 to uint64 | |
c9002 | // ParserExpression is an internal Parser routine - the
// main one for parsing expressions | |
c9003 | // set newsize to 0 to truncate everything | |
c9004 | // nestedPathGetSet does a top-down lookup, as opposed to LexicalLookupSymbol which is bottom up | |
c9005 | // FieldError wraps a given Validator error providing a message call stack. | |
c9006 | // create a function to initialize our app and yaag middleware
// in order to be used on the test file as well. | |
c9007 | // New returns a new yaag iris-compatible handler which is responsible to generate the rest API. | |
c9008 | // New creates and returns new instance of Money. | |
c9009 | // SameCurrency check if given Money is equals by currency. | |
c9010 | // Equals checks equality between two Money types. | |
c9011 | // Absolute returns new Money struct from given Money using absolute monetary value. | |
c9012 | // Negative returns new Money struct from given Money using negative monetary value. | |
c9013 | // Add returns new Money struct with value representing sum of Self and Other Money. | |
c9014 | // Subtract returns new Money struct with value representing difference of Self and Other Money. | |
c9015 | // Multiply returns new Money struct with value representing Self multiplied value by multiplier. | |
c9016 | // Divide returns new Money struct with value representing Self division value by given divider. | |
c9017 | // Round returns new Money struct with value rounded to nearest zero. | |
c9018 | // Split returns slice of Money structs with split Self value in given number.
// After division leftover pennies will be distributed round-robin amongst the parties.
// This means that parties listed first will likely receive more pennies than ones that are listed later. | |
c9019 | // Allocate returns slice of Money structs with split Self value in given ratios.
// It lets split money by given ratios without losing pennies and as Split operations distributes
// leftover pennies amongst the parties with round-robin principle. | |
c9020 | // Display lets represent Money struct as string in given Currency value. | |
c9021 | // AddCurrency lets you insert or update currency in currencies list. | |
c9022 | // Formatter returns currency formatter representing
// used currency structure. | |
c9023 | // getDefault represent default currency if currency is not found in currencies list.
// Grapheme and Code fields will be changed by currency code. | |
c9024 | // get extended currency using currencies list. | |
c9025 | // NewFormatter creates new Formatter instance. | |
c9026 | // Format returns string of formatted integer using given currency template. | |
c9027 | // New creates a new Bloom filter with _m_ bits and _k_ hashing functions
// We force _m_ and _k_ to be at least one to avoid panics. | |
c9028 | // baseHashes returns the four hash values of data that are used to create k
// hashes | |
c9029 | // NewWithEstimates creates a new Bloom filter for about n items with fp
// false positive rate | |
c9030 | // Merge the data from two Bloom Filters. | |
c9031 | // Copy creates a copy of a Bloom filter. | |
c9032 | // EstimateFalsePositiveRate returns, for a BloomFilter with a estimate of m bits
// and k hash functions, what the false positive rate will be
// while storing n entries; runs 100,000 tests. This is an empirical
// test using integers as keys. As a side-effect, it clears the BloomFilter. | |
c9033 | // Equal tests for the equality of two Bloom filters | |
c9034 | // Locations returns a list of hash locations representing a data item. | |
c9035 | // New initialize a new StateMachine that hold states, events definitions | |
c9036 | // Initial define the initial state | |
c9037 | // State define a state | |
c9038 | // Event define an event | |
c9039 | // Trigger trigger an event | |
c9040 | // Enter register an enter hook for State | |
c9041 | // Exit register an exit hook for State | |
c9042 | // To define EventTransition of go to a state | |
c9043 | // From used to define from states | |
c9044 | // Before register before hooks | |
c9045 | // After register after hooks | |
c9046 | // GenerateReferenceKey generate reference key used for change log | |
c9047 | // GetStateChangeLogs get state change logs | |
c9048 | // GetUsersPublicProfile gets public profile information about a
// Spotify User. It does not require authentication. | |
c9049 | // CurrentUsersTracksOpt is like CurrentUsersTracks, but it accepts additional
// options for sorting and filtering the results. | |
c9050 | // FollowUser adds the current user as a follower of one or more
// spotify users, identified by their Spotify IDs.
//
// Modifying the lists of artists or users the current user follows
// requires that the application has the ScopeUserFollowModify scope. | |
c9051 | // FollowArtist adds the current user as a follower of one or more
// spotify artists, identified by their Spotify IDs.
//
// Modifying the lists of artists or users the current user follows
// requires that the application has the ScopeUserFollowModify scope. | |
c9052 | // UnfollowUser removes the current user as a follower of one or more
// Spotify users.
//
// Modifying the lists of artists or users the current user follows
// requires that the application has the ScopeUserFollowModify scope. | |
c9053 | // UnfollowArtist removes the current user as a follower of one or more
// Spotify artists.
//
// Modifying the lists of artists or users the current user follows
// requires that the application has the ScopeUserFollowModify scope. | |
c9054 | // CurrentUserFollows checks to see if the current user is following
// one or more artists or other Spotify Users. This call requires
// ScopeUserFollowRead.
//
// The t argument indicates the type of the IDs, and must be either
// "user" or "artist".
//
// The result is returned as a slice of bool values in the same... | |
c9055 | // SetAuthInfo overwrites the client ID and secret key used by the authenticator.
// You can use this if you don't want to store this information in environment variables. | |
c9056 | // Token pulls an authorization code from an HTTP request and attempts to exchange
// it for an access token. The standard use case is to call Token from the handler
// that handles requests to your application's redirect URL. | |
c9057 | // Exchange is like Token, except it allows you to manually specify the access
// code instead of pulling it out of an HTTP request. | |
c9058 | // NewClient creates a Client that will use the specified access token for its API requests. | |
c9059 | // Token gets the client's current token. | |
c9060 | // GetAlbum gets Spotify catalog information for a single album, given its Spotify ID. | |
c9061 | // GetAlbums gets Spotify Catalog information for multiple albums, given their
// Spotify IDs. It supports up to 20 IDs in a single call. Albums are returned
// in the order requested. If an album is not found, that position in the
// result slice will be nil. | |
c9062 | // GetAlbumTracks gets the tracks for a particular album.
// If you only care about the tracks, this call is more efficient
// than GetAlbum. | |
c9063 | // GetAlbumTracksOpt behaves like GetAlbumTracks, with the exception that it
// allows you to specify extra parameters that limit the number of results returned.
// The maximum number of results to return is specified by limit.
// The offset argument can be used to specify the index of the first track to return.
// It ... | |
c9064 | // FeaturedPlaylistsOpt gets a list of playlists featured by Spotify.
// It accepts a number of optional parameters via the opt argument. | |
c9065 | // UnfollowPlaylist removes the current user as a follower of a playlist.
// Unfollowing a publicly followed playlist requires ScopePlaylistModifyPublic.
// Unfolowing a privately followed playlist requies ScopePlaylistModifyPrivate. | |
c9066 | // GetPlaylistsForUser gets a list of the playlists owned or followed by a
// particular Spotify user.
//
// Private playlists and collaborative playlists are only retrievable for the
// current user. In order to read private playlists, the user must have granted
// the ScopePlaylistReadPrivate scope. Note that this ... | |
c9067 | // GetPlaylist gets a playlist | |
c9068 | // GetPlaylistTracks gets full details of the tracks in a playlist, given the
// playlist's Spotify ID. | |
c9069 | // CreatePlaylistForUser creates a playlist for a Spotify user.
// The playlist will be empty until you add tracks to it.
// The playlistName does not need to be unique - a user can have
// several playlists with the same name.
//
// Creating a public playlist for a user requires ScopePlaylistModifyPublic;
// creating ... | |
c9070 | // NewTrackToRemove creates a new TrackToRemove object with the specified
// track ID and playlist locations. | |
c9071 | // ReplacePlaylistTracks replaces all of the tracks in a playlist, overwriting its
// exising tracks This can be useful for replacing or reordering tracks, or for
// clearing a playlist.
//
// Modifying a public playlist requires that the user has authorized the
// ScopePlaylistModifyPublic scope. Modifying a private... | |
c9072 | // GetArtist gets Spotify catalog information for a single artist, given its Spotify ID. | |
c9073 | // GetArtists gets spotify catalog information for several artists based on their
// Spotify IDs. It supports up to 50 artists in a single call. Artists are
// returned in the order requested. If an artist is not found, that position
// in the result will be nil. Duplicate IDs will result in duplicate artists
// in... | |
c9074 | // GetArtistsTopTracks gets Spotify catalog information about an artist's top
// tracks in a particular country. It returns a maximum of 10 tracks. The
// country is specified as an ISO 3166-1 alpha-2 country code. | |
c9075 | // GetArtistAlbumsOpt is just like GetArtistAlbums, but it accepts optional
// parameters used to filter and sort the result.
//
// The AlbumType argument can be used to find a particular type of album. Search
// for multiple types by OR-ing the types together. | |
c9076 | // PlayerDevices information about available devices for the current user.
//
// Requires the ScopeUserReadPlaybackState scope in order to read information | |
c9077 | // PlayerStateOpt is like PlayerState, but it accepts additional
// options for sorting and filtering the results. | |
c9078 | // PlayerCurrentlyPlayingOpt is like PlayerCurrentlyPlaying, but it accepts
// additional options for sorting and filtering the results. | |
c9079 | // PlayerRecentlyPlayedOpt is like PlayerRecentlyPlayed, but it accepts
// additional options for sorting and filtering the results. | |
c9080 | // TransferPlayback transfers playback to a new device and determine if
// it should start playing.
//
// Note that a value of false for the play parameter when also transferring
// to another device_id will not pause playback. To ensure that playback is
// paused on the new device you should send a pause command to th... | |
c9081 | // PlayOpt is like Play but with more options | |
c9082 | // PauseOpt is like Pause but with more options
//
// Only expects PlayOptions.DeviceID, all other options will be ignored | |
c9083 | // SeekOpt is like Seek but with more options
//
// Only expects PlayOptions.DeviceID, all other options will be ignored | |
c9084 | // Repeat Set the repeat mode for the user's playback.
//
// Options are repeat-track, repeat-context, and off.
//
// Requires the ScopeUserModifyPlaybackState in order to modify the player state. | |
c9085 | // RepeatOpt is like Repeat but with more options
//
// Only expects PlayOptions.DeviceID, all other options will be ignored. | |
c9086 | // Volume set the volume for the user's current playback device.
//
// Percent is must be a value from 0 to 100 inclusive.
//
// Requires the ScopeUserModifyPlaybackState in order to modify the player state | |
c9087 | // VolumeOpt is like Volume but with more options
//
// Only expects PlayOptions.DeviceID, all other options will be ignored | |
c9088 | // Shuffle switches shuffle on or off for user's playback.
//
// Requires the ScopeUserModifyPlaybackState in order to modify the player state | |
c9089 | // ShuffleOpt is like Shuffle but with more options
//
// Only expects PlayOptions.DeviceID, all other options will be ignored | |
c9090 | // AddTracksToLibrary saves one or more tracks to the current user's
// "Your Music" library. This call requires the ScopeUserLibraryModify scope.
// A track can only be saved once; duplicate IDs are ignored. | |
c9091 | // RemoveTracksFromLibrary removes one or more tracks from the current user's
// "Your Music" library. This call requires the ScopeUserModifyLibrary scope.
// Trying to remove a track when you do not have the user's authorization
// results in a `spotify.Error` with the status code set to http.StatusUnauthorized. | |
c9092 | // GetCategoryPlaylists gets a list of Spotify playlists tagged with a paricular category. | |
c9093 | // GetCategoryPlaylistsOpt is like GetCategoryPlaylists, but it accepts optional
// arguments. | |
c9094 | // MaxAcousticness sets the maximum acousticness
// Acousticness is a confidence measure from 0.0 to 1.0 of whether
// the track is acoustic. A value of 1.0 represents high confidence
// that the track is acoustic. | |
c9095 | // MinAcousticness sets the minimum acousticness
// Acousticness is a confidence measure from 0.0 to 1.0 of whether
// the track is acoustic. A value of 1.0 represents high confidence
// that the track is acoustic. | |
c9096 | // TargetAcousticness sets the target acousticness
// Acousticness is a confidence measure from 0.0 to 1.0 of whether
// the track is acoustic. A value of 1.0 represents high confidence
// that the track is acoustic. | |
c9097 | // MaxDanceability sets the maximum danceability
// Danceability describes how suitable a track is for dancing based on
// a combination of musical elements including tempo, rhythm stability,
// beat strength, and overall regularity.
// A value of 0.0 is least danceable and 1.0 is most danceable. | |
c9098 | // MinDanceability sets the minimum danceability
// Danceability describes how suitable a track is for dancing based on
// a combination of musical elements including tempo, rhythm stability,
// beat strength, and overall regularity.
// A value of 0.0 is least danceable and 1.0 is most danceable. | |
c9099 | // TargetDanceability sets the target danceability
// Danceability describes how suitable a track is for dancing based on
// a combination of musical elements including tempo, rhythm stability,
// beat strength, and overall regularity.
// A value of 0.0 is least danceable and 1.0 is most danceable. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.