Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,269 for whence (0.19 sec)

  1. src/archive/tar/tar_test.go

    	return len(b), nil
    }
    
    func (f *testFile) Seek(pos int64, whence int) (int64, error) {
    	if pos == 0 && whence == io.SeekCurrent {
    		return f.pos, nil
    	}
    	if len(f.ops) == 0 {
    		return 0, errors.New("unexpected Seek operation")
    	}
    	s, ok := f.ops[0].(int64)
    	if !ok {
    		return 0, errors.New("unexpected Seek operation")
    	}
    
    	if s != pos || whence != io.SeekCurrent {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  2. clause/where.go

    	OrWithSpace  = " OR "
    )
    
    // Where where clause
    type Where struct {
    	Exprs []Expression
    }
    
    // Name where clause name
    func (where Where) Name() string {
    	return "WHERE"
    }
    
    // Build build where clause
    func (where Where) Build(builder Builder) {
    	if len(where.Exprs) == 1 {
    		if andCondition, ok := where.Exprs[0].(AndConditions); ok {
    			where.Exprs = andCondition.Exprs
    		}
    	}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  3. clause/where_test.go

    				Exprs: []clause.Expression{clause.Or(clause.Neq{Column: "name", Value: "jinzhu"}), clause.Eq{Column: clause.PrimaryColumn, Value: "1"}, clause.Gt{Column: "age", Value: 18}},
    			}},
    			"SELECT * FROM `users` WHERE `users`.`id` = ? OR `name` <> ? AND `age` > ?",
    			[]interface{}{"1", "jinzhu", 18},
    		},
    		{
    			[]clause.Interface{clause.Select{}, clause.From{}, clause.Where{
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  4. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirExpressionTypeProvider.kt

            // There are various cases where we have no corresponding fir due to invalid code
            // Some examples:
            // ```
            // when {
            //   true, false -> {}
            // }
            // ```
            // `false` does not have a corresponding elements on the FIR side and hence the containing `FirWhenBranch` is returned.
            // ```
            // @Volatile
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Mar 26 18:13:17 GMT 2024
    - 24.4K bytes
    - Viewed (0)
  5. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10CallResolver.kt

                // FE1.0 represents synthesized properties as an extension property of the Java class. Hence the extension receiver type should
                // always be null
                null
            } else {
                resultingDescriptor.extensionReceiverParameter?.returnType?.toKtType(analysisContext)
            }
            return when (symbol) {
    Plain Text
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Mon Apr 29 12:48:54 GMT 2024
    - 34.8K bytes
    - Viewed (0)
  6. docs/en/docs/deployment/concepts.md

        * This doesn't refer to the file, nor to the code, it refers **specifically** to the thing that is being **executed** and managed by the operating system.
    * Any program, any code, **can only do things** when it is being **executed**. So, when there's a **process running**.
    * The process can be **terminated** (or "killed") by you, or by the operating system. At that point, it stops running/being executed, and it can **no longer do things**.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 18K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/FirReferenceResolveHelper.kt

            val fullQualifiedAccess = when (val psi = fir.source.psi) {
                // for cases like `Foo.Bar()`, where `Foo.Bar` is an object, and `Foo.Bar()` is a call to `invoke` operator
                is KtSimpleNameExpression -> psi.getQualifiedElement()
                else -> psi
            }
            if (fullQualifiedAccess !is KtDotQualifiedExpression) return referencedSymbolsByFir
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Mon Apr 15 10:59:01 GMT 2024
    - 37.5K bytes
    - Viewed (0)
  8. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10CompilerFacility.kt

                return KtCompilationResult.Failure(frontendErrors)
            }
    
            // The IR backend will try to regenerate object literals defined in inline functions from generated class files during inlining.
            // Hence, we need to be aware of which object declarations are defined in the relevant inline functions.
            val inlineObjectDeclarations = inlineAnalyzer.inlineObjectDeclarations()
    Plain Text
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Fri Dec 01 13:22:55 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/body.md

        {!> ../../../docs_src/body/tutorial001_py310.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="7-11"
        {!> ../../../docs_src/body/tutorial001.py!}
        ```
    
    The same as when declaring query parameters, when a model attribute has a default value, it is not required. Otherwise, it is required. Use `None` to make it just optional.
    
    For example, this model above declares a JSON "`object`" (or Python `dict`) like:
    
    ```JSON
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  10. tensorflow/c/eager/tape.h

    // values and hence receives 5 gradient values during backprop. However the
    // gradient function uses only the first of those values and ignores the rest.
    // The entry, "FusedBatchNorm": [1, 2, 3, 4], indicates that only the gradient
    // corresponding to index 0 is used, and the gradient values at indices 1-4 are
    // ignored (and hence can be None). The backprop algorithm can then leverage
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Apr 02 12:40:29 GMT 2024
    - 47.2K bytes
    - Viewed (1)
Back to top