Get the top level element for the application with the specified
        bundle ID, such as com.vmware.fusion.
321240
def getAppRefByBundleId(cls, bundleId):
        
        ra = AppKit.NSRunningApplication
        # return value (apps) is always an array. if there is a match it will
        # have an item, otherwise it won't.
        apps = ra.runningApplicationsWithBundleIdentifier_(bundleId)
        if len(apps) == 0:
            raise ValueError(('Specified bundle ID not found in '
                            'running apps: %s' % bundleId))
        pid = apps[0].processIdentifier()
        return cls.getAppRefByPid(pid)
671851
@Nullable
  public WebSiteResourceBundleSerialized getResourceBundleOfID (@Nullable final String sBundleID)
  {
    if (StringHelper.hasNoText (sBundleID))
      return null;

    return m_aRWLock.readLocked ( () -> m_aMapToBundle.get (sBundleID));
  }
756959
function getRoot (instanceId) {
  var instance = instances[instanceId];
  if (!instance || !(instance.app instanceof instance.Vue)) {
    return new Error(("getRoot: instance " + instanceId + " not found!"))
  }
  return instance.app.$el.toJSON()
}
57581
function getBundleId() {
  if (bundleId === undefined) {
    var configXmlHelper = new ConfigXmlHelper(context);
    bundleId = configXmlHelper.getPackageName('ios');
  }

  return bundleId;
}
863713
public static String get(String key, Object... args) {
        return get(BUNDLE_NAME, key, args);
    }
883318
function getBundleId(configXml, platform) {
    let output = null;
    const key =
      platform === "ios" ? "ios-CFBundleIdentifier" : "android-packageName";

    if (configXml.widget.$.hasOwnProperty(key)) {
      output = configXml.widget.$[key];
    } else if (configXml.widget.$.hasOwnProperty("id")) {
      output = configXml.widget.$.id;
    }

    return output;
  }
640832
public String get( String key ) {

		String result;
		try {
			result = this.bundle.getString( key );

		} catch( MissingResourceException e ) {
			result = OOPS + key + '!';
		}

		return result;
	}
1121948
function getElementById(id) {
		var el = null;
		try {
			el = doc.getElementById(id);
		}
		catch (e) {}
		return el;
	}
1283605
def get_element_by_id(self, ident):
        """"""
        for group in list(self.toc.keys()):
            for name in list(self.toc[group].keys()):
                if self.toc[group][name].ident == ident:
                    return self.toc[group][name]
        return None
754710
private Element getRootElement(String fileName) throws
      IOException, SAXException, ParserConfigurationException {
    DocumentBuilderFactory docBuilderFactory =
      DocumentBuilderFactory.newInstance();
    docBuilderFactory.setIgnoringComments(true);
    DocumentBuilder builder = docBuilderFactory.newDocumentBuilder();
    Document doc = builder.parse(new File(fileName));
    Element root = doc.getDocumentElement();
    if (!matched(root, CONFIGURATION_TAG_NAME)) {
      throw new IOException("Bad " + fileName);
    }
    return root;
  }
863911
private SchemaCrawlerOptions getOptions(String bundledDriverName, InfoLevel level) throws IOException {
        for (BundledDriver bundledDriver : BundledDriver.values()) {
            if (bundledDriver.name().toLowerCase().equals(bundledDriverName.toLowerCase())) {
                return bundledDriver.getOptions(level);
            }
        }
        throw new IOException("Unknown bundled driver name '" + bundledDriverName + "', supported values are " + Arrays.asList(BundledDriver.values()));
    }
73034
private BundleContext getBundleContext(Bundle bundle, long timeout) {
        long endTime = System.currentTimeMillis() + timeout;
        BundleContext bc = null;
        while (bc == null) {
            bc = bundle.getBundleContext();
            if (bc == null) {
                if (System.currentTimeMillis() >= endTime) {
                    throw new TestContainerException(
                        "Unable to retrieve bundle context from bundle " + bundle);
                }
                try {
                    Thread.sleep(100);
                }
                catch (InterruptedException e) {
                    // Ignore
                }
            }
        }
        return bc;
    }
488419
function getBundle(entry, cfg) {
  return getPackage(entry).then(function (data) {

    var entry = path.dirname(data.path);
    var pkg = data.pkg;
    var titaniumManifest = pkg.titaniumManifest || {};

    var moduleid = titaniumManifest.moduleid || pkg.name;

    var opts = pkg.titaniumifier || pkg.npmifier || pkg.browserify || {};

    opts.extensions || (opts.extensions = [ '.js', '.json' ]);
    opts.transforms || (opts.transforms = []);
    opts.ignores || (opts.ignores = []);
    opts.externals || (opts.externals = []);

    var addExternals = addDeps.bind(null, opts.externals);

    addExternals(pkg.peerDependencies);
    addExternals(pkg.nativeDependencies);

    if (cfg.noDependencies) {
      addExternals(pkg.dependencies);
      addExternals(pkg.devDependencies);
      addExternals(pkg.optionalDependencies);
    }

    opts.ignoreMissing = !!opts.ignoreMissing;

    var b = browserify({
      basedir: entry,
      builtins: BUILTINS,
      debug: cfg.debug,
      extensions: opts.extensions,
      externalRequireName: cfg.exportRequire ? 'module.exports' : undefined,
      insertGlobalVars: GLOBAL_VARS,
      ignoreMissing: false,
      standalone: (cfg.standalone === false) ? undefined : moduleid,
      prelude: PRELUDE_SRC,
      preludePath: PRELUDE_PATH
    });

    b.plugin(fixResolver, {
      resolve: titaniumResolve
    });

    if (Array.isArray(opts.transforms)) {
      opts.transforms.forEach(function (transform) {
        b.transform(transform);
      });
    }
    else {
      Object.keys(opts.transforms).forEach(function (transform) {
        b.transform(transform, opts.transforms[ transform ]);
      });
    }

    opts.ignores.forEach(function (ignore) {
      b.ignore(ignore);
    });

    opts.externals.forEach(function (external) {
      b.exclude(external);
    });

    if (cfg.useTitaniumPlatformResolve) {
      TODO;
      /*b.transform(titaniumPlatformResolve.createTransform({
        platforms: [ build.platformName ],
        extensions: opts.extensions
      }));*/
    }

    return {
      entry: entry,
      pkg: pkg,
      opts: opts,
      bundle: b
    };
  });
}
101020
def _top_element(self):
        """"""
        top = etree.Element("testsuites")
        comment = etree.Comment("Generated for testrun {}".format(self.testrun_id))
        top.append(comment)
        return top
832612
@Nullable
    public Element getElement(@Nonnull String id) {
        if (id == null || id.trim().length() == 0) {
            throw new IllegalArgumentException("An element ID must be specified.");
        }

        return elementsById.get(id);
    }
424372
function getBundleIdentifier (projectObject) {
    var packageName = projectObject.getPackageName();
    var bundleIdentifier = packageName;

    var variables = packageName.match(/\$\((\w+)\)/); // match $(VARIABLE), if any
    if (variables && variables.length >= 2) {
        bundleIdentifier = projectObject.xcode.getBuildProperty(variables[1]);
    }

    return bundleIdentifier;
}
366703
@Override
	public synchronized WComponent getUI(final Object httpServletRequest) {
		String configuredUIClassName = getComponentToLaunchClassName();

		if (sharedUI == null || !Util.equals(configuredUIClassName, uiClassName)) {
			uiClassName = configuredUIClassName;
			WComponent ui = createUI();

			if (ui instanceof WApplication) {
				sharedUI = (WApplication) ui;
			} else {
				LOG.warn(
						"Top-level component should be a WApplication."
						+ " Creating WApplication wrapper...");

				sharedUI = new WApplication();
				ui.setLocked(false);
				sharedUI.add(ui);
				sharedUI.setLocked(true);
			}

			if (ConfigurationProperties.getLdeServerShowMemoryProfile()) {
				ProfileContainer profiler = new ProfileContainer();

				sharedUI.setLocked(false);
				sharedUI.add(profiler);
				sharedUI.setLocked(true);
			}
		}

		return sharedUI;
	}