List of currently selected ids
553103
def _get_selected_ids(self):
        """"""
        selection = self.get_selection()
        if selection.get_mode() != gtk.SELECTION_MULTIPLE:
            raise AttributeError('selected_ids only valid for select_multiple')
        model, selected_paths = selection.get_selected_rows()
        if selected_paths:
            return zip(*selected_paths)[0]
        else:
            return ()
896755
def list(self):
        """"""
        return [x["_id"] for x in self._db.system.js.find(projection=["_id"])]
741083
public List<Long> selectPostIds() throws SQLException {
      List<Long> ids = Lists.newArrayListWithExpectedSize(4096);
      Connection conn = null;
      Statement stmt = null;
      ResultSet rs = null;

      try {
         conn = connectionSupplier.getConnection();
         stmt = conn.createStatement();
         rs = stmt.executeQuery(selectAllPostIdsSQL);
         while(rs.next()) {
            ids.add(rs.getLong(1));
         }
      } finally {
         SQLUtil.closeQuietly(conn, stmt, rs);
      }
      return ids;
   }
542725
function () {
                var res = idMgr.getId();
                if (this._dynamicIds) {
                    this._dynamicIds.push(res);
                } else {
                    this._dynamicIds = [res];
                }
                return res;
            }
1109420
function(ids) {
        var me = this,
            selected = [];
        $.each(ids, function(index, value) {
            var item = me.$rightListBody.find(':checkbox[data-id="' + value + '"]');
            if (item.length > 0) {
                selected.push(item[0]);
            }
        });
        if (selected.length > 0) {
            this.moveLeft(selected, null);
        }
    }
592435
function () {
            var data = this._data;
            if (data.selectedIndex == -1) {
                // no item is selected
                return [];
            } else if (data.selectedIndex != null) {
                return [data.selectedIndex];
            } else {
                var retVal = [];
                // we iterate over the view, so that we return indexes in the order visible to the user:
                var view = data.itemsView;
                view.refresh(); // in case there are changes in the view, refresh it
                var items = view.items;
                for (var idx = 0, length = items.length; idx < length; idx++) {
                    if (items[idx].value.selected) {
                        // retVal.push(idx);
                        retVal.push(items[idx].initIndex);
                    }
                }
                return retVal;
            }
        }
242716
def _next_id(self):
        """"""
        assert get_thread_ident() == self.ioloop_thread_id
        self._last_msg_id += 1
        return str(self._last_msg_id)
290901
def get_ids(cs):
    """"""
    records = []
    for c in cs:
        records.append({k: c[k] for k in c if k in {'names', 'labels'}})
    return records
1252828
private Set<String> getRelatedElementIds(String id) {

        Set<String> result = new HashSet<String>();
        if (id != null) {
            result.add(id);
            String serverId = getServerId(id);

            Iterator<String> it = m_elements.keySet().iterator();
            while (it.hasNext()) {
                String elId = it.next();
                if (elId.startsWith(serverId)) {
                    result.add(elId);
                }
            }

            Iterator<org.opencms.ade.containerpage.client.ui.CmsContainerPageElementPanel> itEl = getAllDragElements().iterator();
            while (itEl.hasNext()) {
                org.opencms.ade.containerpage.client.ui.CmsContainerPageElementPanel element = itEl.next();
                if (element.getId().startsWith(serverId)) {
                    result.add(element.getId());
                }
            }
        }
        return result;
    }
1158239
def listIds(self, exclude=list()):
        
        lst = list(self.aliasesToIds.keys())
        others = set(self.idsToSigners.keys()) - \
            set(self.aliasesToIds.values())
        lst.extend(list(others))
        for x in exclude:
            lst.remove(x)
        return lst
1342046
def all_selected_options(self):
        """"""
        ret = []
        for opt in self.options:
            if opt.is_selected():
                ret.append(opt)
        return ret
1093648
function _get_selected_items(){
	
	var ret_filters = [];

	// Push out the filters that have selected == true.
	var all_filters = _get_all_items();
	for( var afi = 0; afi < all_filters.length; afi++ ){
	    var filter_name = all_filters[afi];
	    var fconf = anchor.current_data[filter_name];
	    if( fconf &&
		typeof fconf['selected'] != 'undefined' &&
		fconf['selected'] == true ){
		    ret_filters.push(filter_name);
		}
	}

	return ret_filters;
    }
817890
def currentQuery( self ):
        
        widgets = self.lineWidgets()
        output = []
        for widget in widgets:
            output.append(widget.query())
        return output
665171
function list(category){
	let list = [];

	if (category && typeof(category) === 'string') {
		list = _(goblin.ambush).filter(function(current) {
			return _.includes(current.category, category);
		}).map('id').value();
	} else {
		list = _(goblin.ambush).map('id').value();
	}
	
	return list;

}
1305878
def get_refresh_ids(self):
        
        ids = []
        for bucket in self.router.lonely_buckets():
            rid = random.randint(*bucket.range).to_bytes(20, byteorder='big')
            ids.append(rid)
        return ids
248078
function(ids) {
        var me = this,
            selected = [];
        $.each(ids, function(index, value) {
            var item = me.$leftListBody.find(':checkbox[data-id="' + value + '"]');
            if (item.length > 0 && !item.prop('disabled')) {
                selected.push(item[0]);
            }
        });
        if (selected.length > 0) {
            this.moveRight(selected, null);
        }
    }
737590
def _get_show_ids(self):
        
        # get the show page
        logger.info('Getting show ids')
        r = self.session.get(self.server_url + 'shows.php', timeout=10)
        r.raise_for_status()
        soup = ParserBeautifulSoup(r.content, ['lxml', 'html.parser'])

        # populate the show ids
        show_ids = {}
        for show in soup.select('td.version > h3 > a[href^="/show/"]'):
            show_ids[sanitize(show.text)] = int(show['href'][6:])
        logger.debug('Found %d show ids', len(show_ids))

        return show_ids