Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 578 for rounds (0.2 seconds)

  1. compat/maven-embedder/src/main/java/org/apache/maven/cli/transfer/FileSizeFormat.java

            if (unit == ScaleUnit.BYTE) {
                builder.append(size);
            } else if (scaledSize < 0.05d || scaledSize >= 10.0d) {
                builder.append(Math.round(scaledSize));
            } else {
                builder.append(Math.round(scaledSize * 10d) / 10d);
            }
    
            if (!omitSymbol) {
                builder.append(" ").append(unit.symbol());
            }
        }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Apr 16 10:09:21 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  2. cmd/metrics-resource.go

    	resourceMetricsMapMu.Lock()
    	defer resourceMetricsMapMu.Unlock()
    	subsysMetrics, found := resourceMetricsMap[subSys]
    	if !found {
    		subsysMetrics = ResourceMetrics{}
    	}
    
    	key := getResourceKey(name, labels)
    	metric, found := subsysMetrics[key]
    	if !found {
    		metric = ResourceMetric{
    			Name:   name,
    			Labels: labels,
    		}
    	}
    
    	if isCumulative {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Oct 10 18:57:03 GMT 2025
    - 17.2K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/ImmutableSortedMultiset.java

        final Comparator<? super E> comparator;
        final E[] elements;
        final int[] counts;
    
        @SuppressWarnings("unchecked")
        SerializedForm(SortedMultiset<E> multiset) {
          this.comparator = multiset.comparator();
          int n = multiset.entrySet().size();
          elements = (E[]) new Object[n];
          counts = new int[n];
          int i = 0;
          for (Entry<E> entry : multiset.entrySet()) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 29.5K bytes
    - Click Count (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/transfer/FileSizeFormat.java

            if (unit == ScaleUnit.BYTE) {
                builder.append(size);
            } else if (scaledSize < 0.05d || scaledSize >= 10.0d) {
                builder.append(Math.round(scaledSize));
            } else {
                builder.append(Math.round(scaledSize * 10d) / 10d);
            }
    
            if (!omitSymbol) {
                builder.append(" ").append(unit.symbol());
            }
        }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Apr 16 10:09:21 GMT 2025
    - 7K bytes
    - Click Count (0)
  5. src/test/java/jcifs/spnego/SpnegoTokenTest.java

            TestSpnegoToken t = new TestSpnegoToken();
            byte[] data = new byte[] { 1, 2, 3 };
            t.setMechanismToken(data);
            assertArrayEquals(data, t.getMechanismToken(), "mechanismToken should round-trip");
    
            // Document current behavior: no defensive copy (reference exposed)
            data[0] = 9;
            assertEquals(9, t.getMechanismToken()[0], "no defensive copy; reflects external mutation");
        }
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/math/Quantiles.java

        // it. We swap the pivot into partitionPoint and we know the array is partitioned around that.
        swap(array, from, partitionPoint);
        return partitionPoint;
      }
    
      /**
       * Selects the pivot to use, namely the median of the values at {@code from}, {@code to}, and
       * halfway between the two (rounded down), from {@code array}, and ensure (by swapping elements if
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 30.1K bytes
    - Click Count (0)
  7. cmd/metrics-v3-system-cpu.go

    		m.Set(sysCPULoadPerc, math.Round(perc*100)/100)
    	}
    
    	ts := cpuMetrics.TimesStat
    	if ts != nil {
    		tot := ts.User + ts.System + ts.Idle + ts.Iowait + ts.Nice + ts.Steal
    		cpuUserVal := math.Round(ts.User/tot*100*100) / 100
    		m.Set(sysCPUUser, cpuUserVal)
    		cpuSystemVal := math.Round(ts.System/tot*100*100) / 100
    		m.Set(sysCPUSystem, cpuSystemVal)
    		cpuNiceVal := math.Round(ts.Nice/tot*100*100) / 100
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu Jun 20 17:55:03 GMT 2024
    - 3K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/TreeRangeMap.java

      public void remove(Range<K> rangeToRemove) {
        if (rangeToRemove.isEmpty()) {
          return;
        }
    
        /*
         * The comments for this method will use [ ] to indicate the bounds of rangeToRemove and ( ) to
         * indicate the bounds of ranges in the range map.
         */
        Entry<Cut<K>, RangeMapEntry<K, V>> mapEntryBelowToTruncate =
            entriesByLowerBound.lowerEntry(rangeToRemove.lowerBound);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 26.5K bytes
    - Click Count (0)
  9. src/test/java/jcifs/pac/PacTest.java

            writeLittleEndianInt(baos, 10); // size
            writeLittleEndianLong(baos, 25); // Unaligned offset (not multiple of 8)
            // Add enough data to avoid array bounds issues
            while (baos.size() < 35) {
                baos.write(0);
            }
            byte[] pacData = baos.toByteArray();
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  10. src/test/java/jcifs/smb1/dcerpc/ndr/NdrHyperTest.java

     * The buffer is created with enough capacity for a 64‑bit value.
     */
    @ExtendWith(MockitoExtension.class)
    public class NdrHyperTest {
    
        /**
         * Tests a simple round‑trip encode → decode retains the original value.
         */
        @Test
        @DisplayName("Basic round‑trip for a fixed value")
        public void testEncodeRoundTrip() throws NdrException {
            final long original = 0x1122334455667788L;
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.3K bytes
    - Click Count (0)
Back to Top