Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for mapValues (0.05 seconds)

  1. callbacks/helper.go

    func ConvertMapToValuesForCreate(stmt *gorm.Statement, mapValue map[string]interface{}) (values clause.Values) {
    	values.Columns = make([]clause.Column, 0, len(mapValue))
    	selectColumns, restricted := stmt.SelectAndOmitColumns(true, false)
    
    	keys := make([]string, 0, len(mapValue))
    	for k := range mapValue {
    		keys = append(keys, k)
    	}
    	sort.Strings(keys)
    
    	for _, k := range keys {
    		value := mapValue[k]
    		if stmt.Schema != nil {
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Thu Apr 14 12:32:57 GMT 2022
    - 3.7K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/collect/AbstractMapsTransformValuesTest.java

        // Assert that expectedValues > mapValues and that
        // mapValues > expectedValues; i.e. that expectedValues == mapValues.
        Collection<?> expectedValues = expected.values();
        Collection<?> mapValues = map.values();
        assertEquals(expectedValues.size(), mapValues.size());
        assertTrue(expectedValues.containsAll(mapValues));
        assertTrue(mapValues.containsAll(expectedValues));
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 9.5K bytes
    - Click Count (0)
  3. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/AlphabeticalAcceptedApiChangesTask.kt

            val sortedChanges = originalChanges.mapValues {
                sortChanges(it.value)
            }
    
            val mismatches = originalChanges.mapValues {
                findMismatches(it.value, sortedChanges[it.key]!!)
            }.filterValues {
                it.isNotEmpty()
            }
    
            if (mismatches.isNotEmpty()) {
                val formattedMismatches = mismatches.mapValues { mismatch ->
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Nov 29 14:03:44 GMT 2024
    - 2.5K bytes
    - Click Count (0)
  4. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/SortAcceptedApiChangesTask.kt

        @TaskAction
        fun execute() {
            val gson: Gson = GsonBuilder().setFormattingStyle(FormattingStyle.PRETTY.withIndent("    ")).create()
            loadChanges().mapValues {
                gson.toJson(AcceptedApiChanges(sortChanges(it.value)))
            }.forEach {
                it.key.bufferedWriter().use { out ->
                    out.write(it.value)
                    out.write("\n")
                }
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Apr 09 14:09:16 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  5. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/AbstractAcceptedApiChangesMaintenanceTask.kt

                    it.name.endsWith(".json")
                }?.associate {
                    it to it.readAcceptedChanges()
                }?.filterValues {
                    it.acceptedApiChanges != null
                }?.mapValues {
                    it.value.acceptedApiChanges!!
                } ?: emptyMap()
        }
    
        private
        fun File.readAcceptedChanges(): AcceptedApiChanges {
            val jsonString = this.readText()
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Jun 04 14:00:46 GMT 2024
    - 2.9K bytes
    - Click Count (0)
  6. schema/utils.go

    	case reflect.Map:
    		results = [][]interface{}{make([]interface{}, len(fields))}
    		for idx, field := range fields {
    			mapValue := reflectValue.MapIndex(reflect.ValueOf(field.DBName))
    			if mapValue.IsZero() {
    				mapValue = reflectValue.MapIndex(reflect.ValueOf(field.Name))
    			}
    			results[0][idx] = mapValue.Interface()
    		}
    
    		dataResults[utils.ToStringKey(results[0]...)] = []reflect.Value{reflectValue}
    	case reflect.Struct:
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Thu Oct 30 11:15:36 GMT 2025
    - 5.9K bytes
    - Click Count (0)
Back to Top