Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 721 - 730 of 3,558 for Gist (0.03 seconds)

  1. android/guava/src/com/google/common/collect/Ordering.java

          // k is really large; just do a straightforward sorted-copy-and-sublist
          ArrayList<E> list = Lists.newArrayList(iterator);
          sort(list, this);
          if (list.size() > k) {
            list.subList(k, list.size()).clear();
          }
          list.trimToSize();
          return unmodifiableList(list);
        } else {
          TopKSelector<E> selector = TopKSelector.least(k, this);
          selector.offerAll(iterator);
    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)
  2. src/test/java/jcifs/SidResolverTest.java

        }
    
        // Test getLocalGroupsMap
        @Test
        void testGetLocalGroupsMap_Success() throws CIFSException {
            Map<SID, List<SID>> expectedMap = new HashMap<>();
            List<SID> group1Members = Arrays.asList(mockSid1, mockSid2);
            List<SID> group2Members = Arrays.asList(mockSid3);
            expectedMap.put(mockDomainSid, group1Members);
            expectedMap.put(mockSid1, group2Members);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 15.5K bytes
    - Click Count (0)
  3. docs/zh/docs/tutorial/body-nested-models.md

    使用 **FastAPI**,你可以定义、校验、记录文档并使用任意深度嵌套的模型(归功于Pydantic)。
    
    ## List 字段 { #list-fields }
    
    你可以将一个属性定义为一个子类型。例如,Python `list`:
    
    {* ../../docs_src/body_nested_models/tutorial001_py310.py hl[12] *}
    
    这将使 `tags` 成为一个由元素组成的列表。不过它没有声明每个元素的类型。
    
    ## 带类型参数的 List 字段 { #list-fields-with-type-parameter }
    
    不过,Python 有一种用于声明具有内部类型(类型参数)的列表的特定方式:
    
    ### 声明带类型参数的 `list` { #declare-a-list-with-a-type-parameter }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 6.8K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/app/service/FileConfigService.java

            final ListResultBean<FileConfig> list = fileConfigBhv.selectList(cb -> {
                cb.query().setName_Equal(name);
                cb.query().addOrderBy_SortOrder_Asc();
            });
            if (list.isEmpty()) {
                return OptionalEntity.empty();
            }
            return OptionalEntity.of(list.get(0));
        }
    
        /**
         * Stores a file configuration in the database.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 7.4K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/opensearch/query/StoredLtrQueryBuilder.java

            return this;
        }
    
        /**
         * Gets the list of active features.
         *
         * @return A list of active features.
         */
        public List<String> activeFeatures() {
            return activeFeatures;
        }
    
        /**
         * Sets the list of active features.
         *
         * @param activeFeatures A list of active features.
         * @return This query builder.
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 7.6K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/app/web/api/admin/fileconfig/ApiAdminFileconfigAction.java

            validateApi(body, messages -> {});
            final FileConfigPager pager = copyBeanToNewBean(body, FileConfigPager.class);
            final List<FileConfig> list = fileConfigService.getFileConfigList(pager);
            return asJson(
                    new ApiResult.ApiConfigsResponse<EditBody>().settings(list.stream().map(this::createEditBody).collect(Collectors.toList()))
                            .total(pager.getAllRecordCount())
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 9.2K bytes
    - Click Count (0)
  7. android/guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.Lists;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.List;
    import java.util.NoSuchElementException;
    import junit.framework.TestCase;
    
    /**
     * Unit test for IteratorTester.
     *
     * @author Mick Killianey
     */
    @GwtCompatible
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Aug 06 18:32:41 GMT 2025
    - 10.3K bytes
    - Click Count (0)
  8. cmd/metacache-bucket.go

    func (b *bucketMetacache) deleteCache(id string) {
    	b.mu.Lock()
    	c, ok := b.caches[id]
    	if ok {
    		// Delete from root map.
    		list := b.cachesRoot[c.root]
    		for i, lid := range list {
    			if id == lid {
    				list = append(list[:i], list[i+1:]...)
    				break
    			}
    		}
    		b.cachesRoot[c.root] = list
    		delete(b.caches, id)
    		b.updated = true
    	}
    	b.mu.Unlock()
    	if ok {
    		c.delete(context.Background())
    	}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 6.6K bytes
    - Click Count (0)
  9. docs/en/docs/tutorial/query-params-str-validations.md

      ]
    }
    ```
    
    #### Using just `list` { #using-just-list }
    
    You can also use `list` directly instead of `list[str]`:
    
    {* ../../docs_src/query_params_str_validations/tutorial013_an_py310.py hl[9] *}
    
    /// note
    
    Keep in mind that in this case, FastAPI won't check the contents of the list.
    
    For example, `list[int]` would check (and document) that the contents of the list are integers. But `list` alone wouldn't.
    
    ///
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 16.3K bytes
    - Click Count (0)
  10. cmd/bucket-listobjects-handlers.go

    	)
    
    	if r.Header.Get(xMinIOExtract) == "true" && strings.Contains(prefix, archivePattern) {
    		// Initiate a list objects operation inside a zip file based in the input params
    		listObjectsV2Info, err = listObjectsV2InArchive(ctx, objectAPI, bucket, prefix, token, delimiter, maxKeys, startAfter, r.Header)
    	} else {
    		// Initiate a list objects operation based on the input params.
    		// On success would return back ListObjectsInfo object to be
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 11.6K bytes
    - Click Count (0)
Back to Top