_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c181600
test
// NewV5 creates a new UUID with variant 5 as described in RFC 4122. // Variant 5 based namespace-uuid and name and SHA-1 hash calculation.
{ "resource": "" }
c181601
test
// Sort returns a sorted list of LexSymbols, sorted by Priority
{ "resource": "" }
c181602
test
// Less returns true if the i-th element's Priority is less than the j-th element
{ "resource": "" }
c181603
test
// Swap swaps the elements at i and j
{ "resource": "" }
c181604
test
// Copy creates a new copy of the given LexSymbolSet
{ "resource": "" }
c181605
test
// Set creates and sets a new LexItem to `name`
{ "resource": "" }
c181606
test
// GetSortedList returns the lsit of LexSymbols in order that they should // be searched for in the tempalte
{ "resource": "" }
c181607
test
// Top returns the element at the top of the stack or an error if stack is empty
{ "resource": "" }
c181608
test
// Resize changes the size of the underlying buffer
{ "resource": "" }
c181609
test
// Extend changes the size of the underlying buffer, extending it by `extendBy`
{ "resource": "" }
c181610
test
// Grow automatically grows the underlying buffer so that it can hold at // least `min` elements
{ "resource": "" }
c181611
test
// Get returns the element at position `i`
{ "resource": "" }
c181612
test
// Set sets the element at position `i` to `v`. The stack size is automatically // adjusted.
{ "resource": "" }
c181613
test
// Push adds an element at the end of the stack
{ "resource": "" }
c181614
test
// Pop removes and returns the item at the end of the stack
{ "resource": "" }
c181615
test
// String returns the textual representation of the stack
{ "resource": "" }
c181616
test
// GetHostIPs returns a list of IP addresses of all host's interfaces.
{ "resource": "" }
c181617
test
// GetPrivateHostIPs returns a list of host's private IP addresses.
{ "resource": "" }
c181618
test
// IsPrivate determines whether a passed IP address is from one of private blocks or not.
{ "resource": "" }
c181619
test
// Identical to os.Environ, but limited to the environment variable equivalents // for the flags your program cares about.
{ "resource": "" }
c181620
test
// Just like os.Getenv, but with a second return value; a boolean specifying // if name was actually set in the environment.
{ "resource": "" }
c181621
test
// To be unix'y, we translate flagnames to their uppercase equivalents.
{ "resource": "" }
c181622
test
// NewPolicy returns a default password policy which can be modified
{ "resource": "" }
c181623
test
// CreateRandom returns a random byte string of given length from given byte string
{ "resource": "" }
c181624
test
// Shuffle the given byte string
{ "resource": "" }
c181625
test
// Generate a new password based on given policy
{ "resource": "" }
c181626
test
// Returns same path as Executable, returns just the folder // path. Excludes the executable name.
{ "resource": "" }
c181627
test
// Ignore is a sentinel option to add ignore error handlers.
{ "resource": "" }
c181628
test
// Sigs is a sentinel option to set the specified signals for shutdown.
{ "resource": "" }
c181629
test
// Logf is a sentinel option to set a logger.
{ "resource": "" }
c181630
test
// Errorf is a sentinel option to set a error logger.
{ "resource": "" }
c181631
test
// New creates a new sentinel server group.
{ "resource": "" }
c181632
test
// Run starts the server group, returning the first encountered error upon // shutdown.
{ "resource": "" }
c181633
test
// Shutdown calls all registered shutdown funcs.
{ "resource": "" }
c181634
test
// ShutdownIgnore returns if any of the registered ignore funcs reported true.
{ "resource": "" }
c181635
test
// Register registers a server, its shutdown func, and ignore error funcs.
{ "resource": "" }
c181636
test
// Mux creates a new network connection muxer and registers its server, // shutdown, and ignore error funcs.
{ "resource": "" }
c181637
test
// HTTP creates a HTTP server and registers it with the sentinel.
{ "resource": "" }
c181638
test
// IgnoreError returns a func that will return true when the passed errors // match.
{ "resource": "" }
c181639
test
// IgnoreNetOpError returns true when the passed error is a net.OpError with // error "use of closed network connection".
{ "resource": "" }
c181640
test
// convertAndAppendContextFuncs converts and appends funcs in v to o.
{ "resource": "" }
c181641
test
//Router sets up the Router - extracted for testability
{ "resource": "" }
c181642
test
// buildInfoHandler - This is a stop gap and will be added to when we can define what we should display here
{ "resource": "" }
c181643
test
// jsonEncoder is an Encoder that produces JSON-formatted responses.
{ "resource": "" }
c181644
test
// Total errors is the sum of errors with the request overall // and errors on individual fields.
{ "resource": "" }
c181645
test
// Converts options into CORS headers.
{ "resource": "" }
c181646
test
// Converts options into CORS headers for a preflight response.
{ "resource": "" }
c181647
test
// Looks up if the origin matches one of the patterns // provided in Options.AllowOrigins patterns.
{ "resource": "" }
c181648
test
// Renderer is a Middleware that maps a render.Render service into the Martini handler chain. An single variadic render.Options // struct can be optionally provided to configure HTML rendering. The default directory for templates is "templates" and the default // file extension is ".tmpl". // // If MARTINI_ENV is set to "" or "development" then templates will be recompiled on every request. For more performance, set the // MARTINI_ENV environment variable to "production"
{ "resource": "" }
c181649
test
// Returns the parsed languages in a human readable fashion.
{ "resource": "" }
c181650
test
// Creates a new handler that parses the Accept-Language HTTP header. // // The parsed structure is a slice of Accept-Language values stored in an // AcceptLanguages instance, sorted based on the language qualifier.
{ "resource": "" }
c181651
test
// strip Prefix for every incoming http request
{ "resource": "" }
c181652
test
// UpdateUser updates the User object stored in the session. This is useful incase a change // is made to the user model that needs to persist across requests.
{ "resource": "" }
c181653
test
// GetById will populate a user object from a database model with // a matching id.
{ "resource": "" }
c181654
test
// AddressToAccountId converts the provided address into a xdr.AccountId
{ "resource": "" }
c181655
test
// MutateChangeTrust for Asset sets the ChangeTrustOp's Line field
{ "resource": "" }
c181656
test
// MutateChangeTrust for Limit sets the ChangeTrustOp's Limit field
{ "resource": "" }
c181657
test
// Trust is a helper that creates ChangeTrustBuilder
{ "resource": "" }
c181658
test
// RemoveTrust is a helper that creates ChangeTrustBuilder
{ "resource": "" }
c181659
test
// MutatePayment for Asset sets the PaymentOp's Asset field
{ "resource": "" }
c181660
test
// MutatePayment for Destination sets the PaymentOp's Destination field
{ "resource": "" }
c181661
test
// MutatePayment for NativeAmount sets the PaymentOp's currency field to // native and sets its amount to the provided integer
{ "resource": "" }
c181662
test
// MutatePayment for PayWithPath sets the PathPaymentOp's SendAsset, // SendMax and Path fields
{ "resource": "" }
c181663
test
// MutateAccountMerge for Destination sets the AccountMergeBuilder's Destination field
{ "resource": "" }
c181664
test
// MustParse is the panicking version of Parse
{ "resource": "" }
c181665
test
// Parse parses the provided as a stellar "amount", i.e. A 64-bit signed integer // that represents a decimal number with 7 digits of significance in the // fractional portion of the number.
{ "resource": "" }
c181666
test
// String returns an "amount string" from the provided raw value `v`.
{ "resource": "" }
c181667
test
// CreateOffer creates a new offer
{ "resource": "" }
c181668
test
// CreatePassiveOffer creates a new passive offer
{ "resource": "" }
c181669
test
// UpdateOffer updates an existing offer
{ "resource": "" }
c181670
test
// DeleteOffer deletes an existing offer
{ "resource": "" }
c181671
test
// ManageOffer groups the creation of a new ManageOfferBuilder with a call to Mutate.
{ "resource": "" }
c181672
test
// Mutate applies the provided mutators to this builder's offer or operation.
{ "resource": "" }
c181673
test
// MutateManageOffer for Amount sets the ManageOfferOp's Amount field
{ "resource": "" }
c181674
test
// MutateManageOffer for OfferID sets the ManageOfferOp's OfferID field
{ "resource": "" }
c181675
test
// MutateManageOffer for Rate sets the ManageOfferOp's selling, buying and price fields
{ "resource": "" }
c181676
test
// MutateOperation for SourceAccount sets the operation's SourceAccount // to the pubilic key for the address provided
{ "resource": "" }
c181677
test
// String returns a string represenation of `p`
{ "resource": "" }
c181678
test
// Transaction groups the creation of a new TransactionBuilder with a call // to Mutate.
{ "resource": "" }
c181679
test
// Mutate applies the provided TransactionMutators to this builder's transaction
{ "resource": "" }
c181680
test
// Hash returns the hash of this builder's transaction.
{ "resource": "" }
c181681
test
// HashHex returns the hex-encoded hash of this builder's transaction
{ "resource": "" }
c181682
test
// Sign returns an new TransactionEnvelopeBuilder using this builder's // transaction as the basis and with signatures of that transaction from the // provided Signers.
{ "resource": "" }
c181683
test
// MutateTransaction for AllowTrustBuilder causes the underylying AllowTrustOp // to be added to the operation list for the provided transaction
{ "resource": "" }
c181684
test
// MutateTransaction for ChangeTrustBuilder causes the underylying // CreateAccountOp to be added to the operation list for the provided // transaction
{ "resource": "" }
c181685
test
// MutateTransaction for CreateAccountBuilder causes the underylying // CreateAccountOp to be added to the operation list for the provided // transaction
{ "resource": "" }
c181686
test
// MutateTransaction for Defaults sets reasonable defaults on the transaction being built
{ "resource": "" }
c181687
test
// MutateTransaction for InflationBuilder causes the underylying // InflationOp to be added to the operation list for the provided // transaction
{ "resource": "" }
c181688
test
// MutateTransaction for ManageDataBuilder causes the underylying // ManageData to be added to the operation list for the provided // transaction
{ "resource": "" }
c181689
test
// MutateTransaction for ManageOfferBuilder causes the underylying // ManageData to be added to the operation list for the provided // transaction
{ "resource": "" }
c181690
test
// MutateTransaction for MemoHash sets the memo.
{ "resource": "" }
c181691
test
// MutateTransaction for MemoID sets the memo.
{ "resource": "" }
c181692
test
// MutateTransaction for MemoReturn sets the memo.
{ "resource": "" }
c181693
test
// MutateTransaction for MemoText sets the memo.
{ "resource": "" }
c181694
test
// MutateTransaction for Network sets the Network ID to use when signing this transaction
{ "resource": "" }
c181695
test
// MutateTransaction for PaymentBuilder causes the underylying PaymentOp // or PathPaymentOp to be added to the operation list for the provided transaction
{ "resource": "" }
c181696
test
// MutateTransaction for SetOptionsBuilder causes the underylying // SetOptionsOp to be added to the operation list for the provided // transaction
{ "resource": "" }
c181697
test
// MutateTransaction for Sequence sets the SeqNum on the transaction.
{ "resource": "" }
c181698
test
// MutateTransaction for SourceAccount sets the transaction's SourceAccount // to the pubilic key for the address provided
{ "resource": "" }
c181699
test
// Scan reads from src into an Int64
{ "resource": "" }