code stringlengths 3 6.57k |
|---|
len( self.desc ) |
if (len( line ) |
len( line.lstrip() |
result.append( line ) |
join( result ) |
rstrip() |
get_id ( self, name ) |
isinstance(name, basestring) |
Checks (or unchecks) |
checked ( self, name, check = None ) |
Checks (or unchecks) |
self.menu.IsChecked( self.get_id( name ) |
self.menu.Check( self.get_id( name ) |
Enables (or disables) |
enabled ( self, name, enable = None ) |
Enables (or disables) |
self.menu.IsEnabled( self.get_id( name ) |
self.menu.Enable( self.get_id( name ) |
label ( self, name, label = None ) |
self.menu.GetLabel( self.get_id( name ) |
self.menu.SetLabel( self.get_id( name ) |
__init__ ( self, menu, id ) |
checked ( self, check = None ) |
self.menu.checked( self.id, check ) |
toggle ( self ) |
self.checked() |
self.checked( checked ) |
enabled ( self, enable = None ) |
self.menu.enabled( self.id, enable ) |
label ( self, label = None ) |
self.menu.label( self.id, label ) |
option_check ( test, string ) |
string.find( char ) |
result.append( col >= 0 ) |
string.strip() |
null_handler ( event ) |
request_t(object) |
__init__(self) |
encode(self) |
StringIO.StringIO() |
buf.write(request_t._get_packed_fingerprint() |
self._encode_one(buf) |
buf.getvalue() |
_encode_one(self, buf) |
buf.write(struct.pack(">q", self.utime) |
decode(data) |
hasattr(data, 'read') |
StringIO.StringIO(data) |
buf.read(8) |
request_t._get_packed_fingerprint() |
ValueError("Decode error") |
request_t._decode_one(buf) |
staticmethod(decode) |
_decode_one(buf) |
request_t() |
struct.unpack(">q", buf.read(8) |
staticmethod(_decode_one) |
_get_hash_recursive(parents) |
staticmethod(_get_hash_recursive) |
_get_packed_fingerprint() |
struct.pack(">Q", request_t._get_hash_recursive([]) |
staticmethod(_get_packed_fingerprint) |
os.getenv("CONAN_CHANNEL", "testing") |
os.getenv("CONAN_USERNAME", "memsharded") |
EasyLoggingTestConan(ConanFile) |
build(self) |
CMake(self.settings) |
self.run('cmake "%s" %s' % (self.conanfile_directory, cmake.command_line) |
self.run("cmake --build . %s" % cmake.build_config) |
imports(self) |
self.copy("*.cc") |
test(self) |
os.chdir("bin") |
self.run(".%sexample" % os.sep) |
performed (by calling `fit() |
jax.config.update('jax_platform_name', 'cpu') |
TestPlugin(unittest.TestCase) |
setUpClass(self) |
test_find_plugin(self) |
find_skill_plugins() |
self.assertIn(self.skill_id, list(plugins) |
make_parallel(model, gpu_count) |
get_slice(data, idx, parts) |
tf.shape(data) |
tf.concat(0, [shape[:1] // parts, shape[1:]]) |
tf.concat(0, [shape[:1] // parts, shape[1:] * 0]) |
tf.slice(data, start, size) |
range(len(model.outputs) |
outputs_all.append([]) |
range(gpu_count) |
tf.device('/gpu:%d' % i) |
tf.name_scope('tower_%d' % i) |
tuple(x.get_shape() |
as_list() |
Lambda(get_slice, output_shape=input_shape, arguments={'idx': i, 'parts': gpu_count}) |
inputs.append(slice_n) |
model(inputs) |
isinstance(outputs, list) |
range(len(outputs) |
append(outputs[l]) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.