- Sort Score
- Num 10 results
- Language All
Results 101 - 110 of 222 for mimetype (0.12 seconds)
-
docs/zh-hant/docs/advanced/advanced-python-types.md
print(f"Hi {name}!") ``` 在 `typing` 中也有用 `Optional` 宣告某個值可以是 `None` 的速記法。 以下是我個人(非常主觀)的建議: * 🚨 避免使用 `Optional[SomeType]` * 改為 ✨ 使用 `Union[SomeType, None]` ✨。 兩者等價且底層相同,但我會推薦用 `Union` 而不要用 `Optional`,因為「optional」這個詞看起來會讓人以為這個值是可選的,但實際上它的意思是「可以是 `None`」,即使它不是可選的、仍然是必填。 我認為 `Union[SomeType, None]` 更能清楚表達其含義。 這只是措辭與命名問題,但這些詞會影響你與團隊成員對程式碼的理解。 例如,看看下面這個函式: ```python from typing import Optional
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:15:26 GMT 2026 - 1.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java
private boolean extended = false; private int fileType = 0; public TestSmbComNTCreateAndXResponse(Configuration config, boolean extended, int fileType) { super(config); this.extended = extended; this.fileType = fileType; } // Use setter methods to configure extended and fileType in parent classCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 19.4K bytes - Click Count (0) -
src/main/java/jcifs/CIFSContext.java
* Get a pipe resource * * @param url the URL of the SMB pipe resource * @param pipeType * the type of the pipe * @return the SMB pipe resource at the specified location * @throws CIFSException if the pipe resource cannot be accessed */ SmbPipeResource getPipe(String url, int pipeType) throws CIFSException; /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 4.9K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/TransactNamedPipeInputStream.java
Object lock; TransactNamedPipeInputStream(final SmbNamedPipe pipe) throws SmbException, MalformedURLException, UnknownHostException { super(pipe, pipe.pipeType & 0xFFFF00FF | SmbFile.O_EXCL); this.dcePipe = (pipe.pipeType & SmbNamedPipe.PIPE_TYPE_DCE_TRANSACT) != SmbNamedPipe.PIPE_TYPE_DCE_TRANSACT; lock = new Object(); } @Override public int read() throws IOException {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 4.6K bytes - Click Count (0) -
cmd/config-migrate.go
switch cfg.Version { case "29": // V29 -> V30 cfg.Compression.Enabled = false cfg.Compression.Extensions = strings.Split(compress.DefaultExtensions, config.ValueSeparator) cfg.Compression.MimeTypes = strings.Split(compress.DefaultMimeTypes, config.ValueSeparator) case "30": // V30 -> V31 cfg.OpenID = openid.Config{} cfg.Policy.OPA = opa.Args{ URL: &xnet.URL{}, AuthToken: "", }Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 5.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/entity/FacetQueryViewTest.java
Map<String, String> queryMap = facetQueryView.getQueryMap(); // Should have original non-filetype queries assertEquals("field:value", queryMap.get("label2")); assertEquals("anotherfield:anothervalue", queryMap.get("label3")); // Should have filetype queries assertEquals("filetype:html", queryMap.get("label1"));Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 17.9K bytes - Click Count (0) -
cmd/object_api_suite_test.go
} } func enableCompression(t *testing.T, encrypt bool, mimeTypes []string, extensions []string) { // Enable compression and exec... globalCompressConfigMu.Lock() globalCompressConfig.Enabled = true globalCompressConfig.MimeTypes = mimeTypes globalCompressConfig.Extensions = extensions globalCompressConfig.AllowEncrypted = encrypt globalCompressConfigMu.Unlock()
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 34.5K bytes - Click Count (0) -
src/test/java/jcifs/context/BaseContextTest.java
// Test different pipe types int[] pipeTypes = { 0, 1, 2 }; for (int pipeType : pipeTypes) { // When SmbPipeResource pipe = context.getPipe("smb://server/IPC$/pipe", pipeType); // Then assertNotNull(pipe, "Should create pipe resource for type: " + pipeType); } } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 15.1K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/entity/SearchRequestParams.java
public static final String AS_EPQ = "epq"; /** The parameter for query. */ public static final String AS_Q = "q"; /** The parameter for filetype. */ public static final String AS_FILETYPE = "filetype"; /** The parameter for sitesearch. */ public static final String AS_SITESEARCH = "sitesearch"; /** The parameter for occurrence. */
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/query/QueryCommandTemplateMethodTest.java
queryCommand = new TestQueryCommand(); queryFieldConfig = ComponentUtil.getQueryFieldConfig(); // Set up search fields String[] searchFields = { "title", "content", "url", "host", "filetype" }; queryFieldConfig.setSearchFields(searchFields); } /** * Test isSearchField() with Set-based lookup. */ @Test public void test_isSearchField_withSetBasedLookup() {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 12.5K bytes - Click Count (0)