- Sort Score
- Num 10 results
- Language All
Results 151 - 160 of 222 for snippets (0.04 seconds)
-
tensorflow/api_template_v1.__init__.py
del importlib # Load all plugin libraries from site-packages/tensorflow-plugins if we are # running under pip. # TODO(gunan): Find a better location for this code snippet. from tensorflow.python.framework import load_library as _ll from tensorflow.python.lib.io import file_io as _fi # Get sitepackages directories for the python installation. _site_packages_dirs = []
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Wed Oct 02 22:16:02 GMT 2024 - 7.5K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Queues.java
* through the returned queue. * * <p>It is imperative that the user manually synchronize on the returned queue when accessing the * queue's iterator: * * {@snippet : * Queue<E> queue = Queues.synchronizedQueue(MinMaxPriorityQueue.<E>create()); * ... * queue.add(element); // Needn't be in synchronized block * ... * synchronized (queue) { // Must synchronize on queue!
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 18.2K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/RangeSet.java
* * <p>Implementations that choose to support the {@link #add(Range)} operation are required to * ignore empty ranges and coalesce connected ranges. For example: * * {@snippet : * RangeSet<Integer> rangeSet = TreeRangeSet.create(); * rangeSet.add(Range.closed(1, 10)); // {[1, 10]} * rangeSet.add(Range.closedOpen(11, 15)); // disconnected range; {[1, 10], [11, 15)}Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 9.8K bytes - Click Count (0) -
guava/src/com/google/common/collect/Ordering.java
* <li>{@link #min} / {@link #max} * </ul> * * <h3>Understanding complex orderings</h3> * * <p>Complex chained orderings like the following example can be challenging to understand. * * {@snippet : * Ordering<Foo> ordering = * Ordering.natural() * .nullsFirst() * .onResultOf(getBarFunction) * .nullsLast(); * } *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 39.4K bytes - Click Count (0) -
android/guava/src/com/google/common/io/Closer.java
* approximately equivalent in behavior to the same code written with try-with-resources. * * <p>This class is intended to be used in the following pattern: * * {@snippet : * Closer closer = Closer.create(); * try { * InputStream in = closer.register(openInputStream()); * OutputStream out = closer.register(openOutputStream()); * // do stuff * } catch (Throwable e) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 29 22:14:05 GMT 2026 - 10.3K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/Network.java
* <p>The implementation classes that {@code common.graph} provides are not public, by design. To * create an instance of one of the built-in implementations of {@code Network}, use the {@link * NetworkBuilder} class: * * {@snippet : * MutableNetwork<Integer, MyEdge> network = NetworkBuilder.directed().build(); * } * * <p>{@link NetworkBuilder#build()} returns an instance of {@link MutableNetwork}, which is aCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 11 01:10:31 GMT 2026 - 17.6K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/ImmutableNetwork.java
} /** * A builder for creating {@link ImmutableNetwork} instances, especially {@code static final} * networks. Example: * * {@snippet : * static final ImmutableNetwork<City, Train> TRAIN_NETWORK = * NetworkBuilder.undirected() * .allowsParallelEdges(true) * .<City, Train>immutable()Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 11 01:10:31 GMT 2026 - 9.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/api/chat/ChatApiManagerTest.java
source.setUrl("https://example.com"); source.setTitle("Example Page"); source.setSnippet("This is a snippet..."); assertEquals("https://example.com", source.getUrl()); assertEquals("Example Page", source.getTitle()); assertEquals("This is a snippet...", source.getSnippet()); } @Test public void test_createSuccessResponse_emptySources() {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 14 01:39:16 GMT 2026 - 35K bytes - Click Count (0) -
guava/src/com/google/common/base/Converter.java
* be overridden. * </ul> * * <h3>Example</h3> * * {@snippet : * return Converter.from( * Integer::toHexString, * s -> parseUnsignedInt(s, 16)); * } * * <p>An alternative using a subclass: * * {@snippet : * return new Converter<Integer, String>() { * @Override * protected String doForward(Integer i) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jun 18 21:43:06 GMT 2025 - 22.8K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/MapMaker.java
/** * A builder of {@link ConcurrentMap} instances that can have keys or values automatically wrapped * in {@linkplain WeakReference weak} references. * * <p>Usage example: * * {@snippet : * ConcurrentMap<Request, Stopwatch> timers = new MapMaker() * .concurrencyLevel(4) * .weakKeys() * .makeMap(); * } *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 12.8K bytes - Click Count (0)