Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 216 for block_a (0.25 seconds)

  1. scripts/doc_parsing_utils.py

        end_line_no = start_line + len(block_a["content"]) - 1
    
        if block_a["lang"] != block_b["lang"]:
            raise ValueError(
                f"Code block (lines {start_line}-{end_line_no}) "
                "has different language than the original block "
                f"('{block_a['lang']}' vs '{block_b['lang']}')"
            )
        if len(block_a["content"]) != len(block_b["content"]):
            raise ValueError(
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:37:41 GMT 2026
    - 23.5K bytes
    - Click Count (0)
  2. scripts/tests/test_translation_fixer/test_complex_doc/data/translated_doc_expected.md

    Следующие блоки кода содержат комментарии в разных стилях в зависимости от языка.
    Инструмент исправления не будет сохранять комментарии в этих блоках.
    
    ```json
    {
        # This is a sample JSON code block
        "greeting": "Hello, world!" # Print greeting
    }
    ```
    
    ```console
    # This is a sample console code block
    $ echo "Hello, world!"  # Print greeting
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 08:08:04 GMT 2026
    - 10.9K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java

            assertNotNull(block2);
    
            // Test constructor with config and andx
            TestAndXServerMessageBlock block3 = new TestAndXServerMessageBlock(mockConfig) {
                {
                    // Set andx via constructor chain
                    super.setCommand((byte) 0x25);
                }
            };
            assertNotNull(block3);
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 19.4K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java

        //            (__)\       )\/\
        //                ||----w |
        //                ||     ||
        Runnable state = get();
        Blocker blocker = null;
        while (state instanceof Blocker || state == PARKED) {
          if (state instanceof Blocker) {
            blocker = (Blocker) state;
          }
          spinCount++;
          if (spinCount > MAX_BUSY_WAIT_SPINS) {
            /*
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jan 28 22:39:02 GMT 2026
    - 10K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java

      static void awaitWaiting(Thread t) {
        while (true) {
          Thread.State state = t.getState();
          switch (state) {
            case RUNNABLE:
            case BLOCKED:
              Thread.yield();
              break;
            case WAITING:
              return;
            default:
              throw new AssertionError("unexpected state: " + state);
          }
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 13.8K bytes
    - Click Count (0)
  6. src/main/java/jcifs/util/AuthenticationRateLimiter.java

                recentAttempts.set(0);
                blocked.set(false);
                blockExpiry = null;
                windowStart = Instant.now();
            }
    
            void block(Duration duration) {
                blocked.set(true);
                blockExpiry = Instant.now().plus(duration);
            }
    
            boolean isBlocked() {
                return blocked.get();
            }
    
            int getRecentAttempts() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  7. src/test/java/jcifs/util/AuthenticationRateLimiterTest.java

            String ip = "192.168.1.7";
    
            // Block the IP
            for (int i = 1; i <= 5; i++) {
                assertTrue(rateLimiter.checkAttempt("user" + i, ip));
                rateLimiter.recordFailure("user" + i, ip);
            }
    
            // Should be blocked
            assertFalse(rateLimiter.checkAttempt("user6", ip), "IP should be blocked");
    
            // Manually unblock
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 15.8K bytes
    - Click Count (0)
  8. docs/debugging/xl-meta/main.go

    		}
    
    		offset := ei.V2Obj.EcBSize * blockNum
    		if offset >= m.size {
    			return nil, fmt.Errorf("block %d out of range. offset %d > size %d", blockNum, offset, m.size)
    		}
    		m.blockOffset = offset
    		m.blocks = (m.size + ei.V2Obj.EcBSize - 1) / ei.V2Obj.EcBSize
    		if m.blocks > 0 {
    			m.blocks--
    		}
    		if blockNum < m.blocks {
    			m.size = ei.V2Obj.EcBSize
    		} else {
    			m.size -= offset
    		}
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 40.4K bytes
    - Click Count (0)
  9. src/test/java/jcifs/util/PathValidatorTest.java

        @Test
        public void testClearBlacklist() throws Exception {
            validator.addToBlacklist("\\share\\blocked");
            validator.clearBlacklist();
    
            // Should allow previously blacklisted path
            String allowed = validator.validatePath("\\share\\blocked\\file.txt");
            assertEquals("\\share\\blocked\\file.txt", allowed);
        }
    
        @Test
        public void testClearWhitelist() throws Exception {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 14.6K bytes
    - Click Count (0)
  10. scripts/general-llm-prompt.md

    Do not translate the content of code snippets, keep the original in English. For example, `list`, `dict`, keep them as is.
    
    ### Content of code blocks
    
    Do not translate the content of code blocks, except for comments in the language which the code block uses.
    
    Examples:
    
    Source (English) - The code block is a bash code example with one comment:
    
    ```bash
    # Print greeting
    echo "Hello, World!"
    ```
    
    Result (German):
    
    ```bash
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Mar 18 10:55:36 GMT 2026
    - 14.6K bytes
    - Click Count (0)
Back to Top