SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2406.13945 · 2024

CityBench: Evaluating the Capabilities of Large Language Models for Urban Tasks

arXiv · PDF · Open in the Atlas

Code that ran

17 of 23 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; 4 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 13 failures of our instrument; 6 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/2406.13945.json · badge: /api/ran/2406.13945.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
tsinghua-fib-lab/citybench canonical (classifier label)
classifier basis: census
17 ran · 6 no recorded run
FunctionStatusWhere it lives
bd09_to_gcj02 Ran
ran, honoured the contract we drafted
tsinghua-fib-lab/citybench/citybench/outdoor_navigation/coordTransform_utils.py
code served (permissive licence) · get_code("ed0baa8be5a2be8e")
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 math

x_pi = 3.141592653589793 * 3000.0 / 180.0

def bd09_to_gcj02(bd_lon, bd_lat):
    """
    百度坐标系(BD-09)转火星坐标系(GCJ-02)
    百度——>谷歌、高德
    :param bd_lat:百度坐标纬度
    :param bd_lon:百度坐标经度
    :return:转换后的坐标列表形式
    """
    x = bd_lon - 0.0065
    y = bd_lat - 0.006
    z = math.sqrt(x * x + y * y) - 2e-05 * math.sin(y * x_pi)
    theta = math.atan2(y, x) - 3e-06 * math.cos(x * x_pi)
    gg_lng = z * math.cos(theta)
    gg_lat = z * math.sin(theta)
    return [gg_lng, gg_lat]


ARGS = {
    "bd_lon": 116.4074,
    "bd_lat": 39.9042
}
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
convert_to_12_hour_clock Ran
ran; our contract draft was wrong, not the code
tsinghua-fib-lab/citybench/citybench/mobility_prediction/run_eval.py
code served (permissive licence) · get_code("3dd52b32d8265d75")
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.

# Setup code for convert_to_12_hour_clock function

ARGS = {
    'minutes': 720
}
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
dir_all_dis Ran
ran; our contract draft was wrong, not the code
tsinghua-fib-lab/citybench/citybench/geoqa/utils.py
code served (permissive licence) · get_code("afe3f93eb4daddb2")
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.

primary_directions = ['east', 'south', 'west', 'north']

secondary_directions = ['southeast', 'northeast', 'southwest', 'northwest']

secondary_dir_to_primary_dirs = {'southeast': ('south', 'east'), 'northeast': ('north', 'east'), 'northwest': ('north', 'west'), 'southwest': ('south', 'west')}

routes = [
    {
        'type': 'road',
        'road_length': '100',
        'direction': 'heading east'
    },
    {
        'type': 'road',
        'road_length': '200',
        'direction': 'heading south'
    },
    {
        'type': 'junc',
        'road_length': '50',
        'direction': 'heading north'
    },
    {
        'type': 'road',
        'road_length': '70',
        'direction': 'heading southeast'
    },
    {
        'type': 'road',
        'road_length': '140',
        'direction': 'heading northwest'
    }
]

ARGS = {
    'routes': routes,
    'secondary_directions': secondary_directions,
    'primary_directions': primary_directions,
    'secondary_dir_to_primary_dirs': secondary_dir_to_primary_dirs
}
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 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
format_example Ran
ran; our contract draft was wrong, not the code
tsinghua-fib-lab/citybench/citybench/geoqa/run_eval.py
code served (permissive licence) · get_code("fbde55d407dfbc1f")
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
import numpy as np

INIT_PROMPT = 'The following is a multiple-choice question about the geospatial knowledge of city. Please choose the most suitable one among A, B, C and D as the answer to this question. Please output the option directly. No need for explaination.\n'

def format_example(line, include_answer=True, max_choices=4):
    choices = ['A', 'B', 'C', 'D']
    prompt = INIT_PROMPT
    if max_choices >= 5:
        choices.append('E')
        prompt = prompt.replace('A, B, C and D', 'A, B, C, D and E')
    if max_choices >= 6:
        choices.append('F')
        prompt = prompt.replace('A, B, C, D and E', 'A, B, C, D, E and F')
    example = prompt + 'Question: ' + line['question']
    for choice in choices:
        example += f"\n{choice}. {line[f'{choice}']}"
    if include_answer:
        example += '\nAnswer: ' + line['answer'] + '\n\n'
    else:
        example += '\nAnswer:'
    return example

line = {
    'question': 'Which city is the capital of France?',
    'A': 'London',
    'B': 'Paris',
    'C': 'Berlin',
    'D': 'Madrid',
    'E': 'Rome',
    'F': 'Amsterdam',
    'answer': 'B'
}

ARGS = {
    'line': line,
    'include_answer': True,
    'max_choices': 4
}
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 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
gcj02_to_bd09 Ran
ran, honoured the contract we drafted
tsinghua-fib-lab/citybench/citybench/outdoor_navigation/coordTransform_utils.py
code served (permissive licence) · get_code("6011c01be1bc239c")
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 math

x_pi = 3.141592653589793 * 3000.0 / 180.0

def gcj02_to_bd09(lng, lat):
    """
    火星坐标系(GCJ-02)转百度坐标系(BD-09)
    谷歌、高德——>百度
    :param lng:火星坐标经度
    :param lat:火星坐标纬度
    :return:
    """
    z = math.sqrt(lng * lng + lat * lat) + 2e-05 * math.sin(lat * x_pi)
    theta = math.atan2(lat, lng) + 3e-06 * math.cos(lng * x_pi)
    bd_lng = z * math.cos(theta) + 0.0065
    bd_lat = z * math.sin(theta) + 0.006
    return [bd_lng, bd_lat]


ARGS = {
    "lng": 116.4074,
    "lat": 39.9042
}
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
gen_options Ran
ran; our contract draft was wrong, not the code
tsinghua-fib-lab/citybench/citybench/geoqa/utils.py
code served (permissive licence) · get_code("9745e19e1e4d5474")
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 copy
import random

# Set seed for reproducibility
random.seed(42)

# Define the arguments for gen_options
options = ["Option A text", "Option B text", "Option C text", "Option D text"]
question = "What is the capital of France?"
answer = "Option B text"

ARGS = {
    "options": options,
    "question": question,
    "answer": answer
}
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 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_acc1_f1 Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
tsinghua-fib-lab/citybench/citybench/mobility_prediction/metrics.py
code served (permissive licence) · get_code("901473d434f03b50")
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 pandas as pd
from sklearn.metrics import f1_score

# Create a small dataframe with predictions and ground truth labels
df = pd.DataFrame({
    'prediction': [0, 1, 0, 1, 1, 0],
    'ground_truth': [0, 1, 1, 1, 0, 0]
})

ARGS = {
    'df': df
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas, sklearn — 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
get_day Ran
ran; our contract draft was wrong, not the code
tsinghua-fib-lab/citybench/citybench/mobility_prediction/data_gen.py
code served (permissive licence) · get_code("00ff8bb07bb6500f")
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

ARGS = {
    'day': 'Mon test'
}
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
get_is_correct Ran
ran; our contract draft was wrong, not the code
tsinghua-fib-lab/citybench/citybench/mobility_prediction/metrics.py
code served (permissive licence) · get_code("cd1e4cb179726aa5")
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

ARGS = {
    'row': {
        'prediction': ['cat', 'dog', 'bird'],
        'ground_truth': 'dog'
    }
}
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
get_is_correct10 Ran
ran; our contract draft was wrong, not the code
tsinghua-fib-lab/citybench/citybench/mobility_prediction/metrics.py
code served (permissive licence) · get_code("bdfec11b2815eede")
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

torch.manual_seed(0)

# Analyze the function:
# - Takes a single parameter 'row' which is a dictionary
# - Accesses keys: 'top10', 'ground_truth', 'top5', 'top1'
# - Modifies keys: 'is_correct10', 'is_correct5', 'is_correct1'
# - 'top10' and 'top5' are checked with 'in' operator (list-like)
# - 'top1' and 'ground_truth' are compared with ==

row = {
    'top10': [5, 3, 7, 2, 1, 9, 4, 6, 8, 0],
    'top5': [5, 3, 7, 2, 1],
    'top1': 5,
    'ground_truth': 5
}

ARGS = {
    'row': row
}
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
get_nearby_pois Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
tsinghua-fib-lab/citybench/citybench/geoqa/data_gen.py
code served (permissive licence) · get_code("aafdf0d32c0ac451")
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

class MockMap:
    """Mock map object that implements the required interface"""
    
    def lnglat2xy(self, lng, lat):
        """Convert longitude/latitude to x/y coordinates"""
        return (lng * 111320.7, lat * 110540.0)
    
    def query_pois(self, input_coor, radius, category_prefix, limit):
        """Query points of interest near given coordinates"""
        # Return mock POI data: list of lists containing dicts with 'id' key
        results = []
        for i in range(min(limit, 3)):  # Return up to 3 POIs per category
            results.append([{'id': f'{category_prefix}_poi_{i}', 'name': f'POI {i}'}])
        return results

# Create the mock map
mock_map = MockMap()

# Define category_supported dictionary
category_supported = {
    'restaurant': {'display_name': 'Restaurant'},
    'cafe': {'display_name': 'Cafe'},
    'hotel': {'display_name': 'Hotel'}
}

# Define input coordinates (longitude, latitude)
input_coor = (120.15, 30.27)

# Construct ARGS dictionary with all required parameters
ARGS = {
    'input_coor': input_coor,
    'map': mock_map,
    'category_supported': category_supported
}
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_result Ran
ran; our contract draft was wrong, not the code
tsinghua-fib-lab/citybench/citybench/geoqa/metrics.py
code served (permissive licence) · get_code("7a47bc523075e6d4")
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 os
import re
import pandas as pd
import tempfile

# Create a temporary directory for test files
temp_dir = tempfile.mkdtemp()

# Create sample CSV files matching the expected pattern
sample_data_1 = pd.DataFrame({
    'task_name': [
        'node_1', 'node_2', 'node_3',
        'landmark_1', 'landmark_2', 'landmark_3',
        'path_1', 'path_2', 'path_3',
        'districts_1', 'districts_2', 'districts_3',
        'boundary_1', 'boundary_2', 'boundary_3',
        'others_1', 'others_2', 'others_3',
        'extra_1', 'extra_2', 'extra_3',
        'extra_4', 'extra_5', 'extra_6',
        'extra_7', 'extra_8', 'extra_9',
        'extra_10', 'extra_11'
    ],
    'accuracy': [
        0.95, 0.92, 0.88,
        0.87, 0.90, 0.85,
        0.91, 0.89, 0.93,
        0.84, 0.86, 0.88,
        0.92, 0.91, 0.89,
        0.85, 0.87, 0.90,
        0.80, 0.82, 0.81,
        0.83, 0.79, 0.84,
        0.78, 0.80, 0.81,
        0.82, 0.83
    ]
})

sample_data_2 = pd.DataFrame({
    'task_name': [
        'node_1', 'node_2', 'node_3',
        'landmark_1', 'landmark_2', 'landmark_3',
        'path_1', 'path_2', 'path_3',
        'districts_1', 'districts_2', 'districts_3',
        'boundary_1', 'boundary_2', 'boundary_3',
        'others_1', 'others_2', 'others_3',
        'extra_1', 'extra_2', 'extra_3',
        'extra_4', 'extra_5', 'extra_6',
        'extra_7', 'extra_8', 'extra_9',
        'extra_10', 'extra_11'
    ],
    'accuracy': [
        0.89, 0.91, 0.86,
        0.88, 0.92, 0.87,
        0.90, 0.88, 0.91,
        0.85, 0.87, 0.89,
        0.93, 0.90, 0.88,
        0.86, 0.88, 0.89,
        0.81, 0.83, 0.82,
        0.84, 0.80, 0.85,
        0.79, 0.81, 0.82,
        0.83, 0.84
    ]
})

# Write CSV files
sample_data_1.to_csv(os.path.join(temp_dir, 'geo_knowledge_paris_v82_summary_bert.csv'), index=False)
sample_data_2.to_csv(os.path.join(temp_dir, 'geo_knowledge_london_v82_summary_gpt.csv'), index=False)

# Define the map_task dictionary
map_task = {
    'node': ['node_1', 'node_2', 'node_3'],
    'landmark': ['landmark_1', 'landmark_2', 'landmark_3'],
    'path': ['path_1', 'path_2', 'path_3'],
    'districts': ['districts_1', 'districts_2', 'districts_3'],
    'boundary': ['boundary_1', 'boundary_2', 'boundary_3'],
    'others': ['others_1', 'others_2', 'others_3', 'extra_1', 'extra_2', 'extra_3', 'extra_4', 'extra_5', 'extra_6', 'extra_7', 'extra_8', 'extra_9', 'extra_10', 'extra_11']
}

# Define result_files list
result_files = [
    'geo_knowledge_paris_v82_summary_bert.csv',
    'geo_knowledge_london_v82_summary_gpt.csv'
]

ARGS = {
    'file_path': temp_dir,
    'result_files': result_files,
    'map_task': map_task
}
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
get_time Ran
ran, honoured the contract we drafted
tsinghua-fib-lab/citybench/citybench/mobility_prediction/data_gen.py
code served (permissive licence) · get_code("5642b97cf4bef5f0")
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
import numpy as np

def get_time(time):
    pre_time = time.split()[3]
    hour = int(pre_time.split(':')[0])
    min = int(pre_time.split(':')[1])
    pro_time = 60 * hour + min
    return pro_time

ARGS = {
    "time": "Mon Jan 15 14:30:45 2024"
}
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 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
get_user_data Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
tsinghua-fib-lab/citybench/citybench/mobility_prediction/run_eval.py
code served (permissive licence) · get_code("d45560a97cfd6154")
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 pandas as pd

# Create a minimal DataFrame that supports indexing by 'user_id' and .tail()
train_data = pd.DataFrame({
    'user_id': [1, 1, 1, 2, 2, 3],
    'stay_id': [101, 102, 103, 201, 202, 301],
    'value': [10.5, 20.3, 15.7, 25.1, 30.2, 35.0]
})

uid = 1
num_historical_stay = 2

ARGS = {
    'train_data': train_data,
    'uid': uid,
    'num_historical_stay': num_historical_stay
}
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
task_files_adaption Ran
ran; our contract draft was wrong, not the code
tsinghua-fib-lab/citybench/citybench/geoqa/run_eval.py
code served (permissive licence) · get_code("4189bccf9c32f695")
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) 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 os
import tempfile

# Create a temporary directory for the path_prefix
temp_dir = tempfile.mkdtemp()

# Construct a task_file dictionary with the expected structure
task_file = {
    "category1": {
        "task1": "file1.txt",
        "task2": "file2.txt"
    },
    "category2": {
        "task3": "file3.txt",
        "task4": "file4.txt"
    }
}

# Define the path_prefix
path_prefix = temp_dir

# Create ARGS dictionary with all parameters
ARGS = {
    "task_file": task_file,
    "path_prefix": path_prefix
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 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
task_files_adaption Ran
ran; our contract draft was wrong, not the code
tsinghua-fib-lab/citybench/citybench/geoqa/utils.py
code served (permissive licence) · get_code("9b36c7f6d6007d25")
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 copy
import os
import tempfile

# Create a temporary directory for output_path
temp_dir = tempfile.mkdtemp()

# Construct task_file - a nested dict with file paths
task_file = {
    "task_1": {
        "train": "data/train.txt",
        "test": "data/test.txt",
        "val": "data/val.txt"
    },
    "task_2": {
        "source": "raw/source.csv",
        "annotations": "raw/annotations.json"
    }
}

# Define arguments
ARGS = {
    "task_file": task_file,
    "output_path": temp_dir
}
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 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
wgs84_to_gcj02 Ran
ran, honoured the contract we drafted
tsinghua-fib-lab/citybench/citybench/outdoor_navigation/coordTransform_utils.py
code served (permissive licence) · get_code("e67cb36ee1894010")
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 math

# The function wgs84_to_gcj02 takes two parameters: lng (longitude) and lat (latitude)
# Both should be numeric values (int or float)
# The function performs a coordinate transformation from WGS84 to GCJ02

ARGS = {
    "lng": 114.21892734078,
    "lat": 29.575429778924,
}
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
coord_conv Not yet run
unverified (harvested, no recorded run)
tsinghua-fib-lab/citybench/citybench/outdoor_navigation/crawler_baidu.py
code served (permissive licence) · get_code("673d2b1bf01f10aa")
How it ran

no invocation recorded.

coord_conv_back Not yet run
unverified (harvested, no recorded run)
tsinghua-fib-lab/citybench/citybench/outdoor_navigation/crawler_baidu.py
code served (permissive licence) · get_code("17a3a8f86db336ac")
How it ran

no invocation recorded.

gps_gen Not yet run
unverified (harvested, no recorded run)
tsinghua-fib-lab/citybench/citybench/geoqa/data_gen.py
code served (permissive licence) · get_code("3205b9f39f5f2e0c")
How it ran

no invocation recorded.

landmark_gen Not yet run
unverified (harvested, no recorded run)
tsinghua-fib-lab/citybench/citybench/geoqa/data_gen.py
code served (permissive licence) · get_code("74042dda0a06339b")
How it ran

no invocation recorded.

loc_to_sid Not yet run
unverified (harvested, no recorded run)
tsinghua-fib-lab/citybench/citybench/outdoor_navigation/crawler_baidu.py
code served (permissive licence) · get_code("a9cc1853676c97f4")
How it ran

no invocation recorded.

match_pos Not yet run
unverified (harvested, no recorded run)
tsinghua-fib-lab/citybench/citybench/mobility_prediction/data_gen.py
code served (permissive licence) · get_code("8b39129551bb06a0")
How it ran

no invocation recorded.

Also present in other papers' code

Of 23 samples lifted from this paper's linked repositories, 23 carry a function identity and 0 do not. Of the 23 distinct functions with an identity, 3 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 1 later) and 20 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
convert_to_12_hour_clock 1 other paper
1 dated earlier
2308.15197 (2023-08)
Where Would I Go Next? Large Language Models as Human Mobility Predictors
coord_conv_back 1 other paper
1 later
2506.00530 (2025-06)
CityLens: Evaluating Large Vision-Language Models for Urban Socioeconomic Sensing
task_files_adaption 1 other paper
1 the same month
2406.13948 (2024-06)
CityGPT: Empowering Urban Spatial Cognition of Large Language 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

As large language models (LLMs) continue to advance and gain widespread use, establishing systematic and reliable evaluation methodologies for LLMs and vision-language models (VLMs) has become essential to ensure their real-world effectiveness and reliability. There have been some early explorations about the usability of LLMs for limited urban tasks, but a systematic and scalable evaluation benchmark is still lacking. The challenge in constructing a systematic evaluation benchmark for urban research lies in the diversity of urban data, the complexity of application scenarios and the highly dynamic nature of the urban environment. In this paper, we design \textit{CityBench}, an interactive simulator based evaluation platform, as the first systematic benchmark for evaluating the capabilities of LLMs for diverse tasks in urban research. First, we build \textit{CityData} to integrate the diverse urban data and \textit{CitySimu} to simulate fine-grained urban dynamics. Based on \textit{CityData} and \textit{CitySimu}, we design 8 representative urban tasks in 2 categories of perception-understanding and decision-making as the \textit{CityBench}. With extensive results from 30 well-known LLMs and VLMs in 13 cities around the world, we find that advanced LLMs and VLMs can achieve competitive performance in diverse urban tasks requiring commonsense and semantic understanding abilities, e.g., understanding the human dynamics and semantic inference of urban images. Meanwhile, they fail to solve the challenging urban tasks requiring professional knowledge and high-level numerical abilities, e.g., geospatial prediction and traffic control task.

For agents

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

get_harvested_code_for_paper("2406.13945")
get_code_for_paper("2406.13945")
have("2406.13945")

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

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

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

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

Connect an agent — have() is free.