Searched refs:size (Results 1 - 25 of 41) sorted by relevance

12

/pkg/src/util/log-scripts/
H A Dlog.py71 def dlunits(codes, size):
75 if sum(codes[k]) >= size:
80 def dls_linked(codes_200, codes_206, size):
85 if total > size:
86 linked += total//size
88 if total > 10 * size:
100 size = None variable
107 size = int(arg) variable
121 if not size:
124 print("200 units: {0:d}".format(dlunits(codes_200, size)))
[all...]
/pkg/src/modules/solver/
H A Dvec.h30 int size; member in struct:veci_t
37 v->size = 0;
44 static inline int veci_size (veci* v) { return v->size; }
45 static inline void veci_resize (veci* v, int k) { v->size = k; } // only safe to shrink !!
48 if (v->size == v->cap) {
52 v->ptr[v->size++] = e;
62 int size; member in struct:vecp_t
69 v->size = 0;
76 static inline int vecp_size (vecp* v) { return v->size; }
77 static inline void vecp_resize (vecp* v, int k) { v->size
[all...]
H A Dsolver.c62 // Returns a random integer 0 <= x < size. Seed must never be 0.
63 static inline int irand(double* seed, int size) { argument
64 return (int)(drand(seed) * size); }
70 void sort(void** array, int size, int(*comp)(const void *, const void *));
177 int next = irand(&s->random_seed,s->size);
178 assert(next >= 0 && next < s->size);
192 int size = veci_size(&s->order)-1; local
193 int x = heap[size];
195 veci_resize(&s->order,size);
199 if (size >
283 int size; local
1244 selectionsort(void** array, int size, int(*comp)(const void *, const void *)) argument
1260 sortrnd(void** array, int size, int(*comp)(const void *, const void *), double* seed) argument
1285 sort(void** array, int size, int(*comp)(const void *, const void *)) argument
[all...]
H A Dsolver.h100 int size; // nof variables member in struct:solver_t
101 int cap; // size of varmaps
H A Dpy_solver.c94 * allocate a ref-cnted pointer to a chunk of memory of specified size
95 * returns w/ refcnt set to 1. Be able to retrieve size.
99 alloc_refcntptr(size_t size) argument
101 long *ptr = malloc(size + sizeof (long) *2);
102 *ptr++ = size;
/pkg/src/util/qual-simulator/
H A Ddepot.py153 def speed_single(self, size):
156 return size / random.gauss(self.speed, self.speed / 4)
158 def speed_increasing(self, size):
164 return size / s
166 def speed_decay(self, size):
172 return size / (self.aggregate_decay *
175 def request(self, rc, size=None):
177 Size is given in the 'size' argument."""
181 if not size:
182 size
[all...]
/pkg/src/modules/client/transport/
H A Dfileobj.py97 def read(self, size=-1):
98 """Read size bytes from the remote connection.
99 If size isn't specified, read all of the data from
105 if size < 0:
115 if datalen >= size:
116 self.__buf = curdata[size:]
117 return curdata[:size]
120 if datalen >= size:
125 if datalen >= size:
126 self.__buf = curdata[size
[all...]
/pkg/src/modules/
H A Dcpiofile.py99 def read(self, size):
100 return os.read(self.fd, size)
260 def read(self, size=None):
261 """Return the next size number of bytes from the stream.
262 If size is not defined, return all bytes of the stream
265 if size is None:
274 buf = self._read(size)
276 # print("reading {0} bytes to {1} ({2})".format(size, self.pos, self.fileobj.tell()))
279 def _read(self, size):
280 """Return size byte
[all...]
H A Dapi_common.py138 size=None, csize=None, licenses=None, links=None, hardlinks=None,
153 self.size = size
H A Dsysvpkg.py72 (self.pathname, self.size, self.chksum,
80 self.size, self.chksum, self.modtime) = array[3:]
171 # they should be reasonably small in size; the largest
H A Dpipeutils.py218 def read(self, size=-1):
219 """Read at most size bytes from the pipe.
224 data = self.__readfh.read(size)
236 return self.read(size)
H A Delfextract.c303 elf_contenthash_cb(size_t offset, size_t size, void *udata) argument
307 if (!size)
311 SHA256Update(h->s256c, h->base + offset, size);
315 SHA512_t_Update(h->s512c, h->base + offset, size);
/pkg/doc/
H A Dpkg-guide-web.css60 text-size: 24px;
66 text-size: 24px;
/pkg/src/web/_themes/oracle.com/en/
H A Dbase.css51 font-size:12px;
126 font-size:11px;
136 font-size:11px;
143 font-size:11px;
150 font-size:11px;
193 font-size: 85%;
261 font-size: 77%;
282 font-size:12px;
288 font-size:10px;
321 font-size
[all...]
/pkg/src/web/_themes/default/en/
H A Dbase.css59 font-size: 85%;
105 font-size: 85%;
156 font-size: 77%;
178 font-size: 77%; /* 10px */
/pkg/src/web/_themes/sun.com/en/
H A Dbase.css58 font-size: 85%;
98 font-size: 85%;
149 font-size: 77%;
191 font-size: 77%; /* 10px */
/pkg/src/modules/publish/
H A Dtransaction.py367 def __get_compressed_attrs(self, fhash, data, size):
368 """Given a fhash, data, and size of a file, returns a tuple
369 of (csize, chashes) where 'csize' is the size of the file
411 size = int(action.attrs.get("pkg.size", 0))
413 if action.has_payload and size <= 0:
428 length=size, return_content=True,
442 action.data(), length=size, return_content=False,
462 data, size)
469 fname, data=data, size
[all...]
/pkg/src/web/_themes/
H A Dyui-reset-font-grids_base-min.css7 html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var,optgroup{font-style:inherit;font-weight:inherit;}del,ins{text-decoration:none;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:baseline;}sub{vertical-align:baseline;}legend{color:#000;}input,button,textarea,select,optgroup,option{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;}input,button,textarea,select{*font-size:100%;}body{font:13px/1.231 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;}select,input,button,textarea,button{font:99% arial,helvetica,clean,sans-serif;}table{font-size:inherit;font:100%;}pre,code,kbd,samp,tt{font-family:monospace;*font-size:108%;line-height:100%;}body{text-align:center;}#doc,#doc2,#doc3,#doc4,.yui-t1,.yui-t2,.yui-t3,.yui-t4,.yui-t5,.yui-t6,.yui-t7{margin:auto;text-align:left;width:57.69em;*width:56.25em;}#doc2{width:73.076em;*width:71.25em;}#doc3{margin:auto 10px;width:auto;}#doc4{width:74.923em;*width:73.05em;}.yui-b{position:relative;}.yui-b{_position:static;}#yui-main .yui-b{position:static;}#yui-main,.yui-g .yui-u .yui-g{width:100%;}.yui-t1 #yui-main,.yui-t2 #yui-main,.yui-t3 #yui-main{float:right;margin-left:-25em;}.yui-t4 #yui-main,.yui-t5 #yui-main,.yui-t6 #yui-main{float:left;margin-right:-25em;}.yui-t1 .yui-b{float:left;width:12.30769em;*width:12.00em;}.yui-t1 #yui-main .yui-b{margin-left:13.30769em;*margin-left:13.05em;}.yui-t2 .yui-b{float:left;width:13.8461em;*width:13.50em;}.yui-t2 #yui-main .yui-b{margin-left:14.8461em;*margin-left:14.55em;}.yui-t3 .yui-b{float:left;width:23.0769em;*width:22.50em;}.yui-t3 #yui-main .yui-b{margin-left:24.0769em;*margin-left:23.62em;}.yui-t4 .yui-b{float:right;width:13.8456em;*width:13.50em;}.yui-t4 #yui-main .yui-b{margin-right:14.8456em;*margin-right:14.55em;}.yui-t5 .yui-b{float:right;width:18.4615em;*width:18.00em;}.yui-t5 #yui-main .yui-b{margin-right:19.4615em;*margin-right:19.125em;}.yui-t6 .yui-b{float:right;width:23.0769em;*width:22.50em;}.yui-t6 #yui-main .yui-b{margin-right:24.0769em;*margin-right:23.62em;}.yui-t7 #yui-main .yui-b{display:block;margin:0 0 1em 0;}#yui-main .yui-b{float:none;width:auto;}.yui-gb .yui-u,.yui-g .yui-gb .yui-u,.yui-gb .yui-g,.yui-gb .yui-gb,.yui-gb .yui-gc,.yui-gb .yui-gd,.yui-gb .yui-ge,.yui-gb .yui-gf,.yui-gc .yui-u,.yui-gc .yui-g,.yui-gd .yui-u{float:left;}.yui-g .yui-u,.yui-g .yui-g,.yui-g .yui-gb,.yui-g .yui-gc,.yui-g .yui-gd,.yui-g .yui-ge,.yui-g .yui-gf,.yui-gc .yui-u,.yui-gd .yui-g,.yui-g .yui-gc .yui-u,.yui-ge .yui-u,.yui-ge .yui-g,.yui-gf .yui-g,.yui-gf .yui-u{float:right;}.yui-g div.first,.yui-gb div.first,.yui-gc div.first,.yui-gd div.first,.yui-ge div.first,.yui-gf div.first,.yui-g .yui-gc div.first,.yui-g .yui-ge div.first,.yui-gc div.first div.first{float:left;}.yui-g .yui-u,.yui-g .yui-g,.yui-g .yui-gb,.yui-g .yui-gc,.yui-g .yui-gd,.yui-g .yui-ge,.yui-g .yui-gf{width:49.1%;}.yui-gb .yui-u,.yui-g .yui-gb .yui-u,.yui-gb .yui-g,.yui-gb .yui-gb,.yui-gb .yui-gc,.yui-gb .yui-gd,.yui-gb .yui-ge,.yui-gb .yui-gf,.yui-gc .yui-u,.yui-gc .yui-g,.yui-gd .yui-u{width:32%;margin-left:1.99%;}.yui-gb .yui-u{*margin-left:1.9%;*width:31.9%;}.yui-gc div.first,.yui-gd .yui-u{width:66%;}.yui-gd div.first{width:32%;}.yui-ge div.first,.yui-gf .yui-u{width:74.2%;}.yui-ge .yui-u,.yui-gf div.first{width:24%;}.yui-g .yui-gb div.first,.yui-gb div.first,.yui-gc div.first,.yui-gd div.first{margin-left:0;}.yui-g .yui-g .yui-u,.yui-gb .yui-g .yui-u,.yui-gc .yui-g .yui-u,.yui-gd .yui-g .yui-u,.yui-ge .yui-g .yui-u,.yui-gf .yui-g .yui-u{width:49%;*width:48.1%;*margin-left:0;}.yui-g .yui-g .yui-u{width:48.1%;}.yui-g .yui-gb div.first,.yui-gb .yui-gb div.first{*margin-right:0;*width:32%;_width:31.7%;}.yui-g .yui-gc div.first,.yui-gd .yui-g{width:66%;}.yui-gb .yui-g div.first{*margin-right:4%;_margin-right:1.3%;}.yui-gb .yui-gc div.first,.yui-gb .yui-gd div.first{*margin-right:0;}.yui-gb .yui-gb .yui-u,.yui-gb .yui-gc .yui-u{*margin-left:1.8%;_margin-left:4%;}.yui-g .yui-gb .yui-u{_margin-left:1.0%;}.yui-gb .yui-gd .yui-u{*width:66%;_width:61.2%;}.yui-gb .yui-gd div.first{*width:31%;_width:29.5%;}.yui-g .yui-gc .yui-u,.yui-gb .yui-gc .yui-u{width:32%;_float:right;margin-right:0;_margin-left:0;}.yui-gb .yui-gc div.first{width:66%;*float:left;*margin-left:0;}.yui-gb .yui-ge .yui-u,.yui-gb .yui-gf .yui-u{margin:0;}.yui-gb .yui-gb .yui-u{_margin-left:.7%;}.yui-gb .yui-g div.first,.yui-gb .yui-gb div.first{*margin-left:0;}.yui-gc .yui-g .yui-u,.yui-gd .yui-g .yui-u{*width:48.1%;*margin-left:0;}.yui-gb .yui-gd div.first{width:32%;}.yui-g .yui-gd div.first{_width:29.9%;}.yui-ge .yui-g{width:24%;}.yui-gf .yui-g{width:74.2%;}.yui-gb .yui-ge div.yui-u,.yui-gb .yui-gf div.yui-u{float:right;}.yui-gb .yui-ge div.first,.yui-gb .yui-gf div.first{float:left;}.yui-gb .yui-ge .yui-u,.yui-gb .yui-gf div.first{*width:24%;_width:20%;}.yui-gb .yui-ge div.first,.yui-gb .yui-gf .yui-u{*width:73.5%;_width:65.5%;}.yui-ge div.first .yui-gd .yui-u{width:65%;}.yui-ge div.first .yui-gd div.first{width:32%;}#hd:after,#bd:after,#ft:after,.yui-g:after,.yui-gb:after,.yui-gc:after,.yui-gd:after,.yui-ge:after,.yui-gf:after{content:".";display:block;height:0;clear:both;visibility:hidden;}#hd,#bd,#ft,.yui-g,.yui-gb,.yui-gc,.yui-gd,.yui-ge,.yui-gf{zoom:1;}/*
13 body{margin:10px;}h1{font-size:138.5%;}h2{font-size:123.1%;}h3{font-size:108%;}h1,h2,h3{margin:1em 0;}h1,h2,h3,h4,h5,h6,strong,dt{font-weight:bold;}optgroup{font-weight:no (…)
/pkg/src/web/_themes/opensolaris.com/en/
H A Dbase.css63 font-size: 85%;
111 font-size: 85%;
166 font-size: 77%;
208 font-size: 77%; /* 10px */
/pkg/src/web/_themes/opensolaris.org/en/
H A Dbase.css58 font-size: 85%;
108 font-size: 85%;
163 font-size: 77%;
205 font-size: 77%; /* 10px */
/pkg/src/modules/server/
H A Dtransaction.py466 size = int(action.attrs.get("pkg.size", 0))
468 if action.has_payload and size <= 0:
475 length=size, return_content=True,
541 fname, dst_path, data, size, self.dir)
604 def add_file(self, f, basename=None, size=None):
625 if bufsz > size:
626 bufsz = size
637 hashes, data = misc.get_data_digest(f, length=size,
641 if size i
[all...]
H A Dapi.py335 summary = csize = size = licenses = cat_info = \
367 size, csize = mfst.get_size(
392 packaging_date=packaging_date, size=size,
H A Ddepot.py1051 size = int(request.headers.get("Content-Length", 0))
1052 if size > 0:
1054 # Record the size of the payload, if there is one.
1055 attrs["pkg.size"] = str(size)
1107 size = int(request.headers.get("Content-Length", 0))
1108 if size < 0:
1119 self.repo.add_file(trans_id, data, basename, size)
1144 size = int(request.headers.get("Content-Length", 0))
1145 if size <
[all...]
/pkg/src/modules/actions/
H A Dsignature.py241 # paths to hashes and adding size information.
247 size = int(self.attrs.get("pkg.size", 0))
251 size, return_content=True,
268 os.path.basename(self.hash), self.hash, data, size,
290 size = int(sizes[i])
292 hshes, data = misc.get_data_digest(c(), size,
301 None, data, size, tmp_dir,
619 numeric_attrs=("pkg.csize", "pkg.size"),
/pkg/src/util/apache2/depot/
H A Ddepot_index.py137 def __init__(self, size=10, busy_url=None):
138 self.size = size
139 self.__q = queue.Queue(self.size)
159 if self.__q.unfinished_tasks > self.size - 1:
600 we may want to make the Queue scale according to the size of the

Completed in 46 milliseconds

12