Remove __ from the end of _name_ if it starts with __classname__
        return the "unmangled" name.
772855
def unmangle_code_names(self, co, classname):
        
        if classname:
            classname = '_' + classname.lstrip('_') + '__'

            free = [ self.unmangle_name(name, classname)
                     for name in (co.co_cellvars + co.co_freevars) ]
            names = [ self.unmangle_name(name, classname)
                      for name in co.co_names ]
            varnames = [ self.unmangle_name(name, classname)
                         for name in co.co_varnames ]
        else:
            free = co.co_cellvars + co.co_freevars
            names = co.co_names
            varnames = co.co_varnames
        return free, names, varnames
1017710
private String getShortClassName(String className) {
        int lastDot = className.lastIndexOf('.');
        if (lastDot >= 0) {
            className = className.substring(lastDot + 1);
        }
        return className.toLowerCase(Locale.US).replace('+', '$');
    }
232207
public static String stripPackageNameFromClassName(String className) {
        return (className.substring(0, className.length() - (PACKAGE_INFO_CLASS_NAME.length() + 1)));
    }
567543
def table_name(cls):
        
        if cls._prefix is None:
            raise AttributeError('Class prefix is not defined!')
        return cls._prefix + from_camel_case(cls.__name__)
372265
public static String transformClassName(String className) {
        int lastDot = className.lastIndexOf('.');
        if (lastDot >= 0) {
            String pkg = className.substring(0, lastDot);
            if (!isUnlikelyToBeRenamed(pkg)) {
                className = className.substring(lastDot + 1);
            }
        }
        return className;
    }
32477
public static String convertClassNameToUnderscoreName(String name) {
        StringBuilder result = new StringBuilder();

        if (name != null) {
            int len = name.length();

            if (len > 0) {
                result.append(name.charAt(0));

                for (int i = 1; i < len; i++) {
                    if (true == Character.isUpperCase(name.charAt(i))) {
                        result.append('_');
                    }

                    result.append(name.charAt(i));
                }
            }
        }

        return result.toString().toUpperCase();
    }
973925
public static String getShortName(String className) {
        int i = className.lastIndexOf(".");
        if (i > -1) {
            className = className.substring(i + 1, className.length());
        }
        return className;
    }
269613
def js_classnameify(s):
  
  if not '_' in s:
    return s
  return ''.join(w[0].upper() + w[1:].lower() for w in s.split('_'))
901436
private static String inferBinaryName(String classname) {
    StringBuilder sb = new StringBuilder();
    boolean first = true;
    char sep = '.';
    for (String bit : Splitter.on('.').split(classname)) {
      if (!first) {
        sb.append(sep);
      }
      sb.append(bit);
      if (Character.isUpperCase(bit.charAt(0))) {
        sep = '$';
      }
      first = false;
    }
    return sb.toString();
  }
785929
def get_qualified_name(_object):
    """"""
    module = _object.__module__
    if hasattr(_object, '__name__'):
        _class = _object.__name__

    else:
        _class = _object.__class__.__name__

    return module + '.' + _class
835643
private static String stripAnonymousPart(final String className) {
		for (int index = className.indexOf("$", 0); index != -1; index = className.indexOf('$', index + 2)) {
			/* Trailing dollar sign */
			if (index >= className.length() - 1) {
				return className.substring(0, index);
			}

			char firstLetter = className.charAt(index + 1);
			/* First letter after dollar sign is not a capital letter of a named inner class */
			if (firstLetter < 'A' || firstLetter > 'Z') {
				return className.substring(0, index);
			}
		}

		return className;
	}
1204937
def stripped_name(self):
        """"""

        name = self.name

        # Strip function parameters from name by recursively removing paired parenthesis
        while True:
            name, n = self._parenthesis_re.subn('', name)
            if not n:
                break

        # Strip const qualifier
        name = self._const_re.sub('', name)

        # Strip template parameters from name by recursively removing paired angles
        while True:
            name, n = self._angles_re.subn('', name)
            if not n:
                break

        return name
240107
def remove_class(self, className):
        
        if className in self._dom_classes:
            self._dom_classes = [c for c in self._dom_classes if c != className]
        return self
859086
def _full_class_name(obj):
    
    module = obj.__class__.__module__
    if module is None or module == str.__class__.__module__:
        return obj.__class__.__name__
    return module + "." + obj.__class__.__name__
680985
def default_name(self, separator='-'):
        """"""
        return self.__class__.__name__ + '{}{:03d}'.format(
            separator, self._index+1)
1006612
def get_class(self, name):
        
        for i in self.classes.class_def:
            if i.get_name() == name:
                return i
        return None
1076850
def classname(text):
    
    if not text:
        return text

    text = camelHump(text)
    return text[0].upper() + text[1:]