Home
last modified time | relevance | path

Searched refs:self (Results 1 – 25 of 550) sorted by relevance

12345678910>>...22

/freebsd-13.1/sys/contrib/openzfs/contrib/pyzfs/libzfs_core/test/
H A Dtest_nvlist.py45 self.assertEqual(
52 self.assertEqual(
58 self.assertEqual(
63 def test_empty(self): argument
87 def test_string_value(self): argument
97 def test_boolean_values(self): argument
122 def test_uint64_value(self): argument
342 def test_nested_dict(self): argument
367 def test_string_array(self): argument
382 def test_uint64_array(self): argument
[all …]
/freebsd-13.1/tools/sched/
H A Dschedgraph.py194 self.scale = Scale(self, command=self.scaleset,
236 self.label = Label(self, text=self.name, anchor=W)
241 self.list = OptionMenu(self, self.color, command=self.setcolor,
284 self.buttons = Frame(self)
340 self.label = Label(self, text=self.name, anchor=W)
370 self.iframe = Frame(self)
374 self.buttons = Frame(self)
535 self.buttons = Frame(self)
537 self.frame = Frame(self)
1336 self.names = SchedNames(self, self.display)
[all …]
/freebsd-13.1/contrib/ntp/sntp/libevent/
H A Devent_rpcgen.py407 if self._optional and self._array:
542 self._struct.Name(), self._ctype),
556 self._struct.Name(), self._ctype),
593 name, self._name, name, self._name)]
831 self._struct.Name(), self._ctype),
932 self._refname, name, self._name)]
974 self._struct.Name(), self._ctype),
993 self._struct.Name(), self._ctype),
1064 self._ctype = self._entry._ctype
1666 self.impl_file = self.factory.CodeFilename(self.filename)
[all …]
/freebsd-13.1/contrib/libevent/
H A Devent_rpcgen.py407 if self._optional and self._array:
542 self._struct.Name(), self._ctype),
556 self._struct.Name(), self._ctype),
593 name, self._name, name, self._name)]
831 self._struct.Name(), self._ctype),
932 self._refname, name, self._name)]
974 self._struct.Name(), self._ctype),
993 self._struct.Name(), self._ctype),
1064 self._ctype = self._entry._ctype
1666 self.impl_file = self.factory.CodeFilename(self.filename)
[all …]
/freebsd-13.1/contrib/ntp/scripts/monitoring/
H A Dlr.pl72 return 1 unless ($self->{n} * $self->{sx2} - $self->{sx}**2);
73 return ($self->{n} * $self->{sxy} - $self->{sx} * $self->{sy})
74 / ($self->{n} * $self->{sx2} - $self->{sx}**2);
81 return ($self->{sy} - B() * $self->{sx}) / $self->{n};
102 my $s = ($self->{n} * $self->{sx2} - $self->{sx}**2)
103 * ($self->{n} * $self->{sy2} - $self->{sy}**2);
107 return ($self->{n} * $self->{sxy} - $self->{sx} * $self->{sy}) / sqrt($s);
114 return ($self->{sxy} - $self->{sx} * $self->{sy} / $self->{n})
123 return sqrt(($self->{sy2} - ($self->{sy} * $self->{sy}) / $self->{n})
132 return $self->{sy} / $self->{n};
[all …]
/freebsd-13.1/contrib/googletest/googlemock/scripts/generator/cpp/
H A Dgmock_class_test.py43 self.assertEqual(expected_lines, self.StripLeadingWhitespace(lines))
57 def testSimpleMethod(self): argument
85 def testVirtualDestructor(self): argument
130 def testSimpleOverrideMethod(self): argument
141 def testSimpleConstMethod(self): argument
152 def testExplicitVoid(self): argument
175 def testDefaultParameters(self): argument
236 def testArgsOfTemplateTypes(self): argument
326 def testNamespaces(self): argument
391 def testTemplatedClass(self): argument
[all …]
H A Dast.py151 value = '%s %s' % (self.name, self.definition)
165 return self._StringHelper(self.__class__.__name__, fmt % self.filename)
174 return self._StringHelper(self.__class__.__name__, str(self.label))
187 return self._StringHelper(self.__class__.__name__, str(self.expr))
210 return self._StringHelper(self.__class__.__name__, str(self.names))
240 if self.namespace and self.namespace[-1]:
264 suffix = '%s %s' % (self.type, self.name)
270 return self._StringHelper(self.__class__.__name__, self.ToString())
293 suffix = '%s, %s' % (self.name, self.alias)
394 (self.return_type, self.name, self.parameters,
[all …]
/freebsd-13.1/contrib/lib9p/pytest/
H A Dp9conn.py65 self.message = self._get_message()
66 super(RemoteError, self).__init__(self, self.message)
70 '{5})'.format(self.__class__.__name__, self.client, self.op,
71 self.msg, self.errno, self.etype))
73 prefix = '{0}: {1}: '.format(self.client, self.op)
92 }[self.etype](self.errno)
117 self.max_payload = 2**32 - self.size_coder.size
172 self.max_payload = maxio - self.size_coder.size
183 self.max_payload = maxio - self.size_coder.size
226 size_field = self.xread(self.size_coder.size)
[all …]
H A Dsequencer.py55 self.name = name
56 self.aux = aux
205 self.fmt = fmt
212 self.name, self.fmt)
214 self.name, self.fmt, self.aux)
253 return self._unpack1(self.struct, bstring, offset, noerror)
339 self.klass, self.name, self.sequence)
341 self.klass, self.name, self.sequence, self.aux)
424 self.repeat, self.name, self.sub)
426 self.repeat, self.name, self.sub, self.aux)
[all …]
H A Dnumalloc.py132 self.avail = []
134 self.last = None
137 def __repr__(self): argument
139 if self.autoextend:
143 return '{0}({1}, {2}{3})'.format(myname, self.min_val, self.max_val, ae)
204 with self.lock:
206 val = self.last + 1 if self.last is not None else self.min_val
207 if val is None or val > self.max_val or val < self.min_val:
252 def free(self, val): argument
268 with self.lock:
[all …]
/freebsd-13.1/tools/tools/shlib-compat/
H A Dshlib-compat.py117 total = self.hit + self.miss
134 if self.enabled and id in self.items:
159 self.common = self.orig & self.new
160 self.added = self.new - self.common
161 self.removed = self.orig - self.common
172 self._result = obj._pp(self)
198 return "Symbol(%s, 0x%x, %s)" % (self.name, self.offset, self.version)
348 if self.encoding in self.inttypes:
713 self.parser = self.parse_begin
786 self.add_symbol(self.local_symbols, p, self.local_offsetmap);
[all …]
/freebsd-13.1/contrib/bmake/mk/
H A Dmeta2deps.py246 self.exts = target_spec_exts(self.target_spec)
271 if self.target_spec != self.machine:
305 if self.dpdeps and not self.reldir:
309 srctop = self.find_top(self.curdir, self.srctops)
318 self.last_dir = self.cwd
444 cwd = self.last_dir = self.cwd
565 srctop = self.find_top(path, self.srctops)
590 path = resolve(path, cwd, self.last_dir, self.debug, self.debug_out)
601 dir = abspath(dir, cwd, self.last_dir, self.debug, self.debug_out)
613 if path in [self.last_dir, cwd, self.cwd, self.curdir]:
[all …]
/freebsd-13.1/contrib/sendmail/contrib/
H A Dqtool.pl490 my $self = {};
493 return $self;
744 return $self;
754 $self->{file_name} = $data_dir . '/df' . $self->{id};
764 $self->{file_name} = $data_dir . '/df' . $self->{id};
822 return $self;
854 return $self;
1006 return $self;
1208 return $self;
1248 return $self;
[all …]
/freebsd-13.1/crypto/openssl/crypto/perlasm/
H A Dx86_64-xlate.pl161 "$self->{op}$self->{sz}";
173 $self->{op} .= $self->{sz};
239 ($self->{base},$self->{index},$self->{scale})=split(/,/,$3);
284 if (!$self->{label} && $self->{index} && $self->{scale}==1 &&
286 $self->{base} = $self->{index}; $self->{index} = $1;
294 $self->{asterisk},$self->{label},
296 $self->{index},$self->{scale},
300 $self->{base},$self->{opmask};
319 $self->{index},$self->{scale},
327 $self->{base},$self->{opmask};
[all …]
/freebsd-13.1/share/mk/
H A Dmeta2deps.py290 if self.dpdeps and not self.reldir:
294 srctop = self.find_top(self.curdir, self.srctops)
303 self.last_dir = self.cwd
429 cwd = self.last_dir = self.cwd
439 self.seenit(self.curdir) # we ignore this
524 srctop = self.find_top(path, self.srctops)
549 path = resolve(path, cwd, self.last_dir, self.debug, self.debug_out)
560 dir = abspath(dir, cwd, self.last_dir, self.debug, self.debug_out)
569 if path in [self.last_dir, cwd, self.cwd, self.curdir]:
582 if dir == self.cwd or dir == self.curdir:
[all …]
/freebsd-13.1/sys/contrib/openzfs/contrib/pyzfs/libzfs_core/
H A Dexceptions.py42 def __str__(self): argument
45 self.errno, self.message, self.name)
47 return "[Errno %d] %s" % (self.errno, self.message)
49 def __repr__(self): argument
51 self.__class__.__name__, self.errno, self.message)
59 self.name = name
79 def __str__(self): argument
81 ZFSError.__str__(self), len(self.errors), self.suppressed_count)
83 def __repr__(self): argument
85 self.__class__.__name__, self.errno, self.message, self.errors,
[all …]
/freebsd-13.1/contrib/wpa/wpa_supplicant/examples/p2p/
H A Dp2p_connect.py86 self.pin = pin
101 self.wpas_object = self.bus.get_object(
105 self.wpas_object, self.wpas_dbus_interface)
110 self.path = self.wpas.GetInterface(ifname)
128 self.interface_object = self.bus.get_object(
129 self.wpas_dbus_interface,self.path)
153 'peer':dbus.ObjectPath(self.path+'/Peers/'+self.addr)}
158 self.p2p_connect_arguements.update({'pin':self.pin})
164 if (self.go_intent != None and int(self.go_intent) != 15):
172 self.p2p_connect_arguements.update({'pin':self.pin})
[all …]
H A Dp2p_group_add.py80 self.wpas_wpas_dbus_interfaces_opath = self.wpas_dbus_opath + \
91 self.wpas_object = self.bus.get_object(
94 self.wpas = dbus.Interface(self.wpas_object,
100 self.path = self.wpas.GetInterface(
109 self.interface_object = self.bus.get_object(
110 self.wpas_dbus_interface, self.path)
111 self.p2p_interface = dbus.Interface(self.interface_object,
124 self.P2PDictionary = {'persistent':self.persistent}
128 self.P2PDictionary.update({'frequency':int(self.frequency)})
139 def run(self): argument
[all …]
/freebsd-13.1/contrib/llvm-project/lldb/bindings/python/
H A Dpython-extensions.swig7 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
298 if self.index >= self.length:
311 self.sbvalue = self.sbvalue.sbvalue
312 self.length = self.sbvalue.GetNumChildren()
428 result = self.__floordiv__(self, other)
433 result = self.__and__(self, other)
438 result = self.__pow__(self, other)
443 result = self.__pow__(self, other, modulo)
458 result = self.__and__(self, other)
463 result = self.__xor__(self, other)
[all …]
/freebsd-13.1/sys/contrib/openzfs/tests/test-runner/bin/
H A Dtest-runner.py.in183 ''' % (self.pathname, self.identifier, self.outputdir, self.timeout, self.user)
271 privcmd = self.update_cmd_privs(self.pathname, self.user)
297 self.result.done(proc, self.killed, self.reran)
402 ''' % (self.pathname, self.identifier, self.outputdir, self.timeout, self.user,
411 files = [self.pre, self.pathname, self.post, self.failsafe]
412 users = [self.pre_user, self.user, self.post_user, self.failsafe_user]
495 ''' % (self.pathname, self.identifier, self.outputdir, self.tests,
496 self.timeout, self.user, self.pre, pre_user, self.post, post_user,
511 self.pre = os.path.join(self.pathname, self.pre)
517 auxfiles = [self.pre, self.post, self.failsafe]
[all …]
/freebsd-13.1/contrib/googletest/googletest/test/
H A Dgoogletest-filter-unittest.py349 def setUp(self): argument
361 def testDefaultBehavior(self): argument
375 def testEmptyFilter(self): argument
378 self.RunAndVerify('', [])
382 def testBadFilter(self): argument
388 def testFullName(self): argument
414 def testFilterByTest(self): argument
464 self.RunAndVerify('*z*', [
472 def testTwoPatterns(self): argument
485 def testThreePatterns(self): argument
[all …]
H A Dgoogletest-catch-exceptions-test.py85 def TestSehExceptions(self, test_output): argument
104 self.TestSehExceptions(EX_BINARY_OUTPUT)
107 self.TestSehExceptions(BINARY_OUTPUT)
120 self.assert_('C++ exception with description '
124 self.assert_('unexpected' not in EX_BINARY_OUTPUT,
133 self.assert_('C++ exception with description '
141 def testCatchesCxxExceptionsInSetUpTestCase(self): argument
169 def testCatchesCxxExceptionsInSetUp(self): argument
187 def testCatchesCxxExceptionsInTearDown(self): argument
198 def testCatchesCxxExceptionsInTestBody(self): argument
[all …]
/freebsd-13.1/contrib/subversion/
H A Dwin-tests.py462 args = [self.name, '-d', '-r', self.root]
464 args = [self.name] + self.args
465 print('Starting %s %s' % (self.kind, self.name))
504 self.path = os.path.join(self.httpd_dir, 'bin', self.name)
513 self.path = os.path.join(self.httpd_dir, 'bin', self.name)
532 self.httpd_users = os.path.join(self.root, 'users')
541 self.httpd_args = [self.name, '-n', self._quote(self.service_name),
544 self.httpd_args = [self.name, '-f', self._quote(self.httpd_config)]
950 self.proc = subprocess.Popen([self.path] + self.httpd_args[1:])
974 self.path = os.path.join(self.memcached_dir, self.name)
[all …]
/freebsd-13.1/contrib/libucl/src/
H A Dtree.h71 (( (((self)->field.avl_left) ? (self)->field.avl_left->field.avl_height : 0)) \
72 - (((self)->field.avl_right) ? (self)->field.avl_right->field.avl_height : 0))
103 self->field.avl_right= TREE_ROTR_##node##_##field(self->field.avl_right); \
109 self->field.avl_left= TREE_ROTL_##node##_##field(self->field.avl_left); \
113 if (self->field.avl_left && (self->field.avl_left->field.avl_height > self->field.avl_height)) \
114 self->field.avl_height= self->field.avl_left->field.avl_height; \
115 … if (self->field.avl_right && (self->field.avl_right->field.avl_height > self->field.avl_height)) \
116 self->field.avl_height= self->field.avl_right->field.avl_height; \
150 self->field.avl_right= TREE_MOVE_RIGHT(self->field.avl_right, rhs); \
176 if (self) \
[all …]
/freebsd-13.1/sys/contrib/libsodium/packaging/dotnet-core/
H A Dprepare.py65 self.tempfile = os.path.join(self.tempdir, os.path.normpath(self.itemfile))
69 f.write('{0}: {1}\n'.format(self.packfile, self.tempfile))
73 f.write('{0}: {1}\n'.format(self.tempfile, self.cachefile))
77 os.path.relpath(self.cachefile, self.tempdir),
89 self.tempfile = os.path.join(self.tempdir, os.path.normpath(self.itemfile))
93 f.write('{0}: {1}\n'.format(self.packfile, self.tempfile))
97 f.write('{0}: {1}\n'.format(self.tempfile, self.cachefile))
101 os.path.relpath(self.cachefile, self.tempdir),
112 self.tempfile = os.path.join(self.tempdir, 'libsodium.so')
149 self.tempfile = os.path.join(self.tempdir, os.path.normpath(self.itemfile))
[all …]

12345678910>>...22