SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.21311 · 2026

DeCoR: Design and Control Co-Optimization for Urban Streets Using Reinforcement Learning

Lei Zhu, Weizi Li, Bibek Poudel, Kevin Heaslip, Sai Swaminathan, Wi Fi

arXiv · PDF · Open in the Atlas

Code that ran

11 of 17 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; 3 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 8 failures of our instrument; 6 no recorded run), measured 2026-11-23; 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/2605.21311.json · badge: /api/ran/2605.21311.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
poudel-bibek/DeCoR canonical (classifier label)
classifier basis: census
11 ran · 6 no recorded run
FunctionStatusWhere it lives
classify_and_return_args Ran
ran; our contract draft was wrong, not the code
poudel-bibek/DeCoR/config.py
code served (permissive licence) · get_code("c6d78e13dbc2beec")
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 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 torch.nn as nn

torch.manual_seed(0)

# Build train_config dict with all required keys
train_config = {
    'save_graph_images': True,
    'save_gmm_plots': True,
    'original_net_file': '/tmp/net.pt',
    'eval_freq': 100,
    'max_proposals': 5,
    'min_thickness': 0.1,
    'max_thickness': 0.5,
    'clamp_min': -1.0,
    'clamp_max': 1.0,
    'higher_anneal_lr': 0.0001,
    'higher_update_freq': 10,
    'vehicle_input_trips': 10,
    'vehicle_output_trips': 10,
    'pedestrian_input_trips': 5,
    'pedestrian_output_trips': 5,
    'manual_demand_veh': 100,
    'manual_demand_ped': 50,
    'lower_step_length': 0.1,
    'lower_action_duration': 5,
    'lower_warmup_steps': 100,
    'lower_per_timestep_state_dim': 16,
    'gui': False,
    'lower_auto_start': True,
    'lower_max_timesteps': 1000,
    'demand_scale_min': 0.5,
    'demand_scale_max': 2.5,
    'lower_memory_transfer_freq': 50,
    'lower_num_processes': 4,
    'lower_anneal_lr': 0.0001,
    'lower_update_freq': 10,
    'num_mixtures': 3,
    'higher_hidden_channels': 32,
    'higher_out_channels': 16,
    'initial_heads': 4,
    'second_heads': 4,
    'edge_dim': 8,
    'higher_activation': 'relu',
    'higher_model_size': 'small',
    'higher_dropout_rate': 0.1,
    'higher_readout_k': 3,
    'lower_action_duration': 5,
    'lower_model_size': 'small',
    'lower_dropout_rate': 0.1,
    'lower_activation': 'relu',
    'higher_in_channels': 32,
    'higher_lr': 0.0003,
    'higher_gamma': 0.99,
    'higher_K_epochs': 3,
    'higher_eps_clip': 0.2,
    'higher_ent_coef': 0.01,
    'higher_vf_coef': 0.5,
    'higher_batch_size': 64,
    'higher_gae_lambda': 0.95,
    'higher_max_grad_norm': 0.5,
    'higher_vf_clip_param': 0.2,
    'lower_in_channels': 32,
    'lower_lr': 0.0003,
    'lower_gamma': 0.99,
    'lower_K_epochs': 3,
    'lower_eps_clip': 0.2,
    'lower_ent_coef': 0.01,
    'lower_vf_coef': 0.5,
    'lower_batch_size': 64,
    'lower_gae_lambda': 0.95,
    'lower_max_grad_norm': 0.5,
    'lower_vf_clip_param': 0.2,
    'evaluate': False,
    'eval_model_path': '/tmp/model.pt',
    'eval_lower_timesteps': 500,
    'eval_lower_workers': 2,
    'eval_worker_device': 'cpu',
}

device = 'cpu'

ARGS = {
    'train_config': train_config,
    'device': device,
}
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 tuple, ndim 1, 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
collate_fn Ran
ran; our contract draft was wrong, not the code
poudel-bibek/DeCoR/ppo/ppo_utils.py
code served (permissive licence) · get_code("b42728badf61b2c7")
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. 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
from torch_geometric.data import Data, Batch

torch.manual_seed(0)

# Create sample graph data objects for states_batch
def create_sample_graph_data():
    """Create a minimal PyG Data object"""
    x = torch.randn(3, 4)  # 3 nodes, 4 features
    edge_index = torch.tensor([[0, 1, 1, 2], [1, 0, 2, 1]], dtype=torch.long)
    return Data(x=x, edge_index=edge_index)

# Create sample tuples for the data parameter
# Each tuple is (states_batch, actions_batch, num_proposals_batch, old_logprobs_batch, advantages_batch, returns_batch, old_values_batch)
data_sample_1 = (
    create_sample_graph_data(),  # states_batch (single Data object to be batched)
    torch.tensor([1], dtype=torch.long),  # actions_batch
    torch.tensor([5], dtype=torch.long),  # num_proposals_batch
    torch.tensor([0.1], dtype=torch.float),  # old_logprobs_batch
    torch.tensor([0.05], dtype=torch.float),  # advantages_batch
    torch.tensor([0.95], dtype=torch.float),  # returns_batch
    torch.tensor([0.5], dtype=torch.float),  # old_values_batch
)

data_sample_2 = (
    create_sample_graph_data(),  # states_batch (single Data object to be batched)
    torch.tensor([2], dtype=torch.long),  # actions_batch
    torch.tensor([7], dtype=torch.long),  # num_proposals_batch
    torch.tensor([0.2], dtype=torch.float),  # old_logprobs_batch
    torch.tensor([0.15], dtype=torch.float),  # advantages_batch
    torch.tensor([1.05], dtype=torch.float),  # returns_batch
    torch.tensor([0.6], dtype=torch.float),  # old_values_batch
)

# The data parameter is a list of tuples
data = [data_sample_1, data_sample_2]

ARGS = {
    "data": data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torch_geometric — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is 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
compute_assignments Ran
ran; our contract draft was wrong, not the code
poudel-bibek/DeCoR/plots/pedestrian_flow_plot.py
code served (permissive licence) · get_code("33464de5e2fc2035")
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. 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
from collections import defaultdict

# Build crosswalks - list of dicts with 'x' coordinate
crosswalks = [
    {'x': 10.0},
    {'x': 50.0},
    {'x': 100.0},
]

# Build taz_centroids - dict mapping zone names to coordinates
taz_centroids = {
    'Z1': (5.0,),      # SOUTH
    'Z2': (15.0,),     # SOUTH
    'Z5': (60.0,),     # NORTH
    'Z6': (80.0,),     # NORTH
    'Z3': (25.0,),     # SIDE
    'Z14': (75.0,),    # SIDE
}

# Build od_pairs - dict mapping (origin, destination) tuples to counts
# Include some crossing trips (N-S) and some non-crossing trips
od_pairs = {
    ('Z1', 'Z5'): 10,      # SOUTH to NORTH - needs crossing
    ('Z5', 'Z1'): 5,       # NORTH to SOUTH - needs crossing
    ('Z2', 'Z6'): 8,       # SOUTH to NORTH - needs crossing
    ('Z3', 'Z14'): 3,      # SIDE to SIDE - needs crossing
    ('Z1', 'Z2'): 20,      # SOUTH to SOUTH - no crossing needed
    ('Z5', 'Z6'): 15,      # NORTH to NORTH - no crossing needed
}

ARGS = {
    'crosswalks': crosswalks,
    'taz_centroids': taz_centroids,
    'od_pairs': od_pairs,
}
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 tuple — a tuple output has no array shape of its own; none is 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
convert_demand_to_scale_factor Ran
ran, honoured the contract we drafted
poudel-bibek/DeCoR/utils.py
code served (permissive licence) · get_code("58645dd4ff0dbf49")
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 float, 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 xml.etree.ElementTree as ET
import tempfile
import os

# Create a temporary XML file with vehicle demand data
xml_content = """<?xml version="1.0" encoding="UTF-8"?>
<routes>
    <trip id="trip0" depart="0.0"/>
    <trip id="trip1" depart="3600.0"/>
    <trip id="trip2" depart="7200.0"/>
    <trip id="trip3" depart="10800.0"/>
</routes>
"""

# Write to temporary file
temp_file = tempfile.NamedTemporaryFile(mode='w', suffix='.xml', delete=False)
temp_file.write(xml_content)
temp_file.close()

# Define arguments for the function
ARGS = {
    'demand': 10.0,
    'demand_type': 'vehicle',
    'input_file': temp_file.name
}
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 float, 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
count_consecutive_ones_filtered Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
poudel-bibek/DeCoR/plots/training_plots.py
code served (permissive licence) · get_code("07a448774c79bcbc")
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 int; 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

torch.manual_seed(0)

ARGS = {
    "actions": [0, 1, 1, 0, 1, 0, 0, 1, 1, 1]
}
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 list, ndim 1, dtype family int — 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
gaussian_mixture_density Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
poudel-bibek/DeCoR/plots/create_gmm_animation.py
code served (permissive licence) · get_code("e7e9998c500f2488")
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 (10, 10) 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 numpy as np

# Create grid coordinates
x_grid = np.linspace(-5, 5, 10)
y_grid = np.linspace(-5, 5, 10)
x_grid, y_grid = np.meshgrid(x_grid, y_grid)

# Create means (3 Gaussian components, each with x,y coordinates)
means = np.array([
    [0.0, 0.0],
    [2.0, 2.0],
    [-1.5, 1.5]
], dtype=float)

# Set sigma (standard deviation)
sigma = 1.0

ARGS = {
    'x_grid': x_grid,
    'y_grid': y_grid,
    'means': means,
    'sigma': sigma
}
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 ndarray, ndim 2, dtype family float, shape (10, 10) — shape (10, 10) 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
get_averages Ran
ran, honoured the contract we drafted
poudel-bibek/DeCoR/utils.py
code served (permissive licence) · get_code("b9d22908aba5856c")
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 2, 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 json
import tempfile
import os
import numpy as np

# Create a temporary JSON file with sample results
temp_dir = tempfile.mkdtemp()
result_json_path = os.path.join(temp_dir, "results.json")

# Create sample results data
sample_results = {
    "0.5": {
        "run_1": {
            "veh_avg_waiting_time": 5.2,
            "ped_avg_waiting_time": 3.1,
            "average_arrival_time_per_ped": 8.5,
            "total_veh_waiting_time": 52.0,
            "total_ped_waiting_time": 31.0,
            "total_ped_arrival_time": 85.0
        },
        "run_2": {
            "veh_avg_waiting_time": 5.8,
            "ped_avg_waiting_time": 3.3,
            "average_arrival_time_per_ped": 8.7,
            "total_veh_waiting_time": 58.0,
            "total_ped_waiting_time": 33.0,
            "total_ped_arrival_time": 87.0
        }
    },
    "1.0": {
        "run_1": {
            "veh_avg_waiting_time": 6.2,
            "ped_avg_waiting_time": 4.1,
            "average_arrival_time_per_ped": 9.5,
            "total_veh_waiting_time": 62.0,
            "total_ped_waiting_time": 41.0,
            "total_ped_arrival_time": 95.0
        },
        "run_2": {
            "veh_avg_waiting_time": 6.5,
            "ped_avg_waiting_time": 4.2,
            "average_arrival_time_per_ped": 9.8,
            "total_veh_waiting_time": 65.0,
            "total_ped_waiting_time": 42.0,
            "total_ped_arrival_time": 98.0
        }
    },
    "1.5": {
        "run_1": {
            "veh_avg_waiting_time": 7.1,
            "ped_avg_waiting_time": 5.0,
            "average_arrival_time_per_ped": 10.2,
            "total_veh_waiting_time": 71.0,
            "total_ped_waiting_time": 50.0,
            "total_ped_arrival_time": 102.0
        },
        "run_2": {
            "veh_avg_waiting_time": 7.3,
            "ped_avg_waiting_time": 5.1,
            "average_arrival_time_per_ped": 10.5,
            "total_veh_waiting_time": 73.0,
            "total_ped_waiting_time": 51.0,
            "total_ped_arrival_time": 105.0
        }
    }
}

# Write sample results to JSON file
with open(result_json_path, 'w') as f:
    json.dump(sample_results, f)

ARGS = {
    "result_json_path": result_json_path,
    "total": False
}
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 tuple, ndim 2, 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
layer_init Ran
ran; our contract draft was wrong, not the code
poudel-bibek/DeCoR/ppo/models.py
code served (permissive licence) · get_code("d90a784ee56240f3")
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 Linear. 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 torch.nn as nn
import numpy as np

torch.manual_seed(0)

# Create a simple linear layer with weight and bias attributes
# The function calls nn.init.orthogonal_ on layer.weight and nn.init.constant_ on layer.bias
layer = nn.Linear(in_features=4, out_features=3)

ARGS = {
    "layer": layer,
    "std": np.sqrt(2),
    "bias_const": 0.0,
}
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 Linear — a Linear output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Linear 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
load_pickle_with_cpu_fallback Ran
ran; our contract draft was wrong, not the code
poudel-bibek/DeCoR/plots/create_gmm_animation.py
code served (permissive licence) · get_code("6596334c7cb4d1d1")
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 pickle
from pathlib import Path
import torch
import tempfile
import os

torch.manual_seed(0)

# Create a temporary directory and file for testing
temp_dir = tempfile.mkdtemp()
temp_file = Path(temp_dir) / "test_pickle.pkl"

# Create a simple pickle file with some torch content
test_data = {
    "tensor": torch.randn(2, 4),
    "list": [1, 2, 3],
    "string": "hello"
}

with temp_file.open('wb') as f:
    pickle.dump(test_data, f)

ARGS = {
    "path": temp_file
}
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 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
load_policy Ran
ran; our contract draft was wrong, not the code
poudel-bibek/DeCoR/utils.py
code served (permissive licence) · get_code("a8fe218a1db0a77a")
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. 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 torch.nn as nn
import tempfile
import os
import numpy as np

torch.manual_seed(0)

# Define minimal policy models
class SimplePolicy(nn.Module):
    def __init__(self, input_dim, output_dim):
        super().__init__()
        self.linear = nn.Linear(input_dim, output_dim)
    
    def forward(self, x):
        return self.linear(x)

# Define a minimal state normalizer with manual_load method
class StateNormalizer:
    def __init__(self):
        self.mean = None
        self.M2 = None
        self.count = 0
    
    def manual_load(self, mean, M2, count):
        self.mean = mean
        self.M2 = M2
        self.count = count

# Create policy instances
higher_policy = SimplePolicy(4, 3)
lower_policy = SimplePolicy(4, 2)
lower_state_normalizer = StateNormalizer()

# Create checkpoint data
checkpoint = {
    'higher': {
        'state_dict': higher_policy.state_dict(),
        'norm_x': np.array([1.0, 2.0, 3.0, 4.0]),
        'norm_y': np.array([0.5, 1.5, 2.5])
    },
    'lower': {
        'state_dict': lower_policy.state_dict(),
        'state_normalizer_mean': np.array([0.1, 0.2, 0.3, 0.4]),
        'state_normalizer_M2': np.array([0.01, 0.02, 0.03, 0.04]),
        'state_normalizer_count': 100
    }
}

# Save checkpoint to temporary file
with tempfile.NamedTemporaryFile(delete=False, suffix='.pt') as f:
    load_path = f.name
    torch.save(checkpoint, load_path)

try:
    ARGS = {
        'higher_policy': higher_policy,
        'lower_policy': lower_policy,
        'lower_state_normalizer': lower_state_normalizer,
        'load_path': load_path
    }
finally:
    pass
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 tuple — a tuple output has no array shape of its own; none is 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
smoothstep Ran
ran, honoured the contract we drafted
poudel-bibek/DeCoR/plots/create_gmm_animation.py
code served (permissive licence) · get_code("b7b3ad737a129d9b")
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 float, 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 numpy as np

ARGS = {
    "x": 0.5
}
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 float, 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
extract_designs Not yet run
unverified (harvested, no recorded run)
poudel-bibek/DeCoR/plots/pedestrian_flow_plot.py
code served (permissive licence) · get_code("de46d2d2d409c331")
How it ran

no invocation recorded.

gmm_entropy_legendre Not yet run
unverified (harvested, no recorded run)
poudel-bibek/DeCoR/ppo/ppo_utils.py
code served (permissive licence) · get_code("63c711dfb93b8999")
How it ran

no invocation recorded.

gmm_entropy_monte_carlo Not yet run
unverified (harvested, no recorded run)
poudel-bibek/DeCoR/ppo/ppo_utils.py
code served (permissive licence) · get_code("92d839b7350cb5cf")
How it ran

no invocation recorded.

plot_avg_consecutive_ones Not yet run
unverified (harvested, no recorded run)
poudel-bibek/DeCoR/plots/training_plots.py
code served (permissive licence) · get_code("03d92f4c630b4dbf")
How it ran

no invocation recorded.

plot_consolidated_insights Not yet run
unverified (harvested, no recorded run)
poudel-bibek/DeCoR/plots/training_plots.py
code served (permissive licence) · get_code("c8a10547332a9657")
How it ran

no invocation recorded.

plot_demand Not yet run
unverified (harvested, no recorded run)
poudel-bibek/DeCoR/plots/result_plots.py
code served (permissive licence) · get_code("cf23f881d4d7c009")
How it ran

no invocation recorded.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 16 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
layer_init 1 other paper
1 dated earlier
2404.07099 (2024-04)
Rethinking Out-of-Distribution Detection for Reinforcement Learning: Advancing Methods for Evaluation and Detection

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

Modern vision systems can detect, track, and forecast urban actors at scale, yet translating perception outputs to urban design remains limited. We introduce DeCoR, a two-stage reinforcement learning framework that leverages flow observations to co-optimize crosswalk layout and network-level signal control. The design stage encodes the pedestrian network as a graph and learns a generative policy that parameterizes a Gaussian mixture model over crosswalk location and width, from which new crosswalks are sampled. For each layout, a shared control policy learns adaptive signal timings to minimize joint pedestrian and vehicle delay. On a 750 m real-world urban corridor with demand sensed from video and Wi-Fi logs, DeCoR learns a layout that reduces pedestrian arrival time to their nearest crosswalk by 23% while using fewer crosswalks than existing configurations. On the control side, DeCoR reduces pedestrian and vehicle wait time by 79% and 65%, respectively, relative to fixed-time signalization. Further, the control policy generalizes to demands outside of training and is robust to layout changes without retraining. Our code and data are publicly available in https://github.com/poudel-bibek/DeCoR.

For agents

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

get_harvested_code_for_paper("2605.21311")
get_code_for_paper("2605.21311")
have("2605.21311")

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

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

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

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

Connect an agent — have() is free.