SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1710.05465 · 2017

Flow: A Modular Learning Framework for Mixed Autonomy Traffic

arXiv · PDF · Open in the Atlas

Code that ran

15 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; 7 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 5 failures of our instrument; 2 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/1710.05465.json · badge: /api/ran/1710.05465.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
cathywu/flow canonical (classifier label)
classifier basis: census
3 ran · 0 no recorded run
arryyao/flow-project-flow canonical (classifier label)
classifier basis: classifier_2025
0 ran · 1 no recorded run
alt113/flow-triangle-scenario community (classifier label)
classifier basis not recorded on the link
5 ran · 0 no recorded run
berkeleyflow/flow community (classifier label)
classifier basis not recorded on the link
3 ran · 1 no recorded run
parthjaggi/flow community (classifier label)
classifier basis not recorded on the link
1 ran · 0 no recorded run
2855239858/CenLight-Traffic-Grid-Signal-Optimization-viaAction-and-State-Decomposition community (classifier label)
classifier basis not recorded on the link
1 ran · 0 no recorded run
DrArryYao/RL-SC community (classifier label)
classifier basis: plan_row
1 ran · 0 no recorded run
cuijiaxun/MITC-Project community (classifier label)
classifier basis not recorded on the link
1 ran · 0 no recorded run
FunctionStatusWhere it lives
average_velocity Ran
ran on a synthesized input
cathywu/flow/flow/core/rewards.py
code served (permissive licence) · get_code("088d6832089ff160")
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

class MockVehicleManager:
    """Mock vehicle manager that simulates flow.envs vehicle interface."""
    
    def __init__(self):
        self.vehicle_ids = ["vehicle_0", "vehicle_1", "vehicle_2"]
        self.speeds = np.array([10.5, 12.3, 11.8])
    
    def get_ids(self):
        """Return list of vehicle IDs."""
        return self.vehicle_ids
    
    def get_speed(self, vehicle_ids):
        """Return speeds for given vehicle IDs."""
        return self.speeds[:len(vehicle_ids)]


class MockKernel:
    """Mock kernel that contains vehicle information."""
    
    def __init__(self):
        self.vehicle = MockVehicleManager()


class MockEnv:
    """Mock Flow environment."""
    
    def __init__(self):
        self.k = MockKernel()


ARGS = {
    "env": MockEnv(),
    "fail": 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 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
average_velocity Ran
ran, honoured the contract we drafted
alt113/flow-triangle-scenario/flow/core/rewards.py
code served (permissive licence) · get_code("bbd1cb2d126986cc")
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


class MockVehicle:
    def __init__(self):
        self.speeds = np.array([5.0, 10.5, 8.2, 15.1])
        self.ids = ['v0', 'v1', 'v2', 'v3']
    
    def get_ids(self):
        return self.ids
    
    def get_speed(self, ids):
        return self.speeds[:len(ids)]


class MockK:
    def __init__(self):
        self.vehicle = MockVehicle()


class MockEnv:
    def __init__(self, fail_mode=False):
        self.k = MockK()
        self.fail_mode = fail_mode


ARGS = {
    'env': MockEnv(fail_mode=False),
    'fail': 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 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
convert_lanes_to_edges Ran
ran; our contract draft was wrong, not the code
parthjaggi/flow/flow/core/util.py
code served (permissive licence) · get_code("c3addc6445eae099")
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

# Test case 1: list of lanes
lanes_list = ['1175109_0', '1175109_1', '1175109_2', '1183934_0', '1183934_1', '1183934_2']

# Test case 2: single lane string
lanes_string = '1175109_0'

# Use the list case as the primary test
ARGS = {
    'lanes': lanes_list
}
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 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
cover_actions Ran
ran; our contract draft was wrong, not the code
2855239858/CenLight-Traffic-Grid-Signal-Optimization-viaAction-and-State-Decomposition/workspace/ryc_workspace/cenlight_runner.py
code served (permissive licence) · get_code("5b84585ea4766dd9")
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 1, dtype family int, shape (5,) 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

def cover_actions(c_a, s_a, num):
    for i in range(num):
        if i == c_a:
            s_a[i] = 1
    return s_a

# Construct arguments
c_a = 2  # An index to check against in the loop
s_a = np.array([0, 0, 0, 0, 0])  # A list-like array that will be modified
num = 5  # Number of iterations

ARGS = {
    "c_a": c_a,
    "s_a": s_a,
    "num": num
}
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 ndarray, ndim 1, dtype family int, shape (5,) — shape (5,) 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
desired_velocity Ran
ran, honoured the contract we drafted
DrArryYao/RL-SC/flow/core/rewards.py
code served (permissive licence) · get_code("f134e49cf4945317")
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


class MockVehicle:
    def __init__(self):
        self.vehicles = {
            'vehicle_0': {'speed': 10.5, 'edge': 'edge_1'},
            'vehicle_1': {'speed': 11.2, 'edge': 'edge_1'},
            'vehicle_2': {'speed': 9.8, 'edge': 'edge_2'},
        }
    
    def get_ids(self):
        return list(self.vehicles.keys())
    
    def get_ids_by_edge(self, edge_list):
        return [vid for vid, data in self.vehicles.items() if data['edge'] in edge_list]
    
    def get_speed(self, veh_ids):
        return [self.vehicles[vid]['speed'] for vid in veh_ids]


class MockKernel:
    def __init__(self):
        self.vehicle = MockVehicle()


class MockEnvParams:
    def __init__(self):
        self.additional_params = {
            'target_velocity': 10.0
        }


class MockEnv:
    def __init__(self):
        self.k = MockKernel()
        self.env_params = MockEnvParams()


ARGS = {
    'env': MockEnv(),
    'fail': False,
    'edge_list': None
}
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
desired_velocity Ran
ran, honoured the contract we drafted
alt113/flow-triangle-scenario/flow/core/rewards.py
code served (permissive licence) · get_code("9dec5fb45db938e4")
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

class MockVehicle:
    def __init__(self):
        self.vehicle_ids = ['veh_0', 'veh_1', 'veh_2']
        self.speeds = np.array([10.0, 11.5, 9.8])
        self.edge_map = {
            'veh_0': ['edge_0'],
            'veh_1': ['edge_1'],
            'veh_2': ['edge_0']
        }
    
    def get_ids(self):
        return self.vehicle_ids
    
    def get_ids_by_edge(self, edge_list):
        result = []
        for veh_id in self.vehicle_ids:
            if any(edge in self.edge_map.get(veh_id, []) for edge in edge_list):
                result.append(veh_id)
        return result
    
    def get_speed(self, veh_ids):
        indices = [self.vehicle_ids.index(vid) for vid in veh_ids if vid in self.vehicle_ids]
        return self.speeds[indices].tolist()

class MockKernel:
    def __init__(self):
        self.vehicle = MockVehicle()

class MockEnvParams:
    def __init__(self):
        self.additional_params = {'target_velocity': 10.0}

class MockEnv:
    def __init__(self):
        self.k = MockKernel()
        self.env_params = MockEnvParams()

ARGS = {
    'env': MockEnv(),
    'fail': False,
    'edge_list': None
}
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
ensure_dir Ran
ran on a synthesized input
cathywu/flow/flow/core/util.py
code served (permissive licence) · get_code("3f0d8929acbc5b16")
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 tempfile
import os

ARGS = {
    "path": os.path.join(tempfile.gettempdir(), "test_ensure_dir_12345")
}
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
get_speed_pos_merge Ran
ran; our contract draft was wrong, not the code
alt113/flow-triangle-scenario/triangle-scenario-flow.py
code served (permissive licence) · get_code("4e43c512f2aac68d")
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 numpy as np

# Construct merge_data dictionary
# Structure: veh_id -> {'edge': list, 'pos': list, 'speed': list, 'time': list, 'abs_pos': list}
merge_data = {
    'vehicle_0': {
        'edge': ['edge1', 'edge2', 'edge1'],
        'pos': [10.5, 20.3, 15.7],
        'speed': [5.2, 6.1, 4.8],
        'time': [0.0, 0.2, 0.4],
    },
    'vehicle_1': {
        'edge': ['edge2', 'edge3', 'edge2'],
        'pos': [12.1, 25.4, 18.9],
        'speed': [5.5, 6.5, 5.1],
        'time': [0.0, 0.2, 0.4],
    },
    'vehicle_2': {
        'edge': ['edge1', 'edge2', 'bottom'],
        'pos': [8.3, 22.1, 30.0],
        'speed': [4.9, 6.2, 0.0],
        'time': [0.0, 0.2, 0.4],
    },
}

# Construct edgestarts dictionary
edgestarts = {
    'edge1': 0.0,
    'edge2': 50.0,
    'edge3': 100.0,
    'inflow_merge': 150.0,
    'bottom': 200.0,
    ':bottom_0': 250.0,
}

num_steps = 18000
dt = 0.2

ARGS = {
    'merge_data': merge_data,
    'edgestarts': edgestarts,
    'num_steps': num_steps,
    'dt': dt,
}
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 — 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
import_edge_pos_speed Ran
ran; our contract draft was wrong, not the code
alt113/flow-triangle-scenario/triangle-scenario-flow.py
code served (permissive licence) · get_code("bd924d20d17e4d73")
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 numpy as np
import pandas as pd
import tempfile
import os

# Create a temporary CSV file with emission data
temp_dir = tempfile.mkdtemp()
csv_filepath = os.path.join(temp_dir, "emission_data.csv")

# Create sample emission data
emission_data = pd.DataFrame({
    'id': ['vehicle_1', 'vehicle_1', 'vehicle_1', 'vehicle_2', 'vehicle_2', 'vehicle_2'],
    'edge_id': ['edge_1', 'edge_2', 'edge_2', 'edge_1', 'edge_3', 'edge_3'],
    'relative_position': [10.5, 25.3, 45.2, 5.1, 30.0, 55.5],
    'speed': [15.0, 18.5, 22.0, 12.0, 20.0, 25.0],
    'lane_number': [0, 1, 1, 0, 0, 1],
    'time': [0.0, 1.0, 2.0, 0.0, 1.0, 2.0]
})

# Write to CSV
emission_data.to_csv(csv_filepath, index=False)

ARGS = {
    'csv_filepath': csv_filepath
}
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 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
max_edge_velocity Ran
ran, honoured the contract we drafted
berkeleyflow/flow/flow/core/rewards.py
code served (permissive licence) · get_code("1902b78ae8217da0")
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

class MockVehicles:
    def __init__(self):
        self.vehicles_on_edges = {
            'edge1': ['veh_0', 'veh_1'],
            'edge2': ['veh_2']
        }
        self.vehicle_speeds = {
            'veh_0': 15.0,
            'veh_1': 18.0,
            'veh_2': 12.0
        }
    
    def get_ids_by_edge(self, edge_list):
        veh_ids = []
        for edge in edge_list:
            if edge in self.vehicles_on_edges:
                veh_ids.extend(self.vehicles_on_edges[edge])
        return veh_ids
    
    def get_speed(self, veh_ids):
        return [self.vehicle_speeds.get(vid, 0.0) for vid in veh_ids]

class MockEnvParams:
    def __init__(self):
        self.additional_params = {
            'target_velocity': 20.0
        }

class MockEnv:
    def __init__(self):
        self.vehicles = MockVehicles()
        self.env_params = MockEnvParams()

ARGS = {
    'env': MockEnv(),
    'edge_list': ['edge1', 'edge2'],
    'fail': 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 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
reward_density Ran
ran, honoured the contract we drafted
berkeleyflow/flow/flow/core/rewards.py
code served (permissive licence) · get_code("d31fcc00ffefc8c3")
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.

class MockVehicles:
    def __init__(self, num_arrived: int):
        self._num_arrived = num_arrived
    
    def get_num_arrived(self):
        return self._num_arrived


class MockEnv:
    def __init__(self, num_arrived: int, sim_step: int):
        self.vehicles = MockVehicles(num_arrived)
        self.sim_step = sim_step


ARGS = {
    "env": MockEnv(num_arrived=5, sim_step=10)
}
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
rl_forward_progress Ran
ran on a synthesized input
cathywu/flow/flow/core/rewards.py
code served (permissive licence) · get_code("ab94b5bc29921f00")
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

class MockVehicle:
    def __init__(self):
        self.rl_ids = ['rl_0', 'rl_1']
        self.speeds = {
            'rl_0': 5.0,
            'rl_1': 7.0
        }
    
    def get_rl_ids(self):
        return self.rl_ids
    
    def get_speed(self, vehicle_ids):
        return np.array([self.speeds[vid] for vid in vehicle_ids])

class MockKernel:
    def __init__(self):
        self.vehicle = MockVehicle()

class MockEnv:
    def __init__(self):
        self.k = MockKernel()

env = MockEnv()

ARGS = {
    'env': env,
    'gain': 0.1
}
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
rl_forward_progress Ran
ran, honoured the contract we drafted
alt113/flow-triangle-scenario/flow/core/rewards.py
code served (permissive licence) · get_code("be02a74995a19bda")
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

class MockVehicle:
    def __init__(self):
        self.speeds = np.array([5.0, 3.2, 4.1, 2.8])
        self.rl_ids = ['rl_0', 'rl_1']
    
    def get_speed(self, vehicle_ids):
        """Return speeds for given vehicle IDs"""
        # Return speeds corresponding to RL vehicles
        return np.array([5.0, 3.2])
    
    def get_rl_ids(self):
        """Return list of RL vehicle IDs"""
        return self.rl_ids

class MockKernel:
    def __init__(self):
        self.vehicle = MockVehicle()

class MockEnv:
    def __init__(self):
        self.k = MockKernel()

ARGS = {
    'env': MockEnv(),
    'gain': 0.1
}
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
rllib_logger_creator Ran
ran; our contract draft was wrong, not the code
berkeleyflow/flow/flow/core/util.py
code served (permissive licence) · get_code("a7b03a583369d0fd")
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 function. 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 os
import tempfile
from datetime import datetime

def simple_logger(config, logdir, extra):
    """A simple logger function that accepts config, logdir, and extra."""
    return {"logged": True, "logdir": logdir}

ARGS = {
    "result_dir": tempfile.gettempdir(),
    "env_name": "CartPole",
    "loggerfn": simple_logger,
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
sum_velocity Ran
ran, honoured the contract we drafted
cuijiaxun/MITC-Project/flow/core/rewards.py
code served (permissive licence) · get_code("2abe3792c2b4ee79")
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

class MockVehicle:
    def __init__(self):
        self.vehicle_ids = ['vehicle_0', 'vehicle_1', 'vehicle_2']
        self.speeds = np.array([10.5, 15.3, 8.2])
    
    def get_ids(self):
        return self.vehicle_ids
    
    def get_speed(self, vehicle_ids):
        return self.speeds[:len(vehicle_ids)]

class MockK:
    def __init__(self):
        self.vehicle = MockVehicle()

class MockEnv:
    def __init__(self):
        self.k = MockK()

ARGS = {
    'env': MockEnv(),
    'fail': 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 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
desired_velocity Not yet run
unverified (harvested, no recorded run)
berkeleyflow/flow/flow/core/rewards.py
code served (permissive licence) · get_code("451b34b85387cf6c")
How it ran

no invocation recorded.

get_compute_action_rllab Not yet run
unverified (harvested, no recorded run)
arryyao/flow-project-flow/flow/utils/leaderboard/evaluate.py
code served (permissive licence) · get_code("446130e9b6b678e8")
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 14 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 13 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
desired_velocity 1 other paper
1 later
2201.03544 (2022-01)
The Effects of Reward Misspecification: Mapping and Mitigating Misaligned Models

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

The rapid development of autonomous vehicles (AVs) holds vast potential for transportation systems through improved safety, efficiency, and access to mobility. However, the progression of these impacts, as AVs are adopted, is not well understood. Numerous technical challenges arise from the goal of analyzing the partial adoption of autonomy: partial control and observation, multi-vehicle interactions, and the sheer variety of scenarios represented by real-world networks. To shed light into near-term AV impacts, this article studies the suitability of deep reinforcement learning (RL) for overcoming these challenges in a low AV-adoption regime. A modular learning framework is presented, which leverages deep RL to address complex traffic dynamics. Modules are composed to capture common traffic phenomena (stop-and-go traffic jams, lane changing, intersections). Learned control laws are found to improve upon human driving performance, in terms of system-level velocity, by up to 57% with only 4-7% adoption of AVs. Furthermore, in single-lane traffic, a small neural network control law with only local observation is found to eliminate stop-and-go traffic - surpassing all known model-based controllers to achieve near-optimal performance - and generalize to out-of-distribution traffic densities.

For agents

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

get_harvested_code_for_paper("1710.05465")
get_code_for_paper("1710.05465")
have("1710.05465")

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

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

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

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

Connect an agent — have() is free.