Generate an opaque identifier which can be used to talk about
        C{defaultObject}.

        @rtype: C{int}
505910
def _idForObject(self, defaultObject):
        
        identifier = self._allocateID()
        self._idsToObjects[identifier] = defaultObject
        return identifier
625688
def raw_repr(obj):
    ''''''
    if isproxy(obj):
        return '<%s with prime_id=%d>' % (obj.__class__.__name__, obj.prime_id)
    else:
        return repr(obj)
416826
def _generate_identifier():
    
    bit_length = 64
    byte_length = int(bit_length / 8)
    identifier = os.urandom(byte_length)
    return hexlify(identifier).decode('ascii')
915399
def identifier(self):
        
        if self.primary_key not in self._data:
            return 'Unknown'
        return str(self._data[self.primary_key])
296419
def _generate_identifier_name(self, columns, prefix="", max_size=30):
        
        hash = ""
        for column in columns:
            hash += "%x" % binascii.crc32(encode(str(column)))

        return (prefix + "_" + hash)[:max_size]
832231
private String identifier(boolean firstCanBeNumber) {
	if (!cfml.isCurrentLetter() && !cfml.isCurrentSpecial()) {
	    if (!firstCanBeNumber) return null;
	    else if (!cfml.isCurrentDigit()) return null;
	}
	boolean doUpper;
	PageSource ps = pc == null ? null : pc.getCurrentPageSource();
	if (ps != null) doUpper = !isJson && ps.getDialect() == CFMLEngine.DIALECT_CFML && ((MappingImpl) ps.getMapping()).getDotNotationUpperCase();
	else doUpper = !isJson && ((ConfigWebImpl) config).getDotNotationUpperCase(); // MUST .lucee should not be upper case

	StringBuilder sb = new StringBuilder();
	sb.append(doUpper ? cfml.getCurrentUpper() : cfml.getCurrent());
	do {
	    cfml.next();
	    if (!(cfml.isCurrentLetter() || cfml.isCurrentDigit() || cfml.isCurrentSpecial())) {
		break;
	    }

	    sb.append(doUpper ? cfml.getCurrentUpper() : cfml.getCurrent());
	}
	while (cfml.isValidIndex());
	return sb.toString();// cfml.substringLower(start,cfml.getPos()-start);
    }
871512
public static Object OPAQUE(Object o) {
	if (o == null) return null;

	try {

	    byte[] bytes = Caster.toBytes(Reflector.callMethod(o, "getBytes", ZERO_ARGS), null);
	    return new String(bytes, "UTF-8");
	}
	catch (Exception e) {
	    // print.printST(e);
	}

	return o;
    }
1082252
def default(self, obj):
        
        if isinstance(obj, np.ndarray):
            if obj.flags['C_CONTIGUOUS']:
                obj_data = obj.data
            else:
                cont_obj = np.ascontiguousarray(obj)
                assert(cont_obj.flags['C_CONTIGUOUS'])
                obj_data = cont_obj.data
            if has_blosc:
                obj_data = blosc.compress(obj_data, typesize=8)
            data_b64 = base64.b64encode(obj_data)
            # http://stackoverflow.com/questions/24369666/typeerror-b1-is-not-json-serializable
            if sys.version_info >= (3, 0):
                data_b64 = data_b64.decode('utf-8')
            return dict(__ndarray__=data_b64,
                        dtype=str(obj.dtype),
                        shape=obj.shape)
        return json.JSONEncoder.default(self, obj)
375210
def get_default_value(self):
        
        val = self.show
        if not val:
            val = self.raw_value
        if not val:
            val = self.showname
        return val
136668
def identifier(self):
        # type: () -> str
        """"""
        version = "_".join(self._version.split('.'))
        return "%s_%s" % (self._namespace, version)
873429
def _newIdentifier(self):
        
        id = self._allocateID()
        self._idsToObjects[id] = self._NO_OBJECT_MARKER
        self._lastValues[id] = None
        return id
152436
public String generateUniqueID(Class clazz)
    {
        String namePrefix = clazz.getName();
        int dotIndex = namePrefix.lastIndexOf('.');
        if (dotIndex > 0)
            namePrefix = namePrefix.substring(dotIndex+1);
        NameGenerator nameGenerator = getNameGenerator(namePrefix);
        return nameGenerator.next();
    }
993598
def default(self, obj):
        
        if isinstance(obj, (datetime.date, datetime.time, datetime.datetime)):
            return '"%s"' % obj.isoformat()
        elif isinstance(obj, unicode):
            return '"%s"' % unicodedata.normalize('NFD', obj).encode('utf-8')
        elif isinstance(obj, decimal.Decimal):
            return str(obj)
        return super(Encoder, self).default(obj)
49363
def pretty_identifier(self):
        

        ident = self.get_name()
        if self.is_method:
            args = ",".join(self.pretty_arg_types())
            ident = "%s(%s)" % (ident, args)

        return "%s:%s" % (ident, self.pretty_type())
1063425
def defaults(self, *args):
        
        ns = self.Namespace
        ns.obj = self.obj

        def by(source, *ar):
            for i, prop in enumerate(source):
                if prop not in ns.obj:
                    ns.obj[prop] = source[prop]

        _.each(args, by)

        return self._wrap(ns.obj)
1205001
def get_field_identifier(self):
        
        if self.default is None:
            return '{0}, {1}'.format(self.field.get_select_sql(), self.offset)
        return "{0}, {1}, '{2}'".format(self.field.get_select_sql(), self.offset, self.default)
1271228
private String buildIdentifier() {
    checkForEmptyIdentifier();
    CharType boundary = nearestCharType(CharType.DOT, CharType.EOL);
    if (chars.positiveLookaheadBefore(boundary, CharType.LETTER, CharType.HYPHEN)) {
      return alphanumericIdentifier();
    } else {
      return digits();
    }
  }