_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c171300 | validation | // SliceColorized returns a slice of text with correct color
// tags. start and end are real printable rune indices | {
"resource": ""
} | ||
c171301 | validation | // ColorToString returns string representation of the attribute | {
"resource": ""
} | ||
c171302 | validation | // MainLoop starts the main application event loop | {
"resource": ""
} | ||
c171303 | validation | // NewEditField creates a new EditField control
// view - is a View that manages the control
// parent - is container that keeps the control. The same View can be a view and a parent at the same time.
// width - is minimal width of the control.
// text - text to edit.
// scale - the way of scaling the control when the ... | {
"resource": ""
} | ||
c171304 | validation | // ChildAt returns the children of parent control that is at absolute
// coordinates x, y. Returns nil if x, y are outside parent control and
// returns parent if no child is at x, y | {
"resource": ""
} | ||
c171305 | validation | // DeactivateControls makes all children of parent inactive | {
"resource": ""
} | ||
c171306 | validation | // ActivateControl makes control active and disables all other children of
// the parent. Returns true if control was found and activated | {
"resource": ""
} | ||
c171307 | validation | // FindChild returns control if it is a child of the parent and nil otherwise | {
"resource": ""
} | ||
c171308 | validation | // IsMouseClickEvent returns if a user action can be treated as mouse click. | {
"resource": ""
} | ||
c171309 | validation | // FindFirstControl returns the first child for that fn returns true.
// The function is used to find active or tab-stop control | {
"resource": ""
} | ||
c171310 | validation | // ActiveControl returns the active child of the parent or nil if no child is
// active | {
"resource": ""
} | ||
c171311 | validation | // FindFirstActiveControl returns the first active control of a parent | {
"resource": ""
} | ||
c171312 | validation | // SendEventToChild tries to find a child control that should recieve the evetn
// For mouse click events it looks for a control at coordinates of event,
// makes it active, and then sends the event to it.
// If it is not mouse click event then it looks for the first active child and
// sends the event to it if it is n... | {
"resource": ""
} | ||
c171313 | validation | // CalcClipper calculates the clipper size based on the control's size, position
// and paddings | {
"resource": ""
} | ||
c171314 | validation | // ClippedParent finds the first c parent with clipped flag | {
"resource": ""
} | ||
c171315 | validation | // ControlInRect returns true if c is within a given rect | {
"resource": ""
} | ||
c171316 | validation | // CreateAlertDialog creates a new alert dialog.
// title is a dialog title
// message is a text inside dialog for user to be notified of a fact
// button is a title for button inside dialog. | {
"resource": ""
} | ||
c171317 | validation | //ProcessEvent processes all events come from the control parent. If a control
// processes an event it should return true. If the method returns false it means
// that the control do not want or cannot process the event and the caller sends
// the event to the control parent | {
"resource": ""
} | ||
c171318 | validation | // SetState changes the current state of CheckBox
// Value must be 0 or 1 if Allow3State is off,
// and 0, 1, or 2 if Allow3State is on | {
"resource": ""
} | ||
c171319 | validation | // State returns current state of CheckBox | {
"resource": ""
} | ||
c171320 | validation | // SetAllow3State sets if ComboBox should use 3 states. If the current
// state is unknown and one disables Allow3State option then the current
// value resets to off | {
"resource": ""
} | ||
c171321 | 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
// CheckBox height cannot be changed - it equals 1 always | {
"resource": ""
} | ||
c171322 | validation | // ScrollTo in case of a scrollable frame this api will scroll the content
// without adjusting the clipper | {
"resource": ""
} | ||
c171323 | validation | // EnsureColVisible scrolls the table horizontally
// to make the currently selected column fully visible | {
"resource": ""
} | ||
c171324 | validation | // EnsureRowVisible scrolls the table vertically
// to make the currently selected row visible | {
"resource": ""
} | ||
c171325 | validation | // Columns returns the current list of table columns | {
"resource": ""
} | ||
c171326 | validation | // SetColumnInfo replaces the existing column info | {
"resource": ""
} | ||
c171327 | validation | // OnKeyPress sets the callback that is called when a user presses a Key while
// the controls is active. If a handler processes the key it should return
// true. If handler returns false it means that the default handler has to
// process the key | {
"resource": ""
} | ||
c171328 | validation | // OnDrawCell is called every time the table is going to display
// a cell | {
"resource": ""
} | ||
c171329 | validation | // SetSelectedRow changes the currently selected row.
// If row is greater than number of row the last row
// is selected. Set row to -1 to turn off selection.
// The table scrolls automatically to display the column | {
"resource": ""
} | ||
c171330 | validation | // SetSelectedCol changes the currently selected column.
// If column is greater than number of columns the last
// column is selected. Set row to -1 to turn off selection.
// The table scrolls automatically to display the column | {
"resource": ""
} | ||
c171331 | validation | // SetSelected makes the button selected. One should not use
// the method directly, it is for RadioGroup control | {
"resource": ""
} | ||
c171332 | validation | // OnChange sets the callback that is called whenever the state
// of the Radio is changed. Argument of callback is the current | {
"resource": ""
} | ||
c171333 | validation | // SetText replaces existing content of the control | {
"resource": ""
} | ||
c171334 | validation | // SetWordWrap enables or disables wordwrap mode | {
"resource": ""
} | ||
c171335 | validation | // LoadFile loads a text from file and replace the control
// text with the file one.
// Function returns false if loading text from file fails | {
"resource": ""
} | ||
c171336 | validation | // AddText appends a text to the end of the control content.
// View position may be changed automatically depending on
// value of AutoScroll | {
"resource": ""
} | ||
c171337 | validation | // Value returns the current ProgressBar value | {
"resource": ""
} | ||
c171338 | validation | // SetLimits set new ProgressBar limits. The current value
// is adjusted if it exceeds new limits | {
"resource": ""
} | ||
c171339 | validation | // Step increases ProgressBar value by 1 if the value is less
// than ProgressBar high limit | {
"resource": ""
} | ||
c171340 | validation | // SecondaryColors returns text and background colors for empty
// part of the ProgressBar | {
"resource": ""
} | ||
c171341 | validation | // SetSecondaryColors sets new text and background colors for
// empty part of the ProgressBar | {
"resource": ""
} | ||
c171342 | validation | // SetAutoSize enables or disables automatic bar
// width calculation | {
"resource": ""
} | ||
c171343 | validation | // SetGap sets the space width between two adjacent bars | {
"resource": ""
} | ||
c171344 | validation | // SetMinBarWidth changes the minimal bar width | {
"resource": ""
} | ||
c171345 | validation | // SetShowTitles turns on and off horizontal axis and bar titles | {
"resource": ""
} | ||
c171346 | validation | // SetLegendWidth sets new legend panel width | {
"resource": ""
} | ||
c171347 | validation | // OnDrawCell sets callback that allows to draw multicolored
// bars. BarChart sends the current attrubutes and rune that
// it is going to use to display as well as the current value
// of the bar. A user can change the values of BarDataCell
// depending on some external data or calculations - only
// changing colors ... | {
"resource": ""
} | ||
c171348 | validation | // SetShowMarks turns on and off marks under horizontal axis | {
"resource": ""
} | ||
c171349 | validation | // OnKeyDown sets the callback that is called when a user presses a key
// while the Window is active | {
"resource": ""
} | ||
c171350 | validation | // SetMaximized opens the view to full screen or restores its
// previous size | {
"resource": ""
} | ||
c171351 | validation | // SetVisible allows to temporarily remove the window from screen
// and show it later without reconstruction | {
"resource": ""
} | ||
c171352 | validation | // SetTop sets the theoretical highest value of data flow
// to scale the chart | {
"resource": ""
} | ||
c171353 | validation | // SetAutoScale changes the way of scaling the data flow | {
"resource": ""
} | ||
c171354 | validation | // SetHilitePeaks enables or disables hiliting maximum
// values with different colors | {
"resource": ""
} | ||
c171355 | validation | // Load the ENV variables to the env map | {
"resource": ""
} | ||
c171356 | validation | // Get a value from the ENV. If it doesn't exist the
// default value will be returned. | {
"resource": ""
} | ||
c171357 | validation | // Get a value from the ENV. If it doesn't exist
// an error will be returned | {
"resource": ""
} | ||
c171358 | validation | // Set a value into the ENV. This is NOT permanent. It will
// only affect values accessed through envy. | {
"resource": ""
} | ||
c171359 | validation | // MustSet the value into the underlying ENV, as well as envy.
// This may return an error if there is a problem setting the
// underlying ENV value. | {
"resource": ""
} | ||
c171360 | validation | // GoPaths returns all possible GOPATHS that are set. | {
"resource": ""
} | ||
c171361 | validation | // CurrentModule will attempt to return the module name from `go.mod` if
// modules are enabled.
// If modules are not enabled it will fallback to using CurrentPackage instead. | {
"resource": ""
} | ||
c171362 | validation | // change timeout to time.Duration | {
"resource": ""
} | ||
c171363 | validation | // validate checks the notificationRequest has 0<Interests<11 and has a
// APNS, GCM or FCM payload | {
"resource": ""
} | ||
c171364 | validation | // NewNetworkNumber returns a equivalent NetworkNumber to given IP address,
// return nil if ip is neither IPv4 nor IPv6. | {
"resource": ""
} | ||
c171365 | validation | // ToIP returns equivalent net.IP. | {
"resource": ""
} | ||
c171366 | validation | // Equal is the equality test for 2 network numbers. | {
"resource": ""
} | ||
c171367 | validation | // Next returns the next logical network number. | {
"resource": ""
} | ||
c171368 | validation | // Previous returns the previous logical network number. | {
"resource": ""
} | ||
c171369 | validation | // NewNetwork returns Network built using given net.IPNet. | {
"resource": ""
} | ||
c171370 | validation | // Masked returns a new network conforming to new mask. | {
"resource": ""
} | ||
c171371 | validation | // Contains returns true if NetworkNumber is in range of Network, false
// otherwise. | {
"resource": ""
} | ||
c171372 | validation | // Contains returns true if Network covers o, false otherwise | {
"resource": ""
} | ||
c171373 | validation | // LeastCommonBitPosition returns the smallest position of the preceding common
// bits of the 2 networks, and returns an error ErrNoGreatestCommonBit
// if the two network number diverges from the first bit. | {
"resource": ""
} | ||
c171374 | validation | // Equal is the equality test for 2 networks. | {
"resource": ""
} | ||
c171375 | validation | // Mask returns a new masked NetworkNumber from given NetworkNumber. | {
"resource": ""
} | ||
c171376 | validation | // NextIP returns the next sequential ip. | {
"resource": ""
} | ||
c171377 | validation | // PreviousIP returns the previous sequential ip. | {
"resource": ""
} | ||
c171378 | validation | // newPrefixTree creates a new prefixTrie. | {
"resource": ""
} | ||
c171379 | validation | // Insert inserts a RangerEntry into prefix trie. | {
"resource": ""
} | ||
c171380 | validation | // Remove removes RangerEntry identified by given network from trie. | {
"resource": ""
} | ||
c171381 | validation | // Contains returns boolean indicating whether given ip is contained in any
// of the inserted networks. | {
"resource": ""
} | ||
c171382 | validation | // String returns string representation of trie, mainly for visualization and
// debugging. | {
"resource": ""
} | ||
c171383 | validation | // walkDepth walks the trie in depth order, for unit testing. | {
"resource": ""
} | ||
c171384 | validation | // newBruteRanger returns a new Ranger. | {
"resource": ""
} | ||
c171385 | validation | // Insert inserts a RangerEntry into ranger. | {
"resource": ""
} | ||
c171386 | validation | // Remove removes a RangerEntry identified by given network from ranger. | {
"resource": ""
} | ||
c171387 | validation | // Contains returns bool indicating whether given ip is contained by any
// network in ranger. | {
"resource": ""
} | ||
c171388 | validation | // ParseMessage parse a raw Twitch IRC message | {
"resource": ""
} | ||
c171389 | validation | // NewClient to create a new client | {
"resource": ""
} | ||
c171390 | validation | // Say write something in a chat | {
"resource": ""
} | ||
c171391 | validation | // Whisper write something in private to someone on twitch
// whispers are heavily spam protected
// so your message might get blocked because of this
// verify your bot to prevent this | {
"resource": ""
} | ||
c171392 | validation | // Join enter a twitch channel to read more messages | {
"resource": ""
} | ||
c171393 | validation | // Depart leave a twitch channel | {
"resource": ""
} | ||
c171394 | validation | // Disconnect close current connection | {
"resource": ""
} | ||
c171395 | validation | // Connect connect the client to the irc server | {
"resource": ""
} | ||
c171396 | validation | // Userlist returns the userlist for a given channel | {
"resource": ""
} | ||
c171397 | validation | // Errors returned from handleLine break out of readConnections, which starts a reconnect
// This means that we should only return fatal errors as errors here | {
"resource": ""
} | ||
c171398 | validation | //Execute - generates concourse pipeline and tasks | {
"resource": ""
} | ||
c171399 | validation | //Execute - removes org users | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.