Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 354 for convert (0.15 sec)

  1. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/ArtifactDescriptorReaderDelegate.java

                result.addDependency(convert(dependency, stereotypes));
            }
    
            DependencyManagement mgmt = model.getDependencyManagement();
            if (mgmt != null) {
                for (org.apache.maven.api.model.Dependency dependency : mgmt.getDependencies()) {
                    result.addManagedDependency(convert(dependency, stereotypes));
                }
            }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  2. fastapi/encoders.py

                """
            ),
        ] = True,
    ) -> Any:
        """
        Convert any object to something that can be encoded in JSON.
    
        This is used internally by FastAPI to make sure anything you return can be
        encoded as JSON before it is sent to the client.
    
        You can also use it yourself, for example to convert objects before saving them
        in a database that supports only JSON.
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  3. cmd/postpolicyform.go

    	policyCondStartsWith    = "starts-with"
    	policyCondContentLength = "content-length-range"
    )
    
    // toString - Safely convert interface to string without causing panic.
    func toString(val interface{}) string {
    	switch v := val.(type) {
    	case string:
    		return v
    	default:
    		return ""
    	}
    }
    
    // toLowerString - safely convert interface to lower string
    func toLowerString(val interface{}) string {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/dataclasses.md

    So, even with the code above that doesn't use Pydantic explicitly, FastAPI is using Pydantic to convert those standard dataclasses to Pydantic's own flavor of dataclasses.
    
    And of course, it supports the same:
    
    * data validation
    * data serialization
    * data documentation, etc.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/body-updates.md

    * Convert the copied model to something that can be stored in your DB (for example, using the `jsonable_encoder`).
        * This is comparable to using the model's `.model_dump()` method again, but it makes sure (and converts) the values to data types that can be converted to JSON, for example, `datetime` to `str`.
    * Save the data to your DB.
    * Return the updated model.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  6. cmd/warm-backend-gcs.go

    	}
    	return r, nil
    }
    
    func (gcs *warmBackendGCS) Remove(ctx context.Context, key string, rv remoteVersionID) error {
    	err := gcs.client.Bucket(gcs.Bucket).Object(gcs.getDest(key)).Delete(ctx)
    	return gcsToObjectError(err, gcs.Bucket, key)
    }
    
    func (gcs *warmBackendGCS) InUse(ctx context.Context) (bool, error) {
    	it := gcs.client.Bucket(gcs.Bucket).Objects(ctx, &storage.Query{
    		Delimiter: "/",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  7. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultModelXmlFactory.java

        }
    
        /**
         * Simply converts the given content to an xml string.
         *
         * @param content the object to convert
         * @return the xml string representation
         * @throws XmlWriterException if an error occurs during the transformation
         * @see #fromXmlString(String)
         */
        public static String toXml(@Nonnull Model content) throws XmlWriterException {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  8. configure.py

      environ_cp[var_name] = str(var)
    
    
    def convert_version_to_int(version):
      """Convert a version number to a integer that can be used to compare.
    
      Version strings of the form X.YZ and X.Y.Z-xxxxx are supported. The
      'xxxxx' part, for instance 'homebrew' on OS/X, is ignored.
    
      Args:
        version: a version to be converted
    
      Returns:
        An integer if converted successfully, otherwise return None.
      """
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 18:25:36 GMT 2024
    - 53.8K bytes
    - Viewed (1)
  9. maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

                                e.getModelId(), interimResult.pomFile, convert(e.getProblems()));
                    } else {
                        project.setModel(new org.apache.maven.model.Model(interimResult.result.getEffectiveModel()));
                        result = new DefaultProjectBuildingResult(project, convert(e.getProblems()), null);
                    }
                    return Collections.singletonList(result);
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 56.9K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultSettingsBuilder.java

            return problems;
        }
    
        @Override
        public Profile convert(org.apache.maven.api.model.Profile profile) {
            return SettingsUtilsV4.convertToSettingsProfile(profile);
        }
    
        @Override
        public org.apache.maven.api.model.Profile convert(Profile profile) {
            return SettingsUtilsV4.convertFromSettingsProfile(profile);
        }
    
        /**
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 12K bytes
    - Viewed (0)
Back to top