Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,734 for utils (0.17 sec)

  1. fastapi/utils.py

        return new_field
    
    
    def generate_operation_id_for_path(
        *, name: str, path: str, method: str
    ) -> str:  # pragma: nocover
        warnings.warn(
            "fastapi.utils.generate_operation_id_for_path() was deprecated, "
            "it is not used internally, and will be removed soon",
            DeprecationWarning,
            stacklevel=2,
        )
        operation_id = f"{name}{path}"
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  2. maven-api-impl/src/main/java/org/apache/maven/internal/impl/Utils.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.internal.impl;
    
    import java.util.Collection;
    import java.util.List;
    import java.util.function.Function;
    import java.util.stream.Collectors;
    
    class Utils {
        static <T> T nonNull(T t) {
            if (t == null) {
                throw new IllegalArgumentException();
            }
            return t;
        }
    
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  3. maven-core/src/main/java/org/apache/maven/internal/impl/Utils.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.internal.impl;
    
    import java.util.Collection;
    import java.util.List;
    import java.util.function.Function;
    import java.util.stream.Collectors;
    
    class Utils {
        static <T> T nonNull(T t) {
            if (t == null) {
                throw new IllegalArgumentException();
            }
            return t;
        }
    
    Java
    - Registered: Sun Mar 24 03:35:10 GMT 2024
    - Last Modified: Thu Dec 07 20:05:02 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  4. cmd/utils.go

    Harshavardhana <******@****.***> 1713699798 -0700
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 32K bytes
    - Viewed (0)
  5. utils/utils.go

    package utils
    
    import (
    	"database/sql/driver"
    	"fmt"
    	"path/filepath"
    	"reflect"
    	"runtime"
    	"strconv"
    	"strings"
    	"unicode"
    )
    
    var gormSourceDir string
    
    func init() {
    	_, file, _, _ := runtime.Caller(0)
    	// compatible solution to get gorm source directory with various operating systems
    	gormSourceDir = sourceDir(file)
    }
    
    func sourceDir(file string) string {
    	dir := filepath.Dir(file)
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Mon Feb 19 03:42:25 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  6. fastapi/openapi/utils.py

    from fastapi.dependencies.utils import get_flat_dependant, get_flat_params
    from fastapi.encoders import jsonable_encoder
    from fastapi.openapi.constants import METHODS_WITH_BODY, REF_PREFIX, REF_TEMPLATE
    from fastapi.openapi.models import OpenAPI
    from fastapi.params import Body, Param
    from fastapi.responses import Response
    from fastapi.types import ModelNameMap
    from fastapi.utils import (
        deep_dict_update,
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 21.8K bytes
    - Viewed (0)
  7. fastapi/dependencies/utils.py

    from fastapi.logger import logger
    from fastapi.security.base import SecurityBase
    from fastapi.security.oauth2 import OAuth2, SecurityScopes
    from fastapi.security.open_id_connect_url import OpenIdConnect
    from fastapi.utils import create_response_field, get_path_param_names
    from pydantic.fields import FieldInfo
    from starlette.background import BackgroundTasks as StarletteBackgroundTasks
    from starlette.concurrency import run_in_threadpool
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:52:56 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  8. utils/utils_test.go

    package utils
    
    import (
    	"database/sql"
    	"database/sql/driver"
    	"errors"
    	"math"
    	"strings"
    	"testing"
    	"time"
    )
    
    func TestIsValidDBNameChar(t *testing.T) {
    	for _, db := range []string{"db", "dbName", "db_name", "db1", "1dbname", "db$name"} {
    		if fields := strings.FieldsFunc(db, IsValidDBNameChar); len(fields) != 1 {
    			t.Fatalf("failed to parse db name %v", db)
    		}
    	}
    }
    
    func TestCheckTruth(t *testing.T) {
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Mon Feb 19 03:42:25 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  9. tensorflow/c/eager/tracing_utils.cc

    See the License for the specific language governing permissions and
    limitations under the License.
    ==============================================================================*/
    #include "tensorflow/c/eager/tracing_utils.h"
    
    #include "tensorflow/c/eager/c_api_unified_experimental_internal.h"
    #include "tensorflow/c/experimental/gradients/tape/tape_operation.h"
    #include "tensorflow/core/lib/llvm_rtti/llvm_rtti.h"
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Feb 27 13:57:45 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  10. cmd/utils_test.go

    Harshavardhana <******@****.***> 1708723694 -0800
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Feb 23 21:28:14 GMT 2024
    - 10.2K bytes
    - Viewed (0)
Back to top