Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 511 - 520 of 2,996 for switch (0.04 seconds)

  1. callbacks/query.go

    				}
    			}
    		} else if db.Statement.Schema != nil && db.Statement.ReflectValue.IsValid() {
    			queryFields := db.QueryFields
    			if !queryFields {
    				switch db.Statement.ReflectValue.Kind() {
    				case reflect.Struct:
    					queryFields = db.Statement.ReflectValue.Type() != db.Statement.Schema.ModelType
    				case reflect.Slice:
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sun May 25 07:40:40 GMT 2025
    - 10.4K bytes
    - Click Count (3)
  2. cmd/data-scanner_test.go

    	}{
    		{
    			// With replication configured, version(s) with PENDING purge status
    			replCfg:  replicationConfig{Config: &replCfg},
    			objInfos: replObjInfos,
    			wants:    replWants,
    			wantExpired: []ObjectToDelete{
    				{ObjectV: ObjectV{ObjectName: obj, VersionID: objInfos[3].VersionID}},
    			},
    		},
    		{
    			// With lock retention configured and version(s) with retention metadata
    			lr:       lr,
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 12K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/app/web/admin/dataconfig/AdminDataconfigAction.java

         * @return An optional entity of a data config.
         */
        public static OptionalEntity<DataConfig> getEntity(final CreateForm form, final String username, final long currentTime) {
            switch (form.crudMode) {
            case CrudMode.CREATE:
                return OptionalEntity.of(new DataConfig()).map(entity -> {
                    entity.setCreatedBy(username);
                    entity.setCreatedTime(currentTime);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 11:54:13 GMT 2026
    - 21K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/app/web/admin/dict/stopwords/AdminDictStopwordsAction.java

        //                                                                        ============
    
        private static OptionalEntity<StopwordsItem> getEntity(final CreateForm form) {
            switch (form.crudMode) {
            case CrudMode.CREATE:
                final StopwordsItem entity = new StopwordsItem(0, StringUtil.EMPTY);
                return OptionalEntity.of(entity);
            case CrudMode.EDIT:
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 20.3K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb/SIDCacheImplTest.java

                    rpc.names.names = new lsarpc.LsarTranslatedName[1];
                    rpc.names.names[0] = new lsarpc.LsarTranslatedName();
                    rpc.names.names[0].sid_type = (short) jcifs.SID.SID_TYPE_UNKNOWN; // not in switch list
                    rpc.names.names[0].name = new UnicodeString("unknown", false);
                    rpc.names.names[0].sid_index = 0;
                    return null;
                }).when(handle).sendrecv(any());
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14K bytes
    - Click Count (0)
  6. cmd/common-main.go

    	ctxt.StrictS3Compat = !ctx.IsSet("no-compat") && !ctx.GlobalIsSet("no-compat")
    
    	switch {
    	case ctx.IsSet("config-dir"):
    		ctxt.ConfigDir = ctx.String("config-dir")
    		ctxt.configDirSet = true
    	case ctx.GlobalIsSet("config-dir"):
    		ctxt.ConfigDir = ctx.GlobalString("config-dir")
    		ctxt.configDirSet = true
    	}
    
    	switch {
    	case ctx.IsSet("certs-dir"):
    		ctxt.CertsDir = ctx.String("certs-dir")
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 32.5K bytes
    - Click Count (3)
  7. cmd/erasure-encode_test.go

    				}
    				writers[i] = newBitrotWriter(disk, "", "testbucket", "object2", erasure.ShardFileSize(int64(len(data[test.offset:]))), test.algorithm, erasure.ShardSize())
    			}
    			for j := range disks[:test.offDisks] {
    				switch w := writers[j].(type) {
    				case *wholeBitrotWriter:
    					w.disk = badDisk{nil}
    				case *streamingBitrotWriter:
    					w.closeWithErr(errFaultyDisk)
    				}
    			}
    			if test.offDisks > 0 {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 11.8K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationResponseTest.java

        @Test
        @DisplayName("Test getInfo with type when info is null")
        void testGetInfoWithTypeWhenNull() {
            response = new Trans2QueryPathInformationResponse(mockConfig, FileInformation.FILE_BASIC_INFO);
    
            assertThrows(NullPointerException.class, () -> {
                response.getInfo(FileBasicInfo.class);
            });
        }
    
        @Test
        @DisplayName("Test getInfo with compatible type")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  9. internal/logger/console.go

    type Logger interface {
    	json(msg string, args ...any)
    	quiet(msg string, args ...any)
    	pretty(msg string, args ...any)
    }
    
    func consoleLog(console Logger, msg string, args ...any) {
    	switch {
    	case jsonFlag:
    		// Strip escape control characters from json message
    		msg = ansiRE.ReplaceAllLiteralString(msg, "")
    		console.json(msg, args...)
    	case quietFlag:
    		if len(msg) != 0 && len(args) == 0 {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  10. src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java

        /**
         * Update directory cache with new listing
         *
         * @param directoryPath directory path
         * @param files list of files in directory
         */
        public void updateDirectoryCache(String directoryPath, List<SmbFile> files) {
            DirectoryCacheEntry entry = getCacheEntry(directoryPath);
            if (entry == null)
                return;
    
            // Update cache with new directory listing
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 01:47:47 GMT 2025
    - 12.3K bytes
    - Click Count (0)
Back to Top