| build_sparse_matrix |
Ran ran on a synthesized input |
libcity/bigscity-libcity/libcity/model/utils.py code served (permissive licence) · get_code("c7bc684a945c2719") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
import torch
from scipy.sparse import csr_matrix
torch.manual_seed(0)
# Create a small sparse matrix using scipy
# The function expects an object with .row, .col, .data, and .shape attributes
# This matches scipy.sparse matrix format (COO or CSR)
rows = np.array([0, 1, 2, 2])
cols = np.array([0, 1, 1, 2])
data = np.array([1.0, 2.0, 3.0, 4.0])
# Create a COO (coordinate format) sparse matrix
lap = csr_matrix((data, (rows, cols)), shape=(3, 3)).tocoo()
device = 'cpu'
ARGS = {
'device': device,
'lap': lap
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, scipy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Tensor, shape (3, 3) — shape (3, 3) as a later run recorded it
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| convert |
Ran ran on a synthesized input |
libcity/bigscity-libcity-datasets/bj_traj.py code served (permissive licence) · get_code("6484aba9db44e9b8") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
torch.manual_seed(0)
ARGS = {
"x": 5
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| find_useful_features |
Ran ran on a synthesized input |
libcity/bigscity-libcity-datasets/bj_roadmap_edge.py code served (permissive licence) · get_code("c7a399cba0192196") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
# Analyze the function:
# - feature_list: iterable of feature names (strings)
# - json_obj: list of dicts, each with a 'properties' key containing a dict
# - The function accesses json_obj[0]['properties'][feature] for each feature
# - It iterates through json_obj and compares values at json_obj[line]['properties'][feature]
# Construct minimal valid arguments
feature_list = ["color", "size", "weight"]
json_obj = [
{
"properties": {
"color": "red",
"size": 10,
"weight": 5.0
}
},
{
"properties": {
"color": "blue", # Different from first
"size": 10, # Same as first
"weight": 5.0 # Same as first
}
},
{
"properties": {
"color": "blue",
"size": 20, # Different from first
"weight": 5.0 # Same as first
}
}
]
ARGS = {
"feature_list": feature_list,
"json_obj": json_obj
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| get_cheb_polynomial |
Ran ran on a synthesized input |
libcity/bigscity-libcity/libcity/model/utils.py code served (permissive licence) · get_code("0366ff346b2936b5") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import scipy.sparse as sp
import numpy as np
# Create a small scaled Laplacian matrix
# The function expects a scipy sparse matrix (coo_matrix format)
# We'll create a 4x4 sparse matrix representing a simple graph Laplacian
N = 4
row = np.array([0, 1, 2, 3, 0, 1, 2, 3])
col = np.array([0, 1, 2, 3, 1, 2, 3, 0])
data = np.array([0.5, 0.5, 0.5, 0.5, -0.1, -0.1, -0.1, -0.1])
l_tilde = sp.coo_matrix((data, (row, col)), shape=(N, N))
# Set k to a reasonable small value for testing
k = 3
ARGS = {
"l_tilde": l_tilde,
"k": k,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| get_data_url_Q |
Ran ran on a synthesized input |
libcity/bigscity-libcity-datasets/bikedc.py code served (permissive licence) · get_code("0099f47352ee0476") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
# Analyzing the function:
# - input_dir_flow: used in string formatting with %d, so it's a string path
# - start_year, end_year: used in comparisons and arithmetic, so integers
# - start_month, end_month: used in arithmetic to calculate quarters, so integers
# - The function builds file paths using these parameters
# - No actual file I/O happens, just string construction
ARGS = {
'input_dir_flow': '/data/flow',
'start_year': 2019,
'start_month': 1,
'end_year': 2020,
'end_month': 12,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| get_data_url_month |
Ran ran on a synthesized input |
libcity/bigscity-libcity-datasets/bikedc.py code served (permissive licence) · get_code("2ee61bfad6b79126") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
ARGS = {
'input_dir_flow': '/data/bikeshare',
'start_year': 2017,
'start_month': 6,
'end_year': 2018,
'end_month': 3
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| get_data_url_year |
Ran ran on a synthesized input |
libcity/bigscity-libcity-datasets/bikedc.py code served (permissive licence) · get_code("20f504432fc2ee4f") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
# Analyzing the function get_data_url_year
# It uses: input_dir_flow (string), start_year (int), start_month (int), end_year (int), end_month (int)
# The function constructs file paths using the input_dir_flow and year values
# start_month and end_month are not actually used in the function body, but are parameters
ARGS = {
'input_dir_flow': '/data/bikeshare',
'start_year': 2019,
'start_month': 1,
'end_year': 2021,
'end_month': 12,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| get_highway_to_num |
Ran ran on a synthesized input |
libcity/bigscity-libcity-datasets/bj_roadmap_edge.py code served (permissive licence) · get_code("57cbd8e62f2e6798") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
# Construct a minimal json_obj that satisfies the function's requirements
# The function expects an iterable of objects with 'properties' dict containing a 'highway' key
json_obj = [
{
'properties': {
'highway': 'primary'
}
},
{
'properties': {
'highway': ['secondary']
}
},
{
'properties': {
'highway': 'tertiary'
}
},
{
'properties': {
'highway': 'unclassified'
}
},
{
'properties': {
'highway': 'residential'
}
}
]
ARGS = {
'json_obj': json_obj,
'feature': 'highway'
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| get_supports_matrix |
Ran ran on a synthesized input |
libcity/bigscity-libcity/libcity/model/utils.py code served (permissive licence) · get_code("45ca7fb0a42154d5") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import scipy.sparse as sp
import numpy as np
# Create a small adjacency matrix (4x4 graph)
# Using a simple connected graph structure
adj_mx = np.array([
[0, 1, 1, 0],
[1, 0, 1, 1],
[1, 1, 0, 1],
[0, 1, 1, 0]
], dtype=np.float32)
ARGS = {
'adj_mx': adj_mx,
'filter_type': 'laplacian',
'undirected': True
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| handle_point_geo |
Ran ran on a synthesized input |
libcity/bigscity-libcity-datasets/austinride.py code served (permissive licence) · get_code("728037670d07ddc5") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned DataFrame. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import math
import pandas as pd
# Create a sample dataframe with the required columns
df = pd.DataFrame({
'start_location_lat': [40.7128, 34.0522, 41.8781, 39.7392, 0.0],
'start_location_long': [-74.0060, -118.2437, -87.6298, -104.9903, 0.0],
'end_location_lat': [40.7580, 34.0894, 41.9028, 39.7689, 51.5074],
'end_location_long': [-73.9855, -118.2671, -87.6233, -104.9842, -0.1278],
})
ARGS = {
'df': df
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- pandas — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| id_to_time_10min |
Ran ran on a synthesized input |
libcity/bigscity-libcity-datasets/beijing_subway.py code served (permissive licence) · get_code("bf191031adaca863") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
def id_to_time_10min(id):
global weekdays
weekdays = [(2, 29), (3, 1), (3, 2), (3, 3), (3, 4), (3, 7), (3, 8), (3, 9), (3, 10), (3, 11), (3, 14), (3, 15), (3, 16), (3, 17), (3, 18), (3, 21), (3, 22), (3, 23), (3, 24), (3, 25), (3, 28), (3, 29), (3, 30), (3, 31), (4, 1)]
year = 2016
day_index = int(id / (18 * 6))
month = weekdays[day_index][0]
day = weekdays[day_index][1]
hour_index = int((id - 18 * 6 * day_index) / 6)
hour = 5 + hour_index
min = int(id - 18 * 6 * day_index - 6 * hour_index) * 10
sec = 0
return str(year).zfill(4) + '-' + str(month).zfill(2) + '-' + str(day).zfill(2) + 'T' + str(hour).zfill(2) + ':' + str(min).zfill(2) + ':' + str(sec).zfill(2) + 'Z'
# Set up the global weekdays variable
weekdays = [(2, 29), (3, 1), (3, 2), (3, 3), (3, 4), (3, 7), (3, 8), (3, 9), (3, 10), (3, 11), (3, 14), (3, 15), (3, 16), (3, 17), (3, 18), (3, 21), (3, 22), (3, 23), (3, 24), (3, 25), (3, 28), (3, 29), (3, 30), (3, 31), (4, 1)]
# Test with a valid id (e.g., 0 corresponds to first day, first hour, first 10-minute interval)
ARGS = {
'id': 42
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| id_to_time_15min |
Ran ran on a synthesized input |
libcity/bigscity-libcity-datasets/beijing_subway.py code served (permissive licence) · get_code("4c7e781473ac2c4a") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
# Global variable setup
weekdays = [(2, 29), (3, 1), (3, 2), (3, 3), (3, 4), (3, 7), (3, 8), (3, 9), (3, 10), (3, 11), (3, 14), (3, 15), (3, 16), (3, 17), (3, 18), (3, 21), (3, 22), (3, 23), (3, 24), (3, 25), (3, 28), (3, 29), (3, 30), (3, 31), (4, 1)]
def id_to_time_15min(id):
global weekdays
year = 2016
day_index = int(id / (18 * 4))
month = weekdays[day_index][0]
day = weekdays[day_index][1]
hour_index = int((id - 18 * 4 * day_index) / 4)
hour = 5 + hour_index
min = int(id - 18 * 4 * day_index - 4 * hour_index) * 15
sec = 0
return str(year).zfill(4) + '-' + str(month).zfill(2) + '-' + str(day).zfill(2) + 'T' + str(hour).zfill(2) + ':' + str(min).zfill(2) + ':' + str(sec).zfill(2) + 'Z'
# Test with valid id values
# The function expects id to be an integer representing a 15-minute interval
# day_index = id / 72, so id should be in range [0, len(weekdays) * 72)
# For 25 days * 72 intervals per day = 1800 max id
ARGS = {
'id': 42
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| id_to_time_30min |
Ran ran on a synthesized input |
libcity/bigscity-libcity-datasets/beijing_subway.py code served (permissive licence) · get_code("f24dac473bb249f5") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
# Set up the global weekdays variable that the function uses
weekdays = [(2, 29), (3, 1), (3, 2), (3, 3), (3, 4), (3, 7), (3, 8), (3, 9), (3, 10), (3, 11), (3, 14), (3, 15), (3, 16), (3, 17), (3, 18), (3, 21), (3, 22), (3, 23), (3, 24), (3, 25), (3, 28), (3, 29), (3, 30), (3, 31), (4, 1)]
# The function takes a single parameter 'id' which is an integer
# representing a 30-minute interval identifier
# Valid range: 0 to (number_of_days * 18 * 2 - 1)
# 25 days * 18 half-hours per day * 2 = 900 possible ids
# Let's test with a few valid ids
ARGS = {
"id": 0
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| judge_id |
Ran ran on a synthesized input |
libcity/bigscity-libcity-datasets/austinride.py code served (permissive licence) · get_code("608e6aa23b74f163") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
torch.manual_seed(0)
ARGS = {
"value": 5.5,
"dividing_points": [0.0, 2.0, 4.0, 6.0, 8.0],
"equally": True
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| log_cosh_loss |
Ran ran; our contract draft was wrong, not the code |
libcity/bigscity-libcity/libcity/model/loss.py pointer only (licence: Apache-2.0); the stored copy get_code serves, from pengxin-guo/adcsd, is pointer only (licence: NONE) · get_code("8b1fe12a843654ca") How it ranThe body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from pengxin-guo/adcsd, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded. |
| mae |
Ran ran on a synthesized input |
libcity/bigscity-libcity/libcity/evaluator/eval_funcs.py code served (permissive licence) · get_code("dd2102b030c94016") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
# Create small numpy arrays for location predictions and ground truth
loc_pred = np.array([[1.0, 2.0, 3.0, 4.0],
[5.0, 6.0, 7.0, 8.0]])
loc_true = np.array([[1.1, 2.1, 3.1, 4.1],
[5.1, 6.1, 7.1, 8.1]])
ARGS = {
'loc_pred': loc_pred,
'loc_true': loc_true
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| masked_mae_loss |
Ran ran; our contract draft was wrong, not the code |
libcity/bigscity-libcity/libcity/model/loss.py pointer only (licence: Apache-2.0); the stored copy get_code serves, from lingbai-kong/causalformer, is pointer only (licence: GPL-3.0) · get_code("2a82a90d91ced4b6") How it ranThe body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from lingbai-kong/causalformer, and GPL-3.0, as GitHub detects it on that repository, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded. |
| masked_mae_torch |
Ran ran on a synthesized input |
libcity/bigscity-libcity/libcity/model/loss.py code served (permissive licence) · get_code("6c16b4c86ecbcba3") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
torch.manual_seed(0)
# Create small tensors for predictions and labels
# Shape: (2, 4) - batch size 2, feature dimension 4
preds = torch.randn(2, 4, dtype=torch.float32)
labels = torch.randn(2, 4, dtype=torch.float32)
# Ensure labels don't have NaN values for basic test
labels = torch.where(torch.isnan(labels), torch.zeros_like(labels), labels)
ARGS = {
"preds": preds,
"labels": labels,
"null_val": np.nan,
"reduce": True,
"mask_val": None,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| mse |
Ran ran on a synthesized input |
libcity/bigscity-libcity/libcity/evaluator/eval_funcs.py code served (permissive licence) · get_code("96dff086a8a8530c") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
# Create valid arguments for the mse function
# The function expects two numpy arrays of the same length
# It computes mean squared error between predictions and true values
loc_pred = np.array([1.0, 2.0, 3.0, 4.0])
loc_true = np.array([1.1, 1.9, 3.2, 3.8])
ARGS = {
'loc_pred': loc_pred,
'loc_true': loc_true
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| partition_to_grid |
Ran ran on a synthesized input |
libcity/bigscity-libcity-datasets/austinride.py code served (permissive licence) · get_code("3ca0474dd60a6501") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 3, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import pandas as pd
import numpy as np
# Create a sample DataFrame with POI (Point of Interest) data
# The function expects columns: 'geo_id', 'poi_lat', 'poi_lon'
point_geo = pd.DataFrame({
'geo_id': [1, 2, 3, 4, 5, 6],
'poi_lat': [40.7128, 40.7580, 40.7614, 40.7489, 40.7505, 40.7549],
'poi_lon': [-74.0060, -73.9855, -73.9776, -73.9680, -73.9680, -73.9700]
})
row_num = 2
col_num = 3
ARGS = {
'point_geo': point_geo,
'row_num': row_num,
'col_num': col_num
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple, ndim 3, dtype family float — a tuple output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| rmse |
Ran ran on a synthesized input |
libcity/bigscity-libcity/libcity/evaluator/eval_funcs.py code served (permissive licence) · get_code("39ddf715e408db82") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
import torch
# Construct valid arguments for the rmse function
# The function expects two array-like objects of the same length
# It computes RMSE between predicted and true locations
# Create small numpy arrays with matching lengths
loc_pred = np.array([[1.0, 2.0, 3.0, 4.0],
[5.0, 6.0, 7.0, 8.0]])
loc_true = np.array([[1.1, 2.1, 3.1, 4.1],
[5.1, 6.1, 7.1, 8.1]])
ARGS = {
'loc_pred': loc_pred,
'loc_true': loc_true
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| weight_matrix |
Ran ran on a synthesized input |
libcity/bigscity-libcity-datasets/Multi_Graph_Demand.py code served (permissive licence) · get_code("cf6259ac473d9fe0") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (4, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import pandas as pd
import numpy as np
import tempfile
import os
# Create a temporary CSV file with a sample weight matrix
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "weight_matrix.csv")
# Create a sample weight matrix (4x4 with continuous values)
sample_matrix = np.array([
[0.0, 0.5, 0.3, 0.2],
[0.5, 0.0, 0.4, 0.1],
[0.3, 0.4, 0.0, 0.6],
[0.2, 0.1, 0.6, 0.0]
])
pd.DataFrame(sample_matrix).to_csv(temp_file, header=False, index=False)
ARGS = {
"file_path": temp_file,
"sigma2": 0.1,
"epsilon": 0.5,
"scaling": True
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ndarray, ndim 2, dtype family float, shape (4, 4) — shape (4, 4) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| handle_point_geo |
Not yet run unverified (harvested, no recorded run) |
libcity/bigscity-libcity-datasets/bikechi.py code served (permissive licence) · get_code("58d371f7e8a73575") How it ran |
| select_lat |
Not yet run unverified (harvested, no recorded run) |
libcity/bigscity-libcity-datasets/bikechi.py code served (permissive licence) · get_code("7259fe4aed6651ee") How it ran |
| select_lon |
Not yet run unverified (harvested, no recorded run) |
libcity/bigscity-libcity-datasets/bikechi.py code served (permissive licence) · get_code("33a5b720eef76c68") How it ran |