e4d0118115d1209f15aaaeba7e6e3424b87c2103,datasets/github/scrape_repos/preprocessors/extractors.py,,JavaMethods,#Any#Any#Any#Any#,21

Before Change


  del all_file_relpaths

  logging.debug("$ %s", JAVA_METHODS_EXTRACTOR)
  process = subprocess.Popen([JAVA_METHODS_EXTRACTOR], stdin=subprocess.PIPE,
                             stdout=subprocess.PIPE, stderr=subprocess.PIPE,
                             universal_newlines=True)
  stdout, stderr = process.communicate(text)
  if process.returncode:
    raise ValueError("JavaMethodsExtractor exited with non-zero "
                     f"status {process.returncode}")
  methods_list = pbutil.FromString(stdout, scrape_repos_pb2.MethodsList())

After Change


  del import_root
  del file_relpath
  del all_file_relpaths
  return ExtractJavaMethods(text, static_only=False)


@public.dataset_preprocessor
def JavaStaticMethods(import_root: pathlib.Path, file_relpath: str, text: str,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 7

Instances


Project Name: ChrisCummins/clgen
Commit Name: e4d0118115d1209f15aaaeba7e6e3424b87c2103
Time: 2018-08-27
Author: chrisc.101@gmail.com
File Name: datasets/github/scrape_repos/preprocessors/extractors.py
Class Name:
Method Name: JavaMethods


Project Name: studioml/studio
Commit Name: bc6042a0a200eaea9b3b7e8e45dd6767c7831d73
Time: 2017-10-20
Author: peter.zhokhov@sentient.ai
File Name: studio/local_worker.py
Class Name:
Method Name: pip_install_packages


Project Name: facebook/FAI-PEP
Commit Name: 9c84d3d89b8511c4e310f29942e0155325bf30cd
Time: 2018-08-16
Author: sf_wind@hotmail.com
File Name: benchmarking/platforms/host/host_platform.py
Class Name: HostPlatform
Method Name: runBenchmark


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