f2889ca90ddd60b19070b7e8fbcb0867ae4c47ed,setup.py,,,#,25

Before Change


gpu_available = len(out) > 0

// check python version
py3_ver = int(platform.python_version().split(".")[1])

// Tensorflow version (make sure CPU/MKL/GPU versions exist before changing)
tf_version = "1.12.0"
tf_mkl_url = "https://storage.googleapis.com/intel-optimized-tensorflow/tensorflow-{}-cp3{}-cp3{}m-linux_x86_64.whl"

After Change


// Tensorflow version (make sure CPU/MKL/GPU versions exist before changing)
for r in install_requirements:
    if r.startswith("tensorflow=="):
        tf_version = r.split("==")[1]

// default TF is CPU
chosen_tf = "tensorflow=={}".format(tf_version)
// check system is linux for MKL/GPU backends
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: NervanaSystems/nlp-architect
Commit Name: f2889ca90ddd60b19070b7e8fbcb0867ae4c47ed
Time: 2019-05-01
Author: peter.izsak@intel.com
File Name: setup.py
Class Name:
Method Name:


Project Name: PyThaiNLP/pythainlp
Commit Name: b7ff45e0e63da05d2a118f8e050e9b20b9eb0f09
Time: 2018-11-04
Author: arthit@gmail.com
File Name: pythainlp/number/thainum.py
Class Name:
Method Name: bahttext


Project Name: 10XGenomics/cellranger
Commit Name: 8b9ffbfdec1a9b6daf7b47f63fc2656e3e267c25
Time: 2019-02-20
Author: nlhepler@gmail.com
File Name: mro/stages/aggregator/check_molecule_info_version/__init__.py
Class Name:
Method Name: split