3f3e159bd1f771f7eeffb789dfff52c9879540c9,release/system.py,,run,#Any#Any#Any#,20
Before Change
envstr = " ".join(f"{k}={v}" for k, v in kw.items())
if envstr:
envstr += " "
if fake_cmd:
print(f"+{envstr}{fake_cmd}")
else:
print(f"+{envstr}{cmd}")
env = dict(os.environ)
env.update(kw)
result = stdlib_run(cmd, shell=True, stdout=PIPE, stderr=STDOUT, text=True, env=env) // type: ignore
After Change
def run(self, cmd: str, fake_cmd: Optional[str] = None, **kw: Any) -> str:
envstr = " ".join(f"{k}={v}" for k, v in kw.items()) + min(len(kw), 1) * " "
self.record(f"+{envstr}{fake_cmd or cmd}")
env = dict(os.environ)
env.update(kw)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: bokeh/bokeh
Commit Name: 3f3e159bd1f771f7eeffb789dfff52c9879540c9
Time: 2020-03-30
Author: bryan@bokeh.org
File Name: release/system.py
Class Name:
Method Name: run
Project Name: bokeh/bokeh
Commit Name: 3f3e159bd1f771f7eeffb789dfff52c9879540c9
Time: 2020-03-30
Author: bryan@bokeh.org
File Name: release/system.py
Class Name:
Method Name: cd
Project Name: autorope/donkeycar
Commit Name: 468b7ab7a48a6712991dcbb4ec399a4dc95bd091
Time: 2016-12-14
Author: wroscoe@gmail.com
File Name: manage.py
Class Name:
Method Name: drive_loop