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...
Create a Manim animation in 16:9 format for an 11th grade advanced chemistry class on the Modern Periodic Law. Start with a title screen displaying "Modern Periodic Law and Element Properties". Then introduce the question: "Provide an example of two elements that have similar properties due to their atomic numbers, as ...
```python from manim import * import numpy as np class ModernPeriodicLaw(Scene): def construct(self): # --- Section 1: Title Screen --- # Display main title and subtitle title = Text("Modern Periodic Law", font_size=54, weight=BOLD, color="#4a9eff") subtitle = Text("and Element Prop...
```python from manim import * import numpy as np class ModernPeriodicLaw(Scene): def construct(self): # --- Section 1: Title Screen --- # Display main title and subtitle title = Text("Modern Periodic Law", font_size=54, weight=BOLD, color="#4a9eff") subtitle = Text("and Element Prop...
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...
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): main_title = Text('Physical Realization of Quantum Computers', font_size=40, color=BLUE) sub_title = Text('Brief Overview of Other Leading Hardware Approaches', fo...
```python from manim import * from manim import config Text.set_default(font='SimHei') class LectureNotes(Scene): def construct(self): main_title = Text('Physical Realization of Quantum Computers', font_size=40, color=BLUE) sub_title = Text('Brief Overview of Other Leading Hardware Approaches', fo...
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 undergrads who know calculus and basic linear algebra, but I still struggle to visualize gradient descent on rugged surfaces. Visualize a bumpy 2D loss landscape with multiple minima and saddles, and animate the gradient-descent path from several starting points. Include both the continuous gradient flow a...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class RuggedGradientDescent(ThreeDScene, VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_camera_orientation(phi=75 * DEGREES, theta=-45 * DEGREE...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class RuggedGradientDescent(ThreeDScene, VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_camera_orientation(phi=75 * DEGREES, theta=-45 * DEGREE...
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 ML diagnostics. Visualize classic train and dev loss curves with both curves starting high for underfitting, then train drops while dev stays high for overfitting, and finally both converge for the ideal case. Use color-coded regions, annotations for interpretation, and an optional overlay showing the corr...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class MLDiagnosticsCurves(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 numpy as np class MLDiagnosticsCurves(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="bas...
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...
Display a 3D scene with a coordinate axis system and a colorful surface representing the function \( z = \sin(x) \cos(y) \) over a square domain. The surface is fully opaque and shaded using a color gradient: red for lower values, yellow for mid-range, and green for higher values along the vertical (z) axis. The camera...
```python from manim import * class FillByValueExample(ThreeDScene): def construct(self): resolution_fa = 8 self.set_camera_orientation(phi=75 * DEGREES, theta=-160 * DEGREES) axes = ThreeDAxes(x_range=(0, 5, 1), y_range=(0, 5, 1), z_range=(-1, 1, 0.5)) def param_surface(u, v): ...
```python from manim import * class FillByValueExample(ThreeDScene): def construct(self): resolution_fa = 8 self.set_camera_orientation(phi=75 * DEGREES, theta=-160 * DEGREES) axes = ThreeDAxes(axis_color=BLUE, x_range=(0, 5, 1), y_range=(0, 5, 1), z_range=(-1, 1, 0.5)) def param_su...
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...
Write a Manim math scene that displays the product rule and moves a surrounding highlight box from one derivative term to the other.
```python from manim import * class MovingFrameBox(Scene): def construct(self): text=MathTex( "\\frac{d}{dx}f(x)g(x)=","f(x)\\frac{d}{dx}g(x)","+", "g(x)\\frac{d}{dx}f(x)" ) self.play(Write(text)) framebox1 = SurroundingRectangle(text[1], buff = .1) f...
```python from manim import * class MovingFrameBox(Scene): def construct(self): text=TexMobject( "\\frac{d}{dx}f(x)g(x)=","f(x)\\frac{d}{dx}g(x)","+", "g(x)\\frac{d}{dx}f(x)" ) self.play(Write(text)) framebox1 = SurroundingRectangle(text[1], buff = .1) ...
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...
The following Manim CE scene failed to compile. Truncated traceback: AttributeError: VGroup object has no attribute 'c2p' Fix the code. Return a complete working scene. Do not keep the invalid constructor kwargs or Unicode subscripts. ```python from manim import * class WaveEquationExample(Scene): def construct...
```python from manim import * class WaveEquationExample(Scene): def construct(self): # Displaying the wave equation equation = MathTex(r"\frac{\partial^2 u}{\partial t^2} = c^2 \frac{\partial^2 u}{\partial x^2}") self.play(Write(equation)) self.wait(1) # Explanation for the...
```python from manim import * class WaveEquationExample(Scene): def construct(self): # Displaying the wave equation equation = TexMobject(r"\frac{\partial^2 u}{\partial t^2} = c^2 \frac{\partial^2 u}{\partial x^2}") self.play(Write(equation)) self.wait(1) # Explanation for ...
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 a Manim animation for a Grade 12 History class on Gandhiji's Public Appearances and Perceptions. The video should be in 16:9 format and follow this flow: 1. Title Scene: Display "Gandhiji's Public Perception and Influence" centered on screen with a subtle background fade. 2. Question Scene: Show the question "...
```python from manim import * import numpy as np import random import math class GandhijiPublicPerception(Scene): def construct(self): # --- Color Palette (Educational Dark Theme) --- BG_COLOR = "#0f0f0f" TEXT_COLOR = "#d4d4d4" ACCENT_BLUE = "#4a9eff" ACCENT_GREEN = "#6ba76e...
```python from manim import * import numpy as np import random import math class GandhijiPublicPerception(Scene): def construct(self): # --- Color Palette (Educational Dark Theme) --- BG_COLOR = "#0f0f0f" TEXT_COLOR = "#d4d4d4" ACCENT_BLUE = "#4a9eff" ACCENT_GREEN = "#6ba76e...
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 advanced ML class and want to visualize gradient flow into embeddings. Visualize the gradient flow into the embedding table, but only update the rows corresponding to the current batch of characters. Show a heatmap of the embedding matrix with selective row updates, plus a side narrative explaining spar...
```python from manim import * import numpy as np class GradientFlowIntoEmbeddingsHeatmap(Scene): def construct(self): title = Text('Gradient Flow Into Embeddings', font_size=36, color=BLUE) subtitle = Text('Visualizing with Heatmaps', font_size=28, color=WHITE) title_group = VGroup(title, ...
```python from manim import * import numpy as np class GradientFlowIntoEmbeddingsHeatmap(Scene): def construct(self): title = Text('Gradient Flow Into Embeddings', font_size=36, color=BLUE) subtitle = Text('Visualizing with Heatmaps', font_size=28, color=WHITE) title_group = VGroup(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...
Create an interactive Manim CE animation demonstrating: Dynamic vector between moving points with put_start_and_end_on. Use updaters and ValueTracker. ```python from manim import * import numpy as np class DynamicScene859(Scene): def construct(self): dot1 = Dot(LEFT * 2 + DOWN, color=RED) dot2 = D...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class DynamicScene859(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 DynamicScene859(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_frac...
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 undergrads who know calculus and basic linear algebra, but I still struggle to visualize gradient descent on rugged surfaces. Visualize a bumpy 2D loss landscape with multiple minima and saddles, and animate the gradient-descent path from several starting points. Include both the continuous gradient flow a...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class GradientDescentAnimation(VoiceoverScene): def construct(self): # Set up speech service self.set_speech_service( GTTSService(voice="alb...
```python from manim import * import numpy as np class GradientDescentAnimation(Scene): def construct(self): title = Text('Visualizing Gradient Descent', font_size=48, color=BLUE) subtitle = Text('The Heart of Machine Learning Optimization', font_size=28, color=WHITE) subtitle.next_to(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...
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 ApiValidDecimalMatrix85(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 ApiValidDecimalMatrix85(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 ApiValidDecimalMatrix85(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...
Create a Manim animation for a Grade 12 History lesson on public proclamations. The video should be in 16:9 format and follow a natural classroom flow. Start with a title slide displaying "Public Proclamation and Call for Support" in the center, with "Grade 12 History" as a subtitle below. Hold this for 2 seconds. Tr...
```python from manim import * import numpy as np import random import math class PublicProclamations(Scene): def construct(self): # Set background color self.camera.background_color = "#0f0f0f" # Color Palette TEXT_COLOR = "#d4d4d4" ACCENT_BLUE = "#4a9eff" A...
```python from manim import * import numpy as np import random import math class PublicProclamations(Scene): def construct(self): # Set background color self.camera.background_color = "#0f0f0f" # Color Palette TEXT_COLOR = "#d4d4d4" ACCENT_BLUE = "#4a9eff" A...
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 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 * 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") ) ...
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 exploring Auto-Keras and want to visualize the automated model search process on a small dataset. Show a search-space evolving with architectures, early-stopping signals, and the final chosen model's performance. Include a timeline of trials, a chart of architecture complexity vs accuracy, and a contrast with a han...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class AutoKerasSearchScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) # [B...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class AutoKerasSearchScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) # [B...
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...
In a graduate linear algebra visualization, demonstrate eigen decomposition of a symmetric 3×3 matrix. Show how A acts on the unit sphere to yield an ellipsoid with principal axes along the eigenvectors and edge lengths given by the eigenvalues. Animate A = Q Λ Q^T to build intuition, with the camera orbiting to reveal...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class SymmetricEigenDecomposition3D(ThreeDScene, VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_camera_orientation(phi=70 * DEGREES, theta=-45 ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class SymmetricEigenDecomposition3D(ThreeDScene, VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_camera_orientation(phi=70 * DEGREES, theta=-45 ...
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 Transformer variants Mixtral and want to visualize how mixtures of experts route attention across tokens and layers. Show gating decisions, sparsity patterns, and a few example sentences illustrating routing paths. Demonstrate the effect on computation speed and memory, with comparisons to standard multih...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class MixturesOfExpertsAttentionVisualization(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 MixturesOfExpertsAttentionVisualization(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 teaching sequence models and want a visual of the causal constraint in convolutions. Show a filter sliding over tokens with a masked future window, illustrating how only past tokens contribute. Compare with an ungated version to emphasize information leakage, and include a step-by-step masking animation.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class CausalConvolutions(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 CausalConvolutions(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...
Here’s an enhanced version of the animation that retains all the original features while adding significant new elements: The animation begins by constructing the coordinate axes with a blue color scheme, followed by the appearance of the function label *x²* next to the graph. The parabola *y = x²* is then drawn smo...
```python from manim import * class EnhancedParabolaScene(Scene): def construct(self): # Create axes axes = Axes( x_range=[-3, 3, 1], y_range=[0, 9, 1], axis_config={"color": BLUE}, x_axis_config={"numbers_to_include": [-2, -1, 0, 1, 2]}, ...
```python from manim import * class EnhancedParabolaScene(Scene): def construct(self): # Create axes axes = Axes(axis_color=BLUE, x_range=[-3, 3, 1], y_range=[0, 9, 1], axis_config={"color": BLUE}, x_axis_config={"numbers_to_include": [-2, -1, 0, 1, ...
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...
I'm learning about WaveNet and want to see how memory usage scales with depth and dilation. Animate the memory footprint as a stack of layers, each adding buffers and receptive field, with a running total and a log-scale plot. Include scenarios with fixed vs variable dilation, and show the peak memory during audio gene...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class WaveNetMemoryUsageScaling(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class WaveNetMemoryUsageScaling(Scene): def construct(self): title = Text('WaveNet Memory Usage Scaling', font_size=48, color=BLUE) self.play(Write(title), run_time=2.0) self.wait(0.3) problem_text = Text('The Memory Challenge', font_size=36, color=RED...
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...
Write a Manim CE visualization using scientific Python libraries (numpy, scipy, sympy) for: SymPy Symbolic Derivative and animated derivation steps. ```python from manim import * import numpy as np import sympy as sp class SciComputeScene355(Scene): def construct(self): import sympy as sp ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np import sympy as sp MARGIN = 0.5 class SymPyDerivativeScene(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = con...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np import sympy as sp MARGIN = 0.5 class SymPyDerivativeScene(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = con...
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 * import numpy as np class FFTSymm...
```python from manim import * import numpy as np class FFTSymmetries(Scene): def construct(self): # Title title = Text("Unlocking the Hidden Symmetries of the FFT", font_size=28, color=BLUE_D) self.play(Write(title)) self.wait(1) self.play(FadeOut(title)) # ...
```python from manim import * import numpy as np class FFTSymmetries(Scene): def construct(self): # Title title = Text("Unlocking the Hidden Symmetries of the FFT", font_size=28, color=BLUE_D) self.play(Write(title)) self.wait(1) self.play(FadeOut(title)) # ...
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...
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 * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class EigenvalueIntuitionScene(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 EigenvalueIntuitionScene(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 would like to create an animation where a text labeled "Original Text" appears at the top of the screen and then transforms into another text labeled "Transformed Text" which moves to the bottom of the screen. This should take place over the duration of one second. Following the text transformation, I want a square t...
```python from manim import * class FourierSeriesExample(Scene): def construct(self): # Displaying the Fourier series equation fourier_eq = MathTex(r"f(x) = a_0 + \sum_{n=1}^{\infty} (a_n \cos(nx) + b_n \sin(nx))") self.play(Write(fourier_eq)) self.wait(1) # Display title ...
```python from manim import * class FourierSeriesExample(Scene): def construct(self): # Displaying the Fourier series equation fourier_eq = TexMobject(r"f(x) = a_0 + \sum_{n=1}^{\infty} (a_n \cos(nx) + b_n \sin(nx))") self.play(Write(fourier_eq)) self.wait(1) # Display titl...
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...
Curious: I want a visual explanation of eigenvectors and eigenvalues for a 2x2 matrix, aimed at undergrad linear algebra students. Show how a unit circle maps to an ellipse, highlight the invariant directions that stretch by the eigenvalues, and derive the characteristic equation visually. Then demonstrate diagonalizat...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class EigenvectorsVisualExplanation(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 EigenvectorsVisualExplanation(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 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 * class PythonMLModuleDesignVisualization(Scene): def construct(self): title = Text('Python ML Module Design', font_size=40, color=BLUE) subtitle = Text('Architecture & Workflow', font_size=28, color=GRAY) subtitle.next_to(title, DOWN, buff=0.3) title_gr...
```python from manim import * class PythonMLModuleDesignVisualization(Scene): def construct(self): title = Text('Python ML Module Design', font_size=40, color=BLUE) subtitle = Text('Architecture & Workflow', font_size=28, color=GRAY) subtitle.next_to(title, DOWN, buff=0.3) title_gr...
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 PyTorch and want to visualize how running statistics get saved into the model state_dict during training. Make a scene that lists keys (e.g., running_mean, running_var) lighting the current key in blue as it updates, with a timeline showing saving at checkpoints. Include a side panel that highlights these ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class StateDictVisualization(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class StateDictVisualization(Scene): def construct(self): title = Text('PyTorch State Dict Visualization', font_size=40, color=BLUE) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) self.wait(2.0) self.play(title.animate.scale(...
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...
The following Manim CE scene failed to compile. Truncated traceback: TypeError: Animation only works on Mobjects 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_default(font='SimHei') cla...
```python from manim import * from manim import config Text.set_default(font='SimHei') class SSMLTagsScene(Scene): def construct(self): title = Text('Detailed Explanation of Common SSML Tags', font_size=36, weight=BOLD, color=BLUE) title.to_edge(UP, buff=0.4) context = Text('TTS System Int...
```python from manim import * from manim import config Text.set_default(font='SimHei') class SSMLTagsScene(Scene): def construct(self): title = Text('Detailed Explanation of Common SSML Tags', font_size=36, weight=BOLD, color=BLUE) title context = Text('TTS System Interface Design: Input F...
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 SubsetConstruction(Scene): def construct(self): title = Tex('\\textbf{Equivalence of Regular Languages: Subset Construction}', font_size=36) title.to_edge(UP, buff=0.5) title_ul = Underline(title, ...
```python from manim import * from manim import config Text.set_default(font='SimHei') class SubsetConstruction(Scene): def construct(self): title = Tex('\\textbf{Equivalence of Regular Languages: Subset Construction}', font_size=36) title.to_edge(UP, buff=0.5) title_ul = Underline(title, ...
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 curious about the backward pass through log-softmax and want a clean visualization of the cancellations. Animate the backward computation showing gradients flowing through the log-softmax, canceling terms step by step. Include stacked diagrams of the cross-entropy loss terms and highlight the terms that cancel. Wra...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class BackwardPassLogSoftmaxScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class BackwardPassLogSoftmaxScene(Scene): def construct(self): title = Text('Backward Pass Through Log Softmax', font_size=40, color=BLUE) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) self.wait(0.5) section1_title = Text('1...
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...
Write a Manim CE visualization using scientific Python libraries (numpy, scipy, sympy) for: Fourier Series Square Wave Approximation with NumPy.
```python from manim import * import numpy as np class SciComputeScene469(VoiceoverScene): def construct(self): # [SETUP] self.set_speech_service(GTTSService(transcription_model="base")) MARGIN = 0.5 # [LAYOUT] # Axes sized to fit within frame bounds ax = Ax...
```python from manim import * import numpy as np class SciComputeScene469(VoiceoverScene): def construct(self): # [SETUP] self.set_speech_service(GTTSService(transcription_model="base")) MARGIN = 0.5 # [LAYOUT] # Axes sized to fit within frame bounds ax = Ax...
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 want to animate the NLL loss formula step-by-step: -(1/N) * sum(log(p(y|x))). Visualize a batch of predictions, highlight the log operation on each probability, then aggregate with a sum, and finally divide by N. Use animated math to highlight how the loss changes with better predictions, and include a tiny counter s...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class NLLLossScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) # [B...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class NLLLossScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) # [B...
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 studying character-level models and want to visualize a subset of test samples. Display the model's predicted character above the actual character, with a checkmark for correct and an X for incorrect. Add confidence scores and a small per-sample annotation to illustrate where the model errs.
```python from manim import Scene, Text, Write, FadeIn, FadeOut, TransformFromCopy, Create, Arrow, Square, Circle, VGroup, Line, DOWN, UP, LEFT, RIGHT, BLUE, GREEN, YELLOW, RED, GRAY, WHITE from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class CharacterLevelModelScene(...
```python from manim import Scene, Text, Write, FadeIn, FadeOut, TransformFromCopy, Create, Arrow, Square, Circle, VGroup, Line, DOWN, UP, LEFT, RIGHT, BLUE, GREEN, YELLOW, RED, GRAY, WHITE class CharacterLevelModelScene(Scene): def construct(self): title = Text('Character Level Model', font_size=48, colo...
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...
The following Manim CE scene failed to compile. Truncated traceback: NameError: name 'eq1_missing' is not defined 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 construct(self): sel...
```python from manim import * class Main(Scene): def construct(self): self.play(Transform(text,Text("TransformMatchingTex").shift(UP*2.5)), run_time=0.5) eq1 = MathTex("{{a}}^2", "+", "{{b}}^2", "=", "{{c}}^2") eq2 = MathTex("{{a}}^2", "+", "-{{c}}^2", "=", "-{{b}}^2") ...
```python from manim import * class Main(Scene): def construct(self): self.play(Transform(text,Text("TransformMatchingTex").shift(UP*2.5)), run_time=0.5) eq1 = TexMobject("{{a}}^2", "+", "{{b}}^2", "=", "{{c}}^2") eq2 = MathTex("{{a}}^2", "+", "-{{c}}^2", "=", "-{{b}}^2") ...
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 a graduate-level optimization module and want a visual that explains why SGD behaves differently from full-batch gradient descent in non-convex landscapes. Show a high-dimensional loss surface projected to 3D with a 2D contour, and animate trajectories for SGD, Momentum, and Adam across multiple basins. In...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class StochasticGradientDescentScene(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 StochasticGradientDescentScene(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...
I'm teaching an undergrad course on normalization and want to visualize gradient flow through layer normalization, dividing the stream by the input's standard deviation. Show a flowing gradient stream being divided by a dynamic sigma, illustrating scale-invariance effects. Include annotations about when the normalizati...
```python from manim import * class GradientFlowThroughLayerNormalization(Scene): def construct(self): title = Text('Gradient Flow Through Layer Normalization', font_size=36, color=BLUE) title.to_edge(UP, buff=0.5) subtitle = Text('Understanding Normalization in Deep Learning', font_size=2...
```python from manim import * class GradientFlowThroughLayerNormalization(Scene): def construct(self): title = Text('Gradient Flow Through Layer Normalization', font_size=36, color=BLUE) title.to_edge(UP, buff=0.5) subtitle = Text('Understanding Normalization in Deep Learning', font_size=2...
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...
Here’s an enhanced version of the animation that retains all the original features while adding new elements for clarity and engagement: The animation begins by plotting the quadratic function \( f(x) = 0.1x^2 \) on a set of axes, with the graph labeled for clarity. As the curve appears, a dynamic Riemann sum visual...
```python from manim import * class RiemannSumAndIntegral(Scene): def construct(self): # Create axes and graph axes = Axes( x_range=[0, 3, 1], y_range=[0, 0.5, 0.1], axis_config={"color": BLUE}, ) graph = axes.plot(lambda x: 0.1 * x**2, color=GREE...
```python from manim import * class RiemannSumAndIntegral(Scene): def construct(self): # Create axes and graph axes = Axes( x_range=[0, 3, 1], y_range=[0, 0.5, 0.1], axis_config={"color": BLUE}, ) graph = axes.plot(lambda x: 0.1 * x**2, color=GREE...
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: Orbital mechanics simulation using add_updater with dt. Use updaters and ValueTracker.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService MARGIN = 0.5 class OrbitalMechanicsUpdater(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 OrbitalMechanicsUpdater(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 RayIntersection(Scene): def construct(self): title = Title('Ray Intersection with Objects', color=WHITE) self.play(Write(title)) self.wait(1) left_x = -6.5 subtitle1 = Text('Ray Rep...
```python from manim import * from manim import config Text.set_default(font='SimHei') class RayIntersection(Scene): def construct(self): title = Title('Ray Intersection with Objects', color=WHITE) self.play(Write(title)) self.wait(1) left_x = -6.5 subtitle1 = Text('Ray Rep...
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 advanced optimization to upper-level undergrads. Create a multi-scene animation visualizing gradient descent on a non-convex loss with at least two minima. Show a 3D surface and a 2D contour, with gradient-descent paths for different learning rates, including momentum, so we can compare convergence and sad...
```python from manim import * class GradientDescentVisualization(Scene): def construct(self): title = Text('Gradient Descent Visualization', font_size=48, color=BLUE) subtitle = Text('Finding the Optimal Solution', font_size=32, color=GRAY) title_group = VGroup(title, subtitle).arrange(DOW...
```python from manim import * class GradientDescentVisualization(Scene): def construct(self): title = Text('Gradient Descent Visualization', font_size=48, color=BLUE) subtitle = Text('Finding the Optimal Solution', font_size=32, color=GRAY) title_group = VGroup(title, subtitle).arrange(DOW...
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 learning embedding optimization; animate the gradient update on a single embedding row, shifting its position in vector space over iterations, highlighting the gradient vector and update step, and showing the resulting trajectory.
```python from manim import * class EmbeddingUpdateScene(Scene): def construct(self): title = Text('Embedding Optimization', font_size=40) subtitle = Text('via Gradient Updates', font_size=32) title_group = VGroup(title, subtitle).arrange(DOWN, buff=0.3) self.play(Write(title_group...
```python from manim import * class EmbeddingUpdateScene(Scene): def construct(self): title = Text('Embedding Optimization', font_size=40) subtitle = Text('via Gradient Updates', font_size=32) title_group = VGroup(title, subtitle).arrange(DOWN, buff=0.3) self.play(Write(title_group...
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...
Create a step-by-step educational Manim CE lecture scene explaining: Gradient Descent Optimization on 2D Quadratic Function. ```python from manim import * import numpy as np class PedagogicalScene30(Scene): def construct(self): title = Title(r"Gradient Descent: $x_{k+1} = x_k - \gamma \nabla f(x_k)$") ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class PedagogicalScene30(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_f...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class PedagogicalScene30(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_f...
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...
Create a simple Manim scene that shows a blue square transforming into a green circle. Include a short caption at the bottom.
```python from manim import * class SquareToCircleDemo(Scene): def construct(self): square = Square(side_length=2.4, color=BLUE).shift(LEFT * 2) circle = Circle(radius=1.3, color=GREEN).shift(RIGHT * 2) caption = Text("Basic shape transform", font_size=30).to_edge(DOWN) self.play(C...
```python from manim import * class SquareToCircleDemo(Scene): def construct(self): square = Square(side_length=2.4, color=BLUE) circle = Circle(radius=1.3, color=GREEN) caption = Text("Basic shape transform", font_size=30) self.play(Create(square), FadeIn(caption)) self.pl...
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 an undergrad geometry course and want a vivid tessellation visualization. Show how regular triangles, squares, and hexagons tile the plane and explain the angle-sum condition at a vertex. Build scenes that color-code polygons, rotate them around a common vertex, and zoom into the tiling to compare feasible...
```python from manim import * class TessellationScene(Scene): def construct(self): title = Text('Tessellations and Angle-Sum Condition', font_size=36, color=BLUE) subtitle = Text('Hello Math Enthusiasts!', font_size=28, color=YELLOW) subtitle.next_to(title, DOWN, buff=0.5) self.pla...
```python from manim import * class TessellationScene(Scene): def construct(self): title = Text('Tessellations and Angle-Sum Condition', font_size=36, color=BLUE) subtitle = Text('Hello Math Enthusiasts!', font_size=28, color=YELLOW) subtitle self.play(Write(title), run_time=2.0 * ...
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 undergraduate linear algebra and want a visual explanation of eigenvalues and eigenvectors. Animate a 2×2 real matrix acting on the plane: the unit circle deforms into an ellipse, with the eigen-directions highlighted and stretched by their eigenvalues. Then illustrate a rotation–scaling intuition and comp...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class EigenvalueScene(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 EigenvalueScene(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 16:9 Manim animation for Grade 12 Accountancy explaining the classification of assets on a balance sheet. Start with a title "Classification of Assets and Liabilities" centered on screen. Then display the question: "What is the difference between current assets and non-current assets?" on the left side. On the...
```python from manim import * import numpy as np import math class AssetClassificationScene(Scene): def construct(self): # --------------------------------------------------------- # Configuration # --------------------------------------------------------- self.camera.background_col...
```python from manim import * import numpy as np import math class AssetClassificationScene(Scene): def construct(self): # --------------------------------------------------------- # Configuration # --------------------------------------------------------- self.camera.background_col...
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: Mobject.__init__() got an unexpected keyword argument 'max_value' ``` Fix the bug and provide the corrected, fully compilable Manim CE code: ```python from manim import * import numpy as np class ApiValidTable367(Scene): def construct...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService MARGIN = 0.5 class ApiValidTable367(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 ApiValidTable367(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...
I'm studying language models and want to animate the generation process of a bigram model. Reveal characters one by one, with arrows showing transition probabilities from the current character to the next, and highlight the most probable path as the sequence forms.
```python from manim import * class BigramModelCharacterGeneration(Scene): def construct(self): self.show_title() self.explain_bigram_concept() self.show_training_data() self.extract_bigrams() self.show_probabilities() self.demonstrate_generation() self.show...
```python from manim import * class BigramModelCharacterGeneration(Scene): def construct(self): self.show_title() self.explain_bigram_concept() self.show_training_data() self.extract_bigrams() self.show_probabilities() self.demonstrate_generation() self.show...
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...
Create a step-by-step educational Manim CE lecture scene explaining: Gradient Descent Optimization on 2D Quadratic Function. ```python from manim import * import numpy as np class PedagogicalScene924(Scene): def construct(self): title = Title(r"Gradient Descent: $x_{k+1} = x_k - \gamma \nabla f(x_k)$") ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class PedagogicalScene924(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 PedagogicalScene924(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_...
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 studying CNN dilation effects and want to show the dilation factor as expanding gaps between filter taps, growing exponentially with depth. Animate a 1D filter with gaps increasing at deeper layers, and plot the receptive field growth as depth increases. Include a side-by-side comparison of effective coverage and a...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class CNNDilationEffects(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 CNNDilationEffects(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 about receptive fields and want a visual comparison table across architectures. Show MLP with fixed receptive field, RNN with effectively infinite, and WaveNet with exponential growth as depth increases. Animate the table updating as you sweep depth, and add a short geometric intuition for each case.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class ReceptiveFieldLecture(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 ReceptiveFieldLecture(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...
Subject: Mathematical Physics Topic: Atomic and Nuclear Shell Models Question: In what ways does the spin-orbit coupling affect the calculation of magic numbers in nuclei, and how can these be visualized effectively? Title: Unveiling the Magic: Spin-Orbit Coupling in Nuclear Shell Models Narration: Welcome to this e...
```python from manim import * class SpinOrbitCoupling(Scene): def construct(self): # Title title = Text("Unveiling the Magic: Spin-Orbit Coupling in Nuclear Shell Models", font_size=28) self.play(Write(title)) self.wait(1) self.play(title.animate.scale(0.7).to_edge(UP)) ...
```python from manim import * class SpinOrbitCoupling(Scene): def construct(self): # Title title = Text("Unveiling the Magic: Spin-Orbit Coupling in Nuclear Shell Models", font_size=28) self.play(Write(title)) self.wait(1) self.play(title.animate.scale(0.7)) ...
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 15-second Manim scene explaining dynamic equilibrium. Show reactant and product particles with forward and reverse arrows, animate particles moving both ways, and make two live rate readouts converge. State clearly that equal forward and reverse rates do not require equal amounts.
```python from manim import * class DynamicEquilibriumRates(Scene): def construct(self): title = Text("Dynamic equilibrium: equal rates, ongoing change", font_size=36).to_edge(UP) left_box = RoundedRectangle(width=3.2, height=2.5, corner_radius=0.15, color=BLUE_B).shift(LEFT * 3) right_box ...
```python from manim import * class DynamicEquilibriumRates(Scene): def construct(self): title = Text("Dynamic equilibrium: equal rates, ongoing change", font_size=36).to_edge(UP) left_box = RoundedRectangle(width=3.2, height=2.5, corner_radius=0.15, color=BLUE_B).shift(LEFT * 3) right_box ...
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...
Create a 12-second Manim scene that explains gradient descent as repeated downhill steps on a loss surface. Use a contour-style basin on the left with a step-by-step path toward the minimum, and a compact loss-vs-iteration chart on the right that drops as the steps progress.
```python from manim import * class GradientDescentContourStory(Scene): def construct(self): title = Text('Gradient Descent Moves Step by Step Toward Lower Loss', font_size=28).to_edge(UP) left_frame = RoundedRectangle(corner_radius=0.14, width=5.2, height=4.8, color=GRAY_B).shift(LEFT * 3.2 + DOWN...
```python from manim import * class GradientDescentContourStory(Scene): def construct(self): title = Text('Gradient Descent Moves Step by Step Toward Lower Loss', font_size=28) left_frame = RoundedRectangle(corner_radius=0.14, width=5.2, height=4.8, color=GRAY_B) right_frame = RoundedRectan...
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...
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 ApiValidTable223(Scene): def construct(self): ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class ApiValidTable223(VoiceoverScene): MARGIN = 0.5 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 class ApiValidTable223(VoiceoverScene): MARGIN = 0.5 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...
Display a set of coordinate axes with labeled ticks, then plot the curve \( y = \frac{\sin(x)}{e^{2x}} \). From \( x = 0 \) to \( x = 4 \), 30 evenly spaced vertical blue lines are drawn from the x-axis up to the curve, visually illustrating the shape and behavior of the function over that interval.
```python from manim import * class GetVerticalLinesToGraph(Scene): def construct(self): ax = Axes( x_range=[0, 8.0, 1], y_range=[-1, 1, 0.2], axis_config={"font_size": 24}, ).add_coordinates() curve = ax.plot(lambda x: np.sin(x) / np.e ** 2 * x) ...
```python from manim import * class GetVerticalLinesToGraph(Scene): def construct(self): ax = Axes(axis_color=BLUE, x_range=[0, 8.0, 1], y_range=[-1, 1, 0.2], axis_config={"font_size": 24}, ).add_coordinates() curve = ax.plot(lambda x: np.sin(x) / np.e ...
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...
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 MLPForwardPassScene(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 MLPForwardPassScene(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...
Create a 30-second Manim scene that explains a simple feedback loop with reference, controller, plant, and measured output. Use arrows and captions to show how the error signal closes the loop.
```python from manim import * class ControlFeedbackLoopStory(Scene): def construct(self): title = Text("Feedback Uses Error to Correct the Output", font_size=34).to_edge(UP) summing = Circle(radius=0.28, color=GRAY_B).shift(LEFT * 3.2) controller = RoundedRectangle(corner_radius=0.1, width=...
```python from manim import * class ControlFeedbackLoopStory(Scene): def construct(self): title = Text("Feedback Uses Error to Correct the Output", font_size=34) summing = Circle(radius=0.28, color=GRAY_B) controller = RoundedRectangle(corner_radius=0.1, width=1.6, height=0.8, color=BLUE_D,...
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 a data science undergrad course and want a visual of PCA reducing 2D data to 1D. Show a noisy 2D cloud, the principal axis of maximum variance, and projection of points onto that axis. Animate the reconstruction of the original data from the 1D representation and illustrate the explained variance ratio wit...
```python from manim import * import numpy as np class PCAVisualizationScene(Scene): def construct(self): title = Text('Principal Component Analysis', font_size=48) subtitle = Text('Visualizing Dimensionality Reduction', font_size=32, color=BLUE_B) header = VGroup(title, subtitle).arrange(...
```python from manim import * import numpy as np class PCAVisualizationScene(Scene): def construct(self): title = Text('Principal Component Analysis', font_size=48) subtitle = Text('Visualizing Dimensionality Reduction', font_size=32, color=BLUE_B) header = VGroup(title, subtitle).arrange(...
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 an NLP demo to undergrads. Show a generated text string typed out character by character, with a glowing cursor whose brightness encodes the probability of the next character. Include a small probability distribution bar for top candidates that updates as each character is typed, and a brief note about sam...
```python from manim import * class NLPTextGenerationStrategies(Scene): def construct(self): title = Text('NLP Text Generation Strategies', font_size=48, color=BLUE) subtitle = Text('From Markov Chains to Transformers', font_size=28, color=GRAY) subtitle.next_to(title, DOWN, buff=0.5) ...
```python from manim import * class NLPTextGenerationStrategies(Scene): def construct(self): title = Text('NLP Text Generation Strategies', font_size=48, color=BLUE) subtitle = Text('From Markov Chains to Transformers', font_size=28, color=GRAY) subtitle self.play(Write(title), run...
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...
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 LearningTips(Scene): def construct(self): context_h1 = Text('Overview of Software Project Management', font_size=24, color=GRAY) context_h2 = Text('Learning Methods for This Course', font_size=28, color=BL...
```python from manim import * from manim import config Text.set_default(font='SimHei') class LearningTips(Scene): def construct(self): context_h1 = Text('Overview of Software Project Management', font_size=24, color=GRAY) context_h2 = Text('Learning Methods for This Course', font_size=28, color=BL...
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 about manual gradient steps and want a visualization of how updated weights look after a single manual step, with a side-by-side comparison to the PyTorch autograd result.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class ManualVsAutogradScene(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 ManualVsAutogradScene(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...
Here’s the enhanced animation instruction, which retains all the original features while adding significant new elements: The animation begins with a **blue rectangle** (width=4, height=2) appearing at position (1, 1), as in the original script. However, now the rectangle smoothly transforms into a **golden circle**...
```python from manim import * class EnhancedShapeTransformation(Scene): def construct(self): # Create initial blue rectangle rect = Rectangle(width=4, height=2, color=BLUE).move_to([1, 1, 0]) self.play(Create(rect)) self.wait(0.5) # Transform rectangle into golden circle ...
```python from manim import * class EnhancedShapeTransformation(Scene): def construct(self): # Create initial blue rectangle rect = Rectangle(width=4, height=2, color=BLUE).move_to([1, 1, 0]) self.play(ShowCreation(rect)) self.wait(0.5) # Transform rectangle into golden cir...
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 a Manim animation for an 11th grade history lesson on the naming of countries in the New World. The video should be 16:9 format and follow a classroom presentation style. Start with a title screen that says "Names of Countries in the New World" in large text, with "History - Grade 11" as a subtitle below it. N...
```python from manim import * import numpy as np class HistoryNaming(Scene): def construct(self): # 1. Setup Environment self.camera.background_color = "#0f0f0f" # Color Palette TEXT_COLOR = "#d4d4d4" ACCENT_BLUE = "#4a9eff" ACCENT_GREEN = "#6ba76e" ...
```python from manim import * import numpy as np class HistoryNaming(Scene): def construct(self): # 1. Setup Environment self.camera.background_color = "#0f0f0f" # Color Palette TEXT_COLOR = "#d4d4d4" ACCENT_BLUE = "#4a9eff" ACCENT_GREEN = "#6ba76e" ...
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...
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 SSLTLSHandshake(Scene): def construct(self): main_title = Tex('\\textbf{Cryptography Applications: SSL/TLS}', font_size=40, color=BLUE) main_title.to_edge(UP) sub_title = Tex('\\textbf{SSL/TLS Hand...
```python from manim import * from manim import config Text.set_default(font='SimHei') class SSLTLSHandshake(Scene): def construct(self): main_title = Tex('\\textbf{Cryptography Applications: SSL/TLS}', font_size=40, color=BLUE) main_title sub_title = Tex('\\textbf{SSL/TLS Handshake Protoc...
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 exploring Transformer variants Mixtral and want to visualize how mixtures of experts route attention across tokens and layers. Show gating decisions, sparsity patterns, and a few example sentences illustrating routing paths. Demonstrate the effect on computation speed and memory, with comparisons to standard multih...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class MixturesOfExpertsAttentionVisualization(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ...
```python from manim import * class MixturesOfExpertsAttentionVisualization(Scene): def construct(self): title = Text('Mixtures of Experts', font_size=48, color=BLUE_D) subtitle = Text('Attention Visualization', font_size=36, color=BLUE_C) subtitle.next_to(title, DOWN) self.play(Wr...
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 about normalization and want to compare pre-activation distributions before and after BatchNorm in a hidden layer. Animate histograms of a mini-batch showing raw pre-activations, followed by the BatchNorm-transformed values, highlighting shifts in mean and variance and a Gaussian fit.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class BatchNormComparison(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 numpy as np class BatchNormComparison(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="bas...
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...
Create a Manim animation for a high school history class explaining water management conflicts in early Mesopotamia. The video should be in 16:9 format and follow this structure: 1. Title slide: Display "Water Management and Conflict in Early Mesopotamia" centered on screen with a simple background color. 2. Question...
```python from manim import * import numpy as np class WaterManagementConflict(Scene): def construct(self): # Educational Dark Theme Background self.camera.background_color = "#0f0f0f" # 1. Title Slide title = Text("Water Management and Conflict\nin Early Mesopotamia", font...
```python from manim import * import numpy as np class WaterManagementConflict(Scene): def construct(self): # Educational Dark Theme Background self.camera.background_color = "#0f0f0f" # 1. Title Slide title = Text("Water Management and Conflict\nin Early Mesopotamia", font...
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 amplitude modulation. Show a low-frequency message signal, a high-frequency carrier, and then the modulated waveform with an envelope so the relationship is easy to follow.
```python from manim import * class CommunicationsModulationStory(Scene): def construct(self): title = Text("Amplitude Modulation Wraps a Fast Carrier in a Slow Envelope", font_size=34).to_edge(UP) message_axes = Axes(x_range=[0, 6.5, 1], y_range=[-1.4, 1.4, 0.5], x_length=5.6, y_length=2.0, tips=F...
```python from manim import * class CommunicationsModulationStory(Scene): def construct(self): title = Text("Amplitude Modulation Wraps a Fast Carrier in a Slow Envelope", font_size=34).to_edge(UP) message_axes = Axes(axis_color=BLUE, x_range=[0, 6.5, 1], y_range=[-1.4, 1.4, 0.5], x_length=5.6, y_l...
invalid_axes_kwarg
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 an undergrad math course and want a visualization of Lissajous figures generated by x=sin(a t), y=sin(b t) with different frequency ratios. Animate a sequence of ratios (1:1, 2:1, 3:2, 5:3), show the resulting curves, highlight symmetries, and zoom into interesting features as the ratio changes. Add a smal...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class LissajousFiguresScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="b...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class LissajousFiguresScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="b...
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 undergrads how gradient descent behaves on simple convex functions. Animate f(x,y)=x^2+y^2 with a 3D surface and a 2D contour view, showing the descent path from different starting points and learning rates. Include camera moves that zoom and orbit to emphasize overshoot and convergence, with a live update...
```python from manim import * class GradientDescentScene(Scene): def construct(self): title = Text('Gradient Descent on Convex Functions', font_size=36, color=BLUE) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) self.wait(0.5) subtitle = Text('Finding the...
```python from manim import * class GradientDescentScene(Scene): def construct(self): title = Text('Gradient Descent on Convex Functions', font_size=36, color=BLUE) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) self.wait(0.5) subtitle = Text('Finding the...
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...
Here’s the enhanced animation instruction, which retains all the original features while adding significant new elements: The enhanced animation begins by fading in a yellow electron particle (a circle with radius 0.15 and a black "e⁻" label) at the origin, just like the original. However, it now includes a dynamic el...
```python from manim import * class EnhancedElectronAnimation(Scene): def construct(self): # Create electron electron = Circle(radius=0.15, color=YELLOW, fill_opacity=1) electron_label = Tex("e$^-$", color=BLACK).scale(0.7) electron_group = VGroup(electron, electron_label) ...
```python from manim import * class EnhancedElectronAnimation(Scene): def construct(self): # Create electron electron = Circle(radius=0.15, color=YELLOW, fill_opacity=1) electron_label = Tex("e$^-$", color=BLACK).scale(0.7) electron_group = VGroup(electron, electron_label) ...
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...
Construct a clean Manim CE scene initializing StreamLines 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 ApiValidStreamLines365(Scene): def construct(self): obj = Str...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class ApiValidStreamLines365(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 ApiValidStreamLines365(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...
Create a 30-second Manim scene that explains breadth-first search as a wavefront over a small graph. Show the start node, then reveal layer 1, layer 2, and layer 3 with colored rings and captions.
```python from manim import * class BFSWavefrontLayers(Scene): def construct(self): title = Text("Breadth-First Search as Layers", font_size=40).to_edge(UP) positions = { "A": LEFT * 4 + UP * 1.8, "B": LEFT * 2 + UP * 2.7, "C": LEFT * 2 + UP * 0.9, "D...
```python from manim import * class BFSWavefrontLayers(Scene): def construct(self): title = Text("Breadth-First Search as Layers", font_size=40) positions = { "A": LEFT * 4 + UP * 1.8, "B": LEFT * 2 + UP * 2.7, "C": LEFT * 2 + UP * 0.9, "D": ORIGIN + ...
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...
Create a 15-second Manim scene explaining a confidence interval as uncertainty around an estimate. Show a dot estimate on a number line, expand a translucent interval band, compare narrow and wide intervals, and end with a plain-language caption.
```python from manim import * class ConfidenceIntervalBand(Scene): def construct(self): title = Text("Confidence interval = estimate plus uncertainty", font_size=32).to_edge(UP) line = NumberLine(x_range=[0, 10, 1], length=8.5, include_numbers=True).shift(UP * 0.65) estimate = Dot(line.n2p(...
```python from manim import * class ConfidenceIntervalBand(Scene): def construct(self): title = Text("Confidence interval = estimate plus uncertainty", font_size=32) line = NumberLine(x_range=[0, 10, 1], length=8.5, include_numbers=True) estimate = Dot(line.n2p(5), color=YELLOW_D, radius=0....
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...
Create a Manim animation for a Grade 12 Sociology class on global trade impacts. The video should be in 16:9 format and follow this structure: 1. Title Scene: Display "Impact of Global Trade on Local Industries" as the main heading. Subtitle: "How Foreign Products Affect Local Economies" 2. Question Scene: Show the q...
```python from manim import * import numpy as np import random import math class GlobalTradeImpact(Scene): def construct(self): # --- Config & Palette --- # Dark educational theme BG_COLOR = "#0f0f0f" TEXT_COLOR = "#d4d4d4" ACCENT_BLUE = "#4a9eff" ACCENT_ORANGE = "#...
```python from manim import * import numpy as np import random import math class GlobalTradeImpact(Scene): def construct(self): # --- Config & Palette --- # Dark educational theme BG_COLOR = "#0f0f0f" TEXT_COLOR = "#d4d4d4" ACCENT_BLUE = "#4a9eff" ACCENT_ORANGE = "#...
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 algebra course and want a dynamic visualization of the quadratic formula and discriminant. Animate the parabola y equals a x^2 + b x + c as a b c vary and reveal real vs complex roots depending on D equals b^2 - 4 a c. Include a parameter sweep showing real roots D greater or equal zero and co...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class QuadraticFormulaScene(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 QuadraticFormulaScene(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...
I'm learning about embedding layers and backpropagation. Visualize the embedding backward pass so that gradients flow only to the rows corresponding to the current batch indices, with other rows frozen. Display a matrix of embeddings, gradient arrows targeting active rows, and a clear before/after comparison. Include a...
```python from manim import * class EmbeddingLayersAndBackpropagation(Scene): def construct(self): title = Text('Embedding Layers & Backpropagation', font_size=48) subtitle = Text('How Neural Networks Understand Language', font_size=28, color=BLUE) subtitle.next_to(title, DOWN, buff=0.5) ...
```python from manim import * class EmbeddingLayersAndBackpropagation(Scene): def construct(self): title = Text('Embedding Layers & Backpropagation', font_size=48) subtitle = Text('How Neural Networks Understand Language', font_size=28, color=BLUE) 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...
I'm learning number theory and want a visual demonstration of the Euclidean algorithm using rectangles and tiling. Start with two rectangles of sides a and b, repeatedly subtract the smaller from the larger and show the remainder tile the bigger rectangle, leading to the gcd. Include a step-by-step narration of how the...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class EuclideanAlgorithmScene(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 EuclideanAlgorithmScene(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...
Write a Manim CE visualization using scientific Python libraries (numpy, scipy, sympy) for: SymPy Symbolic Derivative and animated derivation steps. ```python from manim import * import numpy as np import sympy as sp class SciComputeScene467(Scene): def construct(self): import sympy as sp ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import sympy as sp MARGIN = 0.5 class SciComputeScene467(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_f...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import sympy as sp MARGIN = 0.5 class SciComputeScene467(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_f...
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 basic linear layer visualization and want to show the weight update direction from the gradient. Display a 2D input space, the current weight vector, and the gradient vector, then animate the SGD update along the negative gradient. Include arrows with color coding and a short caption explaining the updat...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class LinearWeightUpdateScene(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 LinearWeightUpdateScene(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 calculus and want to see disk/washer methods in action for volumes of revolution. Revolve a region around an axis to form a solid, showing outer and inner radii and the volume integral V=π∫(R^2−r^2) dx, plus a comparison to the disk method. Use concrete examples like y=√x rotated about the x-axis or a wash...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class DiskAndWasherMethods(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) # Ti...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class DiskAndWasherMethods(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) # Ti...
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...
Write a Manim CE visualization using scientific Python libraries (numpy, scipy, sympy) for: SymPy Symbolic Derivative and animated derivation steps. ```python from manim import * import numpy as np import sympy as sp class SciComputeScene15(Scene): def construct(self): import sympy as sp ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np import sympy as sp MARGIN = 0.5 class SymPyDerivativeScene2(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = co...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np import sympy as sp MARGIN = 0.5 class SymPyDerivativeScene2(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = co...
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 GP course and want a clear visualization of the Fully Independent Training Conditional approximation. Show inducing points and the sparse covariance structure, comparing exact GP predictions with FITC in a 2D domain. Animate how changing the number of inducing points trades off accuracy and com...
```python from manim import * class FullyIndependentTrainingConditionalApproximation(Scene): def construct(self): title = Text('Fully Independent Training', font_size=36, color=BLUE) subtitle = Text('Conditional Approximation', font_size=32, color=BLUE) title_group = VGroup(title, subtitle...
```python from manim import * class FullyIndependentTrainingConditionalApproximation(Scene): def construct(self): title = Text('Fully Independent Training', font_size=36, color=BLUE) subtitle = Text('Conditional Approximation', font_size=32, color=BLUE) title_group = VGroup(title, subtitle...
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 course on normalization in neural nets and want a visualization of learnable scale and shift parameters (gamma and beta) reintroducing flexibility after normalization. Show gamma scaling and beta shifting on normalized features with animated parameter updates, and a side panel tracing their va...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import math class GammaAndBetaNormalization(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ...
```python from manim import * import math class GammaAndBetaNormalization(Scene): def construct(self): title = Text('Gamma and Beta in Normalization', font_size=42, color=BLUE) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) subtitle = Text('The Keys to Learnable ...
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 interactive Manim CE animation demonstrating: Riemann Rectangles adapting dynamically with ValueTracker. Use updaters and ValueTracker. ```python from manim import * import numpy as np class DynamicScene902(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 import numpy as np MARGIN = 0.5 class DynamicRiemannRectanglesScene(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class DynamicRiemannRectanglesScene(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_...
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 undergrads and want a vivid visual of how requires_grad=True changes a tensor. Show a gradient accumulation box that fills up with each backward pass, highlighting when gradients accumulate vs. reset. Include a short backward trace and color cues for newly added gradients, with a couple of backward passes ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class RequiresGradAccumulationScene(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class RequiresGradAccumulationScene(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_...
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 how the gradient noise scale depends on batch size and want to see a jittering arrow tip representing gradient variance. Create a scene where the arrow tip trembles more at small batches and settles as batch size grows, with a side panel plotting variance vs batch size and a timeline to show convergence.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class GradientNoiseScaleLecture(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class GradientNoiseScaleLecture(Scene): def construct(self): title = Text('Gradient Noise Scale and Batch Size', font_size=40) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) section1 = Text('What is Gradient Noise Scale?', font_size=...
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 data pipelines and want to visualize how pinned memory speeds data transfer to the device. Include prefetching, DMA transfers, memory pools, and a live throughput/idle-time chart with a hypothetical dataset.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class DataPipelineScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class DataPipelineScene(Scene): def construct(self): title = Text('Data Pipelines & Pinned Memory', font_size=40) subtitle = Text('Optimizing Data Flow', font_size=28, color=BLUE) subtitle.next_to(title, DOWN, buff=0.3) title_group = VGroup(title, subt...
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 about embeddings and want to visualize how uniformly initialized embedding vectors evolve after 1000 training steps. Start with a uniform random scatter in high-dimensional space projected to 2D, then show gradual organization as training proceeds. Highlight a few representative vectors with trajectories a...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class EmbeddingEvolutionScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model=...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class EmbeddingEvolutionScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model=...
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...
Create an educational ManimCE animation on 'Quadratic Residues and Non-Residues' (A Geometric Journey Through Quadratic Residues): What is the geometric interpretation of Euler's criterion for quadratic residues? Visual style guidance: Elegant and crisp visual style with a focus on symmetry and cyclical patterns. Use a...
```python from manim import * class QuadraticResiduesScene(Scene): def construct(self): # Color scheme blue_color = "#3070B3" gold_color = "#FFD700" # Title title = Text("A Geometric Journey Through Quadratic Residues", font_size=28, color=blue_color) self.p...
```python from manim import * class QuadraticResiduesScene(Scene): def construct(self): # Color scheme blue_color = "#3070B3" gold_color = "#FFD700" # Title title = Text("A Geometric Journey Through Quadratic Residues", font_size=28, color=blue_color) self.p...
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 an educational ManimCE animation on 'Primality Testing Algorithms' (Visualizing Primality: The Complex Dance of Miller-Rabin): How does visualizing the Miller-Rabin test as a series of transformations in complex space help in understanding its error margin? Visual style guidance: A clean and modern look with a d...
```python from manim import * class MillerRabinVisualization(Scene): def construct(self): # Create the complex plane complex_plane = ComplexPlane( x_range=[-5, 5, 1], y_range=[-5, 5, 1], background_line_style={ "stroke_color": "#1F3F73", # Dark b...
```python from manim import * class MillerRabinVisualization(Scene): def construct(self): # Create the complex plane complex_plane = ComplexPlane( x_range=[-5, 5, 1], y_range=[-5, 5, 1], background_line_style={ "stroke_color": "#1F3F73", # Dark b...
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...
Create an educational ManimCE animation on 'Homotopy' (Dancing Dimensions: Homotopy in Higher Spaces): Why does the concept of a homotopy equivalence not always apply in higher dimensions? Visual style guidance: The animation style will reflect a hand-drawn aesthetic with pastel colors, evoking a sense of intellectual ...
```python from manim import * class HomotopyExplanation(Scene): def construct(self): # Title title = Text("Dancing Dimensions: Homotopy in Higher Spaces", font_size=30) self.play(Write(title)) self.wait(1) self.play(FadeOut(title)) # Introduction int...
```python from manim import * class HomotopyExplanation(Scene): def construct(self): # Title title = Text("Dancing Dimensions: Homotopy in Higher Spaces", font_size=30) self.play(Write(title)) self.wait(1) self.play(FadeOut(title)) # Introduction int...
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...
Here’s the enhanced animation description, incorporating all original features while adding significant new elements: The animation begins by displaying the function \( f(x) = \frac{1}{1+x^2} \) with a smooth fade-in effect. A labeled point \( x = a \) appears, and then a moving dot traces along the curve of the fun...
```python from manim import * class LimitAnimation(Scene): def construct(self): # Create axes axes = Axes( x_range=[-3, 3, 1], y_range=[0, 1.5, 0.5], axis_config={"color": BLUE}, ) axes_labels = axes.get_axis_labels(x_label="x", y_label="f(x)") ...
```python from manim import * class LimitAnimation(Scene): def construct(self): # Create axes axes = Axes(axis_color=BLUE, x_range=[-3, 3, 1], y_range=[0, 1.5, 0.5], axis_config={"color": BLUE}, ) axes_labels = axes.get_axis_labels(x_label="x", y...
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...
I'm learning self-supervised learning and want to see a non-contrastive method (e.g., BYOL-like) built step-by-step. Visualize the online network, target network, and predictor, with moving representations for two augmentations. Include a 2D projection showing alignment over iterations and a comparison to a small super...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class NonContrastiveSSLScene(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 NonContrastiveSSLScene(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...
I'm teaching sequence models and want to dissect where NLL loss originates. Create an animated bar chart showing the NLL contribution of each character in a given sequence, with bars updating as the model progresses. Highlight the max contributor in red and include a running total caption to show how per-token losses a...
```python from manim import * class NLLLossScene(Scene): def construct(self): title = Text('Negative Log Likelihood Loss', font_size=48) subtitle = Text('A Key Loss Function in Machine Learning', font_size=28) subtitle.next_to(title, DOWN) title_group = VGroup(title, subtitle) ...
```python from manim import * class NLLLossScene(Scene): def construct(self): title = Text('Negative Log Likelihood Loss', font_size=48) subtitle = Text('A Key Loss Function in Machine Learning', font_size=28) subtitle.next_to(title, DOWN) title_group = VGroup(title, subtitle) ...
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 algorithms and want a visualization of binary search on a sorted array. Show the array as bars, highlight the mid index, and depict the comparisons shrinking the search interval with each step. Include a path tracing the index choices and transitions for successful and unsuccessful searches, plus a small n...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class BinarySearchVisualization(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 BinarySearchVisualization(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 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 CalculusInspiredDeepLearning(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class CalculusInspiredDeepLearning(Scene): def construct(self): title = Text('Calculus Inspired Deep Learning', font_size=48, color=BLUE) subtitle = Text('Gradients, Optimization & Backpropagation', font_size=28, color=GRAY) subtitle.next_to(title, DOWN, buff=...
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 undergrads ML and want a vivid visualization of gating in transformers that only lets relevant signals pass across long-range dependencies. Animate a sequence where gates open for important tokens and close for distractors, shrinking the effective attention horizon. Include multiple scenes: noisy input, ga...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class GatingMechanismScene(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 GatingMechanismScene(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...
Display a set of green axes with labels. Plot the sine function in blue and the cosine function in red. Label the sine graph with "\sin(x)" and the cosine graph with "\cos(x)". Draw a yellow vertical line at \( x = 2\pi \) and label it.
```python from manim import * class SinAndCosFunctionPlot(Scene): def construct(self): axes = Axes( x_range=[-10, 10.3, 1], y_range=[-1.5, 1.5, 1], x_length=10, axis_config={"color": GREEN}, x_axis_config={ "numbers_to_include": np...
```python from manim import * class SinAndCosFunctionPlot(Scene): def construct(self): axes = Axes(axis_color=BLUE, x_range=[-10, 10.3, 1], y_range=[-1.5, 1.5, 1], x_length=10, axis_config={"color": GREEN}, x_axis_config={ "number...
invalid_axes_kwarg
synthetic_hard_neg:SuienR/ManimBench-v1