Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 417 for sample (0.04 sec)

  1. tests/test_tutorial/test_static_files/test_tutorial001.py

        sample_file = static_dir / "sample.txt"
        sample_file.write_text("This is a sample static file.")
        from docs_src.static_files.tutorial001_py39 import app
    
        with TestClient(app) as client:
            yield client
        sample_file.unlink()
        static_dir.rmdir()
    
    
    def test_static_files(client: TestClient):
        response = client.get("/static/sample.txt")
        assert response.status_code == 200, response.text
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  2. fess-crawler/src/test/resources/extractor/markdown/test.md

    ---
    title: Sample Markdown Document
    author: John Doe
    date: 2025-01-15
    tags:
      - crawler
      - extractor
      - markdown
    ---
    
    # Introduction
    
    This is a sample Markdown document for testing the MarkdownExtractor.
    
    ## Features
    
    The extractor should handle:
    
    - YAML front matter extraction
    - Heading structure
    - **Bold text** and *italic text*
    - Lists and other formatting
    
    ### Code Examples
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Nov 23 03:46:53 UTC 2025
    - 767 bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/SitemapsHelperTest.java

                            + "      <video:thumbnail_loc>http://www.example.com/thumbs/123.jpg</video:thumbnail_loc>\n"
                            + "      <video:title>Sample video title</video:title>\n"
                            + "      <video:description>Sample video description</video:description>\n"
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 36.7K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/JsonExtractorTest.java

            assertTrue(content.contains("title"));
            assertTrue(content.contains("Sample Document"));
            assertTrue(content.contains("author"));
            assertTrue(content.contains("John Doe"));
    
            // Verify metadata extraction
            assertNotNull(extractData.getValues("title"));
            assertEquals("Sample Document", extractData.getValues("title")[0]);
            assertNotNull(extractData.getValues("author"));
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Nov 23 03:46:53 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/service/impl/UrlFilterServiceImplTest.java

            List<Pattern> mockExcludePatterns = new ArrayList<>();
            mockExcludePatterns.add(Pattern.compile("https://example.com/admin/.*"));
            mockExcludePatterns.add(Pattern.compile("https://example.com/private/.*"));
            mockExcludePatterns.add(Pattern.compile("https://example.com/secret/.*"));
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 13 13:29:22 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  6. fess-crawler/src/test/resources/extractor/json/test.json

    {
      "title": "Sample Document",
      "author": "John Doe",
      "version": "1.0",
      "published": "2025-01-15",
      "tags": ["crawler", "extractor", "json"],
      "content": {
        "summary": "This is a sample JSON document for testing",
        "body": "The extractor should handle nested objects and arrays properly"
      },
      "metadata": {
        "created_at": "2025-01-01T00:00:00Z",
        "updated_at": "2025-01-15T12:00:00Z"
      }
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Nov 23 03:46:53 UTC 2025
    - 412 bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/MarkdownExtractorTest.java

            CloseableUtil.closeQuietly(in);
    
            final String content = extractData.getContent();
    
            // Code blocks should be converted to plain text
            assertTrue(content.contains("public class Example") || content.contains("Example"));
        }
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  8. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/service/impl/OpenSearchUrlFilterServiceTest.java

            // Verify patterns work correctly
            assertTrue(includePatterns.get(0).matcher("http://example.com/page").matches());
            assertTrue(excludePatterns.get(0).matcher("http://example.com/admin/users").matches());
            assertFalse(excludePatterns.get(0).matcher("http://example.com/page").matches());
    
            urlFilterService.delete(sessionId);
        }
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  9. CLAUDE.md

    ```
    
    ```java
    extractorFactory.addExtractor("application/myformat", myExtractor, weight);
    ```
    
    3. **Add test with sample file** in `src/test/resources/`
    
    ### Configuring URL Filtering
    
    ```java
    // Include patterns (must match)
    crawler.urlFilter.addInclude("https://example.com/.*");
    
    // Exclude patterns (must not match)
    crawler.urlFilter.addExclude(".*\\.(css|js|png|jpg)$");
    ```
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Fri Nov 28 17:31:34 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  10. src/archive/tar/writer_test.go

    	if err != nil {
    		t.Fatalf("os.Stat:1 %v", err)
    	}
    	hdr.Typeflag = TypeDir
    	// Force a PAX long name to be written. The name was taken from a practical example
    	// that fails and replaced ever char through numbers to anonymize the sample.
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Mon Dec 15 16:34:13 UTC 2025
    - 40.2K bytes
    - Viewed (0)
Back to top