system
stringclasses
1 value
prompt
stringlengths
78
12.9k
chosen
stringlengths
370
27.9k
rejected
stringlengths
327
28k
category
stringclasses
5 values
source
stringclasses
8 values
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I’m studying inference-time behavior of batch normalization and want a forward pass that uses the frozen running statistics. Show normalization using the stored mean/variance, with a lock icon over the stats to indicate they are frozen. Compare to a quick training-time panel, highlighting activation differences caused ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class BatchNormInferenceBehavior(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class BatchNormInferenceBehavior(Scene): def construct(self): title = Text('Batch Normalization: Inference Behavior', font_size=40) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) self.wait(0.3) self.play(FadeOut(title)) ...
narrated_pedagogical_preference
nabin2004/manim-narrated-dpo-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Here’s an enhanced version of the animation with additional features: The animation begins by presenting the wave equation, `\frac{\partial^2 u}{\partial t^2} - c^2 \frac{\partial^2 u}{\partial x^2} = 0`, with a smooth `Write` effect. As the equation appears, an explanatory text fades in above it: *"This is the classi...
```python from manim import * import numpy as np class WaveEquationScene(Scene): def construct(self): # Initial wave equation wave_eq = MathTex( r"\frac{\partial^2 u}{\partial t^2} - c^2 \frac{\partial^2 u}{\partial x^2} = 0", font_size=40 ) explanation = Tex...
```python from manim import * import numpy as np class WaveEquationScene(Scene): def construct(self): # Initial wave equation wave_eq = TexMobject( r"\frac{\partial^2 u}{\partial t^2} - c^2 \frac{\partial^2 u}{\partial x^2} = 0", font_size=40 ) explanation = ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning about denoising diffusion models for sequences and want a clear intuition. Animate the forward noising process and the reverse denoising steps, adapted to discrete tokens or time series. Show how the noise schedule affects sample quality, with plots of intermediate denoised estimates and a final generated ...
```python from manim import * class DenoisingDiffusionModel(Scene): def construct(self): title = Text('Denoising Diffusion Models', font_size=40, color=BLUE) subtitle = Text('For Sequence Data', font_size=28, color=WHITE) title_group = VGroup(title, subtitle).arrange(DOWN, buff=0.3) ...
```python from manim import * class DenoisingDiffusionModel(Scene): def construct(self): title = Text('Denoising Diffusion Models', font_size=40, color=BLUE) subtitle = Text('For Sequence Data', font_size=28, color=WHITE) title_group = VGroup(title, subtitle).arrange(DOWN, buff=0.3) ...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning residual networks and want to visualize the residual pathway as a thick highway preserving gradient flow. Animate the forward pass along the highway while other paths are dimmed, then show gradients traveling back along the same path. Emphasize identity mapping and how it aids optimization. Include a compa...
```python from manim import * class ResidualNetworksVisualization(ThreeDScene): def construct(self): self.set_camera_orientation(phi=60 * DEGREES, theta=-45 * DEGREES, zoom=0.8) title = Text('Residual Networks', font_size=48, color=BLUE) subtitle = Text('ResNet Visualization', font_size=32...
```python from manim import * class ResidualNetworksVisualization(ThreeDScene): def construct(self): self.set_camera_orientation(phi=60 * DEGREES, theta=-45 * DEGREES, zoom=0.8) title = Text('Residual Networks', font_size=48, color=BLUE) subtitle = Text('ResNet Visualization', font_size=32...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm studying statistics and want a visual of CDFs that evolves as we collect more samples. Start from a small sample empirical CDF, then overlay the theoretical CDF, and show convergence as sample size grows. Include multiple distributions, shading to indicate probability mass, and a timeline that demonstrates how the ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import math import random class EmpiricalCDFConvergence(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import math import random class EmpiricalCDFConvergence(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
The following Manim CE scene failed to compile. Truncated traceback: ValueError: latex error converting to dvi. Unicode character ₁ (U+2081) Fix the code. Return a complete working scene. Do not keep the invalid constructor kwargs or Unicode subscripts. ```python from manim import * from manim import config Text.set...
```python from manim import * from manim import config Text.set_default(font='SimHei') class FundamentalFrequency(Scene): def construct(self): title = Text('Fundamental Frequency (F0)', font_size=34, color=WHITE, weight=BOLD) title.to_edge(UP, buff=0.5) title_line = Line(LEFT, RIGHT, color...
```python from manim import * from manim import config Text.set_default(font='SimHei') class FundamentalFrequency(Scene): def construct(self): title = Text('Fundamental Frequency (F0)', font_size=34, color=WHITE, weight=BOLD) title.to_edge(UP, buff=0.5) title_line = Line(LEFT, RIGHT, color...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm studying loss functions and want a step-by-step visualization of cross-entropy: start with logits, compute softmax, then log, then take the negative mean. Show intermediate tensors/shapes, with a running loss value over a batch and a numeric example.
```python from manim import * class CrossEntropyLossScene(Scene): def construct(self): title = Text('Cross Entropy Loss Visualization', font_size=36) title.to_edge(UP, buff=0.5) self.play(FadeIn(title)) self.wait(0.5) opening_text = Text('Imagine training a model to classif...
```python from manim import * class CrossEntropyLossScene(Scene): def construct(self): title = Text('Cross Entropy Loss Visualization', font_size=36) title.to_edge(UP, buff=0.5) self.play(FadeIn(title)) self.wait(0.5) opening_text = Text('Imagine training a model to classif...
invalid_axes_kwarg
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching an undergrad ML course and want to visualize a forward pass through a 3-layer MLP where the input vector expands from 4 to 8 in the first hidden layer and then contracts to 3 at the output. Show activations propagating through each layer, with animated weight matrices and dimensionality changes clearly lab...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class ForwardPassScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class ForwardPassScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning undergrad numerical analysis. Create a visual demonstration of Newton's method for root finding on a non-linear function. Show the 2D plot of f(x), its tangent at the current iterate, and the sequence of iterates from several starting points; highlight basins of attraction. Include a short error-progress p...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class NewtonMethodScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) # === ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class NewtonMethodScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) # === ...
invalid_axes_kwarg
synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create a Manim animation for a 16:9 classroom-style educational video on standard electrode potential. The video should flow naturally as follows: 1. Start with a title screen displaying "Standard Electrode Potential" in large text, centered on a clean background. 2. Display the question on screen: "What is the stand...
```python from manim import * import numpy as np import random import math class StandardElectrodePotential(Scene): def construct(self): # Color Palette BG_COLOR = "#0f0f0f" TEXT_COLOR = "#d4d4d4" ACCENT_BLUE = "#4a9eff" ACCENT_GREEN = "#6ba76e" ACCENT_ORANGE = "#e89...
```python from manim import * import numpy as np import random import math class StandardElectrodePotential(Scene): def construct(self): # Color Palette BG_COLOR = "#0f0f0f" TEXT_COLOR = "#d4d4d4" ACCENT_BLUE = "#4a9eff" ACCENT_GREEN = "#6ba76e" ACCENT_ORANGE = "#e89...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm studying sequence models and need to see padding strategy for causal convolutions. Visualize left padding to maintain sequence length, showing input sequences, padded zeros, and the resulting feature map. Include a timeline of how padding decisions affect prediction alignment, with a bonus: compare with no padding.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService MARGIN = 0.5 class CausalConvolutionPadding(VoiceoverScene): def construct(self): # [SETUP] self.set_speech_service(GTTSService(transcription_model="base")) ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService MARGIN = 0.5 class CausalConvolutionPadding(VoiceoverScene): def construct(self): # [SETUP] self.set_speech_service(GTTSService(transcription_model="base")) ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er...
```python from manim import * from manim import config Text.set_default(font='SimHei') class PolicyGradientIntro(Scene): def construct(self): title = Text('Introduction to Policy Gradient Methods', font_size=40, weight=BOLD) subtitle = Text('Basic Forms of Parametrized Policies', font_size=30, col...
```python from manim import * from manim import config Text.set_default(font='SimHei') class PolicyGradientIntro(Scene): def construct(self): title = Text('Introduction to Policy Gradient Methods', font_size=40, weight=BOLD) subtitle = Text('Basic Forms of Parametrized Policies', font_size=30, col...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create a 10-second Manim scene where an input token fans out to three feature boxes. Use LaggedStart to reveal the arrows and AnimationGroup to light up the boxes together at the end.
```python from manim import * class LaggedStartAttentionFanout(Scene): def construct(self): title = Text("Animation Composition for Staged Reveal", font_size=34).to_edge(UP) token = RoundedRectangle(corner_radius=0.1, width=1.6, height=0.75, color=BLUE_D, fill_opacity=0.16).shift(LEFT * 4) ...
```python from manim import * class LaggedStartAttentionFanout(Scene): def construct(self): title = Text("Animation Composition for Staged Reveal", font_size=34) token = RoundedRectangle(corner_radius=0.1, width=1.6, height=0.75, color=BLUE_D, fill_opacity=0.16) token_label = Text("token", ...
spatial_layout_overlap
synthetic_hard_neg:sebastianboehler/autoresearch-manim
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching optimization methods and want a side-by-side animation calculating dL/dw for a single weight by finite difference, then comparing to the analytical gradient. Show a simple quadratic loss, move w in small steps, display numerical approximations, and highlight the error as we vary the step size h.
```python from manim import * class FiniteDifferenceScene(Scene): def construct(self): axes = Axes(x_range=[-3, 3, 1], y_range=[-1, 5, 1], axis_config={'color': WHITE}, x_length=10, y_length=5) hill_func = lambda x: 0.5 * x ** 2 hill_graph = axes.plot(hill_func, color=BLUE, x_range=[-3, 3]...
```python from manim import * class FiniteDifferenceScene(Scene): def construct(self): axes = Axes(x_range=[-3, 3, 1], y_range=[-1, 5, 1], axis_config={'color': WHITE}, x_length=10, y_length=5) hill_func = lambda x: 0.5 * x ** 2 hill_graph = axes.get_graph(hill_func, color=BLUE, x_range=[-...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create a step-by-step educational Manim CE lecture scene explaining: Proof of Pythagorean Theorem via geometric rearrangement. ```python from manim import * import numpy as np class PedagogicalScene232(Scene): def construct(self): title = Title("Pythagorean Theorem: $a^2 + b^2 = c^2$") formula = M...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class PedagogicalScene232(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class PedagogicalScene232(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching an undergrad course on deep learning and want a step-by-step visualization of a forward pass through an MLP with BatchNorm. Visualize each intermediate tensor (x, z1, a1, bn_out, out) and label them with explicit variable names; show shapes too. Include brief commentary on where normalization acts and how ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class MLPForwardPass(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) # Title ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class MLPForwardPass(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) # Title ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create an interactive Manim CE animation demonstrating: Riemann Rectangles adapting dynamically with ValueTracker. Use updaters and ValueTracker. ```python from manim import * import numpy as np class DynamicScene952(Scene): def construct(self): ax = Axes(x_range=[0, 4, 1], y_range=[0, 5, 1], x_length=6, ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService MARGIN = 0.5 class DynamicScene952(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_frac max_h = co...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService MARGIN = 0.5 class DynamicScene952(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_frac max_h = co...
invalid_axes_kwarg
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching software engineering and want a live visualization of how a linter detects style and quality issues. Animate the code as blocks, highlight syntax violations, and show fix suggestions with before/after views. Plot a running score and demonstrate how config options influence warnings during a small refactor.
```python from manim import * class LinterDetectionVisualization(Scene): def construct(self): title = Text('Linter Detection Visualization', font_size=48, color=BLUE) subtitle = Text('Catching Code Issues Before They Catch You', font_size=28, color=GRAY) subtitle.next_to(title, DOWN, buff=...
```python from manim import * class LinterDetectionVisualization(Scene): def construct(self): title = Text('Linter Detection Visualization', font_size=48, color=BLUE) subtitle = Text('Catching Code Issues Before They Catch You', font_size=28, color=GRAY) subtitle.next_to(title, DOWN, buff=...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching an undergrad ML class and want to compare a naive loop-based gradient computation against vectorized matrix operations. Animate a dataset, show per-sample gradients accumulating in a loop, then transform to a matrix product that yields the same result. Highlight performance implications with a simulated ti...
```python from manim import * class LoopVsVectorizedGradient(Scene): def construct(self): title = Text('Loop-Based vs Vectorized', font_size=36, color=BLUE) title2 = Text('Gradient Computation', font_size=36, color=BLUE) title_group = VGroup(title, title2).arrange(DOWN, buff=0.3) s...
```python from manim import * class LoopVsVectorizedGradient(Scene): def construct(self): title = Text('Loop-Based vs Vectorized', font_size=36, color=BLUE) title2 = Text('Gradient Computation', font_size=36, color=BLUE) title_group = VGroup(title, title2).arrange(DOWN, buff=0.3) s...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning backpropagation and want a step-by-step expansion of the equations for a single neuron. Visually display each partial derivative term explicitly, such as dw, db, and the chain rule components, with the terms highlighted as they propagate backward. Include small algebraic annotations synchronized with the a...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class BackpropagationLecture(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class BackpropagationLecture(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm studying hierarchical decoders; visualize the downsampling and upsampling paths with skip connections, showing how information flows from coarse to fine scales and back in a decoder.
```python from manim import * class HierarchicalDecodersScene(Scene): def construct(self): title = Text('Hierarchical Decoders', font_size=36, color=BLUE) title.to_edge(UP, buff=0.4) subtitle = Text('Visualizing structured decoding in AI', font_size=20, color=GRAY) subtitle.next_to...
```python from manim import * class HierarchicalDecodersScene(Scene): def construct(self): title = Text('Hierarchical Decoders', font_size=36, color=BLUE) title subtitle = Text('Visualizing structured decoding in AI', font_size=20, color=GRAY) subtitle self.play(Write(title...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching undergrads a probabilistic modeling course and want a vivid visualization of NLL versus cross-entropy. Show two overlapping integral curves that reveal when they diverge as the predicted probability for the true class changes. Use color-coded curves, shading for sample contributions, and a side-by-side cap...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import math class ProbabilisticModelingScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="bas...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import math class ProbabilisticModelingScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="bas...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching an undergrad course on PyTorch architectures and want an animated nn.Module tree visualization. Start from a root module and recursively unfold into child modules, showing names, shapes, and parent-child relations. Add a zoomed-in view of a selected submodule’s internals and a high-level summary of the ove...
```python from manim import * class VisualizingPyTorchModuleArchitectures(Scene): def construct(self): title = Text('Visualizing PyTorch Module Architectures', font_size=36) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) question = Text('How are PyTorch models st...
```python from manim import * class VisualizingPyTorchModuleArchitectures(Scene): def construct(self): title = Text('Visualizing PyTorch Module Architectures', font_size=36) title self.play(Write(title), run_time=2.0) question = Text('How are PyTorch models structured?', font_size=...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching BN gradients and want to verify manual BN gradient calculations against autograd using a numeric checker. Animate a small batch-normalized layer, display manually derived gradients alongside numerical approximations, and show how the checker converges as the finite-difference epsilon is varied.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class BatchNormalizationScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class BatchNormalizationScene(Scene): def construct(self): title = Text('Batch Normalization Gradients', font_size=48, color=BLUE) subtitle = Text('Understanding Gradient Flow in Deep Learning', font_size=28, color=GRAY) subtitle.next_to(title, DOWN, buff=0.5)...
narrated_pedagogical_preference
nabin2004/manim-narrated-dpo-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Display a stationary line from left to right. Show a second line rotating around a point on the left, forming an angle with the stationary line. Label the angle with the Greek letter theta (θ). Animate the rotating line to change its angle, updating the angle and its label dynamically. Change the color of the theta lab...
```python from manim import * class MovingAngle(Scene): def construct(self): rotation_center = LEFT theta_tracker = ValueTracker(110) line1 = Line(LEFT, RIGHT) line_moving = Line(LEFT, RIGHT) line_ref = line_moving.copy() line_moving.rotate( theta_tracke...
```python from manim import * class MovingAngle(Scene): def construct(self): rotation_center = LEFT theta_tracker = ValueTracker(110) line1 = Line(LEFT, RIGHT) line_moving = Line(LEFT, RIGHT) line_ref = line_moving.copy() line_moving.rotate( theta_tracke...
legacy_api_hallucination
synthetic_hard_neg:SuienR/ManimBench-v1
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning about gradient flow and want a cascade of shrinking waterfall bars representing gradients passing through layers. Visualize a top-down stack of layers, each layer's bars shrinking as backprop reduces magnitude, with color cues for sign and a legend showing scale. Include transitions across epochs and a qui...
```python from manim import * import numpy as np class GradientFlowVisualization(Scene): def construct(self): title = Text('Gradient Flow Visualization', font_size=36, color=BLUE) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) axes = Axes(x_range=[-4, 4, 1], y_ra...
```python from manim import * import numpy as np class GradientFlowVisualization(Scene): def construct(self): title = Text('Gradient Flow Visualization', font_size=36, color=BLUE) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) axes = Axes(axis_color=BLUE, x_range...
invalid_axes_kwarg
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Could you create an educational animation that illustrates the fundamental concepts of the wave equation, visually explains its components, demonstrates a sinusoidal solution, and shows how the principle of superposition applies to wave solutions?
```python from manim import * class AreaUnderCurveExample(Scene): def construct(self): # Writing the function and the area to find function_tex = MathTex(r"f(x) = x^2") area_tex = MathTex(r"\int_0^2 x^2 \,dx") problem_group = VGroup(function_tex, area_tex).arrange(DOWN) self...
```python from manim import * class AreaUnderCurveExample(Scene): def construct(self): # Writing the function and the area to find function_tex = TexMobject(r"f(x) = x^2") area_tex = MathTex(r"\int_0^2 x^2 \,dx") problem_group = VGroup(function_tex, area_tex).arrange(DOWN) s...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching an undergrad course on sequence models and want a probabilistic sampling visualization. Animate a spinning wheel divided into character slices, landing on the next character according to the learned distribution. Show the probability weights as arc lengths and reflect the sample decision with a glow and a ...
```python from manim import * import random class ProbabilisticSamplingVisualization(Scene): def construct(self): STRATUM_RED = '#FF6B6B' STRATUM_TEAL = '#4ECDC4' STRATUM_BLUE = '#45B7D1' SAMPLE_HIGHLIGHT = '#FFD93D' POPULATION_GRAY = '#A0A0A0' title = Text('Probabi...
```python from manim import * import random class ProbabilisticSamplingVisualization(Scene): def construct(self): STRATUM_RED = '#FF6B6B' STRATUM_TEAL = '#4ECDC4' STRATUM_BLUE = '#45B7D1' SAMPLE_HIGHLIGHT = '#FFD93D' POPULATION_GRAY = '#A0A0A0' title = Text('Probabi...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching a model regularization module and want a visualization showing how batch normalization reduces reliance on dropout, with validation loss curves illustrating the regularizing effect.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class BatchNormalizationScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class BatchNormalizationScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Here’s an enhanced version of the animation that retains all the original features while adding significant new elements: The animation begins by smoothly drawing a carbon atom (represented as a gray circle with a white "C" label) using the original `carbon()` function, with the circle's size and text dynamically adju...
```python from manim import * class CarbonAtomAnimation(Scene): def construct(self): # Create grid background grid = NumberPlane( x_range=(-7, 7), y_range=(-4, 4), background_line_style={ "stroke_color": BLUE_E, "stroke_width": 1, ...
```python from manim import * class CarbonAtomAnimation(Scene): def construct(self): # Create grid background grid = NumberPlane( x_range=(-7, 7), y_range=(-4, 4), background_line_style={ "stroke_color": BLUE_E, "stroke_width": 1, ...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er...
```python from manim import * from manim import config Text.set_default(font='SimHei') class CarbonFootprintMeasurement(Scene): def construct(self): context = Text('AI and Environmental Sustainability', font_size=16, color=GRAY) context.to_corner(UL) self.add(context) title = Text(...
```python from manim import * from manim import config Text.set_default(font='SimHei') class CarbonFootprintMeasurement(Scene): def construct(self): context = Text('AI and Environmental Sustainability', font_size=16, color=GRAY) context.to_corner(UL) self.add(context) title = Text(...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
The following Manim CE script crashed with this traceback: ```text TypeError: Text.__init__() got an unexpected keyword argument 'size' ``` Fix the bug and provide the corrected, fully compilable Manim CE code: ```python from manim import * import numpy as np class ApiValidBrace143(Scene): def construct(self): ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class ApiValidBrace143(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_fra...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class ApiValidBrace143(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_fra...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
The following Manim CE scene failed to compile. Truncated traceback: TypeError: Mobject.__init__() got an unexpected keyword argument 'max_magnitude' Fix the code. Return a complete working scene. Do not keep the invalid constructor kwargs or Unicode subscripts. ```python from manim import * class WaveEquationScene...
```python from manim import * class WaveEquationScene(Scene): def construct(self): # Introduce the wave equation wave_eq = MathTex(r"\frac{\partial^2 u}{\partial t^2}", "=", "c^2", r"\frac{\partial^2 u}{\partial x^2}") self.play(Write(wave_eq)) self.wait(2)...
```python from manim import * class WaveEquationScene(Scene): def construct(self): # Introduce the wave equation wave_eq = MathTex(r"\frac{\partial^2 u}{\partial t^2}", "=", "c^2", r"\frac{\partial^2 u}{\partial x^2}") self.play(Write(wave_eq)) self.wait(2)...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create an interactive Manim CE animation demonstrating: Tangent line dynamically tracking curve f(x) = x^2. Use updaters and ValueTracker. ```python from manim import * import numpy as np class DynamicScene561(Scene): def construct(self): ax = Axes(x_range=[-3, 3, 1], y_range=[0, 9, 3], x_length=6, y_leng...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class DynamicScene561(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_frac...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class DynamicScene561(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_frac...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create an educational ManimCE animation on 'Distribution of Prime Numbers' (The Hidden Rhythm of Primes): How closely does the distribution of prime numbers within the first million integers approximate a logarithmic curve? Visual style guidance: Clean animation style with a limited palette emphasizing blue for primes,...
```python from manim import * import numpy as np class PrimeDistribution(Scene): def construct(self): # Title title = Text("The Hidden Rhythm of Primes") self.play(Write(title)) self.wait(1) self.play(title.animate.to_edge(UP)) # Prime numbers introduction ...
```python from manim import * import numpy as np class PrimeDistribution(Scene): def construct(self): # Title title = Text("The Hidden Rhythm of Primes") self.play(Write(title)) self.wait(1) self.play(title.animate) # Prime numbers introduction prime...
spatial_layout_overlap
synthetic_hard_neg:bespokelabs/bespoke-manim
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Display a 3D scene with the camera angled slightly from above and to the side. Show three colored spheres: a small red sphere positioned to the right, a large green sphere placed in the lower-left area, and a large blue sphere located in the upper-left area. All spheres appear simultaneously and remain static in the sc...
```python from manim import * class ExampleSphere(ThreeDScene): def construct(self): self.set_camera_orientation(phi=PI / 6, theta=PI / 6) sphere1 = Sphere( center=(3, 0, 0), radius=1, resolution=(20, 20), u_range=[0.001, PI - 0.001], v_ra...
```python from manim import * class ExampleSphere(Scene): def construct(self): self.set_camera_orientation(phi=PI / 6, theta=PI / 6) sphere1 = Sphere( center=(3, 0, 0), radius=1, resolution=(20, 20), u_range=[0.001, PI - 0.001], v_range=[0...
wrong_3d_scene_base
synthetic_hard_neg:SuienR/ManimBench-v1
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning robustness to misspecification and want to animate sensitivity analysis: perturb priors/likelihoods, display how outputs shift, and plot robustness measures across a parameter grid with quick scenario comparisons.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class RobustnessToMisspecification(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class RobustnessToMisspecification(Scene): def construct(self): title = Text('Robustness To Misspecification', font_size=40, color=BLUE) subtitle = Text("When Models Don't Match Reality", font_size=24, color=GRAY) title_group = VGroup(title, subtitle).arrange(...
narrated_pedagogical_preference
nabin2004/manim-narrated-dpo-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create an educational ManimCE animation on 'Bézout's Identity' (Shaping Numbers: The Geometry of Bézout's Identity): What geometric transformation results from altering the coefficients in Bézout's Identity for fixed integer pairs? Visual style guidance: The animation uses a clear, informative style with accents in gri...
```python from manim import * class BezoutIdentityScene(Scene): def construct(self): # Title title = Text("Shaping Numbers: The Geometry of Bezout's Identity", font_size=32) title.to_edge(UP) self.play(Write(title)) self.wait(1) # Display Bezout's Identity e...
```python from manim import * class BezoutIdentityScene(Scene): def construct(self): # Title title = Text("Shaping Numbers: The Geometry of Bezout's Identity", font_size=32) title.to_edge(UP) self.play(Write(title)) self.wait(1) # Display Bezout's Identity e...
legacy_api_hallucination
synthetic_hard_neg:bespokelabs/bespoke-manim
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching probability-inspired NLP and want a parallel visualization of two bigram models trained on different datasets. Start both from the same initial character and let each model sample next characters, showing two diverging strings over time. Plot the probability mass flowing through the bigram table as the str...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class ProbabilityNLP(VoiceoverScene): def construct(self): # Set up speech service self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cach...
```python from manim import * class ProbabilityNLP(Scene): def construct(self): title = Text('Probability Inspired NLP', font_size=48, color=BLUE) subtitle = Text('Where Statistics Meets Language', font_size=28, color=GRAY) title_group = VGroup(title, subtitle).arrange(DOWN, buff=0.5) ...
narrated_pedagogical_preference
nabin2004/manim-narrated-dpo-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Can you create an educational animation that explains the solution to the heat equation using mathematics and on-screen text descriptions? I want the video to start by displaying the partial differential equation used for modeling the distribution of heat in a given region over time. Then, add some text to explain that...
```python from manim import * class DampedOscillator(Scene): def construct(self): # Introduce the differential equation ode = MathTex(r"y'' + 2\gamma y' + \omega^2 y = 0") self.play(Write(ode)) self.wait(1) # Add an explanation for the type of equation explanation1 ...
```python from manim import * class DampedOscillator(Scene): def construct(self): # Introduce the differential equation ode = MathTex(r"y'' + 2\gamma y' + \omega^2 y = 0") self.play(Write(ode)) self.wait(1) # Add an explanation for the type of equation explanation1 ...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching an undergrad ML course and want a visual explanation of CutMix regularization that blends images and labels to encourage robust representations. Show two images blended by a mask, with the mixed label proportional to the area, and the network's feature maps responding smoothly. Include scenes comparing sta...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class CutMixRegularizationExplanation(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class CutMixRegularizationExplanation(Scene): def construct(self): title = Text('CutMix Regularization Explained', font_size=40) subtitle = Text('A Powerful Data Augmentation Technique', font_size=24, color=BLUE) title_group = VGroup(title, subtitle).arrange(D...
narrated_pedagogical_preference
nabin2004/manim-narrated-dpo-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning automatic differentiation and want a visual of the chain rule as a backward flow of gradients through a simple two-layer expression tree. I'd like to see each derivative colored along the path and multiplications highlighted as they propagate toward the input.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class AutomaticDifferentiationChainRule(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") )...
```python from manim import * class AutomaticDifferentiationChainRule(Scene): def construct(self): title = Text('Automatic Differentiation & Chain Rule', font_size=36) subtitle = Text('How Deep Learning Computes Gradients', font_size=24, color=BLUE) title_group = VGroup(title, subtitle).ar...
narrated_pedagogical_preference
nabin2004/manim-narrated-dpo-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create a Manim animation for a 12th-grade geography class on a 16:9 screen that visualizes land use changes in India from 1951 to 2001. Start with a title slide introducing the topic "Land Use Changes in India: 1951 to 2001". Then display the question "What was the percentage of land used for forests in 1951 and 2001?"...
```python from manim import * import numpy as np class LandUseChangesIndia(Scene): def construct(self): # Set background color to Educational Dark Theme self.camera.background_color = "#0f0f0f" # --- PHASE 1: Introduction --- # Clear title at the top title = Text("L...
```python from manim import * import numpy as np class LandUseChangesIndia(Scene): def construct(self): # Set background color to Educational Dark Theme self.camera.background_color = "#0f0f0f" # --- PHASE 1: Introduction --- # Clear title at the top title = Text("L...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create a Manim animation for a 6th grade advanced science lesson on the classification of matter and materials. The video should be 16:9 format and follow this structure: 1. Title slide: "Classification of Matter and Materials" in large, clear text centered on screen 2. Introduction section: Display the text "What is...
```python from manim import * import numpy as np import random import math class MatterClassification(Scene): def construct(self): # --- Color Palette --- BG_COLOR = "#0f0f0f" TEXT_COLOR = "#d4d4d4" ACCENT_BLUE = "#4a9eff" ACCENT_GREEN = "#6ba76e" ACCENT_ORANGE = "#e...
```python from manim import * import numpy as np import random import math class MatterClassification(Scene): def construct(self): # --- Color Palette --- BG_COLOR = "#0f0f0f" TEXT_COLOR = "#d4d4d4" ACCENT_BLUE = "#4a9eff" ACCENT_GREEN = "#6ba76e" ACCENT_ORANGE = "#e...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Display a directed graph with five labeled nodes arranged in a circular layout, but with all arrows styled to appear undirected by removing their tips. One edge, from node 3 to node 4, is colored red for emphasis. After the graph is created, several nodes animate to new positions in 3D space: node 1 moves to the upper ...
```python from manim import * class UndirectedMovingDiGraph(Scene): def construct(self): vertices = [i for i in range(5)] edges = [ (0, 1), (1, 2), (3, 2), (3, 4), ] edge_config = { "stroke_width": 2, "tip_conf...
```python from manim import * class UndirectedMovingDiGraph(Scene): def construct(self): vertices = [i for i in range(5)] edges = [ (0, 1), (1, 2), (3, 2), (3, 4), ] edge_config = { "stroke_width": 2, "tip_conf...
legacy_api_hallucination
synthetic_hard_neg:SuienR/ManimBench-v1
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
The following Manim CE scene failed to compile. Truncated traceback: ValueError: latex error converting to dvi. Unicode character ₁ (U+2081) Fix the code. Return a complete working scene. Do not keep the invalid constructor kwargs or Unicode subscripts. ```python from manim import * class Main(Scene): def const...
```python from manim import * class Main(Scene): def construct(self): self.play(Transform(text,Text("GrowFromEdge - DOWN").shift(UP*2.5)), run_time=0.5) squares = [Square() for _ in range(4)] self.play(GrowFromEdge(squares[0], DOWN)) self.play(Transform(text,Text("Gr...
```python from manim import * class Main(Scene): def construct(self): self.play(Transform(text,Text("GrowFromEdge - DOWN")), run_time=0.5) squares = [Square() for _ in range(4)] self.play(GrowFromEdge(squares[0], DOWN)) self.play(Transform(text,Text("GrowFromEdge - R...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning neural nets and want to understand gated activations: show the element-wise product of Tanh (magnitude) and Sigmoid (gate). Visualize per-neuron activations as bar graphs colored by gate strength, and overlay a second color for the tanh magnitude. Animate training steps to reveal how the gate modulates inf...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class GatedActivationsScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) # =...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class GatedActivationsScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) # =...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm studying online RL and want an interactive animation that shows an agent learning while the environment changes in real time. Demonstrate the agent updating its policy with online data, contrasting offline training versus continual updates under non-stationary rewards. Visualize the distribution of Q-values across ...
```python from manim import * import numpy as np class RLVisualizationScene(ThreeDScene): def construct(self): self.set_camera_orientation(phi=60 * DEGREES, theta=-45 * DEGREES) title = Text('Online Reinforcement Learning', font_size=36, color=BLUE) title.to_edge(UP, buff=0.5) self...
```python from manim import * import numpy as np class RLVisualizationScene(ThreeDScene): def construct(self): self.set_camera_orientation(phi=60 * DEGREES, theta=-45 * DEGREES) title = Text('Online Reinforcement Learning', font_size=36, color=BLUE) title self.add_fixed_in_frame_mo...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning k-fold cross-validation and want a visualization where the dataset rotates into k train/dev partitions. Show a grid of data points that reassigns to train vs dev across folds, with a rotating partition indicator. Include an animated accuracy curve across folds and a quick recap of how each sample participa...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class KFoldVisualization(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class KFoldVisualization(Scene): def construct(self): title = Text('K-Fold Cross Validation', font_size=48, color=BLUE) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) self.wait(0.5) title_small = Text('K-Fold Cross Validation...
narrated_pedagogical_preference
nabin2004/manim-narrated-dpo-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching number sense to early undergrads and want a clear visualization of integer addition and subtraction on a number line. Show steps for adding positives and negatives, subtracting by reversals, and how to move left or right with emphasis on sign rules. Include examples with negative numbers and a few properti...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class IntegerAdditionAndSubtractionVisualization(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class IntegerAdditionAndSubtractionVisualization(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create an interactive Manim CE animation demonstrating: Orbital mechanics simulation using add_updater with dt. Use updaters and ValueTracker. ```python from manim import * import numpy as np class DynamicScene1218(Scene): def construct(self): sun = Dot(ORIGIN, radius=0.25, color=GOLD) planet = Do...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class DynamicScene1218(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_fra...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class DynamicScene1218(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_fra...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Here’s an enhanced version of the animation with additional features: The animation begins with the title **"Fourier Series Demo"** appearing at the top, followed by the original piecewise function **f(t)** being displayed. As the Fourier series definition appears, the original function smoothly transforms into the ...
```python from manim import * import numpy as np class FourierSeriesDemo(Scene): def construct(self): # Title title = Text("Fourier Series Demo", font_size=36).to_edge(UP) self.play(Write(title)) self.wait(1) # Original function f(t) original_func = MathTex("f(t) = ...
```python from manim import * import numpy as np class FourierSeriesDemo(Scene): def construct(self): # Title title = Text("Fourier Series Demo", font_size=36).to_edge(UP) self.play(Write(title)) self.wait(1) # Original function f(t) original_func = MathTex("f(t) = ...
invalid_axes_kwarg
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Display a set of axes with labels \(\Delta Q\) for the x-axis and \(T[^\circ C]\) for the y-axis. Plot a line graph with points at (0, 20), (8, 0), (38, 0), and (39, -5).
```python from manim import * class HeatDiagramPlot(Scene): def construct(self): ax = Axes( x_range=[0, 40, 5], y_range=[-8, 32, 5], x_length=9, y_length=6, x_axis_config={"numbers_to_include": np.arange(0, 40, 5)}, y_axis_config={"num...
```python from manim import * class HeatDiagramPlot(Scene): def construct(self): ax = Axes(axis_color=BLUE, x_range=[0, 40, 5], y_range=[-8, 32, 5], x_length=9, y_length=6, x_axis_config={"numbers_to_include": np.arange(0, 40, 5)}, y_...
invalid_axes_kwarg
synthetic_hard_neg:SuienR/ManimBench-v1
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Here’s an enhanced version of the animation that retains the original features while adding significant new elements: The animation begins with a purple horizontal line centered on the screen, stretching from (-3, 0) to (3, 0). As the line smoothly shifts upward by 2 units, a coordinate system fades in beneath it, w...
```python from manim import * class EnhancedLineShift(Scene): def construct(self): # Create the initial horizontal line line = Line(start=LEFT * 3, end=RIGHT * 3, color=PURPLE) # Create the coordinate system axes = Axes( x_range=[-4, 4, 1], y_range=[...
```python from manim import * class EnhancedLineShift(Scene): def construct(self): # Create the initial horizontal line line = Line(start=LEFT * 3, end=RIGHT * 3, color=PURPLE) # Create the coordinate system axes = Axes( x_range=[-4, 4, 1], y_range=[...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create an educational ManimCE animation on 'Torus Topology' (Unraveling the Mysteries of Torus Topology): What is the result of applying the concept of homotopy to continuous functions on a torus, and how can this interaction be visually represented? Visual style guidance: A blend of soft pastels and vibrant hues, with...
```python from manim import * class TorusHomotopy(Scene): def construct(self): # Title of the animation title = Text("Unraveling the Mysteries of Torus Topology", font_size=24) self.play(Write(title)) self.wait(1) self.play(title.animate.to_edge(UP)) # Intro...
```python from manim import * class TorusHomotopy(Scene): def construct(self): # Title of the animation title = Text("Unraveling the Mysteries of Torus Topology", font_size=24) self.play(Write(title)) self.wait(1) self.play(title.animate) # Introduction to t...
spatial_layout_overlap
synthetic_hard_neg:bespokelabs/bespoke-manim
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Write a Manim CE visualization using scientific Python libraries (numpy, scipy, sympy) for: Fourier Series Square Wave Approximation with NumPy.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class FourierSquareWave(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac: float = 0.9, h_frac: float = 0.9) -> Mobject: max_w = config....
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class FourierSquareWave(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac: float = 0.9, h_frac: float = 0.9) -> Mobject: max_w = config....
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
The following Manim CE scene failed to compile. Truncated traceback: TypeError: Mobject.__init__() got an unexpected keyword argument 'element_color' Fix the code. Return a complete working scene. Do not keep the invalid constructor kwargs or Unicode subscripts. ```python from manim import * class GaussBonnetTheore...
```python from manim import * class GaussBonnetTheoremScene(Scene): def construct(self): # Colors (3Blue1Brown style) blue = "#3498db" green = "#2ecc71" purple = "#9b59b6" # Title title = Text("Unwrapping Curvature", color=blue).scale(0.8).to_edge(UP) ...
```python from manim import * class GaussBonnetTheoremScene(Scene): def construct(self): # Colors (3Blue1Brown style) blue = "#3498db" green = "#2ecc71" purple = "#9b59b6" # Title title = Text("Unwrapping Curvature", color=blue).scale(0.8) subtitle =...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I’m teaching undergrads ML and want a vivid visualization of a forward pass from raw character IDs to the final cross-entropy loss. Show embedding lookup, a linear projection, a softmax, and the cross-entropy calculation, with each operation highlighted in sequence. Include separate scenes for embeddings, logits, proba...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class ForwardPassExplanation(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class ForwardPassExplanation(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create an interactive Manim CE animation demonstrating: Orbital mechanics simulation using add_updater with dt. Use updaters and ValueTracker. ```python from manim import * import numpy as np class DynamicScene638(Scene): def construct(self): sun = Dot(ORIGIN, radius=0.25, color=GOLD) planet = Dot...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class DynamicScene638(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_frac...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class DynamicScene638(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_frac...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching an advanced ML course and want a visualization of Bayesian optimization for RL where model-based planning is guided by neuroevolution. Show a population of neural policies evolving, with Bayesian optimization selecting promising candidates under model-based rollouts and constraints. Depict the surrogate up...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class BayesianOptimizationRLScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class BayesianOptimizationRLScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching a statistics/ML course and want a visual exploration of how missing data patterns affect model predictions. Show missing data mechanisms (MCAR, MAR, MNAR) with imputation options and a sensitivity heatmap of accuracy or RMSE. Include a baseline model with complete data and scenarios with increasing missing...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class MissingDataScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) # [BEAT ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class MissingDataScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) # [BEAT ...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning about gradient computation in normalization layers and want a manual derivation of gradients with respect to gamma and beta using summations over the batch. Show the algebra visually, then animate the corresponding gradient vectors flowing from the batch statistics through the gamma/beta parameters, with a...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class GradientComputationScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class GradientComputationScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning deep nets and want to visualize vanishing gradients in a 10-layer network. Animate gradient arrows at each layer so the first layer has microscopic updates and the last layer has large, colorful arrows. Include a side-by-side comparison showing how gradient magnitudes shrink as you move toward the input, w...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class VanishingGradientsScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class VanishingGradientsScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er...
```python from manim import * from manim import config Text.set_default(font='SimHei') class DifferentiationOfIntegrals(Scene): def construct(self): title = Tex('\\textbf{Differentiation of Integrals with Parameters}', font_size=40, color=BLUE) title.to_edge(UP, buff=0.2) context = Tex('\\...
```python from manim import * from manim import config Text.set_default(font='SimHei') class DifferentiationOfIntegrals(Scene): def construct(self): title = Tex('\\textbf{Differentiation of Integrals with Parameters}', font_size=40, color=BLUE) title context = Tex('\\textit{Context: Improp...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create a 30-second Manim scene that explains a simple receptive field on a grid. Highlight the center and surround regions, then animate how a bright spot in the center produces a different response than one in the surround.
```python from manim import * class NeuroscienceReceptiveFieldStory(Scene): def construct(self): title = Text("Center-Surround Receptive Fields Compare Locations", font_size=34).to_edge(UP) cells = VGroup(*[Square(side_length=0.5, stroke_color=GRAY_B, fill_opacity=0.0) for _ in range(25)]).arrange_...
```python from manim import * class NeuroscienceReceptiveFieldStory(Scene): def construct(self): title = Text("Center-Surround Receptive Fields Compare Locations", font_size=34).to_edge(UP) cells = VGroup(*[Square(side_length=0.5, stroke_color=GRAY_B, fill_opacity=0.0) for _ in range(25)]).arrange_...
legacy_api_hallucination
synthetic_hard_neg:sebastianboehler/autoresearch-manim
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching sequence models; show a time-unrolled RNN/Transformer cell by duplicating the architecture across the sequence length, with shared parameters and state carried forward. Include a storyboard of the timeline and how attention/recurrence contribute. ```python from manim import * import numpy as np class AOS...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class AOSTrajectoryScene215(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class AOSTrajectoryScene215(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning linear algebra and want a visual that builds intuition for eigenvectors and eigenvalues. Show a 2D linear map transforming the unit circle into an ellipse and highlight the eigen-directions with scaled vectors. Then extend to 3D to illustrate how the matrix decomposes into eigen-directions, with a live par...
```python from manim import * class EigenvalueScene(Scene): def construct(self): title = Text('Eigenvectors & Eigenvalues', font_size=48, color=BLUE) subtitle = Text('Visualizing Linear Transformations', font_size=28, color=GRAY) subtitle.next_to(title, DOWN, buff=0.3) self.play(Wr...
```python from manim import * class EigenvalueScene(Scene): def construct(self): title = Text('Eigenvectors & Eigenvalues', font_size=48, color=BLUE) subtitle = Text('Visualizing Linear Transformations', font_size=28, color=GRAY) subtitle.next_to(title, DOWN, buff=0.3) self.play(Wr...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Construct a clean Manim CE scene initializing RightAngle with verified keyword arguments. Ensure no deprecated ManimGL arguments (like element_color, max_value, or max_magnitude) are used.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService MARGIN = 0.5 class ApiValidRightAngle118(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac: float = 0.9, h_frac: float = 0.9) -> Mobject: max_w = config.frame_width * w...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService MARGIN = 0.5 class ApiValidRightAngle118(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac: float = 0.9, h_frac: float = 0.9) -> Mobject: max_w = config.frame_width * w...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning linear algebra and want a geometric visualization of linear combinations in R^2. Plot vectors v1 and v2, then fade in coefficients a and b to show the resulting vector a v1 + b v2 as a moving tip trace. Include the parallelogram construction, highlight independence vs dependence, and discuss how the choice...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class LinearCombinationScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class LinearCombinationScene(Scene): def construct(self): plane = NumberPlane(x_range=[-6, 6, 1], y_range=[-4, 4, 1], background_line_style={'stroke_color': BLUE_D, 'stroke_width': 1, 'stroke_opacity': 0.5}, axis_config={'stroke_color': WHITE, 'stroke_width': 2}) titl...
narrated_pedagogical_preference
nabin2004/manim-narrated-dpo-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching a graduate optimization topics course and want a geometric view of curvature. Visualize the Hessian eigenvalues as an ellipse whose axes lengths encode curvature in parameter directions. Animate gradient steps that adapt to the ellipse, slowing in directions of high curvature and speeding in flat direction...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class HessianCurvatureScene(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class HessianCurvatureScene(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er...
```python from manim import * from manim import config Text.set_default(font='SimHei') class LectureNotes(Scene): def construct(self): context_text = Text('Index Structures and Physical Storage Organization > Index Maintenance', font_size=20, color=GRAY).to_corner(UL) title1 = Text('Reorganization...
```python from manim import * from manim import config Text.set_default(font='SimHei') class LectureNotes(Scene): def construct(self): context_text = Text('Index Structures and Physical Storage Organization > Index Maintenance', font_size=20, color=GRAY) title1 = Text('Reorganization and Rebuildin...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create a 10-second Manim scene that explains a simplified Bohr model of carbon with a nucleus, two electron shells, and six electrons arranged around the shells. Label the shells and the atom name.
```python from manim import * class BohrCarbonDiagram(Scene): def construct(self): title = Text("Carbon Bohr Model", font_size=36).to_edge(UP) nucleus = Circle(radius=0.55, stroke_color=RED_E, fill_color=RED_E, fill_opacity=0.35) nucleus_label = Text("C", font_size=30).move_to(nucleus) ...
```python from manim import * class BohrCarbonDiagram(Scene): def construct(self): title = Text("Carbon Bohr Model", font_size=36) nucleus = Circle(radius=0.55, stroke_color=RED_E, fill_color=RED_E, fill_opacity=0.35) nucleus_label = Text("C", font_size=30).move_to(nucleus) shell_in...
spatial_layout_overlap
synthetic_hard_neg:sebastianboehler/autoresearch-manim
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I’m teaching optimization and want to illustrate the Adam bias correction step in early training. Animate the first (m) and second (v) moment estimates starting near zero, then show the bias-corrected estimates scaling up the step size. Include a side-by-side visualization of before/after bias correction and how the ef...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class AdamBiasCorrectionScene(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class AdamBiasCorrectionScene(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Construct a clean Manim CE scene initializing Table with verified keyword arguments. Ensure no deprecated ManimGL arguments (like element_color, max_value, or max_magnitude) are used.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService MARGIN = 0.5 class ApiValidTable31(VoiceoverScene): def construct(self): # [SETUP] self.set_speech_service(GTTSService(transcription_model="base")) def fit_in...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService MARGIN = 0.5 class ApiValidTable31(VoiceoverScene): def construct(self): # [SETUP] self.set_speech_service(GTTSService(transcription_model="base")) def fit_in...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching a Python/ML module design course and want a visualization of a module's __call__ wrapping the forward call, showing where hooks fire and the pre/post processing that happens around it.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class ModuleCallHooksScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class ModuleCallHooksScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I’m exploring sequence models and want a visual comparison of causal versus non-causal convolution. Use overlapping arrows to depict receptive fields, clearly showing how future context is excluded in causal conv and included in non-causal conv. Include a tiny input sequence and two filters sliding over it, color-codin...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class CausalVersusNonCausalConvolution(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class CausalVersusNonCausalConvolution(Scene): def construct(self): title = Text('Causal vs Non-Causal Convolution', font_size=40) subtitle = Text('Understanding Temporal Dependencies in Sequence Processing', font_size=24, color=GRAY) header = VGroup(title, su...
narrated_pedagogical_preference
nabin2004/manim-narrated-dpo-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create an educational ManimCE animation on 'The Riemann Hypothesis' (Prime Pathways: Visualizing the Riemann Hypothesis): Can we visualize the zeros of the Riemann zeta function as pathways guiding the distribution of prime numbers? Visual style guidance: A blend of dark blues and blacks with luminous whites and reds f...
```python from manim import * class RiemannHypothesis(Scene): def construct(self): # Title of the animation title = Text("Prime Pathways: Visualizing the Riemann Hypothesis") self.play(Write(title)) self.wait(1) self.play(title.animate.to_edge(UP)) # Create ...
```python from manim import * class RiemannHypothesis(Scene): def construct(self): # Title of the animation title = Text("Prime Pathways: Visualizing the Riemann Hypothesis") self.play(Write(title)) self.wait(1) self.play(title.animate) # Create coordinate a...
spatial_layout_overlap
synthetic_hard_neg:bespokelabs/bespoke-manim
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create a step-by-step educational Manim CE lecture scene explaining: Proof of Pythagorean Theorem via geometric rearrangement. ```python from manim import * import numpy as np class PedagogicalScene466(Scene): def construct(self): title = Title("Pythagorean Theorem: $a^2 + b^2 = c^2$") formula = M...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService MARGIN = 0.5 class PedagogicalScene466(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_frac max_h ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService MARGIN = 0.5 class PedagogicalScene466(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_frac max_h ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create a Manim animation for an educational video about statistical methods in data collection for Grade 11 Economics students. The video should be in 16:9 aspect ratio and follow this structure: 1. Opening scene: Display the title "Statistical Methods in Data Collection" in large, clear text at the top of the screen ...
```python from manim import * import numpy as np import random import math class StatisticalMethodsScene(Scene): def construct(self): # 1. Setup Camera and Theme self.camera.background_color = "#0f0f0f" # Colors BLUE_ACCENT = "#4a9eff" GREEN_ACCENT = "#6ba76e" ...
```python from manim import * import numpy as np import random import math class StatisticalMethodsScene(Scene): def construct(self): # 1. Setup Camera and Theme self.camera.background_color = "#0f0f0f" # Colors BLUE_ACCENT = "#4a9eff" GREEN_ACCENT = "#6ba76e" ...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning how gradient contributions accumulate when the same index appears multiple times in a batch. Visualize a tiny batch with repeated indices and show how each occurrence adds to the gradient, with a running total and final update. Include a side-by-side comparison with unique indices to highlight the differen...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import math class GradientAccumulationScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import math class GradientAccumulationScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create a Manim animation for an 11th-grade physics lesson on pressure in fluids. The video should be in 16:9 format and follow this structure: 1. Start with a title screen displaying "Pressure in Fluids" in large text with a simple blue background. 2. Show the main question: "What is the formula for calculating press...
```python from manim import * import numpy as np class PressureInFluids(Scene): def construct(self): # 1. Title Screen # Blue text on dark background as per theme requirements title = Text("Pressure in Fluids", font_size=60, color=BLUE) self.play(Write(title), run_time=1.5) ...
```python from manim import * import numpy as np class PressureInFluids(Scene): def construct(self): # 1. Title Screen # Blue text on dark background as per theme requirements title = Text("Pressure in Fluids", font_size=60, color=BLUE) self.play(Write(title), run_time=1.5) ...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning undergrad linear algebra and want a compact, feature-rich visualization of eigen decomposition. Show a real 2x2 transformation on a cloud of points, reveal eigenvectors as invariant directions and eigenvalues as scaling, then diagonalization via P and D with P^{-1}AP = D and a visual change of basis. Inclu...
```python from manim import * class EigenDecompositionVisualization(Scene): def construct(self): title = Text('Eigen Decomposition Visualization', font_size=40) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) plane = NumberPlane(x_range=[-4, 4, 1], y_range=[-3, 3,...
```python from manim import * class EigenDecompositionVisualization(Scene): def construct(self): title = Text('Eigen Decomposition Visualization', font_size=40) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) plane = NumberPlane(x_range=[-4, 4, 1], y_range=[-3, 3,...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning backprop and want to visualize how gradients accumulate when a variable feeds multiple branches. Animate a small computation graph where partial derivatives from each branch sum at the shared node, with colors showing each contribution. Let the trace show the cumulative gradient updating the shared paramet...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class BackpropagationScene(VoiceoverScene): def construct(self): # Set up speech service self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceove...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class BackpropagationScene(VoiceoverScene): def construct(self): # Set up speech service self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceove...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create an educational ManimCE animation on 'Euclidean Algorithm' ("Nature's Arithmetic: The Euclidean Algorithm & Natural Spirals"): In what way does the Euclidean Algorithm mirror patterns found in nature, such as the spirals of a sunflower or the geometry of a snail's shell? Visual style guidance: Minimalistic design...
```python from manim import * class EuclideanAlgorithmNature(Scene): def construct(self): # Title of the animation title = Text("Nature's Arithmetic: The Euclidean Algorithm & Natural Spirals", font_size=32) self.play(Write(title)) self.wait(1) self.play(FadeOut(title)) ...
```python from manim import * class EuclideanAlgorithmNature(Scene): def construct(self): # Title of the animation title = Text("Nature's Arithmetic: The Euclidean Algorithm & Natural Spirals", font_size=32) self.play(Write(title)) self.wait(1) self.play(FadeOut(title)) ...
spatial_layout_overlap
synthetic_hard_neg:bespokelabs/bespoke-manim
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er...
```python from manim import * from manim import config Text.set_default(font='SimHei') class RecursiveBranchOmissions(Scene): def construct(self): title = Text('Recursive Branch Omissions', font_size=34, color=WHITE, weight=BOLD) title.to_edge(UP, buff=0.4) title_line = Line(LEFT, RIGHT, c...
```python from manim import * from manim import config Text.set_default(font='SimHei') class RecursiveBranchOmissions(Scene): def construct(self): title = Text('Recursive Branch Omissions', font_size=34, color=WHITE, weight=BOLD) title title_line = Line(LEFT, RIGHT, color=ORANGE) t...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm studying optimization and want to visualize Adam's momentum term as an exponentially decaying average of past gradients. Animate a sequence of gradient vectors with color representing decay, and show the velocity update as a moving average that smooths the path. Include a brief note on bias-correction and a side-by...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class MomentumOptScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class MomentumOptScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) ...
invalid_axes_kwarg
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching an undergrad ML course and want a visualization of the training loop that evaluates on the dev set after every epoch. Include a vertical dashed line marking the best checkpoint and transitions showing early stopping criteria.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class EarlyStoppingScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class EarlyStoppingScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) ...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Curious about how SVD reshapes data in PCA-like fashion. Can you animate a 3D point cloud undergoing a sequence: first the original cloud, then its alignment along the left singular vectors, then scaling by the singular values, and finally projecting back to 3D with a low-rank approximation. I want to see the reconstru...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class SVDPCAScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) # [BEAT 1 | s...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class SVDPCAScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) # [BEAT 1 | s...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create an interactive Manim CE animation demonstrating: Riemann Rectangles adapting dynamically with ValueTracker. Use updaters and ValueTracker. ```python from manim import * import numpy as np class DynamicScene1082(Scene): def construct(self): ax = Axes(x_range=[0, 4, 1], y_range=[0, 5, 1], x_length=6,...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService MARGIN = 0.5 class DynamicScene1082(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_frac max_h = c...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService MARGIN = 0.5 class DynamicScene1082(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_frac max_h = c...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create an educational ManimCE animation on 'Euclidean Algorithm' (Lattice Points & The Swift Efficiency of the Euclidean Algorithm): Can the efficiency of the Euclidean Algorithm be demonstrated through a visually appealing decomposition of Lattice points? Visual style guidance: The visual style mirrors 3Blue1Brown's c...
```python from manim import * class EuclideanAlgorithm(Scene): def construct(self): # Title title = Text("Lattice Points & The Euclidean Algorithm", font_size=36) self.play(Write(title)) self.wait(1) self.play(title.animate.to_edge(UP)) # Create lattice grid...
```python from manim import * class EuclideanAlgorithm(Scene): def construct(self): # Title title = Text("Lattice Points & The Euclidean Algorithm", font_size=36) self.play(Write(title)) self.wait(1) self.play(title.animate) # Create lattice grid gri...
spatial_layout_overlap
synthetic_hard_neg:bespokelabs/bespoke-manim
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching undergrads PyTorch basics and want a vivid visualization of how register_buffer stores non-trainable tensors alongside parameters. Show the registration process, lifecycle, and how buffers are used in forward without gradients; include a side-by-side comparison with parameters.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class PyTorchRegisterBufferScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class PyTorchRegisterBufferScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create an educational ManimCE animation on 'Euler's Totient Function' (Unlocking the Secret Cycles: Euler's Totient Function): How does Euler's Totient Function relate to modular arithmetic and cyclic groups? Visual style guidance: A harmonious blend of deep blues and vibrant oranges to represent cycles and continuity ...
```python from manim import * class EulerTotientFunction(Scene): def construct(self): # Title of the animation title = Text("Unlocking the Secret Cycles: Euler's Totient Function", font_size=32, color=BLUE_D) title.to_edge(UP) self.play(Write(title)) self.wait(1) ...
```python from manim import * class EulerTotientFunction(Scene): def construct(self): # Title of the animation title = Text("Unlocking the Secret Cycles: Euler's Totient Function", font_size=32, color=BLUE_D) title.to_edge(UP) self.play(Write(title)) self.wait(1) ...
legacy_api_hallucination
synthetic_hard_neg:bespokelabs/bespoke-manim
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Construct a clean Manim CE scene initializing Brace with verified keyword arguments. Ensure no deprecated ManimGL arguments (like element_color, max_value, or max_magnitude) are used. ```python from manim import * import numpy as np class ApiValidBrace359(Scene): def construct(self): obj = Brace(Line(LEFT...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class ApiValidBrace359(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_fra...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class ApiValidBrace359(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_fra...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create an educational ManimCE animation on 'Quadratic Residues and Non-Residues' (The Secrets of Quadratic Residues Revealed): Can we visualize the distribution of quadratic residues and non-residues modulo a prime on the number line? Visual style guidance: The animation should employ a sleek, minimalist style, with sm...
```python from manim import * class QuadraticResiduesScene(Scene): def construct(self): # Title title = Text("The Secrets of Quadratic Residues Revealed", font_size=36) self.play(Write(title)) self.wait(1) self.play(FadeOut(title)) # Definition of quadratic ...
```python from manim import * class QuadraticResiduesScene(Scene): def construct(self): # Title title = Text("The Secrets of Quadratic Residues Revealed", font_size=36) self.play(Write(title)) self.wait(1) self.play(FadeOut(title)) # Definition of quadratic ...
spatial_layout_overlap
synthetic_hard_neg:bespokelabs/bespoke-manim
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I need a visual explanation of the spectral theorem for linear algebra, aimed at advanced undergrads. Show a symmetric matrix acting on 3D vectors, with eigenvectors as fixed directions and arrows colored by component contributions. Animate the decomposition of any vector into its eigenbasis and the corresponding proje...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class SpectralTheoremScene(VoiceoverScene): def construct(self): # Setup speech service self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class SpectralTheoremScene(VoiceoverScene): def construct(self): # Setup speech service self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Write Manim code for a scene illustrating the properties of modular forms in number theory. Show their behavior under modular transformations, step by step.
```python from manim import * class ModularForms(Scene): def construct(self): # Title title = Title("Modular Forms in Number Theory") title.scale(0.8) self.play(Write(title)) # Introduction intro_text = Text("Modular forms are special functions\nwith transformation ...
```python from manim import * class ModularForms(Scene): def construct(self): # Title title = Title("Modular Forms in Number Theory") title.scale(0.8) self.play(Write(title)) # Introduction intro_text = Text("Modular forms are special functions\nwith transformation ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning calculus-inspired DL and want a hand-derivation animation for a simple loss with a 2x3 weight matrix W. Show the forward pass giving a scalar loss, then animate dL/dW element by element, highlighting each partial derivative. Include a grid of W with coordinates, and a vectorized view of the gradient update...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class CalculusDLScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) #...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class CalculusDLScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) #...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning about sampling distributions and want a vivid histogram of sequence lengths from 100 independent sampling runs. Show the bars, annotate the mean and variance, and overlay a smooth density estimate. I'd like a camera pan across the histogram, with outliers highlighted in a contrasting color.
```python from manim import * import random class SamplingDistributionsScene(Scene): def construct(self): title = Text('Sampling Distributions and Histograms', font_size=48) subtitle = Text('Understanding Data Through Sampling', font_size=28) subtitle.next_to(title, DOWN, buff=0.5) ...
```python from manim import * import random class SamplingDistributionsScene(Scene): def construct(self): title = Text('Sampling Distributions and Histograms', font_size=48) subtitle = Text('Understanding Data Through Sampling', font_size=28) subtitle.next_to(title, DOWN, buff=0.5) ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Construct a clean Manim CE scene initializing DecimalMatrix with verified keyword arguments. Ensure no deprecated ManimGL arguments (like element_color, max_value, or max_magnitude) are used. ```python from manim import * import numpy as np class ApiValidDecimalMatrix97(Scene): def construct(self): obj = ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class ApiValidDecimalMatrixScene(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_wid...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class ApiValidDecimalMatrixScene(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_wid...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er...
```python from manim import * from manim import config Text.set_default(font='SimHei') class LectureNotes(Scene): def construct(self): title1 = Text('Key Concepts Review (2): Storage & Virtual Memory', font_size=36, weight=BOLD) title1.to_edge(UP, buff=0.5) subtitle1 = Text('Storage System...
```python from manim import * from manim import config Text.set_default(font='SimHei') class LectureNotes(Scene): def construct(self): title1 = Text('Key Concepts Review (2): Storage & Virtual Memory', font_size=36, weight=BOLD) title1 subtitle1 = Text('Storage Systems and Security/Shared'...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k