CodeSampleX

Что нашла сеть

Каждая строка ниже — измерение, а не мнение. Каждая ведёт к опубликованному образцу, contract которого выполняется в закреплённом контейнере с отключённой сетью, так что его можно перезапустить и оспорить результат.

Система и среда взяты из записи связанного образца; записи без выбранного измерения исключаются.

597 находок в 8 экосистемах.

Что заявляет образец и что измеряет его контракт

1–25 из 568, измеренных опубликованными образцами.

  1. pypiКонтракт образцаpython · linux 24/x64cffi@2.1.1

    СчитаетсяCalling ffi.string with maxlen reads the full byte length regardless of null bytes, and ffi.buffer on a pointer defaults to the full allocated buffer length.

    ИзмереноCalling ffi.string(cdata, maxlen) truncates at the first null byte rather than reading maxlen bytes, while ffi.unpack extracts the exact byte count across embedded nulls.

  2. npmКонтракт образцаnode · linux 24/x64browserslist@4.28.7

    СчитаетсяModifying .browserslistrc on disk causes browserslist to automatically pick up the updated target configuration on subsequent queries in a long-running process.

    ИзмереноWhen .browserslistrc is modified on disk during a process lifetime, browserslist continues to return stale cached configurations until browserslist.clearCaches() is explicitly invoked.

  3. npmКонтракт образцаnode 22.23 · linux 24/x64@babel/preset-env@7.26.9

    СчитаетсяModern compilation targets automatically negate all transforms regardless of configuration options like forceAllTransforms, and preset-level settings like bugfixes or loose are not systematically passed to configured plugins.

    ИзмереноpresetEnv with forceAllTransforms: true forces all 49 syntax transform plugins to activate even when targeting modern Chrome 120 (which normally requires 17).

  4. npmКонтракт образцаnode 22.23 · linux 24/x64@rollup/plugin-commonjs@28.0.2

    СчитаетсяWhen bundling CommonJS modules that require external dependencies into ESM, @rollup/plugin-commonjs automatically imports them as ES module namespaces or detects external module formats to preserve named exports.

    ИзмереноBy default, @rollup/plugin-commonjs renders external dependencies required in CommonJS modules as default ESM imports rather than namespace imports.

  5. npmКонтракт образцаnode 22.23 · linux 24/x64@rollup/plugin-commonjs@28.0.2

    СчитаетсяWhen bundling CommonJS modules that wrap external require calls inside try-catch blocks into ESM, @rollup/plugin-commonjs always hoists the requires to top-level static imports or always preserves runtime try-catch error handling.

    ИзмереноBy default, @rollup/plugin-commonjs leaves external require calls inside try-catch blocks untransformed as dynamic require() calls, preventing top-level static ESM imports.

  6. npmКонтракт образцаnode · linux 24/x64@rollup/plugin-commonjs@28.0.2

    СчитаетсяWhen bundling CommonJS modules containing dynamic require calls, @rollup/plugin-commonjs resolves dynamic calls automatically or leaves them untouched without requiring explicit configuration.

    ИзмереноBy default, @rollup/plugin-commonjs transforms dynamic require calls into commonjsRequire helper calls that throw an error instructing the user to configure dynamicRequireTargets or ignoreDynamicRequires.

  7. npmКонтракт образцаnode 22.23 · linux 24/x64@rollup/plugin-commonjs@29.0.3

    СчитаетсяWhen bundling CommonJS modules with dynamic require expressions, @rollup/plugin-commonjs either automatically resolves dynamic calls at runtime or silently ignores them without error.

    ИзмереноBy default, @rollup/plugin-commonjs transforms dynamic require calls into commonjsRequire helper calls that throw an error instructing the user to configure dynamicRequireTargets or ignoreDynamicRequires.

  8. npmКонтракт образцаnode 22.23 · linux 24/x64@rollup/plugin-commonjs@29.0.3

    СчитаетсяWhen bundling CommonJS modules that wrap external require calls inside try-catch blocks into ESM, @rollup/plugin-commonjs always hoists the requires to top-level static imports or always preserves runtime try-catch error handling.

    ИзмереноBy default, @rollup/plugin-commonjs leaves external require calls inside try-catch blocks untransformed as dynamic require() calls, preventing top-level static ESM imports.

  9. npmКонтракт образцаnode 22.23 · linux 24/x64@rollup/plugin-commonjs@29.0.3

    СчитаетсяWhen bundling CommonJS modules that require external dependencies into ESM, @rollup/plugin-commonjs automatically imports them as ES module namespaces or detects external module formats to preserve named exports.

    ИзмереноBy default, @rollup/plugin-commonjs renders external dependencies required in CommonJS modules as default ESM imports rather than namespace imports.

  10. npmКонтракт образцаnode · linux 24/x64@babel/preset-env@7.26.9

    СчитаетсяDevelopers expect specifying useBuiltIns alone without corejs to automatically configure polyfill plugins, or expect getPolyfillPlugins to return non-empty default plugins even when useBuiltIns is false or unset.

    ИзмереноgetPolyfillPlugins returns an empty array when useBuiltIns is unset, false, or not usage/entry, or when corejs is missing.

  11. npmКонтракт образцаlinux 24/x64@rollup/plugin-commonjs@28.0.7

    СчитаетсяBundling CommonJS code with Rollup leaves dynamic require calls as native runtime require invocations in the output bundle.

    Измереноassert @rollup/plugin-commonjs with default ignoreDynamicRequires (false) rewrites dynamic require calls into commonjsRequire helper that throws a runtime error

  12. npmКонтракт образцаnode 22.23 · linux 24/x64@babel/preset-env@7.26.9

    СчитаетсяModern compilation targets automatically negate all transforms regardless of configuration options like forceAllTransforms, and preset-level settings like bugfixes or shippedProposals do not alter plugin resolution counts for modern environments.

    ИзмереноpresetEnv with forceAllTransforms: true forces all 49 syntax transform plugins to activate even when targeting modern Chrome 120 (which normally requires 17).

  13. npmКонтракт образцаnode 22.23 · linux 24/x64@babel/preset-env@8.0.2

    СчитаетсяCompilation targets strictly dictate plugin selection, requiring full package names if manually overridden, and include and exclude silently resolve collisions by precedence rather than throwing an error.

    ИзмереноConfiguring the include option with transform-arrow-functions forces transpilation of arrow functions to function expressions even when targeting modern runtimes (such as Chrome 120) that natively support them, while preserving non-included syntax like template literals.

  14. npmКонтракт образцаnode 22.23 · linux 24/x64@babel/preset-env@8.0.2

    СчитаетсяModern compilation targets like Chrome 120 prevent all syntax transformations, forceAllTransforms converts ES module syntax into CommonJS require calls, and exclude is ignored when forceAllTransforms is true.

    ИзмереноWhen forceAllTransforms is omitted or false, @babel/preset-env preserves native modern syntax (arrow functions, template literals, optional chaining) for targets that natively support them.

  15. npmКонтракт образцаnode 22.23 · linux 24/x64@rollup/plugin-commonjs@28.0.7

    СчитаетсяBy default @rollup/plugin-commonjs hoists all CommonJS require calls including those inside try-catch blocks into top-level static imports.

    Измереноassert @rollup/plugin-commonjs by default (ignoreTryCatch: true) leaves external require calls inside try-catch blocks unconverted as runtime require statements without hoisting static imports

  16. npmКонтракт образцаnode 22.23 · linux 24/x64@babel/preset-env@7.26.0

    СчитаетсяConfiguring polyfill injection with useBuiltIns 'usage' or 'entry' generates identical plugin lists, and legacy polyfill handling is only applied when corejs version 2 is specified.

    Измереноassert useBuiltIns 'usage' with corejs 3 selects pluginCoreJS3 with method 'usage-global' and legacyBabelPolyfillPlugin marked as deprecated

  17. npmКонтракт образцаnode · linux 24/x64@babel/preset-env@7.26.0

    СчитаетсяDisabling module transforms in @babel/preset-env removes all module-related plugins entirely, and requesting dynamic import transformation enables transform-dynamic-import across all formats including UMD.

    Измереноassert modules: 'commonjs' with shouldTransformESM maps the module format to its transformation plugin alongside dynamic import and export-namespace transforms

  18. npmКонтракт образцаnode · linux 24/x64@rollup/plugin-commonjs@28.0.7

    СчитаетсяBy default @rollup/plugin-commonjs allows CommonJS modules requiring external ES modules to access both default and named exports.

    Измереноassert @rollup/plugin-commonjs with default esmExternals: false emits default imports for external dependencies, causing named exports to be inaccessible (undefined) when required from CommonJS

  19. npmКонтракт образцаnode 22.23 · linux 24/x64@babel/preset-env@7.29.7

    СчитаетсяModern compilation targets automatically negate all transforms regardless of configuration options like forceAllTransforms, and preset-level settings like bugfixes or loose are not systematically passed to configured plugins.

    ИзмереноpresetEnv with forceAllTransforms: true forces all 50 syntax transform plugins to activate even when targeting modern Chrome 120 (which normally requires 18).

  20. npmКонтракт образцаnode · linux 24/x64@babel/preset-env@7.26.0

    СчитаетсяTargeting a modern environment like Node 20 prevents syntax transforms like arrow functions from running, and targeting older environments compiles all modern syntax without granular options to selectively force or skip specific transforms.

    Измереноassert include with shorthand 'transform-arrow-functions' forces arrow function compilation on targets that natively support them such as node 20

  21. npmКонтракт образцаnode 22 · linux 24/x64@babel/preset-env@7.29.7

    СчитаетсяTarget-based compilation dynamically configures the plugin pipeline, and preset helper utilities resolve feature requirements and partition syntax transforms.

    ИзмереноisPluginRequired returns true when target version is below support requirement, and false when target meets or exceeds requirement.

  22. npmКонтракт образцаnode 22 · linux 24/x64@babel/preset-env@7.24.7

    СчитаетсяTarget-based compilation dynamically configures the plugin pipeline, and preset helper utilities resolve feature requirements and partition syntax transforms.

    ИзмереноisPluginRequired returns true when target version is below support requirement, and false when target meets or exceeds requirement.

  23. golangКонтракт образцаgo · linux/x64google.golang.org/protobuf@v1.35.1

    Считаетсяreflect.DeepEqual safely compares protobuf messages while proto.Equal behaves identically to standard struct comparisons.

    Измереноproto.Equal returns true when comparing two nil proto.Message values, and returns false when comparing a non-nil message with nil.

  24. pypiКонтракт образцаpython · linux/x64pydantic@2.13.4

    СчитаетсяPydantic field_validators always receive raw uncoerced input by default and can access all sibling fields in ValidationInfo.data regardless of field definition order.

    ИзмереноLeaving field_validator mode unset defaults to 'after', running after core type coercion; inputs that fail core type coercion raise ValidationError before the after-validator executes.

  25. npmКонтракт образцаnode 22.23 · linux 24/x64socket.io-client@4.8.1

    СчитаетсяEmitted events are always intercepted immediately by onAnyOutgoing regardless of connection state, volatile.emit queues offline packets like standard emit, and emitWithAck resolves directly without handling socket.io error-first ack protocol or timeout errors.

    Измереноassert volatile emit while disconnected discards event immediately without queuing in sendBuffer whereas regular emit is queued

Как проверить любую строку здесь

Откройте образец, прочитайте его contract, запустите. Contract — это собственный тест образца: он выполняется без сети в закреплённом контейнере, и подписанная квитанция этого запуска — то, что хранит сеть. Ничто здесь не опирается на наше прочтение библиотеки — только на то, что библиотека сделала.

Некоторых опубликованных образцов на этой странице нет. Их контракт прошёл, и образец жив — но ни одна строка этого контракта не читается как фраза. Утверждение вроде expect(x).toBe(1), поставленное рядом с убеждением, которое оно проверяет, ничего читателю не говорит. Лучше оставить их за бортом, чем печатать свидетельство, которое никто не прочтёт.