Search Options

Results per page
Sort
Preferred Languages
Advance

Results 871 - 880 of 6,918 for RETURN (0.07 sec)

  1. docs_src/sql_databases/tutorial002_an_py310.py

        session.add(db_hero)
        session.commit()
        session.refresh(db_hero)
        return db_hero
    
    
    @app.get("/heroes/", response_model=list[HeroPublic])
    def read_heroes(
        session: SessionDep,
        offset: int = 0,
        limit: Annotated[int, Query(le=100)] = 100,
    ):
        heroes = session.exec(select(Hero).offset(offset).limit(limit)).all()
        return heroes
    
    
    @app.get("/heroes/{hero_id}", response_model=HeroPublic)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. internal/mountinfo/mountinfo_windows.go

    func CheckCrossDevice(paths []string) error {
    	return nil
    }
    
    // mountPointCache contains results of IsLikelyMountPoint
    var mountPointCache sync.Map
    
    // IsLikelyMountPoint determines if a directory is a mountpoint.
    func IsLikelyMountPoint(path string) bool {
    	path = filepath.Dir(path)
    	if v, ok := mountPointCache.Load(path); ok {
    		return v.(bool)
    	}
    	wpath, _ := windows.UTF16PtrFromString(path)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 19 01:35:22 UTC 2021
    - 2K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/compare/route.go

    		if err != nil {
    			return err
    		}
    		envoyBytes.WriteString(envoy)
    	}
    	istiodRouteDump, err := c.istiod.GetDynamicRouteDump(true)
    	if err != nil {
    		istiodBytes.WriteString(err.Error())
    	} else {
    		istiod, err := protomarshal.ToJSONWithAnyResolver(istiodRouteDump, "    ", &envoyResolver)
    		if err != nil {
    			return err
    		}
    		istiodBytes.WriteString(istiod)
    	}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Mar 12 10:02:09 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/collect/MinMaxPriorityQueueBenchmark.java

        }
    
        @Override
        protected Queue<T> delegate() {
          return mmHeap;
        }
    
        @Override
        public @Nullable T poll() {
          return mmHeap.pollLast();
        }
      }
    
      public enum HeapType {
        MIN_MAX {
          @Override
          public Queue<Integer> create(Comparator<Integer> comparator) {
            return MinMaxPriorityQueue.orderedBy(comparator).create();
          }
        },
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/AbstractLoadingCacheTest.java

                Object v = valueRef.get();
                if (v == null) {
                  throw new ExecutionException(cause);
                }
                return v;
              }
    
              @Override
              public @Nullable Object getIfPresent(Object key) {
                return valueRef.get();
              }
            };
    
        UncheckedExecutionException expected =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 5K bytes
    - Viewed (0)
  6. cmd/storage-rest-server.go

    		if err != nil {
    			return nil, err
    		}
    		// Check if we have a response ready or a filler byte.
    		switch b {
    		case 0:
    			return reader, nil
    		case 1:
    			errorText, err := io.ReadAll(reader)
    			if err != nil {
    				return nil, err
    			}
    			return nil, errors.New(string(errorText))
    		case 32:
    			continue
    		default:
    			return nil, fmt.Errorf("unexpected filler byte: %d", b)
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 45.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/dict/DictionaryFile.java

        }
    
        public String getId() {
            return id;
        }
    
        public String getPath() {
            return path;
        }
    
        public Date getTimestamp() {
            return timestamp;
        }
    
        public DictionaryFile<T> manager(final DictionaryManager dictionaryManager) {
            this.dictionaryManager = dictionaryManager;
            return this;
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  8. internal/ringbuffer/ring_buffer.go

    			r.writeCond.Broadcast()
    		}
    	}
    	return err
    }
    
    func (r *RingBuffer) readErr(locked bool) error {
    	if !locked {
    		r.mu.Lock()
    		defer r.mu.Unlock()
    	}
    	if r.err != nil {
    		if r.err == io.EOF {
    			if r.w == r.r && !r.isFull {
    				return io.EOF
    			}
    			return nil
    		}
    		return r.err
    	}
    	return nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. internal/bucket/object/lock/lock.go

    		return nil, err
    	}
    	if ret.Mode != "" && !ret.Mode.Valid() {
    		return &ret, ErrUnknownWORMModeDirective
    	}
    
    	if ret.Mode.Valid() && ret.RetainUntilDate.IsZero() {
    		return &ret, ErrMalformedXML
    	}
    
    	if !ret.Mode.Valid() && !ret.RetainUntilDate.IsZero() {
    		return &ret, ErrMalformedXML
    	}
    
    	t, err := UTCNowNTP()
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jun 29 01:20:27 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/dcerpc/DcerpcException.java

        }
        public int getErrorCode() {
            return error;
        }
        public Throwable getRootCause() {
            return rootCause;
        }
        public String toString() {
            if (rootCause != null) {
                StringWriter sw = new StringWriter();
                PrintWriter pw = new PrintWriter(sw);
                rootCause.printStackTrace(pw);
                return super.toString() + "\n" + sw;
            }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 2.4K bytes
    - Viewed (0)
Back to top