Do the getAllServices command.
433514
private void getAllServices() {
        try {
            List<ModelServiceInstance> instances = new DirectoryServiceRestfulClient().getAllInstances();
            for (ModelServiceInstance instance :instances){
                printServiceInstance(ServiceInstanceUtils.toServiceInstance(instance));
            }
        } catch (ServiceException e) {
            e.printStackTrace();
            fail(e.getServiceDirectoryError().getErrorMessage());
        }
    }
1353590
def get_all():
    '''
    
    '''
    (enabled_services, disabled_services) = _get_service_list(include_enabled=True,
                                                              include_disabled=True)
    enabled_services.update(dict([(s, []) for s in disabled_services]))
    return odict.OrderedDict(enabled_services)
718559
def get_all(self, qry, tpl):
        '''  '''
        self.cur.execute(qry, tpl)
        result = self.cur.fetchall()
        return result
1222212
private <T> List<ServiceReference> getAllServiceRefs(Class<T> klass) {
        ServiceReference[] importDeclarationsRef;
        try {
            importDeclarationsRef = context.getAllServiceReferences(klass.getName(), null);
        } catch (InvalidSyntaxException e) {
            LOG.error("Failed to retrieved services " + klass.getName(), e);
            return new ArrayList<ServiceReference>();
        }
        if (importDeclarationsRef != null) {
            return Arrays.asList(importDeclarationsRef);
        }
        return new ArrayList<ServiceReference>();
    }
113910
public List<Path> getServices() {
    return (services == null)
        ? null
        : services.stream().map(File::toPath).collect(Collectors.toList());
  }
563751
def _get_services():
    '''
    
    '''
    handle_scm = win32service.OpenSCManager(
        None, None, win32service.SC_MANAGER_ENUMERATE_SERVICE)

    try:
        services = win32service.EnumServicesStatusEx(handle_scm)
    except AttributeError:
        services = win32service.EnumServicesStatus(handle_scm)
    finally:
        win32service.CloseServiceHandle(handle_scm)

    return services
828890
public static function all()
    {
        // Add custom ones
        $commands = self::allCustom();

        // Add Laravel ones
        App::register('Illuminate\Foundation\Providers\ConsoleSupportServiceProvider'); // Needed for compile and optimize
        $commands['Laravel']['Migrate'] = App::make('command.migrate');
        $commands['Laravel']['Seed'] = App::make('command.seed');
        $commands['Laravel']['Cache clear'] = App::make('command.cache.clear');
        $commands['Laravel']['Clear compiled classes'] = App::make('command.clear-compiled');

        // Return matching commands
        return $commands;
    }
1212025
def all_my_hosts_and_services(self):
        
        for what in (self.hosts, self.services):
            for item in what:
                yield item
283547
public List<ModelServiceInstance> getAllInstances(){
        HttpResponse result = invoker.invoke("/service" , null, HttpMethod.GET);

        if (result.getHttpCode() != HTTP_OK) {
           throw new ServiceException(ErrorCode.REMOTE_DIRECTORY_SERVER_ERROR,
                    "HTTP Code is not OK, code=%s", result.getHttpCode());
        }

        List<ModelServiceInstance> allInstances = _deserialize(result.getRetBody(), new TypeReference<List<ModelServiceInstance>>(){});
        return allInstances;
    }
579416
def get_all_services(self, view = None):
    
    return services.get_all_services(self._get_resource_root(), self.name, view)
368770
def get_all(jail=None):
    '''
    
    '''
    ret = []
    service = _cmd(jail)
    for srv in __salt__['cmd.run']('{0} -l'.format(service)).splitlines():
        if not srv.isupper():
            ret.append(srv)
    return sorted(ret)
55430
def queryAll(self, queryString):
    '''
    
    '''
    self._setHeaders('queryAll')
    return self._sforce.service.queryAll(queryString)
1318587
def get_all(self, request, notifications, mark_as_read=False):
        
        return self.list(request, notifications)
907393
def services(self):
        
        if self._services is None:
            self._services = ServiceList(self)
        return self._services
601626
public List<ModelServiceInstance> getAllModelServiceInstance() {
        return getData() == null ? Collections.<ModelServiceInstance>emptyList() : getData().getServiceInstances();
    }
3099
protected CommandServices getCommandServices() {
		if (commandServices == null) {
			commandServices = ValkyrieRepository.getInstance().getApplicationConfig().commandServices();
		}
		return this.commandServices;
	}
279124
def get_all(self, search_filter=None):
        """"""
        items = self.backend.get_all()

        if not items:
            if self.version == 1:
                return {self.namespace: []}
            return []

        if search_filter:
            items = jmespath.search(search_filter, items)

        return items