d29909cfde7cb220edf0ffdccdfb370f09a72de7,cscs-checks/prgenv/helloworld.py,HelloWorldBaseTest,setflags,#HelloWorldBaseTest#,92
Before Change
def setflags(self):
if "-nompi-nocuda" in self.current_environ.name:
envname = self.current_environ.name.replace("-nompi-nocuda", "")
elif "-nocuda" in self.current_environ.name:
envname = self.current_environ.name.replace("-nocuda", "")
else:
envname = self.current_environ.name.replace("-nompi", "")
After Change
@rfm.run_before("compile")
def setflags(self):
envname = re.sub(r"(PrgEnv-\w+).*", lambda m: m.group(1),
self.current_environ.name)
prgenv_flags = self.prgenv_flags[envname]
self.build_system.cflags = prgenv_flags
self.build_system.cxxflags = prgenv_flags
self.build_system.fflags = prgenv_flags
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: eth-cscs/reframe
Commit Name: d29909cfde7cb220edf0ffdccdfb370f09a72de7
Time: 2020-06-25
Author: kraushaar@cscs.ch
File Name: cscs-checks/prgenv/helloworld.py
Class Name: HelloWorldBaseTest
Method Name: setflags
Project Name: rodluger/starry
Commit Name: febbb428a2a38521079fe2b220d020ac22ba7cce
Time: 2018-05-25
Author: rodluger@gmail.com
File Name: tests/test_notebooks.py
Class Name:
Method Name: test_notebooks
Project Name: pgmpy/pgmpy
Commit Name: ce229c76dfffda7563071fc461ee1f7e31080172
Time: 2015-11-10
Author: utkarsh.gupta550@gmail.com
File Name: pgmpy/readwrite/BIF.py
Class Name: BifReader
Method Name: __init__