Search Options

Results per page
Sort
Preferred Languages
Advance

Results 2871 - 2880 of 3,853 for Hint (0.08 sec)

  1. tests/test_union_body.py

    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: Optional[str] = None
    
    
    class OtherItem(BaseModel):
        price: int
    
    
    @app.post("/items/")
    def save_union_body(item: Union[OtherItem, Item]):
        return {"item": item}
    
    
    client = TestClient(app)
    
    
    def test_post_other_item():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  2. cmd/storage-rest-common.go

    	storageRESTOrigVolume       = "ovol"
    	storageRESTInclFreeVersions = "incl-fv"
    	storageRESTRange            = "rng"
    )
    
    type nsScannerOptions struct {
    	DiskID   string          `msg:"id"`
    	ScanMode int             `msg:"m"`
    	Cache    *dataUsageCache `msg:"c"`
    }
    
    type nsScannerResp struct {
    	Update *dataUsageEntry `msg:"u"`
    	Final  *dataUsageCache `msg:"f"`
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Aug 12 08:38:15 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/opensearch/extension/analysis/NGramSynonymTokenizerFactory.java

    /**
     * Factory for {@link NGramSynonymTokenizer}.
     */
    public final class NGramSynonymTokenizerFactory extends AbstractTokenizerFactory {
    
        private final boolean ignoreCase;
    
        private final int n;
    
        private final String delimiters;
    
        private final boolean expand;
    
        private SynonymLoader synonymLoader = null;
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/util/QueryStringBuilder.java

                newValue = newValue.replace(element, replacement);
            }
            return newValue;
        }
    
        public String build() {
            final FessConfig fessConfig = ComponentUtil.getFessConfig();
            final int maxQueryLength = fessConfig.getQueryMaxLengthAsInteger();
            final StringBuilder queryBuf = new StringBuilder(255);
    
            final String query = buildBaseQuery();
            if (StringUtil.isNotBlank(query)) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/AbstractTableReadTest.java

       * @throws ClassCastException if a data element has the wrong type
       */
      protected abstract Table<String, Integer, C> create(@Nullable Object... data);
    
      protected void assertSize(int expectedSize) {
        assertEquals(expectedSize, table.size());
      }
    
      @Override
      public void setUp() throws Exception {
        super.setUp();
        table = create();
      }
    
      public void testContains() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/WatchTest.java

                    log.info("Timeout waiting", e);
                    fail("Did not recieve notification");
                }
            }
    
        }
    
    
        private void assertNotified ( SmbWatchHandle w, int action, String name, List<FileNotifyInformation> infos )
                throws InterruptedException, ExecutionException, TimeoutException {
            boolean found = checkInResult(action, name, infos);
            if ( !found ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 8.4K bytes
    - Viewed (0)
  7. cmd/healthcheck-handler.go

    		w.Header().Set(xhttp.MinIOServerStatus, unavailable) // Service not initialized yet
    	}
    	if r.Header.Get(xhttp.MinIOPeerCall) != "" {
    		writeResponse(w, http.StatusOK, nil, mimeNone)
    		return
    	}
    
    	if int(globalHTTPStats.loadRequestsInQueue()) > globalAPIConfig.getRequestsPoolCapacity() {
    		apiErr := getAPIError(ErrBusy)
    		switch r.Method {
    		case http.MethodHead:
    			writeResponse(w, apiErr.HTTPStatusCode, nil, mimeNone)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 26 07:44:34 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  8. cmd/server-startup-msg.go

    	"github.com/minio/minio/internal/color"
    	"github.com/minio/minio/internal/logger"
    )
    
    // generates format string depending on the string length and padding.
    func getFormatStr(strLen int, padding int) string {
    	formatStr := fmt.Sprintf("%ds", strLen+padding)
    	return "%" + formatStr
    }
    
    // Prints the formatted startup message.
    func printStartupMessage(apiEndpoints []string, err error) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Aug 23 14:11:35 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/NetbiosAddress.java

         *         {@link jcifs.netbios.NbtAddress#H_NODE}
         *
         * @throws UnknownHostException
         *             if the host cannot be resolved to find out.
         */
        int getNodeType ( CIFSContext tc ) throws UnknownHostException;
    
    
        /**
         * Determines if this address in the process of being deleted.
         * 
         * @param tc
         *            context to use
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/SmbResourceLocator.java

         * <code>null</code> is returned.
         * 
         * @return URL to the DFS volume
         */
        String getDfsPath ();
    
    
        /**
         * @return the transport port, if specified
         */
        int getPort ();
    
    
        /**
         * @return the original URL
         */
        URL getURL ();
    
    
        /**
         * @return resolved server address
         * @throws CIFSException
         */
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 5.6K bytes
    - Viewed (0)
Back to top