_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c171200 | validation | // New returns new EventBus with empty handlers. | {
"resource": ""
} | ||
c171201 | validation | // doSubscribe handles the subscription logic and is utilized by the public Subscribe functions | {
"resource": ""
} | ||
c171202 | validation | // Subscribe subscribes to a topic.
// Returns error if `fn` is not a function. | {
"resource": ""
} | ||
c171203 | validation | // HasCallback returns true if exists any callback subscribed to the topic. | {
"resource": ""
} | ||
c171204 | validation | // Unsubscribe removes callback defined for a topic.
// Returns error if there are no callbacks subscribed to the topic. | {
"resource": ""
} | ||
c171205 | validation | // Publish executes callback defined for a topic. Any additional argument will be transferred to the callback. | {
"resource": ""
} | ||
c171206 | validation | // NewNetworkBus - returns a new network bus object at the server address and path | {
"resource": ""
} | ||
c171207 | validation | // Start - helper method to serve a network bus service | {
"resource": ""
} | ||
c171208 | validation | // NewServer - create a new Server at the address and path | {
"resource": ""
} | ||
c171209 | validation | // HasClientSubscribed - True if a client subscribed to this server with the same topic | {
"resource": ""
} | ||
c171210 | validation | // Start - starts a service for remote clients to subscribe to events | {
"resource": ""
} | ||
c171211 | validation | // Register - Registers a remote handler to this event bus
// for a remote subscribe - a given client address only needs to subscribe once
// event will be republished in local event bus | {
"resource": ""
} | ||
c171212 | validation | // Valid determines if the provided `when` time is within the GTLDPeriod for the
// gTLD. E.g. whether a certificate issued at `when` with a subject identifier
// using the specified gTLD can be considered a valid use of the gTLD. | {
"resource": ""
} | ||
c171213 | validation | // HasValidTLD checks that a domain ends in a valid TLD that was delegated in
// the root DNS at the time specified. | {
"resource": ""
} | ||
c171214 | validation | // IsInTLDMap checks that a label is present in the TLD map. It does not
// consider the TLD's validity period and whether the TLD may have been removed,
// only whether it was ever a TLD that was delegated. | {
"resource": ""
} | ||
c171215 | validation | // Execute will check the given certificate to ensure that all of the DNS
// subject alternate names that specify a reverse DNS name under the respective
// IPv4 or IPv6 arpa zones are well formed. A Warn LintResult is returned if
// the name is in a reverse DNS zone but has the wrong number of labels. | {
"resource": ""
} | ||
c171216 | validation | // lintReversedIPAddressLabels lints the given name as either a reversed IPv4 or
// IPv6 address under the respective ARPA zone based on the address class. An
// error is returned if there aren't enough labels in the name after removing
// the relevant arpa suffix. | {
"resource": ""
} | ||
c171217 | validation | // CheckRDNSequenceWhiteSpace returns true if there is leading or trailing
// whitespace in any name attribute in the sequence, respectively. | {
"resource": ""
} | ||
c171218 | validation | // IsIA5String returns true if raw is an IA5String, and returns false otherwise. | {
"resource": ""
} | ||
c171219 | validation | // AllAlternateNameWithTagAreIA5 returns true if all sequence members with the
// given tag are encoded as IA5 strings, and false otherwise. If it encounters
// errors parsing asn1, err will be non-nil. | {
"resource": ""
} | ||
c171220 | validation | // IsEV returns true if the input is a known Extended Validation OID. | {
"resource": ""
} | ||
c171221 | validation | // Execute returns an Error LintResult if the certificate is not an EV
// certificate. CheckApplies has already verified the certificate contains one
// or more `.onion` subjects and so it must be an EV certificate. | {
"resource": ""
} | ||
c171222 | validation | // getData fetches the response body bytes from an HTTP get to the provider url,
// or returns an error. | {
"resource": ""
} | ||
c171223 | validation | // getGTLDData fetches the ICANN_GTLD_JSON and parses it into a list of
// util.GTLDPeriod objects, or returns an error. The gTLDEntries are returned
// as-is and may contain entries that were never delegated from the root DNS. | {
"resource": ""
} | ||
c171224 | validation | // delegatedGTLDs filters the provided list of GTLDPeriods removing any entries
// that were never delegated from the root DNS. | {
"resource": ""
} | ||
c171225 | validation | // validateGTLDs checks that all entries have a valid parseable DelegationDate
// string, and if not-empty, a valid parseable RemovalDate string. This function
// assumes an entry with an empty DelegationDate is an error. Use
// `delegatedGTLDs` to filter out entries that were never delegated before
// validating. | {
"resource": ""
} | ||
c171226 | validation | // init sets up command line flags | {
"resource": ""
} | ||
c171227 | validation | // IsNameAttribute returns true if the given ObjectIdentifier corresponds with
// the type of any name attribute for PKIX. | {
"resource": ""
} | ||
c171228 | validation | // MarshalJSON implements the json.Marshaler interface. | {
"resource": ""
} | ||
c171229 | validation | // String returns the canonical representation of a LintStatus as a string. | {
"resource": ""
} | ||
c171230 | validation | // EncodeLintDescriptionsToJSON outputs a description of each lint as JSON
// object, one object per line. | {
"resource": ""
} | ||
c171231 | validation | // LintCertificate runs all registered lints on c, producing a ZLint. | {
"resource": ""
} | ||
c171232 | validation | // CheckApplies returns true if the certificate is a subscriber certificate that
// contains a subject name ending in `.onion`. | {
"resource": ""
} | ||
c171233 | validation | // failResult is a small utility function for creating a failed lint result. | {
"resource": ""
} | ||
c171234 | validation | // CheckEffective returns true if c was issued on or after the EffectiveDate. If
// EffectiveDate is zero, CheckEffective always returns true. | {
"resource": ""
} | ||
c171235 | validation | // GetExtFromCert returns the extension with the matching OID, if present. If
// the extension if not present, it returns nil. | {
"resource": ""
} | ||
c171236 | validation | // Helper function that checks for a name type in a pkix.Name | {
"resource": ""
} | ||
c171237 | validation | //helper function to parse policyMapping extensions, returns slices of CertPolicyIds separated by domain | {
"resource": ""
} | ||
c171238 | validation | // printJSON prints v as JSON encoded with indent to stdout. It panics on any error. | {
"resource": ""
} | ||
c171239 | validation | // UnmarshalJSON implements the json.Unmarshaler interface.
// The URI is expected to be a quoted string. | {
"resource": ""
} | ||
c171240 | validation | // NewClient creates a new GitHub GraphQL API v4 client with the provided http.Client.
// If httpClient is nil, then http.DefaultClient is used.
//
// Note that GitHub GraphQL API v4 requires authentication, so
// the provided http.Client is expected to take care of that. | {
"resource": ""
} | ||
c171241 | validation | // NewEnterpriseClient creates a new GitHub GraphQL API v4 client for the GitHub Enterprise
// instance with the specified GraphQL endpoint URL, using the provided http.Client.
// If httpClient is nil, then http.DefaultClient is used.
//
// Note that GitHub GraphQL API v4 requires authentication, so
// the provided htt... | {
"resource": ""
} | ||
c171242 | validation | // Query executes a single GraphQL query request,
// with a query derived from q, populating the response into it.
// q should be a pointer to struct that corresponds to the GitHub GraphQL schema. | {
"resource": ""
} | ||
c171243 | validation | // Mutate executes a single GraphQL mutation request,
// with a mutation derived from m, populating the response into it.
// m should be a pointer to struct that corresponds to the GitHub GraphQL schema.
// Provided input will be set as a variable named "input". | {
"resource": ""
} | ||
c171244 | validation | // Fills the ListBox with the file names from current directory.
// Files which names do not match mask are filtered out.
// If select directory is set, then the ListBox contains only directories.
// Directory names ends with path separator | {
"resource": ""
} | ||
c171245 | validation | // Tries to find the best fit for the given path.
// It goes up until it gets into the existing directory.
// If all fails it returns working directory. | {
"resource": ""
} | ||
c171246 | validation | // Goes up in the directory tree if it is possible | {
"resource": ""
} | ||
c171247 | validation | // Enters the directory | {
"resource": ""
} | ||
c171248 | validation | // Destroy removes an object from its parental chain | {
"resource": ""
} | ||
c171249 | validation | // cache data from a new row span
// It imitates a random data by selecting values from predefined arrays. Sizes
// of all arrays should be different to make TableView data look more random | {
"resource": ""
} | ||
c171250 | validation | // returns the cell value for a given col and row. Col and row are absolute
// value. But cache keeps limited number of rows to minimize memory usage.
// So, the position of the value of the cell should be calculated
// To simplify, the function just returns empty string if the cell is not
// cached. It is unlikely but... | {
"resource": ""
} | ||
c171251 | validation | // Repaints everything on the screen | {
"resource": ""
} | ||
c171252 | validation | // AddWindow constucts a new Window, adds it to the composer automatically,
// and makes it active
// posX and posY are top left coordinates of the Window
// width and height are Window size
// title is a Window title | {
"resource": ""
} | ||
c171253 | validation | // DestroyWindow removes the Window from the list of managed Windows | {
"resource": ""
} | ||
c171254 | validation | // IsDeadKey returns true if the pressed key is the first key in
// the key sequence understood by composer. Dead key is never sent to
// any control | {
"resource": ""
} | ||
c171255 | validation | // SetTextDisplay sets which part of the title is displayed in case of the title
// is longer than the lable. Only AlignLeft and AlignRigth are valid values
// for the property. Any other value does is skipped and does not affect
// displaying the title | {
"resource": ""
} | ||
c171256 | validation | // NewRadioGroup creates a new RadioGroup | {
"resource": ""
} | ||
c171257 | validation | // Selected returns the number of currently selected radio
// button inside the group or -1 if no button is selected | {
"resource": ""
} | ||
c171258 | validation | // SelectItem makes the radio selected. The function returns false
// if it failed to find the radio in the radio group | {
"resource": ""
} | ||
c171259 | validation | // SetSelected selects the radio by its number. The function
// returns false if the number is invalid for the radio group | {
"resource": ""
} | ||
c171260 | validation | // AddItem add a new radio button to group | {
"resource": ""
} | ||
c171261 | validation | // NewColorParser creates a new string parser.
// str is a string to parse.
// defText is a default text color.
// defBack is a default background color.
// Default colors are applied in case of reset color tag | {
"resource": ""
} | ||
c171262 | validation | // NextElement parses and returns the next string element | {
"resource": ""
} | ||
c171263 | validation | // SetTitle changes the EditField content and emits OnChage eventif the new value does not equal to old one | {
"resource": ""
} | ||
c171264 | validation | // SetMaxWidth sets the maximum lenght of the EditField text. If the current text is longer it is truncated | {
"resource": ""
} | ||
c171265 | validation | // SetSize changes control size. Constant DoNotChange can be
// used as placeholder to indicate that the control attrubute
// should be unchanged.
// Method does nothing if new size is less than minimal size
// EditField height cannot be changed - it equals 1 always | {
"resource": ""
} | ||
c171266 | validation | // PopAttributes restores saved with PushAttributes colors. Function does
// nothing if there is no saved colors | {
"resource": ""
} | ||
c171267 | validation | // PushClip saves the current clipping window | {
"resource": ""
} | ||
c171268 | validation | // PopClip restores saved with PushClip clipping window | {
"resource": ""
} | ||
c171269 | validation | // InClipRect returns true if x and y position is inside current clipping
// rectangle | {
"resource": ""
} | ||
c171270 | validation | // SetSize sets the new Canvas size. If new size does not
// equal old size then Canvas is recreated and cleared
// with default colors. Both Canvas width and height must
// be greater than 2 | {
"resource": ""
} | ||
c171271 | validation | // Symbol returns the character and its attributes by its coordinates | {
"resource": ""
} | ||
c171272 | validation | // SetClipRect defines a new clipping rect. Maybe useful with PopClip and
// PushClip functions | {
"resource": ""
} | ||
c171273 | validation | // ClipRect returns the current clipping rectangle | {
"resource": ""
} | ||
c171274 | validation | // DrawHorizontalLine draws the part of the horizontal line that is inside
// current clipping rectangle | {
"resource": ""
} | ||
c171275 | validation | // DrawVerticalLine draws the part of the vertical line that is inside current
// clipping rectangle | {
"resource": ""
} | ||
c171276 | validation | // DrawRawText draws the part of text that is inside the current clipping
// rectangle. DrawRawText always paints string as is - no color changes.
// If you want to draw string with color changing commands included then
// use DrawText function | {
"resource": ""
} | ||
c171277 | validation | // DrawTextVertical draws the part of text that is inside the current clipping
// rectangle. DrawTextVertical always paints colorized string. If you want to draw
// raw string then use DrawRawTextVertical function | {
"resource": ""
} | ||
c171278 | validation | // DrawRawTextVertical draws the part of text that is inside the current clipping
// rectangle. DrawRawTextVertical always paints string as is - no color changes.
// If you want to draw string with color changing commands included then
// use DrawTextVertical function | {
"resource": ""
} | ||
c171279 | validation | // DrawFrame paints the frame without changing area inside it | {
"resource": ""
} | ||
c171280 | validation | // FillRect paints the area with r character using the current colors | {
"resource": ""
} | ||
c171281 | validation | // TextExtent calculates the width and the height of the text | {
"resource": ""
} | ||
c171282 | validation | // EnsureVisible makes the currently selected item visible and scrolls the item list if it is required | {
"resource": ""
} | ||
c171283 | validation | // Clear deletes all ListBox items | {
"resource": ""
} | ||
c171284 | validation | // own methods
// AddItem adds a new item to item list.
// Returns true if the operation is successful | {
"resource": ""
} | ||
c171285 | validation | // SelectItem selects item which number in the list equals
// id. If the item exists the ListBox scrolls the list to
// make the item visible.
// Returns true if the item is selected successfully | {
"resource": ""
} | ||
c171286 | validation | // Item returns item text by its index.
// If index is out of range an empty string and false are returned | {
"resource": ""
} | ||
c171287 | validation | // FindItem looks for an item in list which text equals
// to text, by default the search is casesensitive.
// Returns item number in item list or -1 if nothing is found. | {
"resource": ""
} | ||
c171288 | validation | // PartialFindItem looks for an item in list which text starts from
// the given substring, by default the search is casesensitive.
// Returns item number in item list or -1 if nothing is found. | {
"resource": ""
} | ||
c171289 | validation | // SelectedItemText returns text of currently selected item or empty sting if nothing is
// selected or ListBox is empty. | {
"resource": ""
} | ||
c171290 | validation | // RemoveItem deletes an item which number is id in item list
// Returns true if item is deleted | {
"resource": ""
} | ||
c171291 | validation | // SysColor returns attribute by its id for the current theme.
// The method panics if theme loop is detected - check if
// parent attribute is correct | {
"resource": ""
} | ||
c171292 | validation | // SysObject returns object look by its id for the current
// theme. E.g, border lines for frame or arrows for scrollbar.
// The method panics if theme loop is detected - check if
// parent attribute is correct | {
"resource": ""
} | ||
c171293 | validation | // SetThemePath changes the directory that contains themes.
// If new path does not equal old one, theme list reloads | {
"resource": ""
} | ||
c171294 | validation | // loadTheme loads the theme if it is not in the cache already.
// If theme is in the cache loadTheme does nothing | {
"resource": ""
} | ||
c171295 | validation | // ReloadTheme refresh cache entry for the theme with new
// data loaded from file. Use it to apply theme changes on
// the fly without resetting manager or restarting application | {
"resource": ""
} | ||
c171296 | validation | // ThemeInfo returns detailed info about theme | {
"resource": ""
} | ||
c171297 | validation | // Ellipsize truncates text to maxWidth by replacing a
// substring in the middle with ellipsis and keeping
// the beginning and ending of the string untouched.
// If maxWidth is less than 5 then no ellipsis is
// added, the text is just truncated from the right. | {
"resource": ""
} | ||
c171298 | validation | // CutText makes a text no longer than maxWidth | {
"resource": ""
} | ||
c171299 | validation | // AlignText calculates the initial position of the text
// output depending on str length and available width.
// The str is truncated in case of its lenght greater than
// width. Function returns shift that should be added to
// original label position before output instead of padding
// the string with spaces. The r... | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.