- Sort Score
- Num 10 results
- Language All
Results 1021 - 1030 of 1,299 for else (0.02 seconds)
-
src/bytes/bytes.go
// IndexByte returns too many false positives. if haveFastIndex { if j := bytealg.Index(s[i-last:], b[:n]); j >= 0 { return i + j - last } } else { // If bytealg.Index is not available a brute force search is // ~1.5-3x faster than Rabin-Karp since n is small. c0 := b[last] c1 := b[last-1] // There are at least 2 chars to match loop:Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Tue Sep 16 16:42:15 GMT 2025 - 35.5K bytes - Click Count (0) -
cmd/bucket-targets.go
if ok { if prev.Online != result.Online || !result.Online { if !prev.lastHCAt.IsZero() { offline = time.Since(prev.lastHCAt) + prev.offlineDuration } else { offline = prev.offlineDuration } } else if result.Online { offline = prev.offlineDuration } } lastOnline = prev.lastOnline if result.Online { lastOnline = time.Now() }Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 20.9K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/RepositoryUtils.java
return session; } newSession = new DefaultRepositorySystemSession(session); } else { newSession = new DefaultRepositorySystemSession(h -> false); // no close handle used } final LocalRepositoryManager llrm =Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Sep 04 18:33:16 GMT 2025 - 15.8K bytes - Click Count (0) -
cmd/bucket-listobjects-handlers.go
// Initiate a list objects operation inside a zip file based in the input params listObjectsV2Info, err = listObjectsV2InArchive(ctx, objectAPI, bucket, prefix, token, delimiter, maxKeys, startAfter, r.Header) } else { // Initiate a list objects operation based on the input params. // On success would return back ListObjectsInfo object to be // marshaled into S3 compatible XML header.
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 11.6K bytes - Click Count (0) -
internal/logger/target/kafka/kafka.go
msg := sarama.ProducerMessage{ Topic: h.kconfig.Topic, Value: sarama.ByteEncoder(logJSON), } _, _, err = h.producer.SendMessage(&msg) if err != nil { atomic.StoreInt32(&h.status, statusOffline) } else { atomic.StoreInt32(&h.status, statusOnline) } return err } // Init initialize kafka target func (h *Target) init() error { if os.Getenv("_MINIO_KAFKA_DEBUG") != "" {Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 10.2K bytes - Click Count (0) -
compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilder.java
org.apache.maven.api.plugin.descriptor.PluginDescriptor pd = new PluginDescriptorStaxReader().read(xsr, true); return new PluginDescriptor(pd); } else { XmlNode node = XmlService.read(xsr); PlexusConfiguration cfg = XmlPlexusConfiguration.toPlexusConfiguration(node); return build(source, cfg); } }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Mar 25 09:45:07 GMT 2025 - 17.5K bytes - Click Count (0) -
architecture/standards/0006-use-of-provider-apis-in-gradle.md
```groovy public interface NewThing { Property<String> getSomeProperty() } // Unacceptable String value if (!getSomeProperty().isPresent()) { value = "convention" } else { value = getSomeProperty().get() } // Also unacceptable String value = getSomeProperty().getOrElse("convention") // This should be always: String value = getSomeProperty().get() ```Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Tue Oct 15 20:00:57 GMT 2024 - 10K bytes - Click Count (0) -
api/maven-api-settings/src/main/mdo/settings.mdo
} else if (!(USER_LEVEL.equals(sourceLevel) || PROJECT_LEVEL.equals(sourceLevel) || GLOBAL_LEVEL.equals(sourceLevel))) { throw new IllegalArgumentException("sourceLevel must be one of: {" + USER_LEVEL + "," + PROJECT_LEVEL + "," + GLOBAL_LEVEL + "}"); } else { this.sourceLevel = sourceLevel; this.sourceLevelSet = true;
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Sun May 18 09:15:56 GMT 2025 - 33.8K bytes - Click Count (0) -
docs/en/docs/tutorial/handling-errors.md
# Handling Errors { #handling-errors } There are many situations in which you need to notify an error to a client that is using your API. This client could be a browser with a frontend, a code from someone else, an IoT device, etc. You could need to tell the client that: * The client doesn't have enough privileges for that operation. * The client doesn't have access to that resource. * The item the client was trying to access doesn't exist. * etc.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 9K bytes - Click Count (0) -
docs/debugging/inspect/export.go
return payload, 0, 0, fmt.Errorf("xlMeta: unknown XLv2 header, expected %v, got %v", xlHeader[:4], buf[:4]) } if bytes.Equal(buf[4:8], []byte("1 ")) { // Set as 1,0. major, minor = 1, 0 } else { major, minor = binary.LittleEndian.Uint16(buf[4:6]), binary.LittleEndian.Uint16(buf[6:8]) } if major > xlVersionMajor { return buf[8:], major, minor, fmt.Errorf("xlMeta: unknown major version %d found", major) }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 9.2K bytes - Click Count (1)