Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 171 - 180 of 274 for serializar (0.09 seconds)

  1. fastapi/openapi/docs.py

    import json
    from typing import Annotated, Any
    
    from annotated_doc import Doc
    from fastapi.encoders import jsonable_encoder
    from starlette.responses import HTMLResponse
    
    
    def _html_safe_json(value: Any) -> str:
        """Serialize a value to JSON with HTML special characters escaped.
    
        This prevents injection when the JSON is embedded inside a <script> tag.
        """
        return (
            json.dumps(value)
            .replace("<", "\\u003c")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 24 09:28:10 GMT 2026
    - 12.1K bytes
    - Click Count (0)
  2. fastapi/encoders.py

                This is mainly a hack for compatibility with SQLAlchemy objects, they
                store internal SQLAlchemy-specific state in attributes named with `_sa`,
                and those objects can't (and shouldn't be) serialized to JSON.
                """
            ),
        ] = True,
    ) -> Any:
        """
        Convert any object to something that can be encoded in JSON.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 10.9K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/exception/SsoLoginExceptionTest.java

            String message = "Serializable SSO exception";
            Exception cause = new RuntimeException("Serializable cause");
            SsoLoginException originalException = new SsoLoginException(message, cause);
    
            // Serialize the exception
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            ObjectOutputStream oos = new ObjectOutputStream(baos);
            oos.writeObject(originalException);
            oos.close();
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 14.7K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/entity/FessUserTest.java

            assertFalse(user.refresh());
            assertEquals(1, user.getRefreshCount());
        }
    
        @Test
        public void test_serialization() {
            // Test that implementations can be serialized
            FessUser user = new TestFessUser("testuser", new String[] { "role1", "role2" }, new String[] { "group1", "group2" },
                    new String[] { "perm1", "perm2" });
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 11.2K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/crawler/transformer/FessFileTransformerTest.java

    import java.io.UnsupportedEncodingException;
    import java.net.URLEncoder;
    import java.util.Map;
    
    import org.apache.groovy.util.Maps;
    import org.codelibs.fess.Constants;
    import org.codelibs.fess.crawler.serializer.DataSerializer;
    import org.codelibs.fess.crawler.util.FieldConfigs;
    import org.codelibs.fess.exception.FessSystemException;
    import org.codelibs.fess.helper.ProtocolHelper;
    import org.codelibs.fess.mylasta.direction.FessConfig;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 14.4K bytes
    - Click Count (0)
  6. tensorflow/c/eager/immediate_execution_context.h

      virtual absl::Status AddDevices(
          std::vector<std::unique_ptr<Device>> devices) = 0;
    
      // Block until all pending nodes are finished.
      virtual absl::Status AsyncWait() = 0;
    
      // Add a function (serialized FunctionDef protocol buffer) so that it can
      // be executed as an op. Return error if the function with the same name
      // already exists.
      virtual absl::Status AddFunctionDef(const FunctionDef& fdef) = 0;
    
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Sat Oct 12 05:11:17 GMT 2024
    - 12.3K bytes
    - Click Count (0)
  7. cmd/xl-storage-format-v2_test.go

    	failOnErr(xl.AddVersion(fi))
    
    	fi.VersionID = mustGetUUID()
    	fi.DataDir = mustGetUUID()
    	fi.Data = data2
    	failOnErr(xl.AddVersion(fi))
    
    	serialized, err := xl.AppendTo(nil)
    	failOnErr(err)
    	// Roundtrip data
    	var xl2 xlMetaV2
    	failOnErr(xl2.Load(serialized))
    
    	// We should have one data entry
    	list, err := xl2.data.list()
    	failOnErr(err)
    	if len(list) != 2 {
    		t.Fatalf("want 1 entry, got %d", len(list))
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 37.8K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java

    import java.util.concurrent.Callable;
    import java.util.concurrent.Executor;
    import java.util.concurrent.Future;
    import java.util.concurrent.atomic.AtomicReference;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Serializes execution of tasks, somewhat like an "asynchronous {@code synchronized} block." Each
     * {@linkplain #submit enqueued} callable will not be submitted to its associated executor until the
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 01:35:55 GMT 2025
    - 22.1K bytes
    - Click Count (0)
  9. cmd/data-usage-cache.go

    				return o, err
    			}
    			(*z)[zb0003] = struct{}{}
    		}
    	}
    	o = bts
    	return o, err
    }
    
    // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
    func (z dataUsageHashMap) Msgsize() (s int) {
    	s = msgp.ArrayHeaderSize
    	for zb0004 := range z {
    		s += msgp.StringPrefixSize + len(zb0004)
    	}
    	return s
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 34.7K bytes
    - Click Count (0)
  10. SECURITY.md

    come with the compiler are not designed to be used with untrusted data and
    should be used with caution when working with untrusted models.
    
    ### Saved graphs and checkpoints
    
    When loading untrusted serialized computation graphs (in form of a `GraphDef`,
    `SavedModel`, or equivalent on-disk format), the set of computation primitives
    available to TensorFlow is powerful enough that you should assume that the
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Wed Oct 16 16:10:43 GMT 2024
    - 9.6K bytes
    - Click Count (0)
Back to Top