206798edabf99a8ee4bb03ffba25968d2057bb18,setup.py,,,#,19
Before Change
cwd = os.path.dirname(os.path.abspath(__file__))
try:
sha = subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=cwd).decode("ascii").strip()
except Exception:
pass
if os.getenv("KORNIA_BUILD_VERSION"):
version = os.getenv("KORNIA_BUILD_VERSION")
elif sha != "Unknown":
version += "+" + sha[:7]
After Change
// the oldest one is the requirement. The versions should be inequalities.
// Once a pytorch version (in the future) breaks a kornia version, we could just
// add a maximal version.
kornia_pt_dependencies = {
"0.3.2": ">=1.5.0,<1.6.0", // torch==1.6.0 broke test/geometry/transform/test_crop.py
"0.3.1": ">=1.5.0",
"0.2.2": ">=1.4.0",
"0.1.4": ">=1.2.0",
}
// version can be overiden eg with KORNIA_BUILD_VERSION so we map each possible kornia version to the dictionary keys
def dep_version(version):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: arraiy/torchgeometry
Commit Name: 206798edabf99a8ee4bb03ffba25968d2057bb18
Time: 2020-07-30
Author: anguelos.nicolaou@gmail.com
File Name: setup.py
Class Name:
Method Name:
Project Name: automl/HPOlib2
Commit Name: 706aa7deac1b851721adb4931e61ff344cf05d7f
Time: 2020-12-21
Author: muller-phil@gmx.net
File Name: hpobench/config.py
Class Name: HPOBenchConfig
Method Name: __create_config_file
Project Name: home-assistant/home-assistant
Commit Name: 09d531b3b95e7943df53233d1abcb40d7e87de94
Time: 2016-08-18
Author: nkgilley@gmail.com
File Name: homeassistant/components/media_player/gpmdp.py
Class Name: GPMDP
Method Name: get_ws
Project Name: cjekel/tindetheus
Commit Name: 5a2b9314cd5b3f4da053a3813dceed362b039043
Time: 2018-11-03
Author: cjekel@gmail.com
File Name: tindetheus/tindetheus.py
Class Name:
Method Name: command_line_run