CodeSampleX

ネットワークが見つけたもの

以下の各行は意見ではなく測定です。いずれも公開サンプルにリンクしており、その contract はネットワークを切った固定コンテナで実行されるので、自分で再実行して結果に反論できます。

OS とランタイムはリンク先サンプルに記録された環境です。その項目がない記録は選択時に除外されます。

597 件の発見、8 個のエコシステム。

サンプルが述べ、その契約が測ったこと

公開サンプルが測定した結果の 301–325 件目(全 568 件)。

  1. gemサンプル契約ruby · linux/x64faraday-net_http@3.4.4

    信じられていることFaraday::Adapter::NetHttp wraps all request timeout failures as Faraday::TimeoutError regardless of whether the connection open or response read phase timed out.

    測定結果Net::OpenTimeout raises Faraday::ConnectionFailed rather than Faraday::TimeoutError because NET_HTTP_EXCEPTIONS intercepts open timeouts before Timeout::Error rescue handlers run.

  2. gemサンプル契約ruby · linux/x64faraday@2.14.3

    信じられていることA well-formed Faraday POST using an IO request body is expected to close that IO for the caller automatically.

    測定結果Faraday returns normally from a POST with an IO request body while leaving the caller's stream open.

  3. gemサンプル契約ruby · linux/x64faraday@2.14.3

    信じられていることDuplicating an existing Faraday connection with dup creates an unlocked connection that executes subsequently added middleware on its requests.

    測定結果Adding middleware to a duplicated Faraday connection after the original connection has executed a request silently ignores the new middleware during request execution because dup preserves the parent connection's pre-compiled rack app instance.

  4. gemサンプル契約ruby · linux/x64faraday@2.14.3

    信じられていることDeclaring response :json before response :raise_error in a Faraday connection ensures 4xx and 5xx error response bodies are deserialized into Ruby Hashes on rescued client and server exceptions.

    測定結果Rescuing a client error from a Faraday connection with response :json declared before response :raise_error leaves error.response[:body] as an unparsed JSON String rather than a deserialized Hash because response middleware unwinds in reverse order.

  5. gemサンプル契約ruby · linux/x64faraday@2.14.3

    信じられていることIf request middleware includes :json, Faraday always JSON-serializes Hash bodies, even when a different Content-Type header is supplied.

    測定結果assert that with request :json and no Content-Type override, a POST with {name: "sam"} serializes env.body to a JSON string

  6. gemサンプル契約ruby · linux/x64faraday@2.14.3

    信じられていることLeaving the proxy option unset in Faraday defaults to a direct connection with nil proxy options, and passing proxy false disables environment proxy discovery.

    測定結果assert leaving proxy unset automatically resolves to Faraday::ProxyOptions from the environment rather than nil

  7. gemサンプル契約ruby · linux/x64faraday@2.14.3

    信じられていることCalling `in_parallel` on a standard Faraday connection always defers request execution and returns deferred/future responses.

    測定結果Faraday::Connection#in_parallel with a non-parallel adapter returns normal `Faraday::Response` objects and executes requests immediately, not as queued futures.

  8. gemサンプル契約ruby · linux/x64csv@3.2.2

    信じられていることskip_blanks:true causes any row that contains no non‑separator characters to be omitted, even when the row consists solely of delimiters

    測定結果raise 'expected delimiter-only row to remain as nil fields' unless rows[1] == [nil, nil, nil]

  9. composerサンプル契約php · linux/x64symfony/console@7.0.3

    信じられていることPassing the string '0' as an InputOption shortcut parameter correctly assigns it as a valid flag alias like -0.

    測定結果new InputOption('foo', '0')->getShortcut() evaluates to the string '0', proving that zero-string shortcuts are preserved rather than incorrectly dropping them as empty values.

  10. composerサンプル契約php · linux/x64guzzlehttp/guzzle@8.0.2

    信じられていることA developer expects Guzzle to normalize request methods to uppercase before dispatch, so 'gEt' will become 'GET'.

    測定結果assert GuzzleHttp\Client::request sends the exact method token 'gEt' without uppercasing it to 'GET'

  11. composerサンプル契約php · linux/x64guzzlehttp/guzzle@7.9.0

    信じられていることA null value for one per-request header removes that inherited header exactly like setting the entire headers option to null.

    測定結果Passing headers with a null value sends the request and overrides that inherited header with an empty value while preserving other defaults.

  12. pypiサンプル契約python · linux/x64tenacity@9.1.4

    信じられていることExhausted retries always raise RetryError, including result predicates with a fallback callback and exception retries configured with reraise=True.

    測定結果A result predicate that still requests retry after the third attempt raises RetryError whose last_attempt is a successful Future containing the rejected None result.

  13. pypiサンプル契約python 3.12 · linux alpine/x64protobuf@7.35.1

    信じられていることA plain proto3 scalar set to its default has presence like an optional field, and protobuf JSON emits int64 values as JSON numbers while omitting explicitly present optional defaults.

    測定結果DescriptorPool.Add registers an in-memory FileDescriptorProto but returns either None or the registered FileDescriptor depending on the backend; FindFileByName and FindMessageTypeByName provide stable descriptors, and repeated GetMessageClass calls return the same cached Message subclass.

  14. pypiサンプル契約python 3.12 · linux/x64pandas@3.0.5

    信じられていることAn inner pandas DataFrame.merge treats missing join keys like SQL NULL, so missing keys never match one another.

    測定結果With two missing Int64 keys on each side, an inner DataFrame.merge returns four missing-key rows containing every left/right pair.

  15. pypiサンプル契約python · linux/x64pillow@12.3.0

    信じられていることImageOps.exif_transpose always returns the transformed image and accepts in_place as a positional argument.

    測定結果The default ImageOps.exif_transpose call returns a distinct transformed copy, removes EXIF Orientation from the copy, and leaves the source image unchanged.

  16. pypiサンプル契約python 3.12 · linux/x64django@6.1

    信じられていることA signed cookie remains valid when copied to any cookie name whose name-plus-salt text matches the original pair, and enabling legacy compatibility is a silent permanent fix.

    測定結果RequestFactory and Client execute without a server or database, keep POST form data separate from repeated query_params, let per-call query_params replace constructor defaults, and negotiate the Accept header.

  17. pypiサンプル契約python 3.12 · linux/x64numpy@2.5.2

    信じられていることcasting='same_kind' prevents integer overflow during narrowing, while astype(copy=False) refuses any conversion that must allocate a new array.

    測定結果astype(casting='same_kind') accepts int64-to-int8 narrowing and wraps out-of-range values instead of checking them.

  18. pypiサンプル契約python · linux/x64importlib-metadata@9.0.0

    信じられていることCallers often treat entry_points() and files() as plain lists of strings or paths and miss the selection, name lookup, distribution, hash, and location semantics carried by their specialized result objects.

    測定結果The third-party importlib_metadata package resolves its installed 9.0.0 distribution under normalized hyphen and underscore names.

  19. pypiサンプル契約python · linux/x64cffi@2.0.0

    信じられていることDevelopers typically expect invalid RSA serialization argument combinations to raise ValueError.

    測定結果A valid PEM serialization can be deserialized and preserves the RSA private numbers after those invalid encodings are rejected.

  20. pypiサンプル契約python · linux/x64cryptography@47.0.0

    信じられていることCRYPTOGRAPHY_OPENSSL_NO_LEGACY is a build-time compilation flag rather than a runtime environment variable evaluated when OpenSSL bindings initialize.

    測定結果Setting CRYPTOGRAPHY_OPENSSL_NO_LEGACY=1 before cryptography OpenSSL binding initialization prevents loading the OpenSSL legacy provider, causing Blowfish cipher encryptor creation to raise UnsupportedAlgorithm

  21. pypiサンプル契約python · linux/x64cryptography@47.0.0

    信じられていることPassing a non-None password parameter when deserializing an unencrypted SSH private key is silently ignored by load_ssh_private_key.

    測定結果load_ssh_private_key raises TypeError when a password byte string is passed for an unencrypted SSH private key rather than silently ignoring the unneeded password.

  22. pypiサンプル契約python · linux/x64cryptography@47.0.0

    信じられていることAESGCM.generate_key takes key length in bytes and AESGCM.encrypt returns ciphertext separately from the 16-byte authentication tag.

    測定結果AESGCM.encrypt appends the 16-byte authentication tag to ciphertext producing len(plaintext) + 16 bytes, and AESGCM.generate_key rejects byte lengths with ValueError

  23. pubサンプル契約dart · linux/x64equatable@2.0.0

    信じられていることAn Equatable object's toString method only outputs its properties if stringify is locally overridden to true or if EquatableConfig.stringify is explicitly enabled.

    測定結果By default in debug mode (assertions enabled), printing an Equatable instance that does not override stringify prints its property values because EquatableConfig.stringify defaults to true.

  24. pubサンプル契約dart · linux/x64equatable@2.1.0

    信じられていることEqual-length maps might appear equal when a missing key lookup and an explicit value both return null, even though their key sets differ.

    測定結果Two Equatable instances compare equal when their map-valued props contain the same key-value entries.

  25. pubサンプル契約dart · linux/x64equatable@2.0.8

    信じられていることAn Equatable instance containing a Map property evaluates equality by comparing both keys and values, returning false if keys differ.

    測定結果equatable 2.0.8 evaluates maps of equal length with differing keys mapping to null values as unequal, avoiding the false positive equality in 2.0.7.

ここの行を確かめる方法

サンプルを開き、contract を読み、実行してください。contract はそのサンプル自身のテストです。ネットワークを切った固定コンテナで実行され、その実行の署名済みレシートがネットワークに保存されます。ここに書かれていることはライブラリについての解釈ではなく、ライブラリが実際に行ったことだけに基づいています。

公開済みのサンプルのうち、このページにないものがあります。契約は通過しておりサンプルも生きていますが、その契約に文として読める行がないからです。expect(x).toBe(1) のような断言は、検査している思い込みの隣に置いても読者に何も伝えません。読めない証拠を載せるより、空けておくことを選びました。