Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 391 for RES (0.25 sec)

  1. docs_src/sql_databases_peewee/sql_app/schemas.py

    from pydantic.utils import GetterDict
    
    
    class PeeweeGetterDict(GetterDict):
        def get(self, key: Any, default: Any = None):
            res = getattr(self._obj, key, default)
            if isinstance(res, peewee.ModelSelect):
                return list(res)
            return res
    
    
    class ItemBase(BaseModel):
        title: str
        description: Union[str, None] = None
    
    
    class ItemCreate(ItemBase):
        pass
    
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 868 bytes
    - Viewed (0)
  2. test/fixedbugs/issue32288.go

    // license that can be found in the LICENSE file.
    
    package main
    
    type T struct {
    	s   [1]string
    	pad [16]uintptr
    }
    
    //go:noinline
    func f(t *int, p *int) []T {
    	var res []T
    	for {
    		var e *T
    		res = append(res, *e)
    	}
    }
    
    func main() {
    	defer func() {
    		useStack(100) // force a stack copy
    		// We're expecting a panic.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 21:52:17 UTC 2019
    - 809 bytes
    - Viewed (0)
  3. pilot/pkg/model/fake_store.go

    	nsConfigs := s.store[typ]
    	if nsConfigs == nil {
    		return nil
    	}
    	var res []config.Config
    	if namespace == NamespaceAll {
    		for _, configs := range nsConfigs {
    			for _, cfg := range configs {
    				res = append(res, cfg)
    			}
    		}
    		return res
    	}
    
    	return maps.Values(nsConfigs[namespace])
    }
    
    func (s *FakeStore) Create(cfg config.Config) (revision string, err error) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jul 18 06:50:06 UTC 2023
    - 3K bytes
    - Viewed (0)
  4. test/fixedbugs/issue59709.dir/dcache.go

    }
    
    func (m *Module) Configure(x string) error {
    	if m.err != nil {
    		return m.err
    	}
    	res := cmem.NewResource(m.cfg)
    	m.last = res
    
    	return nil
    }
    
    func (m *Module) Blurb(x string, e error) bool {
    	res, ok := m.last.(*bresource.Resource[*int])
    	if !ok {
    		panic("bad")
    	}
    	return bresource.Should(res, e)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 05 21:04:28 UTC 2023
    - 626 bytes
    - Viewed (0)
  5. pilot/pkg/xds/deltatest.go

    		byName[v.Name] = v
    	}
    	res := model.Resources{}
    	for _, m := range message {
    		if deleted.Contains(m.Name) {
    			continue
    		}
    		if replaced := byName[m.Name]; replaced != nil {
    			res = append(res, replaced)
    			delete(byName, m.Name)
    			continue
    		}
    		res = append(res, m)
    	}
    	for _, v := range byName {
    		res = append(res, v)
    	}
    	return res
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  6. pkg/probe/http/http.go

    		} else {
    			return probe.Failure, "", err
    		}
    	}
    	body := string(b)
    	if res.StatusCode >= http.StatusOK && res.StatusCode < http.StatusBadRequest {
    		if res.StatusCode >= http.StatusMultipleChoices { // Redirect
    			klog.V(4).Infof("Probe terminated redirects for %s, Response: %v", url.String(), *res)
    			return probe.Warning, fmt.Sprintf("Probe terminated redirects, Response body: %v", body), nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 10 00:37:32 UTC 2023
    - 5K bytes
    - Viewed (0)
  7. samples/bookinfo/src/details/details.rb

    )
    
    trap 'INT' do server.shutdown end
    
    server.mount_proc '/health' do |req, res|
        res.status = 200
        res.body = {'status' => 'Details is healthy'}.to_json
        res['Content-Type'] = 'application/json'
    end
    
    server.mount_proc '/details' do |req, res|
        pathParts = req.path.split('/')
        headers = get_forward_headers(req)
    
        begin
            begin
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 14:35:54 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/suggest/request/RequestBuilder.java

    import org.opensearch.client.Client;
    
    public abstract class RequestBuilder<Req extends Request<Res>, Res extends Response> {
        protected Client client;
        protected Req request;
    
        public RequestBuilder(final Client client, final Req request) {
            this.client = client;
            this.request = request;
        }
    
        public Deferred<Res>.Promise execute() {
            return request.execute(client);
        }
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  9. pilot/pkg/networking/core/extension_config_builder.go

    		if !ok {
    			log.Warnf("ignoring unknown ECDS: %v", n)
    			continue
    		}
    		res = append(res, types.NamespacedName{Namespace: ns, Name: name})
    	}
    	return res
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 09:02:11 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  10. src/internal/testpty/pty_cgo.go

    	m, err := C.posix_openpt(C.O_RDWR)
    	if m < 0 {
    		return nil, "", ptyError("posix_openpt", err)
    	}
    	if res, err := C.grantpt(m); res < 0 {
    		C.close(m)
    		return nil, "", ptyError("grantpt", err)
    	}
    	if res, err := C.unlockpt(m); res < 0 {
    		C.close(m)
    		return nil, "", ptyError("unlockpt", err)
    	}
    	processTTY = C.GoString(C.ptsname(m))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 25 18:38:54 UTC 2023
    - 840 bytes
    - Viewed (0)
Back to top