Sets whether or not the source is looping.
770617
public void setLooping (boolean looping)
    {
        if (_looping != looping) {
            _looping = looping;
            AL10.alSourcei(_id, AL10.AL_LOOPING, looping ? AL10.AL_TRUE : AL10.AL_FALSE);
        }
    }
819921
protected static boolean getBoolean(final Context context, final DataSource source) throws FlowException {

		if (source != null) {

			final Object value = source.get(context);
			if (value instanceof Boolean) {

				return (Boolean)value;
			}

			if (value instanceof String) {

				return Boolean.valueOf((String)value);
			}
		}

		return false;
	}
89432
def as_set(self, include_weak=False):
        """"""
        rv = set(self._strong)
        if include_weak:
            rv.update(self._weak)
        return rv
1027878
def contains_if(self, include_loop=True):
        
        if include_loop:
            return self.type in [NodeType.IF, NodeType.IFLOOP]
        return self.type == NodeType.IF
953894
def _wait_non_ressources(self, callback):
        """"""  # noqa: E501
        self.trigger = threading.Lock()
        self.was_ended = False
        self.trigger.acquire()
        self.trigger.acquire()
        if not self.was_ended:
            callback(self)
32897
void setSource(Reader reader) {
		if (reader == null) {
			throw new IllegalArgumentException("'reader' must not be null.");
		}

		br =
				(reader instanceof BufferedReader) ? (BufferedReader) reader : new BufferedReader(
						reader);
	}
24076
function isInLoop(path) {
  const loopOrFunctionParent = path.find(
    path => path.isLoop() || path.isFunction(),
  );

  return loopOrFunctionParent && loopOrFunctionParent.isLoop();
}
86599
function(source){
    for (var i = 0, sourceInfo; sourceInfo = this.sourceValues_[i]; i++)
      if (sourceInfo.source === source)
        return true;

    return false;
  }
892948
private void setSource(String source) {
        requireArgument(source != null && !source.trim().isEmpty(), "Source cannot be null or empty.");
        _source = source;
    }
187878
function each(source, iterator) {
        if (source instanceof Array) {
            for (var i = 0, len = source.length; i < len; i++) {
                if (iterator(source[i], i) === false) {
                    break;
                }
            }
        }
    }
356655
def is_loop_helper(node):
    
    return hasattr(node, 'node') and isinstance(node.node, nodes.Name) and node.node.name == 'loop'
996461
public T loop(int loops, int startDelay, int resetDelay)
	{
		if (loops == 0)
			return self();

		this.loops = loops;
		this.loopStartDelay = Timer.tickToTime(startDelay);
		this.loopResetDelay = Timer.tickToTime(resetDelay);
		return self();
	}
252864
def _start_io_loop(self):
        """"""

        def mark_as_ready():
            self._ready.set()

        if not self._io_loop:
            self._io_loop = ioloop.IOLoop()

        self._io_loop.add_callback(mark_as_ready)
        self._io_loop.start()
130763
function isInLoop(node) {
    for (let currentNode = node; currentNode && !isFunction(currentNode); currentNode = currentNode.parent) {
        if (isLoop(currentNode)) {
            return true;
        }
    }

    return false;
}
89828
private boolean validateNoLoopDetected(DefaultHttpSession acceptSession) {
        List<String> viaHeaders = acceptSession.getReadHeaders(HEADER_VIA);
        if (viaHeaders != null && viaHeaders.stream().anyMatch(h -> h.equals(viaHeader))) {
                LOGGER.warn("Connection to " + getConnectURIs().iterator().next() +
                        " failed due to loop detection [" + acceptSession + "->]");
                acceptSession.setStatus(HttpStatus.SERVER_LOOP_DETECTED);
                acceptSession.close(true);
                return false;
            }
        return true;
    }
514698
def set_flow(self, flow):
        """"""
        if not hasattr(self, "_flow"):
            self._flow = flow
        else:
            if self._flow != flow:
                raise ValueError("self._flow != flow")
365760
protected static void checkSource(Configuration conf, List<Path> srcs
      ) throws InvalidInputException {
    List<IOException> ioes = new ArrayList<IOException>();
    for(Path p : srcs) {
      try {
        if (!p.getFileSystem(conf).exists(p)) {
          ioes.add(new FileNotFoundException("Source "+p+" does not exist."));
        }
      }
      catch(IOException e) {ioes.add(e);}
    }
    if (!ioes.isEmpty()) {
      throw new InvalidInputException(ioes);
    }
  }