e08fcab00157590859a9a19bd483825e9ba75c18,bin/lib.py,,convert_pdf,#Any#,126
Before Change
def convert_pdf(f):
args = ["pdf2txt.py", f]
pipe = subprocess.Popen(
args,
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
)
stdout, stderr = pipe.communicate()
return stdout.decode("utf-8")
After Change
pdf2text.main(args=[f, "--outfile", output_filepath])
// Return contents of intermediate output file
return open(output_filepath).read()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: bjherger/ResumeParser
Commit Name: e08fcab00157590859a9a19bd483825e9ba75c18
Time: 2019-03-29
Author: 13herger@gmail.com
File Name: bin/lib.py
Class Name:
Method Name: convert_pdf
Project Name: scikit-image/scikit-image
Commit Name: ddfac3e42d2ae2e09751de6638d813c76e30ff94
Time: 2018-12-04
Author: mark.harfouche@gmail.com
File Name: tools/check_sdist.py
Class Name:
Method Name:
Project Name: MTG/freesound
Commit Name: 99a1522f89b93b12917087ae7ae7d910cf0c2cf1
Time: 2018-07-18
Author: phil.tgun@gmail.com
File Name: sounds/models.py
Class Name: Sound
Method Name: compute_crc