- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 162 for Zero (0.01 seconds)
-
.pre-commit-config.yaml
name: ruff check entry: uv run ruff check --force-exclude --fix --exit-non-zero-on-fix require_serial: true language: unsupported types: [python] - id: local-ruff-format name: ruff format entry: uv run ruff format --force-exclude --exit-non-zero-on-format require_serial: true language: unsupported types: [python]Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 11:36:58 GMT 2025 - 1.8K bytes - Click Count (1) -
misc/cgo/gmp/gmp.go
introduce a Go variable that points at the C variable (the linker can be told to initialize this pointer). For example, if the gmp library provided mpz_t zero; then cgo would rewrite a reference to C.zero by introducing var _C_zero *C.mpz_t and then replacing all instances of C.zero with (*_C_zero). Cgo's most interesting translation is for functions. If xxx is a C function, then cgo rewrites C.xxx into a new function _C_xxx that
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Mon Apr 11 16:34:30 GMT 2022 - 9.5K bytes - Click Count (0) -
internal/deadlineconn/deadlineconn.go
if c.abortWrites.Load() { return 0, context.DeadlineExceeded } c.setWriteDeadline() n, err = c.Conn.Write(b) return n, err } // SetDeadline will set the deadline for reads and writes. // A zero value for t means I/O operations will not time out. func (c *DeadlineConn) SetDeadline(t time.Time) error { c.mu.Lock() defer c.mu.Unlock() c.readSetAt = time.Time{} c.writeSetAt = time.Time{}
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Mon Dec 02 13:21:17 GMT 2024 - 5.1K bytes - Click Count (0) -
internal/hash/crc.go
odd := make([]uint64, 32) // odd-power-of-two zeros operator // put operator for one zero bit in odd odd[0] = uint64(poly) // CRC-32 polynomial row := uint64(1) for n := 1; n < 32; n++ { odd[n] = row row <<= 1 } // put operator for two zero bits in even gf2MatrixSquare(even, odd) // put operator for four zero bits in odd gf2MatrixSquare(odd, even)
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Mon Jan 20 14:49:07 GMT 2025 - 5.8K bytes - Click Count (0) -
internal/lock/lock.go
var ErrAlreadyLocked = errors.New("file already locked") // RLockedFile represents a read locked file, implements a special // closer which only closes the associated *os.File when the ref count. // has reached zero, i.e when all the readers have given up their locks. type RLockedFile struct { *LockedFile mutex sync.Mutex refs int // Holds read lock refs. } // IsClosed - Check if the rlocked file is already closed.
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Jan 02 17:15:06 GMT 2022 - 2.5K bytes - Click Count (0) -
internal/lock/lock_test.go
if err != nil { t.Fatal(err) } isClosed := rlk.IsClosed() if isClosed { t.Fatal("File ref count shouldn't be zero") } // Increase reference count to 2. rlk.IncLockRef() isClosed = rlk.IsClosed() if isClosed { t.Fatal("File ref count shouldn't be zero") } // Decrease reference count by 1. if err = rlk.Close(); err != nil { t.Fatal(err) } isClosed = rlk.IsClosed()Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue Feb 18 16:25:55 GMT 2025 - 3.7K bytes - Click Count (0) -
internal/bucket/lifecycle/expiration.go
) // ExpirationDays is a type alias to unmarshal Days in Expiration type ExpirationDays int // UnmarshalXML parses number of days from Expiration and validates if // greater than zero func (eDays *ExpirationDays) UnmarshalXML(d *xml.Decoder, startElement xml.StartElement) error { var numDays int err := d.DecodeElement(&numDays, &startElement) if err != nil { return err } if numDays <= 0 {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Mar 30 00:56:02 GMT 2025 - 6.6K bytes - Click Count (0) -
docs_src/body_fields/tutorial001_py310.py
class Item(BaseModel): name: str description: str | None = Field( default=None, title="The description of the item", max_length=300 ) price: float = Field(gt=0, description="The price must be greater than zero") tax: float | None = None @app.put("/items/{item_id}") async def update_item(item_id: int, item: Item = Body(embed=True)): results = {"item_id": item_id, "item": item}
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri May 13 23:38:22 GMT 2022 - 523 bytes - Click Count (0) -
schema/utils.go
case reflect.Struct: results = [][]interface{}{make([]interface{}, len(fields))} for idx, field := range fields { results[0][idx], zero = field.ValueOf(ctx, reflectValue) notZero = notZero || !zero } if !notZero { return nil, nil } dataResults[utils.ToStringKey(results[0]...)] = []reflect.Value{reflectValue} case reflect.Slice, reflect.Array:Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Thu Oct 30 11:15:36 GMT 2025 - 5.9K bytes - Click Count (0) -
utils/utils_test.go
trimLen: 3, expected: []int{}, }, { name: "Trim length greater than slice length", input: []int{1, 2, 3}, trimLen: 5, expected: []int{}, }, { name: "Zero trim length", input: []int{1, 2, 3}, trimLen: 0, expected: []int{1, 2, 3}, }, { name: "Trim one element from end", input: []int{1, 2, 3}, trimLen: 1,Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Fri Sep 19 01:49:06 GMT 2025 - 4.9K bytes - Click Count (0)