Check if data tag from intent-filter corresponds to data for Universal Links.

@param {Array} data - list of data tags in the intent-filter
@return {Boolean} true - if data tag for Universal Links; otherwise - false
176883
function isDataTagForUniversalLinks(data) {
  // can have only 1 data tag in the intent-filter
  if (data == null || data.length != 1) {
    return false;
  }

  var dataHost = data[0]['$']['android:host'];
  var dataScheme = data[0]['$']['android:scheme'];
  var hostIsSet = dataHost != null && dataHost.length > 0;
  var schemeIsSet = dataScheme != null && dataScheme.length > 0;

  return hostIsSet && schemeIsSet;
}
685131
function( data ){

            // interpred data as either dom node or event data
            var el = (data.nodeType && data) || (data.body && data.body.view)
                ;

            if ( el ){
                // attach to viewport
                this.el.appendChild( el );
            }

            return this;
        }
517754
def check(self, url_data):
        """"""
        content = url_data.get_content()
        self._check_by_re(url_data, content)
        self._check_inline_links(url_data, content)
415794
function _applys_to_us_p(data){
		var ret = false;

		var mid = data['model_id'] || null;
		if( ! mid || mid != anchor.model_id ){
		    ll('skip packet--not for us');
		}else{
		    ret = true;
		}

		return ret;
	    }
1170932
public boolean buildData(String[] data) {
        final int length = data.length;

        for (int i = 0; i < length; i++) {
            addAddressToList(data[i]);
        }

        return true;
    }
717596
private static boolean isEqualWithMatching(final Object option, final Object data) {
		return Util.equals(option, data) || isOptionCodeMatch(option, data) || isLegacyMatch(option,
				data);
	}
1011930
function hasJavascriptHref(element) {
    if (getTagName(element) != 'a') {
        return false;
    }
    if (element.getAttribute('onclick')) {
        return false;
    }
    if (! element.href) {
        return false;
    }
    if (! /\s*javascript:/i.test(element.href)) {
        return false;
    }
    return true;
}
1050479
function (data, filters) {
			this.writeDebug('filterData',arguments);
			var filterTest = true;

			for (var k in filters) {
				if (filters.hasOwnProperty(k)) {

					// Exclusive filtering
					if (this.settings.exclusiveFiltering === true || (this.settings.exclusiveTax !== null && Array.isArray(this.settings.exclusiveTax) && this.settings.exclusiveTax.indexOf(k) !== -1)) {
						var filterTests = filters[k];
						var exclusiveTest = [];

						if (typeof data[k] !== 'undefined') {
							for (var l = 0; l < filterTests.length; l++) {
								exclusiveTest[l] = new RegExp(filterTests[l], 'i').test(data[k].replace(/([^\x00-\x7F]|[.*+?^=!:${}()|\[\]\/\\]|&\s+)/g, ''));
							}
						}

						if (exclusiveTest.indexOf(true) === -1) {
							filterTest = false;
						}
					}
					// Inclusive filtering
					else {
						if (typeof data[k] === 'undefined' || !(new RegExp(filters[k].join(''), 'i').test(data[k].replace(/([^\x00-\x7F]|[.*+?^=!:${}()|\[\]\/\\]|&\s+)/g, '')))) {
							filterTest = false;
						}
					}
				}
			}

			if (filterTest) {
				return true;
			}
		}
1052278
function like (data, archetype) {
    var name;

    for (name in archetype) {
      if (archetype.hasOwnProperty(name)) {
        if (data.hasOwnProperty(name) === false || typeof data[name] !== typeof archetype[name]) {
          return false;
        }

        if (object(data[name]) && like(data[name], archetype[name]) === false) {
          return false;
        }
      }
    }

    return true;
  }
1330770
private final boolean checkRef(ComponentTag tag) {
		boolean ok = false;
		if (!tag.getName().equals("a")) {
			IValueMap attributes = tag.getAttributes();
			String ref = attributes.getString("href");
			if (ref == null) {
				ref = attributes.getString("src");
			}

			if ((ref != null)
					&& (isJawrImageTag(tag) || (ref.indexOf(":") == -1))) {
				ok = true;
			}

		}

		return ok;
	}
208535
@NonNull
    public static List<Uri> getSelectedFilesFromResult(@NonNull Intent data) {
        List<Uri> result = new ArrayList<>();
        if (data.getBooleanExtra(EXTRA_ALLOW_MULTIPLE, false)) {
            List<String> paths = data.getStringArrayListExtra(EXTRA_PATHS);
            if (paths != null) {
                for (String path : paths) {
                    result.add(Uri.parse(path));
                }
            }
        } else {
            result.add(data.getData());
        }
        return result;
    }
770903
function(data) {
            var paramArray = [],
                key, value;
        // TODO: use `object` module
            for (key in data) {
                value = data[key];
                key = ENCODE_URI_COMPONENT(key);
                paramArray.push((value === null) ? key : (key + '=' + ENCODE_URI_COMPONENT(value)));
            }
            console.log(NAME, '_toQueryString --> '+paramArray.join('&'));
            return paramArray.join('&');
        }
262605
def has_tag? tag
      selected.each do |view|
        return true if view.rmq_data.has_tag?(tag)
      end
      false # tag doesn't exist if we got here
    end
1081962
function isDataMissing(iStart, iEnd) {
			var i;
			for (i = iStart; i < iEnd; i += 1) {
				if (aElements[i] === undefined) {
					return true;
				}
			}
			return false;
		}
925811
private static boolean isMatch(DataMedia dataMedia, String namespace, String name) {
        boolean isMatch = true;
        if (StringUtils.isEmpty(namespace)) {
            isMatch &= StringUtils.isEmpty(dataMedia.getNamespace());
        } else {
            if (dataMedia.getNamespaceMode().getMode().isSingle()) {
                isMatch &= dataMedia.getNamespace().equalsIgnoreCase(namespace);
            } else if (dataMedia.getNamespaceMode().getMode().isMulti()) {
                isMatch &= (indexIgnoreCase(dataMedia.getNamespaceMode().getMultiValue(), namespace) != -1);
            } else if (dataMedia.getNamespaceMode().getMode().isWildCard()) {
                isMatch &= isWildCardMatch(dataMedia.getNamespace(), namespace);
            } else {
                throw new UnsupportedOperationException("unsupport mode:" + dataMedia.getNameMode().getMode());
            }
        }

        if (StringUtils.isEmpty(name)) {
            isMatch &= StringUtils.isEmpty(dataMedia.getName());
        } else {
            if (dataMedia.getNameMode().getMode().isSingle()) {
                isMatch &= dataMedia.getName().equalsIgnoreCase(name);
            } else if (dataMedia.getNameMode().getMode().isMulti()) {
                isMatch &= (indexIgnoreCase(dataMedia.getNameMode().getMultiValue(), name) != -1);
            } else if (dataMedia.getNameMode().getMode().isWildCard()) {
                isMatch &= isWildCardMatch(dataMedia.getName(), name);
            } else {
                throw new UnsupportedOperationException("unsupport mode:" + dataMedia.getNameMode().getMode());
            }
        }

        return isMatch;
    }
1341773
function checkUrl() {
					if (new UriParameters(window.location.href).get("sap-ui-xx-asyncRouting") === "true") {
						Log.warning("Activation of async view loading in routing via url parameter is only temporarily supported and may be removed soon", "MobileTarget");
						return true;
					}
					return false;
				}
289068
function isDataURI(filename) {
  return String.prototype.startsWith ?
      filename.startsWith(dataURIPrefix) :
      filename.indexOf(dataURIPrefix) === 0;
}