- Sort Score
- Num 10 results
- Language All
Results 5491 - 5500 of 6,205 for new1 (0.19 seconds)
-
tests/test_response_dependency.py
def test_response_dependency_returns_different_response_instance(): """Dependency that returns a different Response instance should work. When a dependency returns a new Response object (e.g., JSONResponse) instead of modifying the injected one, the returned response should be used and any modifications to it in the endpoint should be preserved. """ app = FastAPI()
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) -
cmd/dynamic-timeouts.go
} func newDynamicTimeoutWithOpts(opts dynamicTimeoutOpts) *dynamicTimeout { dt := newDynamicTimeout(opts.timeout, opts.minimum) dt.retryInterval = opts.retryInterval return dt } // newDynamicTimeout returns a new dynamic timeout initialized with timeout value func newDynamicTimeout(timeout, minimum time.Duration) *dynamicTimeout { if timeout <= 0 || minimum <= 0 { panic("newDynamicTimeout: negative or zero timeout") }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 4.5K bytes - Click Count (0) -
internal/config/subnet/config.go
os.Setenv("CONSOLE_SUBNET_API_KEY", c.APIKey) } if c.Proxy != "" { os.Setenv("CONSOLE_SUBNET_PROXY", c.Proxy) } os.Setenv("CONSOLE_SUBNET_URL", c.BaseURL) } // Update - in-place update with new license and registration information. func (c *Config) Update(ncfg Config, isDevEnv bool) { configLock.Lock() defer configLock.Unlock() c.License = ncfg.License c.APIKey = ncfg.APIKey c.Proxy = ncfg.Proxy
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Feb 18 16:25:55 GMT 2025 - 3.9K bytes - Click Count (0) -
internal/bucket/lifecycle/evaluator_test.go
func TestEmptyEvaluator(t *testing.T) { var objs []ObjectOpts curModTime := time.Date(2025, time.February, 10, 23, 0, 0, 0, time.UTC) for i := range 5 { obj := ObjectOpts{ Name: "obj", VersionID: uuid.New().String(), ModTime: curModTime.Add(time.Duration(-i) * time.Second), NumVersions: 5, } if i == 0 { obj.IsLatest = true } else {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Apr 08 15:41:24 GMT 2025 - 5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/suggest/converter/KatakanaToAlphabetConverterTest.java
public class KatakanaToAlphabetConverterTest extends TestCase { private KatakanaToAlphabetConverter converter; @Override protected void setUp() throws Exception { super.setUp(); converter = new KatakanaToAlphabetConverter(); converter.init(); } public void test_convert() { assertTrue(converter.convert("ケンサク", null).contains("kennsaku")); }Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Mon Nov 17 14:28:21 GMT 2025 - 5.9K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ResponseCommonTest.kt
.build() assertThat(response.body.contentType()).isNull() assertThat(response.body.contentLength()).isEqualTo(0L) assertThat(response.body.byteString()).isEqualTo(EMPTY) } /** * Returns a new response body that refuses to be read once it has been closed. This is true of * most [BufferedSource] instances, but not of [Buffer]. */ private fun responseBody(content: String): ResponseBody {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 3.6K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ReverseNaturalOrdering.java
/** An ordering that uses the reverse of the natural order of the values. */ @GwtCompatible final class ReverseNaturalOrdering extends Ordering<Comparable<?>> implements Serializable { static final ReverseNaturalOrdering INSTANCE = new ReverseNaturalOrdering(); @Override @SuppressWarnings("unchecked") // TODO(kevinb): the right way to explain this?? public int compare(Comparable<?> left, Comparable<?> right) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jun 04 13:03:16 GMT 2025 - 3K bytes - Click Count (0) -
compat/maven-model/src/test/java/org/apache/maven/model/merge/MavenMergerTest.java
import static org.junit.jupiter.api.Assertions.assertTrue; /** * MavenMerger is based on same instances, subclasses should override KeyComputer per type */ class MavenMergerTest { private MavenMerger mavenMerger = new MavenMerger(); @Test void mergeArtifactId() { Model target = Model.newBuilder().artifactId("TARGET").build(); Model source = Model.newBuilder().artifactId("SOURCE").build();Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 3.6K bytes - Click Count (0) -
helm/minio/templates/_helper_create_user.txt
echo {{ tpl .accessKey $global }} > $MINIO_ACCESSKEY_SECRETKEY_TMP {{- if .existingSecret }} cat /config/secrets/{{ tpl .existingSecret $global }}/{{ tpl .existingSecretKey $global }} >> $MINIO_ACCESSKEY_SECRETKEY_TMP # Add a new line if it doesn't exist echo >> $MINIO_ACCESSKEY_SECRETKEY_TMP createUser {{ .policy }} {{ else }} echo {{ .secretKey }} >> $MINIO_ACCESSKEY_SECRETKEY_TMP createUser {{ .policy }} {{- end }} {{- end }}Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Dec 12 23:43:32 GMT 2023 - 3.2K bytes - Click Count (0) -
src/cmd/asm/main.go
ctxt.DiagFunc = func(format string, args ...any) { diag = true log.Printf(format, args...) } if *flags.SymABIs { ok = parser.ParseSymABIs(buf) } else { pList := new(obj.Plist) pList.Firstpc, ok = parser.Parse() // reports errors to parser.Errorf if ok { obj.Flushplist(ctxt, pList, nil) } } if !ok { failedFile = f break } }
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Thu Apr 02 17:07:18 GMT 2026 - 3K bytes - Click Count (0)