Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 1,078 for putA (0.02 seconds)

  1. internal/grid/types.go

    		return make([]T, 0, sz)
    	}
    	t2 := *t
    	return t2[:0]
    }
    
    func (p *ArrayOf[T]) putA(v []T) {
    	var zero T // nil
    	for i, t := range v {
    		//nolint:staticcheck // SA6002 IT IS A GENERIC VALUE!
    		p.ePool.Put(t)
    		v[i] = zero
    	}
    	if v != nil {
    		v = v[:0]
    		p.aPool.Put(&v)
    	}
    }
    
    func (p *ArrayOf[T]) newE() T {
    	return p.ePool.Get()
    }
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 15.5K bytes
    - Click Count (0)
  2. internal/store/queuestore.go

    	}
    
    	if err != nil {
    		return err
    	}
    	// Increment the item count.
    	store.entries[key.String()] = time.Now().UnixNano()
    	return nil
    }
    
    // Put - puts an item to the store.
    func (store *QueueStore[I]) Put(item I) (Key, error) {
    	store.Lock()
    	defer store.Unlock()
    	if uint64(len(store.entries)) >= store.entryLimit {
    		return Key{}, errLimitExceeded
    	}
    	// Generate a new UUID for the key.
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/crawler/transformer/FessTransformer.java

                    }
                    dataMap.put(key, values);
                } else {
                    final Object[] values = Arrays.copyOf(oldValues, oldValues.length + 1);
                    values[values.length - 1] = value;
                    dataMap.put(key, values);
                }
            }
        }
    
        /**
         * Puts data into the result data map after processing it through a template script.
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Dec 11 09:47:03 GMT 2025
    - 14.1K bytes
    - Click Count (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/ExtractData.java

            this.content = content;
        }
    
        /**
         * Puts multiple values for a given key in the metadata.
         *
         * @param key the metadata key
         * @param values the values to associate with the key
         */
        public void putValues(final String key, final String[] values) {
            metadata.put(key, values);
        }
    
        /**
         * Puts a single value for a given key in the metadata.
         *
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Sat Sep 06 04:15:37 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  5. internal/store/queuestore_test.go

    	if err != nil {
    		t.Fatal("Failed to create a queue store ", err)
    	}
    	for range 5 {
    		if _, err := store.Put(testItem); err != nil {
    			t.Fatal("Failed to put to queue store ", err)
    		}
    	}
    	// Should not allow 6th Put.
    	if _, err := store.Put(testItem); err == nil {
    		t.Fatalf("Expected to fail with %s, but passes", errLimitExceeded)
    	}
    }
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 10.2K bytes
    - Click Count (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/EmlExtractor.java

                return data;
            } catch (final MessagingException e) {
                throw new ExtractException(e);
            }
        }
    
        /**
         * Puts a value into the extract data with appropriate type conversion.
         *
         * @param data the extract data to store the value in
         * @param key the key for the value
         * @param value the value to store
         */
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Sun Jul 06 02:13:03 GMT 2025
    - 12.6K bytes
    - Click Count (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelCache.java

     * model builder.
     *
     * @deprecated use {@code org.apache.maven.api.services.ModelBuilder} instead
     */
    @Deprecated(since = "4.0.0")
    public interface ModelCache {
    
        /**
         * Puts the specified data into the cache.
         *
         * @param groupId The group id of the cache record, must not be {@code null}.
         * @param artifactId The artifact id of the cache record, must not be {@code null}.
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sat Apr 05 11:52:05 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java

                    }
                }
    
                // Pre-store the checksums as any future puts will overwrite them
                for (String extension : checksums.keySet()) {
                    ChecksumObserver observer = checksums.get(extension);
                    sums.put(extension, observer.getActualChecksum());
                }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sat Apr 05 11:52:05 GMT 2025
    - 29.9K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/collect/HashBiMap.java

        return (entry == ABSENT) ? null : keys[entry];
      }
    
      @CanIgnoreReturnValue
      @Override
      public @Nullable V put(@ParametricNullness K key, @ParametricNullness V value) {
        return put(key, value, false);
      }
    
      private @Nullable V put(@ParametricNullness K key, @ParametricNullness V value, boolean force) {
        int keyHash = Hashing.smearedHash(key);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Dec 16 14:46:34 GMT 2025
    - 37.1K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/ldap/LdapManager.java

            entry.put(new BasicAttribute("cn", user.getName()));
            entry.put(new BasicAttribute("userPassword", user.getOriginalPassword()));
    
            OptionalUtil.ofNullable(user.getSurname())
                    .filter(StringUtil::isNotBlank)
                    .ifPresent(s -> entry.put(new BasicAttribute(fessConfig.getLdapAttrSurname(), s)));
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 86.3K bytes
    - Click Count (0)
Back to Top