Method to get messageId of group created.
557681
def get_message_id(self):
        """"""
        message_id = self.json_response.get("messageId", None)
        self.logger.info("%s\t%s" % (self.request_method, self.request_url))
        return message_id
688505
public String getMessageId() {
        return (data != null && data.payload != null) ? data.payload.messageId : null;
    }
17500
def getMessageCharge(self, apiMsgId):
        
        content = self.parseRest(self.request('rest/message/' + apiMsgId))

        return {
            'id': apiMsgId,
            'status': content['messageStatus'].encode('utf-8'),
            'description': self.getStatus(content['messageStatus']),
            'charge': float(content['charge'])
        }
1324436
def get_group_by_id(self, group_id: str) -> typing.Optional['Group']:
        
        VALID_POSITIVE_INT.validate(group_id, 'get_group_by_id', exc=ValueError)
        for group in self.groups:

            if group.group_id == group_id:
                return group
        return None
1048419
def get_group_id(groupname):
    
    gid = single_line_stdout('id -g {0}'.format(groupname), expected_errors=(1,), shell=False)
    return check_int(gid)
825306
def get_message_data(msg, key):
    ''''''
    data = msg
    paths = key.split('.')
    for i in paths:
        data = getattr(data, i)
    return data
510107
def id(self):
        
        m = re.match(r'You are not authorized to access bug #(\d+)',
                     self.message)
        return m.group(1)
470404
def group(self):
        ""
        if self._group:
            return self._group
        group =  get_ndmapping_label(self, 'group') if len(self) else None
        if group is None:
            return type(self).__name__
        return group
1149674
def _get(self, msgid):
        """"""
        foldername, msgkey = msgid.split(SEPERATOR)
        folder = self.folder if foldername == "INBOX" else self._getfolder(foldername)
        # Now look up the message
        msg = folder[msgkey]
        msg.is_seen = True
        hdr = list(msg.items())
        for p in msg.walk():
            yield hdr,p
        return
566579
def make_msg_id():
    
    random_string = get_rand_string(12)
    timestamp = time.strftime("%Y%m%d%I%M%S")
    msg_id = timestamp + "-" + random_string
    return msg_id
595713
protected String getGroupId(String groupId) {
        return this.groupId == null || this.groupId.length() == 0
                ? groupId
                : this.groupId;
    }
326272
public String getGroupName() {
		if (collapsibleToggle != null) {
			return collapsibleToggle.getId();
		} else if (!collapsibleList.isEmpty()) {
			// This is only to retain compatibility with the
			// previous implementation, and should be removed post-Sfp11,
			// as it doesn't make much sense to create a group without
			// something to toggle it.
			return collapsibleList.get(0).getId();
		}

		return "";
	}
87786
def get_message_type_by_id(self, message_type_id):
        
        self._validate_uuid(message_type_id)

        url = "/notification/v1/message-type/{}".format(message_type_id)
        response = NWS_DAO().getURL(url, self._write_headers())
        if response.status != 200:
            raise DataFailureException(url, response.status, response.data)

        data = json.loads(response.data)
        return self._message_type_from_json(data.get("MessageType"))
323380
public static String getMessageId(String msg) {
        if (msg == null) {
            return null;
        }
        // check for IBM SWG pattern - "AAAAANNNNS:"
        // 5 chars followed by 4 numbers, followed by one of E/W/I, followed by a colon
        if (msg.length() >= 10) { // 10 chars in pattern 

            // copy first 9 characters into an array
            char[] lm = new char[9];
            msg.getChars(0, 9, lm, 0);

            // match characters in array against AAAAANNNNS: pattern

            if ((lm[8] >= '0') && (lm[8] <= '9')
                && (lm[7] >= '0') && (lm[7] <= '9')
                && (lm[6] >= '0') && (lm[6] <= '9')
                && (lm[5] >= '0') && (lm[5] <= '9')
                && ((lm[4] >= 'A') && (lm[4] <= 'Z') || (lm[4] >= '0') && (lm[4] <= '9'))
                && ((lm[3] >= 'A') && (lm[3] <= 'Z') || (lm[3] >= '0') && (lm[3] <= '9'))
                && ((lm[2] >= 'A') && (lm[2] <= 'Z') || (lm[2] >= '0') && (lm[2] <= '9'))
                && ((lm[1] >= 'A') && (lm[1] <= 'Z') || (lm[1] >= '0') && (lm[1] <= '9'))
                && ((lm[0] >= 'A') && (lm[0] <= 'Z') || (lm[0] >= '0') && (lm[0] <= '9'))) {
                return msg.substring(0, 10);
            }

        }

        // Check for IBM4.4.1 pattern - "AAAANNNNS:"
        // 4 chars followed by 4 numbers, followed by one of E/W/I, followed by a colon
        if (msg.length() >= 9) { // 9 chars in pattern

            // copy first 8 characters into an array
            char[] lm = new char[8];
            msg.getChars(0, 8, lm, 0);

            // match characters in array against AAAAANNNNS: pattern
            if ((lm[7] >= '0') && (lm[7] <= '9')
                && (lm[6] >= '0') && (lm[6] <= '9')
                && (lm[5] >= '0') && (lm[5] <= '9')
                && (lm[4] >= '0') && (lm[4] <= '9')
                && ((lm[3] >= 'A') && (lm[3] <= 'Z') || (lm[3] >= '0') && (lm[3] <= '9'))
                && ((lm[2] >= 'A') && (lm[2] <= 'Z') || (lm[2] >= '0') && (lm[2] <= '9'))
                && ((lm[1] >= 'A') && (lm[1] <= 'Z') || (lm[1] >= '0') && (lm[1] <= '9'))
                && ((lm[0] >= 'A') && (lm[0] <= 'Z') || (lm[0] >= '0') && (lm[0] <= '9'))) {

                // v5
                return msg.substring(0, 9);
            }
        }
        return null;
    }
125465
private static int getMessageCountExcludeSelf(Messenger<String> messenger, String id) {
        Set<String> messageSet = newHashSet(messenger.receiveMessages());
        messageSet.remove(id);
        return messageSet.size();
    }
977405
void doGroupSend(String group, Object value) {
    checkOpen();
    JsonObject message = createMessage(value)
        .putString("action", "group")
        .putString("group", group);
    if (open && !paused) {
      if (log.isDebugEnabled()) {
        log.debug(String.format("%s - Group send: Group[group=%s, id=%d, message=%s", this, group, message.getLong("id"), value));
      }
      eventBus.send(inAddress, message);
    }
    for (OutputHook hook : hooks) {
      hook.handleSend(value);
    }
    checkFull();
  }
1129204
def id(self):
        
        m = re.match(r'Bug #(\d+) does not exist', self.message)
        return m.group(1)