1bcad437d2c1b57d582b893427bd53cd90eeafbf,aletheia/feaext.py,,extract_features,#Any#Any#Any#Any#,25
Before Change
print("The provided file is a directory:", output_file)
sys.exit(0)
if os.path.exists(output_file):
os.remove(output_file)
def extract_and_save(path):
try:
X = extract_fn(path, **params)
except Exception as e:
After Change
print("The provided file is a directory:", output_file)
sys.exit(0)
if os.path.exists(output_file):
print("Output file already exists! cotinue ...")
with open(output_file+".label", "r") as f:
labels = [os.path.join(image_path, x) for x in f.read().splitlines()]
pending_files = [x for x in files if x not in labels]
files = pending_files
print("Pending files:", len(files))
def extract_and_save(path):
try:
X = extract_fn(path, **params)
except Exception as e:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: daniellerch/aletheia
Commit Name: 1bcad437d2c1b57d582b893427bd53cd90eeafbf
Time: 2019-05-12
Author: dlerch@gmail.com
File Name: aletheia/feaext.py
Class Name:
Method Name: extract_features
Project Name: tensorflow/transform
Commit Name: cb7c20f6ad714f0b016a874b2b06a9fbed4e0a59
Time: 2020-07-16
Author: zoy@google.com
File Name: tensorflow_transform/test_case.py
Class Name: TransformTestCase
Method Name: AssertVocabularyContents
Project Name: pantsbuild/pants
Commit Name: 3e9e103c1d6f32f5a40f8a94a240b03221ba2bea
Time: 2016-04-17
Author: benjyw@gmail.com
File Name: src/python/pants/help/build_dictionary_info_extracter.py
Class Name: BuildDictionaryInfoExtracter
Method Name: get_description_from_docstring