59cb786bc30a73fbe3c114ea4b8cdff338e9bb5c,lib/matplotlib/backend_tools.py,ToolHelpBase,format_shortcut,#Any#,1031

Before Change


            s = match.group(0)
            return "Shift+" + s if len(
                s) == 1 and s.isupper() else s.capitalize()
        if len(keysequence) == 1:
            return keysequence  // do not modify single characters
        return re.sub(r"\w{2,}|(?<=\+)\w", repl, keysequence)

After Change


        standard notation for displaying shortcuts, e.g. "ctrl+a" -> "Ctrl+A".
        
        return (key_sequence if len(key_sequence) == 1 else
                re.sub(r"\+[A-Z]", r"+Shift\g<0>", key_sequence).title())

    def _format_tool_keymap(self, name):
        keymaps = self.toolmanager.get_tool_keymap(name)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: matplotlib/matplotlib
Commit Name: 59cb786bc30a73fbe3c114ea4b8cdff338e9bb5c
Time: 2018-04-18
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/backend_tools.py
Class Name: ToolHelpBase
Method Name: format_shortcut


Project Name: NifTK/NiftyNet
Commit Name: 4e1a3df937b398cdc38a635bdbe4a15dc79bb8c2
Time: 2018-09-11
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/utilities/filename_matching.py
Class Name: KeywordsMatching
Method Name: __extract_subject_id_from


Project Name: mynlp/ccg2lambda
Commit Name: 66a06524eba0b22d14204baeb2ca6d4c9db7d1d0
Time: 2017-05-12
Author: pascual@nii.ac.jp
File Name: scripts/semantic_types.py
Class Name:
Method Name: convert_coq_to_nltk_type