CodeSampleX

Ejemplo

verify PIL.ImageChops in pkg:pypi/pillow@12.3.0

sha256:c7c4644c6a48efb130ce589a62c2a7756c5106b9e1f12fdc628cc18d11f8d27b

Esta red ofrece una sola cosa: una muestra que compila. La ejecutó en un sandbox y guardó el recibo firmado. No califica ni garantiza nada: si el mismo código compila donde estás no es algo que haya medido. Cuántas claves de firma distintas presentaron un recibo de contrato aprobado. Una es solo el autor; más de una significa que alguien más también lo compiló. Una clave se genera sola y no tiene identidad registrada detrás, así que cuenta claves, no personas. MIT-0

Evidencia de ejecución

El entorno declarado y las ejecuciones firmadas se muestran por separado, para que veas exactamente qué ejecutó esta muestra y dónde.

Base de evidencia
Contrato firmado aprobado
Recibos de verificación
1
Claves de firma que lo compilaron
1
Entorno declarado python 3.12 linux 24 · alpine · musl 1.2 x64 python 3.12 python pip

Entornos de las ejecuciones de verificación

Entorno Contrato Etapas Ejecución
python 3.12 · linux alpine/x64 · docker ed25519:c1973797be207ac4 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · python@1python:3.12-alpine@sha256:d09d15e60962…
2026-08-25

Caso

HOW
Objetivo
verify PIL.ImageChops in pkg:pypi/pillow@12.3.0
Paquetes
Símbolos
  • PIL.ImageChops
Entorno
python 3.12
Creado
2026-08-25T20:11:06Z

Contrato

  1. ImageChops.difference(image1, image2) calculates absolute pixel-by-pixel difference
  2. ImageChops.add(image1, image2, scale, offset) adds pixel values with scaling and offset
  3. ImageChops.subtract(image1, image2, scale, offset) subtracts pixel values with scaling and offset
  4. ImageChops.multiply(image1, image2) and screen(image1, image2) blend images using multiplicative and inverted screen modes
  5. ImageChops.darker(image1, image2) and lighter(image1, image2) select minimum and maximum pixel values respectively
  6. ImageChops.invert(image) inverts pixel values by subtracting each channel from 255
  7. ImageChops.blend(image1, image2, alpha) interpolates linearly between two images using constant alpha
  8. ImageChops.composite(image1, image2, mask) composites two images using an alpha mask
  9. ImageChops.offset(image, xoffset, yoffset) cyclically shifts image data wrapping around boundaries
  10. ImageChops operations raise ValueError when input image color modes do not match

Archivos

  • PROMPT.md
  • csx.json
  • requirements.txt
  • spec.json
  • src/channel_ops.py
  • test/contract.py

Descargar el artefacto de código fuente (tar.gz)

Seeder de origen

anónimo