Add prefix option, which has a format of "<package>=<prefix>".
422215
private void addPrefixOption(String arg) {
    int i = arg.indexOf('=');
    if (i < 1) {
      usage("invalid prefix format");
    }
    packagePrefixes.addPrefix(arg.substring(0, i), arg.substring(i + 1));
  }
246414
public void addAllowedPrefix(String prefix) {
        if (prefix.endsWith(".")) {
            prefix = prefix.substring(0, prefix.length() - 1);
        }
        LOG.debug("Allowed prefix: {}", prefix);
        String packageRegex = START + dotsToRegex(prefix) + SEP;
        LOG.debug("Prefix regex: {}", packageRegex);
        patternList.add(Pattern.compile(packageRegex).matcher(""));
    }
1199599
def add_suffix(file_path, suffix='modified', sep='_', ext=None):
    """"""
    return _add_suffix(file_path, suffix, sep, ext)
1047194
@Override
    public T addPackage(Package pack) throws IllegalArgumentException {
        Validate.notNull(pack, "Pack must be specified");

        return addPackage(pack.getName());
    }
855049
def __add_namespaceinfo(self, ni):
        """"""
        self.__ns_uri_map[ni.uri] = ni
        for prefix in ni.prefixes:
            self.__prefix_map[prefix] = ni
1248476
function addAPILinkToReadme(packageName) {

    var readmePath = path.join(destDir, packageName, 'README.md');
    var apiLink = "api";

    var usageText = 
        "\n" + 
        `[API Reference](${apiLink})`;

    fs.appendFile(readmePath, usageText, function (err) {
        if (err) {
            console.log(chalk.red(err));
        } 
    })

}
659272
def add_dependency(self, value):
        """"""
        if value.name in self.dependencies:
            self.dependencies[value.name.lower()].append(value)
        else:
            self.dependencies[value.name.lower()] = [ value ]
1305586
public void setPrefix(String prefix) {
		this.prefix = prefix;
		if (this.prefix != null && this.prefix.isEmpty())
			this.prefix = null;
	}
1176234
public void addAll(Configuration other, String prefix) {
		final StringBuilder bld = new StringBuilder();
		bld.append(prefix);
		final int pl = bld.length();

		synchronized (this.confData) {
			synchronized (other.confData) {
				for (Map.Entry<String, Object> entry : other.confData.entrySet()) {
					bld.setLength(pl);
					bld.append(entry.getKey());
					this.confData.put(bld.toString(), entry.getValue());
				}
			}
		}
	}
453071
function addPart(locale, master, needed, toLoad, prefix, suffix) {
        if (master[locale]) {
            needed.push(locale);
            if (master[locale] === true || master[locale] === 1) {
                toLoad.push(prefix + locale + '/' + suffix);
            }
        }
    }
855974
void addPackageInfo(final PackageInfo packageInfo) {
        if (packageInfoSet == null) {
            packageInfoSet = new HashSet<>();
        }
        packageInfoSet.add(packageInfo);
    }
123296
def generate_add_sub(self):
        '''  '''
        # Prefix or Suffix
        affix_type = 'p:' if self.opt == "PFX" else 's:'
        remove_char = '-' + self.char_to_strip if self.char_to_strip != '' else ''

        return affix_type + remove_char + '+' + self.affix
14716
def set_db_application_prefix(prefix, sep=None):
    """"""
    global _APPLICATION_PREFIX, _APPLICATION_SEP
    _APPLICATION_PREFIX = prefix
    if (sep is not None):
        _APPLICATION_SEP = sep
509495
def install(packages, options=None, fatal=False):
    """"""
    cmd = ['yum', '--assumeyes']
    if options is not None:
        cmd.extend(options)
    cmd.append('install')
    if isinstance(packages, six.string_types):
        cmd.append(packages)
    else:
        cmd.extend(packages)
    log("Installing {} with options: {}".format(packages,
                                                options))
    _run_yum_command(cmd, fatal)
1303348
function addAll(packages, packageIndex) {
		
	// iterate over packages and prepare urls before I call the registry
	for (var p in packages) {
		if(p.indexOf('@') === 0) {
			p = p.substring(p.indexOf('/') + 1, p.length)
		}
		var package = p + '@' + packages[p]

		if (packageIndex.indexOf(package) === -1) {
			packageIndex.push(package)
		}
	}	
}
1316961
public void setOutputPackagePrefix(String packagePrefix) {
        if (packagePrefix == null || packagePrefix.length() == 0) {
            this.packagePrefix = null;
            return;
        }
        Matcher matcher = PACKAGE_NAME_PATTERN.matcher(packagePrefix);
        if (matcher.matches()) {
            this.packagePrefix = packagePrefix;
        } else {
            throw (new IllegalArgumentException("The name " + packagePrefix
                    + " is not a valid java package prefix name"));
        }

    }
581869
private String packageAppend(String origPackage, String suffix) {
    if (origPackage == null) {
      return suffix;
    } else {
      return origPackage + "." + suffix;
    }
  }