_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c9000 | train | // generate fixed size array | {
"resource": ""
} | ||
c9001 | train | // only compare uint64 to uint64 | {
"resource": ""
} | ||
c9002 | train | // ParserExpression is an internal Parser routine - the
// main one for parsing expressions | {
"resource": ""
} | ||
c9003 | train | // set newsize to 0 to truncate everything | {
"resource": ""
} | ||
c9004 | train | // nestedPathGetSet does a top-down lookup, as opposed to LexicalLookupSymbol which is bottom up | {
"resource": ""
} | ||
c9005 | train | // FieldError wraps a given Validator error providing a message call stack. | {
"resource": ""
} | ||
c9006 | train | // create a function to initialize our app and yaag middleware
// in order to be used on the test file as well. | {
"resource": ""
} | ||
c9007 | train | // New returns a new yaag iris-compatible handler which is responsible to generate the rest API. | {
"resource": ""
} | ||
c9008 | train | // New creates and returns new instance of Money. | {
"resource": ""
} | ||
c9009 | train | // SameCurrency check if given Money is equals by currency. | {
"resource": ""
} | ||
c9010 | train | // Equals checks equality between two Money types. | {
"resource": ""
} | ||
c9011 | train | // Absolute returns new Money struct from given Money using absolute monetary value. | {
"resource": ""
} | ||
c9012 | train | // Negative returns new Money struct from given Money using negative monetary value. | {
"resource": ""
} | ||
c9013 | train | // Add returns new Money struct with value representing sum of Self and Other Money. | {
"resource": ""
} | ||
c9014 | train | // Subtract returns new Money struct with value representing difference of Self and Other Money. | {
"resource": ""
} | ||
c9015 | train | // Multiply returns new Money struct with value representing Self multiplied value by multiplier. | {
"resource": ""
} | ||
c9016 | train | // Divide returns new Money struct with value representing Self division value by given divider. | {
"resource": ""
} | ||
c9017 | train | // Round returns new Money struct with value rounded to nearest zero. | {
"resource": ""
} | ||
c9018 | train | // 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. | {
"resource": ""
} | ||
c9019 | train | // 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. | {
"resource": ""
} | ||
c9020 | train | // Display lets represent Money struct as string in given Currency value. | {
"resource": ""
} | ||
c9021 | train | // AddCurrency lets you insert or update currency in currencies list. | {
"resource": ""
} | ||
c9022 | train | // Formatter returns currency formatter representing
// used currency structure. | {
"resource": ""
} | ||
c9023 | train | // getDefault represent default currency if currency is not found in currencies list.
// Grapheme and Code fields will be changed by currency code. | {
"resource": ""
} | ||
c9024 | train | // get extended currency using currencies list. | {
"resource": ""
} | ||
c9025 | train | // NewFormatter creates new Formatter instance. | {
"resource": ""
} | ||
c9026 | train | // Format returns string of formatted integer using given currency template. | {
"resource": ""
} | ||
c9027 | train | // 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. | {
"resource": ""
} | ||
c9028 | train | // baseHashes returns the four hash values of data that are used to create k
// hashes | {
"resource": ""
} | ||
c9029 | train | // NewWithEstimates creates a new Bloom filter for about n items with fp
// false positive rate | {
"resource": ""
} | ||
c9030 | train | // Merge the data from two Bloom Filters. | {
"resource": ""
} | ||
c9031 | train | // Copy creates a copy of a Bloom filter. | {
"resource": ""
} | ||
c9032 | train | // 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. | {
"resource": ""
} | ||
c9033 | train | // Equal tests for the equality of two Bloom filters | {
"resource": ""
} | ||
c9034 | train | // Locations returns a list of hash locations representing a data item. | {
"resource": ""
} | ||
c9035 | train | // New initialize a new StateMachine that hold states, events definitions | {
"resource": ""
} | ||
c9036 | train | // Initial define the initial state | {
"resource": ""
} | ||
c9037 | train | // State define a state | {
"resource": ""
} | ||
c9038 | train | // Event define an event | {
"resource": ""
} | ||
c9039 | train | // Trigger trigger an event | {
"resource": ""
} | ||
c9040 | train | // Enter register an enter hook for State | {
"resource": ""
} | ||
c9041 | train | // Exit register an exit hook for State | {
"resource": ""
} | ||
c9042 | train | // To define EventTransition of go to a state | {
"resource": ""
} | ||
c9043 | train | // From used to define from states | {
"resource": ""
} | ||
c9044 | train | // Before register before hooks | {
"resource": ""
} | ||
c9045 | train | // After register after hooks | {
"resource": ""
} | ||
c9046 | train | // GenerateReferenceKey generate reference key used for change log | {
"resource": ""
} | ||
c9047 | train | // GetStateChangeLogs get state change logs | {
"resource": ""
} | ||
c9048 | train | // GetUsersPublicProfile gets public profile information about a
// Spotify User. It does not require authentication. | {
"resource": ""
} | ||
c9049 | train | // CurrentUsersTracksOpt is like CurrentUsersTracks, but it accepts additional
// options for sorting and filtering the results. | {
"resource": ""
} | ||
c9050 | train | // 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. | {
"resource": ""
} | ||
c9051 | train | // 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. | {
"resource": ""
} | ||
c9052 | train | // 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. | {
"resource": ""
} | ||
c9053 | train | // 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. | {
"resource": ""
} | ||
c9054 | train | // 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... | {
"resource": ""
} | ||
c9055 | train | // 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. | {
"resource": ""
} | ||
c9056 | train | // 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. | {
"resource": ""
} | ||
c9057 | train | // Exchange is like Token, except it allows you to manually specify the access
// code instead of pulling it out of an HTTP request. | {
"resource": ""
} | ||
c9058 | train | // NewClient creates a Client that will use the specified access token for its API requests. | {
"resource": ""
} | ||
c9059 | train | // Token gets the client's current token. | {
"resource": ""
} | ||
c9060 | train | // GetAlbum gets Spotify catalog information for a single album, given its Spotify ID. | {
"resource": ""
} | ||
c9061 | train | // 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. | {
"resource": ""
} | ||
c9062 | train | // GetAlbumTracks gets the tracks for a particular album.
// If you only care about the tracks, this call is more efficient
// than GetAlbum. | {
"resource": ""
} | ||
c9063 | train | // 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 ... | {
"resource": ""
} | ||
c9064 | train | // FeaturedPlaylistsOpt gets a list of playlists featured by Spotify.
// It accepts a number of optional parameters via the opt argument. | {
"resource": ""
} | ||
c9065 | train | // 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. | {
"resource": ""
} | ||
c9066 | train | // 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 ... | {
"resource": ""
} | ||
c9067 | train | // GetPlaylist gets a playlist | {
"resource": ""
} | ||
c9068 | train | // GetPlaylistTracks gets full details of the tracks in a playlist, given the
// playlist's Spotify ID. | {
"resource": ""
} | ||
c9069 | train | // 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 ... | {
"resource": ""
} | ||
c9070 | train | // NewTrackToRemove creates a new TrackToRemove object with the specified
// track ID and playlist locations. | {
"resource": ""
} | ||
c9071 | train | // 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... | {
"resource": ""
} | ||
c9072 | train | // GetArtist gets Spotify catalog information for a single artist, given its Spotify ID. | {
"resource": ""
} | ||
c9073 | train | // 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... | {
"resource": ""
} | ||
c9074 | train | // 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. | {
"resource": ""
} | ||
c9075 | train | // 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. | {
"resource": ""
} | ||
c9076 | train | // PlayerDevices information about available devices for the current user.
//
// Requires the ScopeUserReadPlaybackState scope in order to read information | {
"resource": ""
} | ||
c9077 | train | // PlayerStateOpt is like PlayerState, but it accepts additional
// options for sorting and filtering the results. | {
"resource": ""
} | ||
c9078 | train | // PlayerCurrentlyPlayingOpt is like PlayerCurrentlyPlaying, but it accepts
// additional options for sorting and filtering the results. | {
"resource": ""
} | ||
c9079 | train | // PlayerRecentlyPlayedOpt is like PlayerRecentlyPlayed, but it accepts
// additional options for sorting and filtering the results. | {
"resource": ""
} | ||
c9080 | train | // 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... | {
"resource": ""
} | ||
c9081 | train | // PlayOpt is like Play but with more options | {
"resource": ""
} | ||
c9082 | train | // PauseOpt is like Pause but with more options
//
// Only expects PlayOptions.DeviceID, all other options will be ignored | {
"resource": ""
} | ||
c9083 | train | // SeekOpt is like Seek but with more options
//
// Only expects PlayOptions.DeviceID, all other options will be ignored | {
"resource": ""
} | ||
c9084 | train | // 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. | {
"resource": ""
} | ||
c9085 | train | // RepeatOpt is like Repeat but with more options
//
// Only expects PlayOptions.DeviceID, all other options will be ignored. | {
"resource": ""
} | ||
c9086 | train | // 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 | {
"resource": ""
} | ||
c9087 | train | // VolumeOpt is like Volume but with more options
//
// Only expects PlayOptions.DeviceID, all other options will be ignored | {
"resource": ""
} | ||
c9088 | train | // Shuffle switches shuffle on or off for user's playback.
//
// Requires the ScopeUserModifyPlaybackState in order to modify the player state | {
"resource": ""
} | ||
c9089 | train | // ShuffleOpt is like Shuffle but with more options
//
// Only expects PlayOptions.DeviceID, all other options will be ignored | {
"resource": ""
} | ||
c9090 | train | // 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. | {
"resource": ""
} | ||
c9091 | train | // 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. | {
"resource": ""
} | ||
c9092 | train | // GetCategoryPlaylists gets a list of Spotify playlists tagged with a paricular category. | {
"resource": ""
} | ||
c9093 | train | // GetCategoryPlaylistsOpt is like GetCategoryPlaylists, but it accepts optional
// arguments. | {
"resource": ""
} | ||
c9094 | train | // 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. | {
"resource": ""
} | ||
c9095 | train | // 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. | {
"resource": ""
} | ||
c9096 | train | // 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. | {
"resource": ""
} | ||
c9097 | train | // 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. | {
"resource": ""
} | ||
c9098 | train | // 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. | {
"resource": ""
} | ||
c9099 | train | // 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. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.