89af3b3db4dd73cc1187c774beb5685eb18e712a,conceptnet5/language/token_utils.py,,,#,38

Before Change



// A token is a sequence that matches TOKEN_RANGE, or multiple such sequences
// joined only by an apostrophe (as in the word "can"t").
TOKEN_RE = re.compile("{0}+(?:"{0}+)*".format(TOKEN_RANGE))


def simple_tokenize(text):

After Change


// This expression scans through a reversed string to find segments of
// camel-cased text. Comments show what these mean, forwards, in preference
// order:
CAMEL_RE = re.compile(r
    ^( [A-Z]+                 // A string of all caps, such as an acronym
     | [^A-Z0-9 _]+[A-Z _]    // A single capital letter followed by lowercase
                              //   letters, or lowercase letters on their own
                              //   after a word break
     | [^A-Z0-9 _]*[0-9.]+    // A number, possibly followed by lowercase
                              //   letters
     | [ _]+                  // Extra word breaks (spaces or underscores)
     | [^A-Z0-9]*[^A-Z0-9_ ]+ // Miscellaneous symbols, possibly with lowercase
                              //   letters after them
     )
, re.VERBOSE)


def un_camel_case(text):
    r
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: commonsense/conceptnet5
Commit Name: 89af3b3db4dd73cc1187c774beb5685eb18e712a
Time: 2015-12-01
Author: rob@luminoso.com
File Name: conceptnet5/language/token_utils.py
Class Name:
Method Name:


Project Name: coala/coala-bears
Commit Name: 97e98900c388126230d1eef0f2666fb1a5723944
Time: 2018-05-04
Author: viresh16118@iiitd.ac.in
File Name: bears/vcs/git/GitCommitBear.py
Class Name: GitCommitBear
Method Name: check_issue_reference


Project Name: pantsbuild/pants
Commit Name: f231b45ac1770b702a39c26ba9458d7fd1d833a2
Time: 2015-01-12
Author: tinystatemachine@gmail.com
File Name: src/python/pants/backend/core/tasks/what_changed.py
Class Name: ChangedFileTaskMixin
Method Name: _changed_targets