Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 876 for BOOL (0.2 seconds)

  1. internal/config/bool-flag.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package config
    
    import (
    	"encoding/json"
    	"fmt"
    	"strconv"
    	"strings"
    )
    
    // BoolFlag - wrapper bool type.
    type BoolFlag bool
    
    // String - returns string of BoolFlag.
    func (bf BoolFlag) String() string {
    	if bf {
    		return "on"
    	}
    
    	return "off"
    }
    
    // MarshalJSON - converts BoolFlag into JSON data.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Thu Apr 07 15:10:40 GMT 2022
    - 2.3K bytes
    - Click Count (0)
  2. internal/config/bool-flag_test.go

    		}
    	}
    }
    
    // Test BoolFlag.UnmarshalJSON()
    func TestBoolFlagUnmarshalJSON(t *testing.T) {
    	testCases := []struct {
    		data           []byte
    		expectedResult BoolFlag
    		expectedErr    bool
    	}{
    		{[]byte(`{}`), BoolFlag(false), true},
    		{[]byte(`["on"]`), BoolFlag(false), true},
    		{[]byte(`"junk"`), BoolFlag(false), true},
    		{[]byte(`""`), BoolFlag(true), false},
    		{[]byte(`"on"`), BoolFlag(true), false},
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 3.5K bytes
    - Click Count (0)
  3. api/go1.9.txt

    pkg syscall (netbsd-amd64), type Credential struct, NoSetGroups bool
    pkg syscall (netbsd-arm-cgo), type Credential struct, NoSetGroups bool
    pkg syscall (netbsd-arm), type Credential struct, NoSetGroups bool
    pkg syscall (openbsd-386-cgo), type Credential struct, NoSetGroups bool
    pkg syscall (openbsd-386), type Credential struct, NoSetGroups bool
    pkg syscall (openbsd-amd64-cgo), type Credential struct, NoSetGroups bool
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Mon Oct 04 20:20:20 GMT 2021
    - 10.7K bytes
    - Click Count (0)
  4. cmd/xl-storage-errors.go

    	"syscall"
    )
    
    // No space left on device error
    func isSysErrNoSpace(err error) bool {
    	return errors.Is(err, syscall.ENOSPC)
    }
    
    // Invalid argument, unsupported flags such as O_DIRECT
    func isSysErrInvalidArg(err error) bool {
    	return errors.Is(err, syscall.EINVAL)
    }
    
    // Input/output error
    func isSysErrIO(err error) bool {
    	return errors.Is(err, syscall.EIO)
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Mon Mar 06 16:56:29 GMT 2023
    - 3.8K bytes
    - Click Count (0)
  5. fastapi/_compat/shared.py

            raise  # pragma: no cover
    
    
    def _annotation_is_sequence(annotation: type[Any] | None) -> bool:
        if lenient_issubclass(annotation, (str, bytes)):
            return False
        return lenient_issubclass(annotation, sequence_types)
    
    
    def field_annotation_is_sequence(annotation: type[Any] | None) -> bool:
        origin = get_origin(annotation)
        if origin is Union or origin is UnionType:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 11 18:32:12 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  6. api/go1.19.txt

    pkg sort, func Find(int, func(int) int) (int, bool) #50340
    pkg sync/atomic, method (*Bool) CompareAndSwap(bool, bool) bool #50860
    pkg sync/atomic, method (*Bool) Load() bool #50860
    pkg sync/atomic, method (*Bool) Store(bool) #50860
    pkg sync/atomic, method (*Bool) Swap(bool) bool #50860
    pkg sync/atomic, method (*Int32) Add(int32) int32 #50860
    pkg sync/atomic, method (*Int32) CompareAndSwap(int32, int32) bool #50860
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Fri Dec 02 16:29:41 GMT 2022
    - 17.9K bytes
    - Click Count (0)
  7. migrator.go

    	ColumnType() (columnType string, ok bool) // varchar(64)
    	PrimaryKey() (isPrimaryKey bool, ok bool)
    	AutoIncrement() (isAutoIncrement bool, ok bool)
    	Length() (length int64, ok bool)
    	DecimalSize() (precision int64, scale int64, ok bool)
    	Nullable() (nullable bool, ok bool)
    	Unique() (unique bool, ok bool)
    	ScanType() reflect.Type
    	Comment() (value string, ok bool)
    	DefaultValue() (value string, ok bool)
    }
    
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Mon Oct 30 09:15:49 GMT 2023
    - 3.1K bytes
    - Click Count (0)
  8. tensorflow/c/c_test_util.h

                         const char* name = "split3");
    
    bool IsPlaceholder(const tensorflow::NodeDef& node_def);
    
    bool IsScalarConst(const tensorflow::NodeDef& node_def, int v);
    
    bool IsAddN(const tensorflow::NodeDef& node_def, int n);
    
    bool IsNeg(const tensorflow::NodeDef& node_def, const string& input);
    
    bool GetGraphDef(TF_Graph* graph, tensorflow::GraphDef* graph_def);
    
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Thu Aug 09 01:06:53 GMT 2018
    - 6K bytes
    - Click Count (0)
  9. tests/test_dependency_wrapped.py

    # Sync wrapper
    
    
    @noop_wrap
    def wrapped_dependency() -> bool:
        return True
    
    
    @noop_wrap
    def wrapped_gen_dependency() -> Generator[bool, None, None]:
        yield True
    
    
    @noop_wrap
    async def async_wrapped_dependency() -> bool:
        return True
    
    
    @noop_wrap
    async def async_wrapped_gen_dependency() -> AsyncGenerator[bool, None]:
        yield True
    
    
    @app.get("/wrapped-dependency/")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 11.2K bytes
    - Click Count (0)
  10. internal/s3select/sql/value.go

    }
    
    // ToBool returns the bool value; second return value refers to if the bool
    // conversion succeeded.
    func (v Value) ToBool() (val bool, ok bool) {
    	val, ok = v.value.(bool)
    	return val, ok
    }
    
    // ToTimestamp returns the timestamp value if present.
    func (v Value) ToTimestamp() (t time.Time, ok bool) {
    	t, ok = v.value.(time.Time)
    	return t, ok
    }
    
    // ToBytes returns the value if byte-slice.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 20.4K bytes
    - Click Count (0)
Back to Top