7ef05274835b2272b1b431d3633d0559db684197,textblob/translate.py,Translator,_get_translation_from_json5,#Translator#Any#,71

Before Change


        pos = 2
        while True:
            m = self.translation_pattern.match(content, pos)
            if not m:
                break
            result += m.group(1)
            pos = m.end()
        return _unescape(result)

    def _get_json5(self, url, host=None, type_=None, data=None):

After Change


    def _get_translation_from_json5(self, content):
        result = u""
        json_data = json.loads(content)
        if "sentences" in json_data:
            result = "".join([s["trans"] for s in json_data["sentences"]])
        return _unescape(result)

    def _get_json5(self, url, host=None, type_=None, data=None):
        encoded_data = urlencode(data).encode("utf-8")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: sloria/TextBlob
Commit Name: 7ef05274835b2272b1b431d3633d0559db684197
Time: 2015-06-08
Author: jschnurr@gmail.com
File Name: textblob/translate.py
Class Name: Translator
Method Name: _get_translation_from_json5


Project Name: pyinstaller/pyinstaller
Commit Name: 8ed42a1c2781d28f699924d9a4b81785d55a624e
Time: 2015-11-20
Author: h.goebel@crazy-compilers.com
File Name: PyInstaller/depend/bindepend.py
Class Name:
Method Name: findLibrary


Project Name: chartbeat-labs/textacy
Commit Name: 09d661e1e5b151ea7168e3f99f97df4bcc0d8947
Time: 2019-05-19
Author: burtdewilde@gmail.com
File Name: textacy/extract.py
Class Name:
Method Name: _make_pattern_from_string