SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2304.14343 · 2023

LibCity: A Unified Library Towards Efficient and Comprehensive Urban Spatial-Temporal Prediction

arXiv · PDF · Open in the Atlas

Code that ran

22 of 25 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 20 have no contract verdict; 2 failures of our instrument; 3 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2304.14343.json · badge: /api/ran/2304.14343.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
libcity/bigscity-libcity-datasets canonical (classifier label)
classifier basis: census
13 ran · 3 no recorded run
libcity/bigscity-libcity canonical (classifier label)
classifier basis: census
9 ran · 0 no recorded run
FunctionStatusWhere it lives
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 ran

Ran 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 ran

Ran 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 ran

Ran 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 ran

Ran 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 ran

Ran 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 ran

Ran 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 ran

Ran 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 ran

Ran 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 ran

Ran 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 ran

Ran 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 ran

Ran 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 ran

Ran 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 ran

Ran 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 ran

Ran 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 ran

The 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 ran

Ran 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 ran

The 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 ran

Ran 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 ran

Ran 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 ran

Ran 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 ran

Ran 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 ran

Ran 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

no invocation recorded.

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

no invocation recorded.

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

no invocation recorded.

Also present in other papers' code

Of 25 samples lifted from this paper's linked repositories, 25 carry a function identity and 0 do not. Of the 25 distinct functions with an identity, 2 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 2 later) and 23 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
masked_mae_loss 5 other papers
4 later, 1 same year, order not determinable
aaai_25976 (2023 (year only))
Spatio-Temporal Meta-Graph Learning for Traffic Forecasting
2310.06119 (2023-10)
Exploring Progress in Multivariate Time Series Forecasting: Comprehensive Benchmarking and Heterogeneity Analysis
2312.11198 (2023-12)
Signed Graph Neural Ordinary Differential Equation for Modeling Continuous-time Dynamics
and 2 more not named here
log_cosh_loss 1 other paper
1 later
2401.04148 (2024-01)
Online Test-Time Adaptation of Spatial-Temporal Traffic Flow Forecasting

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

As deep learning technology advances and more urban spatial-temporal data accumulates, an increasing number of deep learning models are being proposed to solve urban spatial-temporal prediction problems. However, there are limitations in the existing field, including open-source data being in various formats and difficult to use, few papers making their code and data openly available, and open-source models often using different frameworks and platforms, making comparisons challenging. A standardized framework is urgently needed to implement and evaluate these methods. To address these issues, we propose LibCity, an open-source library that offers researchers a credible experimental tool and a convenient development framework. In this library, we have reproduced 65 spatial-temporal prediction models and collected 55 spatial-temporal datasets, allowing researchers to conduct comprehensive experiments conveniently. By enabling fair model comparisons, designing a unified data storage format, and simplifying the process of developing new models, LibCity is poised to make significant contributions to the spatial-temporal prediction field.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2304.14343")
get_code_for_paper("2304.14343")
have("2304.14343")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2304.14343.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2304.14343.svg)](https://syntology.ai/paper/2304.14343)

Connect an agent — have() is free.