92cd4cd05470ac382cc5d4765d77f1e26d27161c,labm8/py/internal/flags_parsers.py,DatabaseParser,convert,#DatabaseParser#Any#,93

Before Change


  def convert(self, argument: str) -> Callable[[], "sqlutil.Database"]:
    Returns the value of this argument.
    if not argument:
      raise TypeError("Path flag must be set")
    return _Database(self.database_class, argument, self.must_exist)

After Change


  def convert(self, argument: str) -> DatabaseFlag:
    Returns the value of this argument.
    if not argument:
      raise absl_app.UsageError("Database flag must be set")
    return DatabaseFlag(self.database_class, argument, self.must_exist)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: ChrisCummins/clgen
Commit Name: 92cd4cd05470ac382cc5d4765d77f1e26d27161c
Time: 2019-12-04
Author: chrisc.101@gmail.com
File Name: labm8/py/internal/flags_parsers.py
Class Name: DatabaseParser
Method Name: convert


Project Name: wandb/client
Commit Name: b056600770258e83f814a1048501d01d90b81609
Time: 2020-09-16
Author: jeff@wandb.com
File Name: wandb/sdk_py27/wandb_init.py
Class Name: _WandbInit
Method Name: init


Project Name: ChrisCummins/clgen
Commit Name: 92cd4cd05470ac382cc5d4765d77f1e26d27161c
Time: 2019-12-04
Author: chrisc.101@gmail.com
File Name: labm8/py/internal/flags_parsers.py
Class Name: PathParser
Method Name: convert


Project Name: wandb/client
Commit Name: b056600770258e83f814a1048501d01d90b81609
Time: 2020-09-16
Author: jeff@wandb.com
File Name: wandb/sdk/wandb_init.py
Class Name: _WandbInit
Method Name: init