_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c6500
// FileLabel returns the SELinux label for this path or returns an error.
c6501
// SetKeyLabel takes a process label and tells the kernel to assign the // label to the next kernel keyring that gets created
c6502
// Get returns the Context as a string
c6503
// ClearLabels clears all reserved labels
c6504
// EnforceMode returns the current SELinux mode Enforcing, Permissive, Disabled
c6505
// Prevent users from relabing system files
c6506
// Chcon changes the `fpath` file object to the SELinux label `label`. // If `fpath` is a directory and `recurse`` is true, Chcon will walk the // directory tree setting the label.
c6507
// DupSecOpt takes an SELinux process label and returns security options that // can be used to set the SELinux Type and Level for future container processes.
c6508
// addToPathMap traverses through the AST adding SourceCodeInfo_Location entries to the pathMap. // Since the AST is a tree, the recursion finishes once it has gone through all the nodes.
c6509
// Warning does not handle message embedded like goTypeWithGoPackage does.
c6510
//Deprecated. Instead use goTypeWithEmbedded
c6511
// lowerGoNormalize takes a string and applies formatting // rules to conform to Golang convention. It applies a camel // case filter, lowers the first character and formats fields // with `id` to `ID`.
c6512
// goNormalize takes a string and applies formatting rules // to conform to Golang convention. It applies a camel case // filter and formats fields with `id` to `ID`.
c6513
// formatID takes a base string alonsgide a formatted string. // It acts as a transformation filter for fields containing // `id` in order to conform to Golang convention.
c6514
// SetSizePolicy sets the size policy for horizontal and vertical directions.
c6515
// Draw draws the progress bar.
c6516
// NewPainter returns a new instance of Painter.
c6517
// Translate pushes a new translation transform to the stack.
c6518
// Restore pops the latest transform from the stack.
c6519
// Repaint clears the surface, draws the scene and flushes it.
c6520
// DrawCursor draws the cursor at the given position.
c6521
// DrawRune paints a rune at the given coordinate.
c6522
// DrawText paints a string starting at the given coordinate.
c6523
// DrawHorizontalLine paints a horizontal line using box characters.
c6524
// DrawVerticalLine paints a vertical line using box characters.
c6525
// DrawRect paints a rectangle using box characters.
c6526
// FillRect clears a rectangular area with whitespace.
c6527
// WithStyle executes the provided function with the named Style applied on top of the current one.
c6528
// WithMask masks a painter to restrict painting within the given rectangle.
c6529
// CursorPos returns the coordinate for the cursor for a given width.
c6530
// MoveForward moves the cursor forward by one rune.
c6531
// MoveToLineStart moves the cursor to the start of the current line.
c6532
// MoveToLineEnd moves the cursor to the end of the current line.
c6533
// Backspace deletes the rune left of the cursor.
c6534
// Delete deletes the rune at the current cursor position.
c6535
// Kill deletes all runes from the cursor until the end of the line.
c6536
// WrapString wraps the input string by inserting newline characters. It does // not remove whitespace, but preserves the original text.
c6537
// Scroll shifts the views over the content.
c6538
// ScrollToBottom ensures the bottom-most part of the scroll area is visible.
c6539
// Draw draws the scroll area.
c6540
// Resize resizes the scroll area and the underlying widget.
c6541
// FocusNext returns the widget in the ring that is after the given widget.
c6542
// FocusDefault returns the default widget for when there is no widget // currently focused.
c6543
// Resize changes the size of the Widget.
c6544
// Draw draws the label.
c6545
// SizeHint returns the recommended size for the label.
c6546
// SetText sets the text content of the label.
c6547
// Append adds the given widget at the end of the Box.
c6548
// Prepend adds the given widget at the start of the Box.
c6549
// Insert adds the widget into the Box at a given index.
c6550
// Remove deletes the widget from the Box at a given index.
c6551
// IsFocused return true if one of the children is focused.
c6552
// Draw recursively draws the widgets it contains.
c6553
// MinSizeHint returns the minimum size hint for the layout.
c6554
// SizeHint returns the recommended size hint for the layout.
c6555
// Resize recursively updates the size of the Box and all the widgets it // contains. This is a potentially expensive operation and should be invoked // with restraint. // // Resize is called by the layout engine and is not intended to be used by end // users.
c6556
// Name returns a user-friendly description of the key press.
c6557
// NewGrid returns a new Grid.
c6558
// Draw draws the grid.
c6559
// MinSizeHint returns the minimum size hint for the grid.
c6560
// SizeHint returns the recommended size hint for the grid.
c6561
// Resize recursively updates the size of the Grid and all the widgets it // contains. This is a potentially expensive operation and should be invoked // with restraint. // // Resize is called by the layout engine and is not intended to be used by end // users.
c6562
// SetCell sets or replaces the contents of a cell.
c6563
// AppendRow adds a new row at the end.
c6564
// RemoveRows will remove all the rows in grid
c6565
// SetRowStretch sets the stretch factor for a given row. For more on stretch // factors, see SetColumnStretch.
c6566
// Quit signals to the UI to start shutting down.
c6567
// trimRightLen returns s with n runes trimmed off
c6568
// Draw draws the status bar.
c6569
// Draw decorates the Draw call to the widget with a style.
c6570
// SizeHint returns the recommended size for the entry.
c6571
// NewPadder returns a new Padder. // The enclosed Widget is given horizontal margin of x on the right and x on the left, // and a vertical margin of y on the top and y on the bottom.
c6572
// Draw draws the padded widget.
c6573
// Size returns the size of the padded widget.
c6574
// Resize updates the size of the padded widget.
c6575
// Draw draws the button.
c6576
// SizeHint returns the recommended size hint for the button.
c6577
// OnKeyEvent handles keys events.
c6578
// mergeIn returns the receiver Style, with any changes in delta applied.
c6579
// SetStyle sets a style for a given identifier.
c6580
// HasStyle returns whether an identifier is associated with an identifier.
c6581
// NewTable returns a new Table.
c6582
// RemoveRow removes specific row from the table
c6583
// Draw draws the list.
c6584
// SizeHint returns the recommended size for the list.
c6585
// OnKeyEvent handles terminal events.
c6586
// AddItems appends items to the end of the list.
c6587
// RemoveItems clears all the items from the list.
c6588
// RemoveItem removes the item at the given position.
c6589
// unquote unquotes the quoted string, returning the actual // string value, whether the original was triple-quoted, and // an error describing invalid input.
c6590
// indexByte returns the index of the first instance of b in s, or else -1.
c6591
// quote returns the quoted form of the string value "x". // If triple is true, quote uses the triple-quoted form """x""".
c6592
// AllocComments enables comments to be associated with a syntax node.
c6593
// AsFloat returns the float64 value closest to x. // The f result is undefined if x is not a float or int.
c6594
// Globals returns a new, unfrozen StringDict containing all global // variables so far defined in the function's module.
c6595
// NewBuiltin returns a new 'builtin_function_or_method' value with the specified name // and implementation. It compares unequal with all other values.
c6596
// checkMutable reports an error if the list should not be mutated. // verb+" list" should describe the operation. // Structural mutations are not permitted during iteration.
c6597
// Equal reports whether two Skylark values are equal.
c6598
// EqualDepth reports whether two Skylark values are equal. // // Recursive comparisons by implementations of Value.CompareSameType // should use EqualDepth to prevent infinite recursion.
c6599
// Compare compares two Skylark values. // The comparison operation must be one of EQL, NEQ, LT, LE, GT, or GE. // Compare returns an error if an ordered comparison was // requested for a type that does not support it. // // Recursive comparisons by implementations of Value.CompareSameType // should use CompareDepth to prevent infinite recursion.