Return effective sources

 @return [Enumerable<CLI::Source>]

 @api private
975928
def effective_sources
      if @start_with
        reject = true
        @sources.reject do |source|
          if reject && source.eql?(@start_with)
            reject = false
          end

          reject
        end
      else
        @sources
      end
    end
1205920
def sources(verbose=False):
    '''
    
    '''
    ret = {}
    cmd = 'imgadm sources -j'
    res = __salt__['cmd.run_all'](cmd)
    retcode = res['retcode']
    if retcode != 0:
        ret['Error'] = _exit_status(retcode)
        return ret

    for src in salt.utils.json.loads(res['stdout']):
        ret[src['url']] = src
        del src['url']

    if not verbose:
        ret = list(ret)

    return ret
749629
function getLibraries() {
	var results = [];

	if (extensions && extensions.hasOwnProperty('libraries')) {
		var sourceArray = extensions.libraries;

		for (index = 0; index < sourceArray.length; ++index) {
		    results.push(sourceArray[index]);
		}
	}

	return results;
}
66061
def arguments(args = nil)
      return @_arguments if args.nil?
      @_arguments = []
      [*args].map(&:split).flatten.each do |arg|
        @_arguments << Clin::Argument.new(arg)
      end
    end
70026
def __yield
      return if (source = @_undies_source_stack.pop).nil?
      if source.file?
        instance_eval(source.data, source.source, 1)
      else
        instance_eval(&source.data)
      end
    end
1300297
function() {

    return [
      {
        type: 'list',
        name: 'database',
        message: 'Pull database from which environment?',
        choices: function() {

          // Get approved choices
          var choices = getEnvPullChoices();

          // Add none choice
          choices.push({
            name: 'Do not pull a database',
            value: 'none'
          });

          // Return our choices
          return choices;

        },
        default: function() {
          return pantheonConf.env;
        }
      },
      {
        type: 'list',
        name: 'files',
        message: 'Pull files from which environment?',
        choices: function() {

          // Get approved choices
          var choices = getEnvPullChoices();

          // Add none choice
          choices.push({
            name: 'Do not pull files',
            value: 'none'
          });

          // Return our choices
          return choices;

        },
        default: function(answers) {
          return answers.database || pantheonConf.env;
        }
      }
    ];
  }
31609
def exit_status
      effective_sources.each do |source|
        next if @ignore.include?(source)

        process_source(source)
        break if @fail_fast && !@success
      end

      @success ? EXIT_SUCCESS : EXIT_FAILURE
    end
1139908
public List<CloudTrailSource> getSources() {
        List<Message> sqsMessages = sqsManager.pollQueue();
        return sqsManager.parseMessage(sqsMessages);
    }
615076
def sources(self):
        """"""
        res = self.client.service.Sources(self.userdata, 0)
        return [ustr(x[0]) for x in res[0]]
873046
def get_dependencies(self):
        
        all_deps = OrderedSet()
        for key, _ in list(self.__config.items()):
            if key in self.__cli:
                continue

            if key.endswith('sources'):
                all_deps |= self.get_sources(key[:len('sources') * -1 - 1])

        for key, _ in list(self.__cli.items()):
            if key.endswith('sources'):
                all_deps |= self.get_sources(key[:len('sources') * -1 - 1])

        if self.conf_file is not None:
            all_deps.add(self.conf_file)

        all_deps.add(self.get_path("sitemap", rel_to_cwd=True))

        cwd = os.getcwd()
        return [os.path.relpath(fname, cwd) for fname in all_deps if fname]
1246177
def sources(self):
        
        data = clips.data.DataObject(self._env)

        lib.EnvSlotSources(self._env, self._cls, self._name, data.byref)

        return tuple(data.value) if isinstance(data.value, list) else ()
521768
public function getSourceFiles()
    {
        $sourceFiles = array();
        $ignore = $this->configuration->get('ignore');

        if (is_dir($this->get('source'))) {
            $recursiveIterator = new \RecursiveIteratorIterator(
                new \RecursiveDirectoryIterator($this->get('source'))
            );

            foreach ($recursiveIterator as $file) {
                if (!$ignore || !preg_match($ignore, $file->getPathname())) {
                    $sourceFiles[$file->getFilename()] = $file->getPathname();
                }
            }
        }

        return $sourceFiles;
    }
746481
def _get_install_sources(self):
        
        if not self._sources:
            return ''
        parts = ['--no-index']
        for source in self._sources:
            parts.append("--find-links '{0}'".format(source))
        return ' '.join(parts)
940057
def sources= sources = []
      return unless sources.kind_of? Array
      @sources = sources.map{|source| Hashie::Mash.new source }
    end
798124
private File[] getSources(final List<File> sourceList) {
    final File[] sortedSources = new File[sourceList.size()];
    sourceList.toArray(sortedSources);
    Arrays.sort(sortedSources, new Comparator<File>() {
      @Override
      public int compare(final File o1, final File o2) {
        return o1.getName().compareTo(o2.getName());
      }
    });
    return sortedSources;
  }
867150
function resolveSources() {
  const sources = [
    ...resolveEnvSources('NODE_PATH'),
    ...resolveEnvSources('BROWSER_PATH'),
    // Get global path from npm config
    path.join(
      process.env.npm_config_prefix || exec('npm config get prefix', { encoding: 'utf8' }).replace('\n', ''),
      'lib/node_modules'
    )
  ];

  return unique(sources.map(source => path.resolve(source)));
}
1125955
def get_all_sources(self):
        
        if self.__all_sources is None:
            self.__all_sources = OrderedDict()
            self.walk(self.__add_one)
        return self.__all_sources