code stringlengths 3 6.57k |
|---|
onto(conn) |
from (yield from conn.cursor() |
execute('select \'blah\'') |
conn.close() |
writer.pop() |
len(spans) |
unpatch() |
aiopg.connect(**POSTGRES_CONFIG) |
from (yield from conn.cursor() |
execute('select \'blah\'') |
conn.close() |
writer.pop() |
patch() |
aiopg.connect(**POSTGRES_CONFIG) |
Pin.get_from(conn) |
clone(service=service, tracer=tracer) |
onto(conn) |
from (yield from conn.cursor() |
execute('select \'blah\'') |
conn.close() |
writer.pop() |
len(spans) |
AiopgAnalyticsTestCase(AiopgTestCase) |
trace_spans(self) |
self._get_conn_and_tracer() |
Pin.get_from(conn) |
clone(service='db', tracer=self.tracer) |
onto(conn) |
conn.cursor() |
cursor.execute('select \'foobar\'') |
cursor.fetchall() |
self.get_spans() |
test_analytics_default(self) |
self.trace_spans() |
self.assertEqual(len(spans) |
self.assertIsNone(spans[0].get_metric(ANALYTICS_SAMPLE_RATE_KEY) |
test_analytics_with_rate(self) |
dict(analytics_enabled=True, analytics_sample_rate=0.5) |
self.trace_spans() |
self.assertEqual(len(spans) |
self.assertEqual(spans[0].get_metric(ANALYTICS_SAMPLE_RATE_KEY) |
test_analytics_without_rate(self) |
dict(analytics_enabled=True) |
self.trace_spans() |
self.assertEqual(len(spans) |
self.assertEqual(spans[0].get_metric(ANALYTICS_SAMPLE_RATE_KEY) |
VisionDatasetWithIndices(torchvision.datasets.vision.VisionDataset) |
triple (data, targets, indices) |
just (data, targets) |
__init__(self, dataset) |
super(VisionDatasetWithIndices, self) |
__init__(None) |
__getitem__(self, index) |
self.dataset.__getitem__(index) |
__len__(self) |
len(self.dataset) |
argparse.ArgumentParser(description="Compile the Mount&Blade Warband shaders.") |
parser.add_argument("-b", "--compile-b", action="store_true", help="compile the ps_2_b profile as well") |
parser.parse_args() |
os.access(os.path.join("shaders", "fxc.exe") |
exit(1) |
compile_profile(profile, name) |
subprocess.call(command_list, cwd="shaders") |
os.path.join("shaders", "mb.fxo") |
module_info.export_path(name) |
os.remove(module_fxo) |
shutil.move(output_fxo, module_fxo) |
os.remove(output_fxo) |
exit(exit_code) |
compile_profile("ps_2_a", "mb.fx") |
compile_profile("ps_2_b", "mb_2b.fx") |
Hello(Component) |
__init__(self) |
super(Hello, self) |
__init__() |
on_clock(self) |
self.clock.recv_pyobj() |
time.time() |
self.logger.info('on_clock() |
str(now) |
DataConnector(pulumi.CustomResource) |
warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) |
warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) |
pulumi.ResourceOptions() |
isinstance(opts, pulumi.ResourceOptions) |
TypeError('Expected resource options to be a ResourceOptions instance') |
_utilities.get_version() |
TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') |
dict() |
TypeError("Missing required property 'kind'") |
TypeError("Missing required property 'resource_group_name'") |
TypeError("Missing required property 'workspace_name'") |
pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-nextgen:securityinsights:DataConnector") |
pulumi.Alias(type_="azure-nextgen:securityinsights/latest:DataConnector") |
pulumi.ResourceOptions.merge(opts, alias_opts) |
super(DataConnector, __self__) |
pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id) |
dict() |
DataConnector(resource_name, opts=opts, __props__=__props__) |
etag(self) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.