def _split_js(media, domain):
    # Read internal property without creating new Media instance.
    if not media._js:
        return ImmutableMedia.empty_instance

    needs_local = domain == 'local'
    new_js = []
    for url in media._js:
        if needs_local == _is_local(url):
            new_js.append(url)

    if not new_js:
        return ImmutableMedia.empty_instance
    else:
        return Media(js=new_js)
Computes the weights for the unscented Kalman filter. In this
dataset/ETHPy150Open edoburu/django-fluent-contents/fluent_contents/templatetags/fluent_contents_tags.py/_split_js--crossover with--dataset/ETHPy150Open rlabbe/filterpy/filterpy/kalman/sigma_points.py/JulierSigmaPoints.weights