Get the resources prefix.

@return The resources prefix.
484939
private String getPrefix()
    {
        final String prefix;
        if (loader.isPresent())
        {
            prefix = loader.get().getPackage().getName().replace(Constant.DOT, File.separator);
        }
        else
        {
            prefix = resourcesDir;
        }
        return prefix;
    }
764344
private synchronized Resources getPath() {
        if (path == null) {
            path = new Resources(getProject());
            path.setCache(true);
        }
        return path;
    }
379513
public long getCompletedPrefix()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "getCompletedPrefix");
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "getCompletedPrefix", Long.valueOf(_targetStream.getCompletedPrefix()));

    return _targetStream.getCompletedPrefix();
  }
338056
public static String getExtension(String resourceName) {

        String result = null;
        if (!resourceName.endsWith("/")) {
            // folders don't have any extension
            resourceName = CmsResource.getName(resourceName);
            int index = resourceName.lastIndexOf(".") + 1;
            if ((index > 0) && (index < resourceName.length())) {
                result = resourceName.substring(index).toLowerCase();
            }
        }

        return result;
    }
1320303
public com.google.appengine.v1.Resources getResources() {
    return resources_ == null ? com.google.appengine.v1.Resources.getDefaultInstance() : resources_;
  }
798394
public ResourceUsage getResourceUsage() {
    int totalMapperGrants = 0;
    int totalReducerGrants = 0;
    synchronized (lockObject) {
      for (Map.Entry<Integer, ResourceGrant> entry :
          grantedResources.entrySet()) {
        switch(entry.getValue().getType()) {
        case MAP:
          ++totalMapperGrants;
          break;
        case REDUCE:
          ++totalReducerGrants;
          break;
        case JOBTRACKER:
          // Ignore for now
          break;
        default:
          throw new RuntimeException("Illegal type " +
                                     entry.getValue().getType());
        }
      }
    }
    return new ResourceUsage(totalMapperGrants, totalReducerGrants);
  }
253741
public Map<Integer, Map<ResourceType, Integer>> getCpuToResourcePartitioning() {
    if (cachedCpuToResourcePartitioning == null) {
      cachedCpuToResourcePartitioning =
          getUncachedCpuToResourcePartitioning(this);
    }
    return cachedCpuToResourcePartitioning;
  }
822457
public List<String> getPaths() {
        final List<String> resourcePaths = new ArrayList<>(this.size());
        for (final Resource resource : this) {
            resourcePaths.add(resource.getPath());
        }
        return resourcePaths;
    }
771776
public java.util.List<Resource> getResources() {
        if (resources == null) {
            resources = new com.amazonaws.internal.SdkInternalList<Resource>();
        }
        return resources;
    }
556412
public function getPrefix()
    {
        if ($this->prefix == null) {
            $this->prefix = substr($this->msisdn, 0, 3);
        }

        return $this->prefix;
    }
290601
public String getResourcePath()
    {
        switch (resourceType)
        {
            case ANDROID_ASSETS: return assetPath;

            case ANDROID_RESOURCE: return resourceFilePath;

            case LINUX_FILESYSTEM: return filePath;

            case NETWORK: return url.getPath();

            case INPUT_STREAM: return inputStreamName;

            default: return null;
        }
    }
738705
public Set<Resource<L>> getRootResources() {
        graphLockRead.lock();
        try {
            Set<Resource<L>> roots = new HashSet<>();
            Set<Resource<L>> allResources = resourcesGraph.vertexSet();
            for (Resource<L> resource : allResources) {
                if (neighborIndex.predecessorsOf(resource).isEmpty()) {
                    roots.add(resource);
                }
            }
            return Collections.unmodifiableSet(roots);
        } finally {
            graphLockRead.unlock();
        }
    }
104518
@Override
    public String getResourceName() {

        String nameString = null;
        nameString = mcWrapper.gConfigProps.getXpathId();

        return nameString;

    }
815914
def get_prefixes(self, ns_uri):
        """"""
        ni = self.__lookup_uri(ns_uri)
        return ni.prefixes.copy()
173437
private Set<String> getResourcesToScan() {

		final String classPath    = System.getProperty("java.class.path");
		final Set<String> modules = new TreeSet<>();
		final Pattern pattern     = Pattern.compile(".*(structr).*(war|jar)");
		final Matcher matcher     = pattern.matcher("");

		for (final String jarPath : classPath.split("[".concat(pathSep).concat("]+"))) {

			final String lowerPath = jarPath.toLowerCase();

			if (lowerPath.endsWith(classesDir) || lowerPath.endsWith(testClassesDir)) {

				modules.add(jarPath);

			} else {

				final String moduleName = lowerPath.substring(lowerPath.lastIndexOf(pathSep) + 1);

				matcher.reset(moduleName);

				if (matcher.matches()) {

					modules.add(jarPath);
				}

			}

		}

		for (final String resource : Services.getInstance().getResources()) {

			final String lowerResource = resource.toLowerCase();

			if (lowerResource.endsWith(".jar") || lowerResource.endsWith(".war")) {

				modules.add(resource);
			}

		}

		return modules;
	}
56352
public Map<String, String> getResources() {
    Map<String, String> resourceByResourceName = new HashMap<>();
    String metadata = getMetadata(ICON);
    if (metadata.equals("")) {
      metadata = getFirstIconFile(BUNDLE_ICONS);
    }
    resourceByResourceName.put(ICON, metadata);
    return resourceByResourceName;
  }
1075386
public function getPrefix()
    {
        $prefix = null;

        if (! is_null($this->getContext())) {
            $prefix = $this->getContext();
        }

        if (! is_string($this->prefix)) {
            return $prefix;
        }

        return $prefix . $this->prefix;
    }