code stringlengths 3 6.57k |
|---|
apply(lambda x: x[0] + '---' + x[1], axis = 1) |
mean() |
reset_index() |
plt.figure(figsize=(20, 10) |
sns.lineplot(x='theta_0_current', y='out_confint', hue='class_combo', data=plot_df, palette='cubehelix') |
plt.legend(loc='best', fontsize=25) |
plt.xlabel(r'$\theta$', fontsize=25) |
plt.ylabel('Power', fontsize=25) |
run.title() |
str(alpha) |
replace('.', '-') |
str(t0_val) |
replace('.', '-') |
datetime.strftime(datetime.today() |
plt.tight_layout() |
plt.savefig(out_dir + outfile_name) |
plt.close() |
argparse.ArgumentParser() |
parser.parse_args() |
API (with Kubernetes) |
secret (in JWT form) |
events (which on a large cluster may only be a few tens of seconds) |
scoped (only exist inside of a namespace) |
scoped (exist outside of a namespace) |
JSON (Accept: application/json and Content-Type: application/json) |
YAML (application/yaml) |
schema (application/vnd.kubernetes.protobuf) |
frames (4 bytes in network-order) |
TestV1LoadBalancerIngress(unittest.TestCase) |
setUp(self) |
tearDown(self) |
testV1LoadBalancerIngress(self) |
openshift.client.models.v1_load_balancer_ingress.V1LoadBalancerIngress() |
unittest.main() |
Copyright (c) |
Tools(unittest.TestCase) |
setUp(self) |
Logger() |
self.logger.info('--Opengauss_Function_Tools_Gaussdb_Case0014 start--') |
Node('PrimaryDbUser') |
Node('PrimaryDbUser') |
CommonSH('PrimaryDbUser') |
Common() |
test_systools(self) |
self.logger.info('--------关闭正在运行的数据库--------') |
self.logger.info(excute_cmd1) |
self.userNode.sh(excute_cmd1) |
result() |
self.logger.info(msg1) |
self.logger.info('--------查看进程,确定关闭成功--------') |
self.logger.info(excute_cmd2) |
self.userNode.sh(excute_cmd2) |
result() |
self.logger.info(msg2) |
self.assertFalse(self.DB_INSTANCE_PATH in msg2) |
self.logger.info('使用gaussdb工具后台运行进程,缺省日期风格设置为European') |
self.logger.info(excute_cmd3) |
ComThread(self.userNode2.sh, args=(excute_cmd3,) |
thread_2.setDaemon(True) |
thread_2.start() |
thread_2.join(10) |
thread_2.get_result() |
self.logger.info(msg_result_2) |
self.logger.info('--------查看当前日期风格,是否为European风格--------') |
self.logger.info(excute_cmd3) |
self.sh_primy.execut_db_sql(sql_cmd3) |
self.logger.info(msg3) |
self.common.equal_sql_mdg(msg3, 'DateStyle', 'ISO, DMY', '(1 row) |
tearDown(self) |
self.logger.info('-Opengauss_Function_Tools_Gaussdb_Case0014 finish-') |
TqdmSynchronisationWarning(RuntimeWarning) |
TMonitor(Thread) |
use (can be core tqdm or a submodule) |
__init__(self, tqdm_cls, sleep_interval) |
Thread.__init__(self) |
killed (KeyboardInterrupt) |
self._test.get("time", time) |
self._test.get("Event", Event) |
atexit.register(self.exit) |
self.start() |
exit(self) |
self.was_killed.set() |
current_thread() |
self.join() |
self.report() |
get_instances(self) |
self.tqdm_cls._instances.copy() |
hasattr(i, 'start_t') |
run(self) |
self._time() |
self.was_killed.wait(self.sleep_interval) |
self.was_killed.is_set() |
lock (to access _instances) |
self.tqdm_cls.get_lock() |
self._time() |
self.get_instances() |
self.was_killed.is_set() |
and (cur_t - instance.last_print_t) |
instance.refresh(nolock=True) |
self.get_instances() |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.