Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 971 - 980 of 1,342 for happens (0.06 seconds)

  1. docs/distributed/DESIGN.md

                    atTotal += pool.Available
                    if atTotal > choose && pool.Available > 0 {
                            return pool.Index
                    }
            }
            // Should not happen, but print values just in case.
            panic(fmt.Errorf("reached end of serverPools (total: %v, atTotal: %v, choose: %v)", total, atTotal, choose))
    }
    ```
    
    ## Other usages
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Feb 26 09:25:50 GMT 2025
    - 8K bytes
    - Click Count (2)
  2. tests/test_response_dependency.py

        """BackgroundTasks type hint should work with Annotated[BackgroundTasks, Depends(...)]."""
        app = FastAPI()
        task_results = []
    
        def background_task(message: str):
            task_results.append(message)
    
        def add_background_task(background_tasks: BackgroundTasks) -> BackgroundTasks:
            background_tasks.add_task(background_task, "from dependency")
            return background_tasks
    
        @app.get("/")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 05 18:23:16 GMT 2026
    - 5.2K bytes
    - Click Count (0)
  3. src/cmd/asm/internal/lex/lex.go

    func Tokenize(str string) []Token {
    	t := NewTokenizer("command line", strings.NewReader(str), nil)
    	var tokens []Token
    	for {
    		tok := t.Next()
    		if tok == scanner.EOF {
    			break
    		}
    		tokens = append(tokens, Make(tok, t.Text()))
    	}
    	return tokens
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 4.1K bytes
    - Click Count (0)
  4. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/release/PruneChangelogsTask.java

    import java.nio.file.Path;
    import java.util.Set;
    import java.util.TreeSet;
    import java.util.stream.Collectors;
    import java.util.stream.Stream;
    import javax.inject.Inject;
    
    /**
     * Once a minor release has happened, we no longer need to keep the changelog files that went into
     * that release in the development branch for that major series or the branch for the next major
     * series
     * <p>
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Fri Sep 24 10:57:02 GMT 2021
    - 6.6K bytes
    - Click Count (0)
  5. cmd/metacache-walk.go

    							return err
    						}
    						continue
    					}
    				}
    
    				// NOT an object, append to stack (with slash)
    				// If dirObject, but no metadata (which is unexpected) we skip it.
    				if !isDirObj {
    					if !isDirEmpty(pathJoinBuf(sb, volumeDir, meta.name), legacyFS) {
    						dirStack = append(dirStack, meta.name+slashSeparator)
    					}
    				}
    			case isSysErrNotDir(err):
    				// skip
    			}
    		}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Mon May 26 07:06:43 GMT 2025
    - 12.6K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/dict/DictionaryExceptionTest.java

        @Test
        public void test_constructor_withLongMessage() {
            // Test constructor with long message
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < 1000; i++) {
                sb.append("Dictionary error ");
            }
            String longMessage = sb.toString();
            DictionaryException exception = new DictionaryException(longMessage);
    
            assertNotNull(exception);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/dict/stopwords/StopwordsFile.java

                    final char ch = s.charAt(i);
                    if (ch == '\\' && i < s.length() - 1) {
                        i++;
                        sb.append(s.charAt(i));
                    } else {
                        sb.append(ch);
                    }
                }
                return sb.toString();
            }
            return s;
        }
    
        /**
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 20 07:09:00 GMT 2025
    - 13K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

                out.write(initial.getBytes("UTF-8"));
            }
    
            // Append additional content
            String append = "Appended content\n";
            try (OutputStream out = file.openOutputStream(true)) { // true = append mode
                out.write(append.getBytes("UTF-8"));
            }
    
            // Verify combined content
            try (InputStream in = file.getInputStream()) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 56K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/app/web/admin/maintenance/AdminMaintenanceAction.java

                if (StringUtil.isNotBlank(hostname)) {
                    buf.append(hostname);
                }
                final String ip = IpAddressUtil.getUrlHost(ia);
                if (StringUtil.isNotBlank(ip)) {
                    if (buf.length() > 0) {
                        buf.append(" : ");
                    }
                    buf.append(ip);
                }
            } catch (final Exception e) {
                // ignore
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 23K bytes
    - Click Count (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/DiskLruCache.kt

          // The names are repetitive so re-use the same builder to avoid allocations.
          val fileBuilder = StringBuilder(key).append('.')
          val truncateTo = fileBuilder.length
          for (i in 0 until valueCount) {
            fileBuilder.append(i)
            cleanFiles += directory / fileBuilder.toString()
            fileBuilder.append(".tmp")
            dirtyFiles += directory / fileBuilder.toString()
            fileBuilder.setLength(truncateTo)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 34.7K bytes
    - Click Count (0)
Back to Top