Returns the list of the names of the workers sorted alphabetically
512161
def getWorkersName(data):
    """"""
    names = [fichier for fichier in data.keys()]
    names.sort()
    try:
        names.remove("broker")
    except ValueError:
        pass
    return names
1353956
protected static function getAllWorkerPids()
    {
        $pid_array = array();
        foreach (static::$_pidMap as $worker_pid_array) {
            foreach ($worker_pid_array as $worker_pid) {
                $pid_array[$worker_pid] = $worker_pid;
            }
        }
        return $pid_array;
    }
693081
def _get_active_threads_names():
        """"""
        active_threads = threading.enumerate()
        return FormattedText().join(
            [
                FormattedText().newline().normal(" - {name}").start_format().bold(name=thread.name).end_format()
                for thread in active_threads
            ]
        )
26170
public List<WorkerSlot> getAvailableSlots() {
        List<WorkerSlot> slots = new ArrayList<>();
        for (SupervisorDetails supervisor : this.supervisors.values()) {
            slots.addAll(this.getAvailableSlots(supervisor));
        }

        return slots;
    }
1208785
def sort(self):
        
        beams = [v for (_, v) in self.entries.items()]
        sortedBeams = sorted(beams, reverse=True, key=lambda x: x.prTotal*x.prText)
        return [x.labeling for x in sortedBeams]
497146
def assignees(self):
        """"""
        if 'assignees' in self._json_data and self._json_data.get('assignees_ids') == list():
            return []
        elif 'assignees' in self._json_data and self._json_data.get('assignees_ids'):
            assignees_ids_str = ','.join([str(id) for id in self._json_data.get('assignees_ids')])
            return self._client.users(id__in=assignees_ids_str, is_hidden=False)
        return None
827764
def output_names(self):
        """"""
        if self.binded:
            return self._curr_module.output_names
        else:
            symbol, _, _ = self._call_sym_gen(self._default_bucket_key)
            return symbol.list_outputs()
801812
def adj_names(self):
        
        return list(self.pst.parameter_data.parnme.loc[~self.fixed_indexer])
274761
def workers(profile='default'):
    '''
    
    '''

    config = get_running(profile)
    lbn = config['worker.list'].split(',')
    worker_list = []
    ret = {}

    for lb in lbn:
        try:
            worker_list.extend(
                config['worker.{0}.balance_workers'.format(lb)].split(',')
            )
        except KeyError:
            pass

    worker_list = list(set(worker_list))

    for worker in worker_list:
        ret[worker] = {
            'activation': config['worker.{0}.activation'.format(worker)],
            'state': config['worker.{0}.state'.format(worker)],
        }

    return ret
1042248
private void printShortWorkerInfo(List<WorkerInfo> workerInfoList) {
    String tier = mCapacityTierInfoMap.firstKey();
    String shortInfoFormat = getInfoFormat(workerInfoList, true);
    print(String.format("%n" + shortInfoFormat,
        "Worker Name", "Last Heartbeat", "Storage", tier));

    for (WorkerInfo info : workerInfoList) {
      long capacityBytes = info.getCapacityBytes();
      long usedBytes = info.getUsedBytes();

      String usedPercentageInfo = "";
      if (capacityBytes != 0) {
        int usedPercentage = (int) (100L * usedBytes / capacityBytes);
        usedPercentageInfo = String.format(" (%s%%)", usedPercentage);
      }
      print(String.format(shortInfoFormat, info.getAddress().getHost(),
          info.getLastContactSec(), "capacity", FormatUtils.getSizeFromBytes(capacityBytes)));
      print(String.format(shortInfoFormat, "", "", "used",
          FormatUtils.getSizeFromBytes(usedBytes) + usedPercentageInfo));
    }
  }
357450
def get_task_workers(self, task_name=None, json_obj=None):
        
        if task_name is None and json_obj is None:
            raise ValueError('Either task_name or json_obj should be provided')

        if json_obj is None:
            json_obj = self.get_task_detail2(task_name)
        return WorkerDetail2.extract_from_json(json_obj, client=self._client, parent=self)
892590
def list_names(cls):
        """"""
        ret = dict([(item['id'], item['name'])
                    for item in cls.list({'items_per_page': 500})])
        return ret
352932
public List<String> getSortedObjectNames() {
        List<String> list = new ArrayList<>(getObjects().keySet());
        Collections.sort(list, new AlphanumericComparator());
        return list;
    }
11305
def list_by_cid(self):
        
        prs = self._processors
        return sorted(((cid, [prs[cid]]) for cid in sorted(prs.keys())),
                      key=operator.itemgetter(0))
734209
def getWorker(self, name):
		
		if not name in self.worker_list:
			self.logger.error("Worker {0} is not registered!".format(name))
			raise Exception("Worker {0} is not registered!".format(name))

		return self.worker_list[name]
371484
protected function show_workers_queues_list($workers)
    {
        $this->line("<info>Your workers:</info>");
        foreach ($workers as $worker_file_name) {
            if (is_dir(getcwd() . '/' . $this->workers_dir . '/' . $worker_file_name))
                continue;
            $this->line('<comment>' . $this->remove_extension($worker_file_name) . '</comment>');
        }
    }
1150188
def sorted_names(names):
    
    names = list(names)

    have_default = False
    if 'default' in names:
        names.remove('default')
        have_default = True

    sorted_names = sorted(names)

    if have_default:
        sorted_names = ['default'] + sorted_names

    return sorted_names