/dports/science/py-cirq-core/Cirq-0.13.1/cirq-core/cirq/protocols/ |
H A D | decompose_protocol.py | 123 val: Any, 215 decomposed = decompose_once(item, default=None) 251 val: Any, default: TDefault, *args, **kwargs 256 def decompose_once(val: Any, default=RaiseTypeErrorIfNotProvided, *args, **kwargs): argument 291 if default is not RaiseTypeErrorIfNotProvided: 292 return default 308 val: Any, 310 default: Optional[TDefault], 316 val: Any, qubits: Iterable['cirq.Qid'], default=RaiseTypeErrorIfNotProvided argument 344 return decompose_once(val, default, tuple(qubits)) [all …]
|
/dports/science/py-cirq-ionq/Cirq-0.13.1/cirq-core/cirq/protocols/ |
H A D | decompose_protocol.py | 123 val: Any, 215 decomposed = decompose_once(item, default=None) 251 val: Any, default: TDefault, *args, **kwargs 256 def decompose_once(val: Any, default=RaiseTypeErrorIfNotProvided, *args, **kwargs): argument 291 if default is not RaiseTypeErrorIfNotProvided: 292 return default 308 val: Any, 310 default: Optional[TDefault], 316 val: Any, qubits: Iterable['cirq.Qid'], default=RaiseTypeErrorIfNotProvided argument 344 return decompose_once(val, default, tuple(qubits)) [all …]
|
/dports/science/py-cirq-google/Cirq-0.13.0/cirq-core/cirq/protocols/ |
H A D | decompose_protocol.py | 123 val: Any, 215 decomposed = decompose_once(item, default=None) 251 val: Any, default: TDefault, *args, **kwargs 256 def decompose_once(val: Any, default=RaiseTypeErrorIfNotProvided, *args, **kwargs): argument 291 if default is not RaiseTypeErrorIfNotProvided: 292 return default 308 val: Any, 310 default: Optional[TDefault], 316 val: Any, qubits: Iterable['cirq.Qid'], default=RaiseTypeErrorIfNotProvided argument 344 return decompose_once(val, default, tuple(qubits)) [all …]
|
/dports/math/maxima/maxima-5.43.2/interfaces/xmaxima/Tkmaxima/ |
H A D | Push.tcl | 26 proc pushl { val key } { 28 append __pushl_ar($key) " [list $val]" 44 proc peekl {key default {m 1}} { 47 return $default 49 return $default 51 set n [llength $val] 53 return [lindex $val [incr n -$m]] 55 return $default 79 set n [llength $val] 80 set result [lindex $val [incr n -1]] [all …]
|
/dports/www/orangehrm/orangehrm-4.9/symfony/lib/vendor/log4php/helpers/ |
H A D | LoggerOptionConverter.php | 73 * @param boolean $default 80 return $default; 96 return $default; 110 return $default; 178 * @param float $default 185 return $default; 203 return $default; 285 return $val; 287 $sbuf .= substr($val, $i); 292 $sbuf .= substr($val, $i, $j-$i); [all …]
|
/dports/security/fcrackzip/fcrackzip-1.0/ |
H A D | gencrack.pl | 26 $default=$2; 38 my(@val); 39 if($val) { 40 @val=split /\s*\$\s*/,$val; 41 for(@val) { 47 $def{$def}=[@val]; 57 undef $default; 66 my($val)=delete $def{$sym}; 67 for(@{$val}) { 70 $def{$sym}=$val; [all …]
|
/dports/sysutils/py-plumbum/plumbum-1.7.1/plumbum/cli/ |
H A D | switches.py | 253 if default is None: 297 self, names, argtype=None, default=default, list=False, **kwargs 321 self, names, argtype=None, default=default, list=True, **kwargs 534 def ExistingDirectory(val): argument 536 p = local.path(val) 543 def MakeDirectory(val): argument 544 p = local.path(val) 555 def ExistingFile(val): argument 557 p = local.path(val) 564 def NonexistentPath(val): argument [all …]
|
/dports/databases/opentsdb/opentsdb-2.3.0/tools/ |
H A D | check_tsd | 61 parser.add_option('-r', '--rate', default=False, 67 parser.add_option('-v', '--verbose', default=False, 219 val = datapoint[2] 220 if '.' in val: 221 val = float(val) 223 val = int(val) 226 if comparator(val, options.critical): 230 elif rv < 2 and comparator(val, options.warning): 235 or comparator(val, badval))): # Worse value. 236 badval = val [all …]
|
/dports/devel/py-pylama/pylama-7.7.1/pylama/ |
H A D | config.py | 47 def split_csp_str(val): argument 53 values = val if isinstance(val, (list, tuple)) else val.strip().split(',') 89 "paths", nargs='*', default=_Default([CURDIR]), 99 "--format", "-f", default=_Default('pycodestyle'), 104 "--select", "-s", default=_Default(''), type=split_csp_str, 108 "--sort", default=_Default(''), type=split_csp_str, 123 "--skip", default=_Default(''), 173 for opt, val in cfg.default.items(): 178 val = val.split() 180 val = fix_pathname_sep(val) [all …]
|
/dports/devel/elixir-conform/conform-2.5.2/lib/conform/types/ |
H A D | enum.ex | 10 default: :a, 19 def convert(nil, %Mapping{default: nil, datatype: [{_, values}]}) do 22 def convert(nil, %Mapping{default: default}), do: {:ok, default} 23 def convert(value, %Mapping{default: default, datatype: [{_, valid_values}]}) do 25 nil -> default 26 val when is_list(val) -> List.to_atom(val) 27 val when is_binary(val) -> String.to_atom(val)
|
/dports/devel/mercurial/mercurial-6.0/mercurial/ |
H A D | fancyopts.py | 81 flag, eq, val = arg.partition(b'=') 83 return flag, bool(eq), val, False 85 return flag, bool(eq), val, True 87 flag, val = arg[:2], arg[2:] 90 return flag, bool(val), val, shortlist.startswith(b':', i + 1) 197 parsedopts.append((flag, val)) 267 def _defaultopt(default): argument 271 return default 272 elif callable(default): 277 return _intopt(default) [all …]
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/app/assets/javascripts/vue_shared/components/ |
H A D | local_storage_sync.vue | 4 export default { 13 default: '', 18 default: false, 23 default: true, 28 default: false, 69 saveValue(val) { 74 serialize(val) { 75 return this.asJson ? JSON.stringify(val) : val; 77 deserialize(val) { 78 return this.asJson ? JSON.parse(val) : val; [all …]
|
/dports/www/py-falcon/falcon-2.0.0/falcon/ |
H A D | request.py | 1077 return default 1205 return default 1254 val = val[-1] 1276 return default 1347 return default 1413 return default 1488 return default 1563 return default 1600 return default 1647 return default [all …]
|
/dports/science/code_saturne/code_saturne-7.1.0/bin/model/ |
H A D | ThermalRadiationModel.py | 112 default = {} 113 default['radiative_model'] = "off" 114 default['quadrature'] = 1 115 default['directions_number'] = 3 116 default['restart_status'] = 'on' 118 default['value_coef'] = 0.0 119 default['frequency'] = 1 120 default['idiver'] = 2 121 default['tempP'] = 1 122 default['intensity'] = 0 [all …]
|
/dports/sysutils/webmin/webmin-1.981/sarg/ |
H A D | sarg-lib.pl | 171 local ($conf, $name, $size, $cols, $default) = @_; 178 [ [ 1, $default || $text{'default'}.$def ], 201 local $default = &find($name, $conf, 2); 230 local $default = &find($name, $conf, 2); 250 local $default = &find($name, $conf, 2); 280 local $default = &find($name, $conf, 2); 281 local $defstr = $default ? " ($default->{'value'})" : ""; 310 local ($conf, $name, $others, $default, $width) = @_; 315 [ [ 1, $default || $text{'default'} ], 333 local ($conf, $name, $sep, $default, $width) = @_; [all …]
|
/dports/science/dynare/dynare-4.6.4/contrib/jsonlab/ |
H A D | jsonopt.m | 1 function val=jsonopt(key,default,varargin) 3 % val=jsonopt(key,default,optstruct) 14 % default: if the key does not exist, return default 18 % val: if key exists, val=optstruct.key; otherwise val=default 26 val=default; 31 val=getfield(opt,key); 33 val=getfield(opt,lower(key));
|
/dports/sysutils/ansible2/ansible-2.9.27/lib/ansible/modules/database/proxysql/ |
H A D | proxysql_scheduler.py | 200 for col, val in iteritems(self.config_data): 201 if val is not None: 202 query_data.append(val) 223 if val is not None: 224 query_data.append(val) 245 if val is not None: 247 query_data.append(val) 272 if val is not None: 273 query_data.append(val) 327 login_host=dict(default="127.0.0.1"), [all …]
|
/dports/finance/prestashop/prestashop/src/PrestaShopBundle/Resources/views/Admin/Helpers/ |
H A D | range_inputs.html.twig | 43 value = [{{ min|default('0') }}, {{ max|default('1000000000') }}]; 50 if (value[0] > {{ min|default('0') }}) 51 minInput.val(value[0]); 53 maxInput.val(value[1]); 68 …val()!='')?Number(minInput.val().replace(',', '.')):{{ min|default('0') }}, (maxInput.val()!='')?N… 71 …if (isMinModified && !(newValues[0] >= {{ min|default('0') }} && newValues[0] <= {{ max|default('1… 73 minInput.val(''); 78 maxInput.val(''); 85 maxInput.val(newValues[0]); 90 minInput.val(newValues[0]); [all …]
|
/dports/databases/pgloader3/cl-unicode-20210124-git/build/ |
H A D | util.lisp | 118 (:method (value type default) 125 ((string= value "") default) 144 (if (symbolp default) 145 default 158 (loop for val in (ppcre:split " " value) 159 collect (parse-value val 'hex default))) 163 (loop for val in (ppcre:split " " value) 164 collect (parse-value val 165 (if (and val 166 (char= #\< (char val 0))) [all …]
|
/dports/lang/polyml/polyml-5.8.2/mlsource/MLCompiler/ |
H A D | Debug.ML | 35 (* How much to print in error messages? default 6 *) 41 (* Compile in debugging code? default false *) 44 (* Should functors be made inline? default true. *) 48 (* Add profile information to each allocation? default zero. 54 (* Print parsetree after parsing? default false *) 56 (* Print codetree after compiling? default false *) 58 (* Print the optimised code after compiling? default false *) 60 (* Print x86 intermediate code in code-generator? default false *) 64 (* Print assembly code in code-generator? default false *) 90 val defaults = [all …]
|
/dports/devel/py-nose2/nose2-0.10.0/nose2/ |
H A D | config.py | 24 def as_bool(self, key, default=None): argument 32 val = self._mvd[key][0].strip() 34 return default 38 return val.lower() in TRUE_VALS 40 def as_int(self, key, default=None): argument 48 def as_str(self, key, default=None): argument 64 return default 65 for val in vlist: 67 line.strip() for line in val.splitlines() 71 def get(self, key, default=None): argument [all …]
|
/dports/lang/sisc/sisc-1.16.6/scheme-src/ |
H A D | optional-args.scm | 10 (define (check-arg pred val caller) 11 (let lp ((val val)) 12 (if (pred val) val (lp (error "Bad argument" val pred caller))))) 27 (let ((val (car maybe-arg))) 28 (if (arg-test val) val 30 'arg-test val))) 47 ((%let-optionals* arg ((var default) opt-clause ...) body ...) 48 (call-with-values (lambda () (if (null? arg) (values default '()) 53 ((%let-optionals* arg ((var default test) opt-clause ...) body ...) 55 (if (null? arg) (values default '()) [all …]
|
/dports/x11-wm/enlightenment/enlightenment-0.24.2/src/modules/wl_weekeyboard/themes/default/ |
H A D | default.edc | 26 image: "key-default.png" COMP; 27 image: "key-default-pressed.png" COMP; 56 state: "default" 0.0; 75 state: "default" 0.0; 95 state: "default" 0.0; \ 772 state: "default" 0.0; 791 inherit: "default" 0.0; 802 state: "default" 0.0; 821 state: "default" 0.0; 837 inherit: "default" 0.0; [all …]
|
/dports/sysutils/vector/vector-0.10.0/src/event/ |
H A D | discriminant.rs | 123 Value::Bytes(val) => val.hash(hasher), in hash_value() 124 Value::Boolean(val) => val.hash(hasher), in hash_value() 125 Value::Integer(val) => val.hash(hasher), in hash_value() 126 Value::Timestamp(val) => val.hash(hasher), in hash_value() 128 Value::Float(val) => hash_f64(hasher, val), in hash_value() 129 Value::Array(val) => hash_array(hasher, val), in hash_value() 130 Value::Map(val) => hash_map(hasher, val), in hash_value() 141 for val in array.iter() { in hash_array() 142 hash_value(hasher, val); in hash_array() 149 hash_value(hasher, val); in hash_map() [all …]
|
/dports/security/py-zkg/package-manager-2.12.0/zeekpkg/ |
H A D | uservar.py | 38 def __init__(self, name, val=None, default=None, desc=None): argument 41 self._val = val 42 self._default = default if default is not None else val 50 def set(self, val): argument 51 self._val = val 56 def default(self): member in UserVar 89 val = None 95 val = uvar.val() 101 if val: 108 return val [all …]
|