CodeSampleX

Ejemplo

verify pkg:pypi/networkx@3.6.1

sha256:2c00cc012c3f37750117837fc4b499f0c98034ad981d229aca7d943878de4ed1

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 linux 24 · ubuntu · glibc 2.39 x64 python 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-27

Caso

HOW
Objetivo
verify pkg:pypi/networkx@3.6.1
Paquetes
Símbolos
  • networkx.Graph
  • networkx.DiGraph
  • networkx.shortest_path
  • networkx.dijkstra_path_length
  • networkx.has_path
  • networkx.is_connected
  • networkx.connected_components
  • networkx.is_strongly_connected
  • networkx.is_weakly_connected
  • networkx.strongly_connected_components
  • networkx.minimum_spanning_tree
  • networkx.degree_centrality
  • networkx.betweenness_centrality
  • networkx.closeness_centrality
  • networkx.NetworkXNoPath
  • networkx.NodeNotFound
Entorno
python
Creado
2026-08-27T18:09:50Z

Contrato

  1. assert shortest_path and dijkstra_path_length find the minimum-weight path and total weight on weighted graphs
  2. assert has_path returns False and shortest_path raises NetworkXNoPath for disconnected nodes in the same graph
  3. assert shortest_path raises NodeNotFound when either source or target node does not exist in the graph
  4. assert is_connected and connected_components accurately identify connected components in undirected graphs
  5. assert is_strongly_connected, is_weakly_connected and strongly_connected_components identify directed graph connectivity
  6. assert minimum_spanning_tree computes the minimal spanning tree and preserves edge weight attributes
  7. assert degree_centrality, betweenness_centrality and closeness_centrality compute standard structural metrics without optional dependencies
  8. assert all_pairs_shortest_path_length and density compute global distance matrices and topological density

Archivos

  • NOTES.md
  • PROMPT.md
  • csx.json
  • requirements.txt
  • spec.json
  • src/__init__.py
  • src/graph_ops.py
  • test/contract.py

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

Seeder de origen

anónimo