SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2412.08879 · 2024

Video Repurposing from User Generated Content: A Large-scale Dataset and Benchmark

arXiv · PDF · Open in the Atlas

Code that ran

10 of 11 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 10 failures of our instrument; 1 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/2412.08879.json · badge: /api/ran/2412.08879.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
yongliang-wu/repurpose canonical (classifier label)
classifier basis: census
10 ran · 1 no recorded run
FunctionStatusWhere it lives
calculate_ap Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yongliang-wu/repurpose/utils/metrics.py
code served (permissive licence) · get_code("2375c1f353b51a70")
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 torch
import numpy as np

torch.manual_seed(0)

# Analyzing the function:
# - segments: list of [t1, t2] pairs (start and end indices)
# - labels: list/array of binary labels (0 or 1)
# The function marks regions in "perds" based on segments, then calculates AP

# Create small test data
segments = [
    [0, 2],      # segment covering indices 0-2
    [3, 4]       # segment covering indices 3-4
]

labels = [1, 1, 0, 1, 1, 0, 0]  # binary labels for 7 positions

ARGS = {
    "segments": segments,
    "labels": labels
}
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 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
calculate_recall Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yongliang-wu/repurpose/utils/metrics.py
code served (permissive licence) · get_code("20dafaff05cb4005")
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 torch
import numpy as np

# Test case 1: Basic scenario with some true positives
segments = [
    [0, 2],      # covers indices 0, 1, 2
    [5, 7],      # covers indices 5, 6, 7
]

labels = [
    1, 1, 0, 0, 0, 1, 1, 1, 0, 0
]

ARGS = {
    "segments": segments,
    "labels": labels,
}
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 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
calculate_tiou Ran
ran; our contract draft was wrong, not the code
yongliang-wu/repurpose/utils/metrics.py
code served (permissive licence) · get_code("465bd32ad76194c3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Construct reference segments: list of (start, end) tuples
reference_segments = [
    (0.0, 5.0),
    (10.0, 15.0),
    (20.0, 25.0)
]

# Construct predicted segments: list of (start, end) tuples
predicted_segments = [
    (1.0, 4.0),
    (11.0, 14.0),
    (19.0, 26.0),
    (30.0, 35.0)
]

# Construct tIoU thresholds
tiou_thresholds = [0.3, 0.5, 0.7]

ARGS = {
    "reference_segments": reference_segments,
    "predicted_segments": predicted_segments,
    "tiou_thresholds": tiou_thresholds
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
collate_fn Ran
ran; our contract draft was wrong, not the code
yongliang-wu/repurpose/dataset/RepurposeClip.py
code served (permissive licence) · get_code("f1d6f311ec1139dc")
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)

# Create sample batch items
batch = [
    {
        'feats': {
            'visual': [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]],
            'audio': [[0.1, 0.2, 0.3, 0.4], [0.5, 0.6, 0.7, 0.8]],
            'text': [[0.01, 0.02, 0.03, 0.04], [0.05, 0.06, 0.07, 0.08]]
        },
        'labels': [1, 0],
        'segments': [[1.0, 2.0, 3.0, 4.0], [2.0, 3.0, 4.0, 5.0]],
        'video_id': 'video_001',
        'duration': 10.5
    },
    {
        'feats': {
            'visual': [[9.0, 10.0, 11.0, 12.0]],
            'audio': [[0.9, 1.0, 1.1, 1.2]],
            'text': [[0.09, 0.10, 0.11, 0.12]]
        },
        'labels': [1],
        'segments': [[3.0, 4.0, 5.0, 6.0]],
        'video_id': 'video_002',
        'duration': 8.3
    }
]

ARGS = {
    'batch': batch
}
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
collate_fn_test Ran
ran; our contract draft was wrong, not the code
yongliang-wu/repurpose/dataset/RepurposeClip.py
code served (permissive licence) · get_code("42f07137aa17a3a8")
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)

# Create sample batch items with the required structure
batch = [
    {
        'feats': {
            'visual': [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]],
            'audio': [[0.1, 0.2, 0.3, 0.4], [0.5, 0.6, 0.7, 0.8]],
            'text': [[0.01, 0.02, 0.03, 0.04], [0.05, 0.06, 0.07, 0.08]]
        },
        'labels': [1, 0],
        'segments': [[0.0, 1.0, 2.0, 3.0], [1.0, 2.0, 3.0, 4.0]],
        'video_id': 'vid_001',
        'duration': 10.5,
        'gt_segments': [[0.0, 5.0], [5.0, 10.5]]
    },
    {
        'feats': {
            'visual': [[2.0, 3.0, 4.0, 5.0]],
            'audio': [[0.2, 0.3, 0.4, 0.5]],
            'text': [[0.02, 0.03, 0.04, 0.05]]
        },
        'labels': [1],
        'segments': [[1.0, 2.0, 3.0, 4.0]],
        'video_id': 'vid_002',
        'duration': 8.3,
        'gt_segments': [[2.0, 6.0]]
    }
]

ARGS = {
    'batch': batch
}
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
kl_divergence_loss Ran
ran; our contract draft was wrong, not the code
yongliang-wu/repurpose/models/losses.py
code served (permissive licence) · get_code("e01b533bd0b88955")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Construct tensors with shapes [B, T, 1]
# B=2 (batch), T=4 (time steps), 1 (single value per position)
batch_size = 2
time_steps = 4

p_logits = torch.randn(batch_size, time_steps, 1)
q_logits = torch.randn(batch_size, time_steps, 1)
mask = torch.ones(batch_size, time_steps, 1)

# Set some mask positions to 0 to test masking
mask[0, 2, 0] = 0.0
mask[1, 3, 0] = 0.0

eps = 1e-08

ARGS = {
    "p_logits": p_logits,
    "q_logits": q_logits,
    "mask": mask,
    "eps": eps,
}
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 Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_config Ran
ran; our contract draft was wrong, not the code
yongliang-wu/repurpose/inference.py
code served (permissive licence) · get_code("5b0ce5deb4359713")
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 tempfile
import yaml
import os

# Create a temporary YAML config file
temp_dir = tempfile.mkdtemp()
config_file = os.path.join(temp_dir, "test_config.yaml")

# Write a simple config to the file
config_data = {
    "model": "test_model",
    "learning_rate": 0.001,
    "batch_size": 32,
    "epochs": 10,
    "layers": [64, 128, 256]
}

with open(config_file, 'w') as f:
    yaml.dump(config_data, f)

ARGS = {
    "config_file": config_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
yaml — 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
preprocessing Ran
ran; our contract draft was wrong, not the code
yongliang-wu/repurpose/dataset/RepurposeClip.py
code served (permissive licence) · get_code("b5e324c2c10d0c39")
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

torch.manual_seed(0)

# Create sample feature tensors for visual modality
# Batch of 2 sequences with varying lengths, feature dim 4
vis_feats = [
    torch.randn(3, 4),  # sequence 1: 3 timesteps, 4 features
    torch.randn(5, 4),  # sequence 2: 5 timesteps, 4 features
]

# Create sample feature tensors for audio modality
# Same structure: batch of 2, varying lengths, feature dim 4
aud_feats = [
    torch.randn(3, 4),  # sequence 1: 3 timesteps, 4 features
    torch.randn(5, 4),  # sequence 2: 5 timesteps, 4 features
]

# Create sample feature tensors for text modality
# Same structure: batch of 2, varying lengths, feature dim 4
text_feats = [
    torch.randn(3, 4),  # sequence 1: 3 timesteps, 4 features
    torch.randn(5, 4),  # sequence 2: 5 timesteps, 4 features
]

# Create labels (1D sequences with varying lengths)
# Batch of 2 label sequences
labels = [
    torch.tensor([0, 1, 0]),      # sequence 1: 3 labels
    torch.tensor([1, 0, 1, 0, 1]), # sequence 2: 5 labels
]

# Create segments (2D sequences with varying lengths, segment dim 2)
segments = [
    torch.randn(3, 2),  # sequence 1: 3 timesteps, 2 segment features
    torch.randn(5, 2),  # sequence 2: 5 timesteps, 2 segment features
]

ARGS = {
    "vis_feats": vis_feats,
    "aud_feats": aud_feats,
    "text_feats": text_feats,
    "labels": labels,
    "segments": segments,
    "padding_val": 0.0,
}
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 — 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
sigmoid_focal_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yongliang-wu/repurpose/models/losses.py
code served (permissive licence) · get_code("5500f7dbd94b2c87")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 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 torch
import torch.nn.functional as F

torch.manual_seed(0)

# Create small tensors for inputs and targets
# inputs: predictions (logits) - shape [2, 4]
# targets: binary labels - shape [2, 4]
inputs = torch.randn(2, 4)
targets = torch.randint(0, 2, (2, 4)).float()

# Parameters
alpha = 0.7
gamma = 2.0
reduction = 'none'

ARGS = {
    'inputs': inputs,
    'targets': targets,
    'alpha': alpha,
    'gamma': gamma,
    'reduction': reduction
}
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 Tensor, ndim 2, dtype family float — no output shape is stated: observe_signature.py could not observe it (import:OSError)
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
soft_nms_intervals_cpu Ran
ran; our contract draft was wrong, not the code
yongliang-wu/repurpose/models/softnms.py
code served (permissive licence) · get_code("4c6f706544595ef0")
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 (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Create small tensors for the function parameters
# out_cls_logits: shape (seq_len,) - class logits/scores
seq_len = 5
out_cls_logits = torch.randn(seq_len, dtype=torch.float32)

# out_offsets: shape (seq_len, 2) - begin and end offsets
out_offsets = torch.randn(seq_len, 2, dtype=torch.float32)
# Make sure offsets are reasonable (begin < end)
out_offsets = torch.abs(out_offsets)
out_offsets[:, 1] = out_offsets[:, 0] + torch.abs(torch.randn(seq_len))

# sigma: gaussian parameter for soft-NMS
sigma = 0.5

# thresh: score threshold for keeping segments
thresh = 0.001

# max_seg_num: maximum number of segments to return
max_seg_num = 20

ARGS = {
    "out_cls_logits": out_cls_logits,
    "out_offsets": out_offsets,
    "sigma": sigma,
    "thresh": thresh,
    "max_seg_num": max_seg_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 (2,) — shape (2,) 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
ctr_diou_loss_1d Not yet run
unverified (harvested, no recorded run)
yongliang-wu/repurpose/models/losses.py
code served (permissive licence) · get_code("5ed07117b8d00d9c")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 11 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.

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 demand for producing short-form videos for sharing on social media platforms has experienced significant growth in recent times. Despite notable advancements in the fields of video summarization and highlight detection, which can create partially usable short films from raw videos, these approaches are often domain-specific and require an in-depth understanding of real-world video content. To tackle this predicament, we propose Repurpose-10K, an extensive dataset comprising over 10,000 videos with more than 120,000 annotated clips aimed at resolving the video long-to-short task. Recognizing the inherent constraints posed by untrained human annotators, which can result in inaccurate annotations for repurposed videos, we propose a two-stage solution to obtain annotations from real-world user-generated content. Furthermore, we offer a baseline model to address this challenging task by integrating audio, visual, and caption aspects through a cross-modal fusion and alignment framework. We aspire for our work to ignite groundbreaking research in the lesser-explored realms of video repurposing.

For agents

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

get_harvested_code_for_paper("2412.08879")
get_code_for_paper("2412.08879")
have("2412.08879")

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

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

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

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

Connect an agent — have() is free.