28f055f228768e40cc4686307ac1428a739d83e6,wandb/sdk_py27/wandb_init.py,_WandbInit,setup,#_WandbInit#Any#,59
Before Change
self.config.setdefault(k, v)
// Temporarily unsupported parameters
unsupported = (
"allow_val_change",
"force",
)
for key in unsupported:
val = kwargs.pop(key, None)
if val:
self._reporter.warning(
"currently unsupported wandb.init() arg: %s", key
)
monitor_gym = kwargs.pop("monitor_gym", None)
if monitor_gym and len(wandb.patched["gym"]) == 0:
wandb.gym.monitor()
After Change
// handle login related parameters as these are applied to global state
anonymous = kwargs.pop("anonymous", None)
force = kwargs.pop("force", None)
login_key = wandb.login(anonymous=anonymous, force=force)
if not login_key:
settings.mode = "offline"
// apply updated global state after login was handled
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances Project Name: wandb/client
Commit Name: 28f055f228768e40cc4686307ac1428a739d83e6
Time: 2020-09-25
Author: jeff@wandb.com
File Name: wandb/sdk_py27/wandb_init.py
Class Name: _WandbInit
Method Name: setup
Project Name: wandb/client
Commit Name: 28f055f228768e40cc4686307ac1428a739d83e6
Time: 2020-09-25
Author: jeff@wandb.com
File Name: wandb/sdk/wandb_init.py
Class Name: _WandbInit
Method Name: setup
Project Name: chakki-works/doccano
Commit Name: a7d2b0b99fb787c665f79a8ff8d7d6b6723089fa
Time: 2019-01-23
Author: light.tree.1.13@gmail.com
File Name: app/server/tests/test_projects_api.py
Class Name: TestProjects
Method Name: setUp
Project Name: chakki-works/doccano
Commit Name: 655e3f55a5c24e11941f17942b3fa108c81fb603
Time: 2019-01-23
Author: light.tree.1.13@gmail.com
File Name: app/server/tests/test_annotation_api.py
Class Name: TestAnnotationAPI
Method Name: setUp