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...
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 UnifiedRefutation(Scene): def construct(self): title = Tex('\\textbf{Unified Refutation for All Decompositions}', font_size=44, color=YELLOW) title.to_edge(UP, buff=0.5) context = Tex('Typical Appl...
```python from manim import * from manim import config Text.set_default(font='SimHei') class UnifiedRefutation(Scene): def construct(self): title = Tex('\\textbf{Unified Refutation for All Decompositions}', font_size=44, color=YELLOW) title context = Tex('Typical Application Examples of th...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning neural network initialization and want a visual that makes random weights feel tangible. Animate the initialization of a multilayer perceptron, displaying weight matrices colored by their random values and overlaying a quick statistics panel. Show the distribution of weights with a color scale, and zoom in...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class NNInitializationScene(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 NNInitializationScene(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...
Write a Manim CE visualization using scientific Python libraries (numpy, scipy, sympy) for: Linear Algebra 2D Matrix Eigenvector Transformation. ```python from manim import * import numpy as np class SciComputeScene316(Scene): def construct(self): plane = NumberPlane(x_range=[-4, 4, 1], y_range=[-3, 3, 1]...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class SciComputeScene316(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 SciComputeScene316(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...
The following Manim CE scene failed to compile. Truncated traceback: TypeError: Mobject.__init__() got an unexpected keyword argument 'max_magnitude' Fix the code. Return a complete working scene. Do not keep the invalid constructor kwargs or Unicode subscripts. ```python from manim import * class BasicDefiniteInte...
```python from manim import * class BasicDefiniteIntegral(Scene): def construct(self): # Displaying the problem of a definite integral problem = MathTex(r"\int_2^4 x^3 \,dx") self.play(Write(problem)) self.wait(1) # Explanation for the integration rule explanation1 ...
```python from manim import * class BasicDefiniteIntegral(Scene): def construct(self): # Displaying the problem of a definite integral problem = TexMobject(r"\int_2^4 x^3 \,dx") self.play(Write(problem)) self.wait(1) # Explanation for the integration rule explanatio...
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 undergrads in a DL visualization course and want a sequence that tracks layer activations from epoch 1 to 100. Visualize them with a violin plot that widens or narrows to reflect distribution changes, with smooth transitions between epochs. Include separate scenes for early, mid, and late training, with ax...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import random class LayerActivationsVisualization(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache")...
```python from manim import * import random class LayerActivationsVisualization(Scene): def construct(self): self.camera.background_color = '#1a1a2e' title = Text('Deep Learning: Layer Activations', font_size=36, color='#e94560') title.to_edge(UP, buff=0.5) self.play(Write(title), ...
narrated_pedagogical_preference
nabin2004/manim-narrated-dpo-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
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 SciComputeScene1041(Scene): def construct(self): ax = Axes(x_range=[-PI, PI, PI/2], y_range=[-1.5, 1.5, 0....
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class FourierSquareWaveScene(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 FourierSquareWaveScene(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width *...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching an undergrad DL course and want to demonstrate how gradient vanishing is reduced in early layers by adding BN. Animate a stack of layers with gradient arrows; show arrows in early layers growing much stronger after BN is introduced. Provide a before/after comparison and annotate how BN running statistics s...
```python import random from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class BatchNormGradientScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ...
```python import random from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class BatchNormGradientScene(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 learning linear algebra for ML and want to visualize the first principal component of a weight matrix evolving over time. Animate the principal direction drifting in the weight space, with an accompanying plot of the corresponding eigenvalue and a 2D/3D visualization of the weight vectors' trajectory.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import math class PCAExplanation(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import math class PCAExplanation(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...
**Enhanced Animation Description:** In this enhanced animation, we begin by drawing a **dodecagon** (12-sided polygon) with a radius of 2 and a gray color, just like in the original script. However, we now introduce a **dynamic transformation** where the dodecagon smoothly morphs into a **circle**, illustrating the ...
```python from manim import * class DodecagonToCircle(Scene): def construct(self): # Create the initial dodecagon dodecagon = RegularPolygon(n=12, radius=2, color=GRAY) self.play(Create(dodecagon)) self.wait(0.5) # Add the formula formula = MathTex( ...
```python from manim import * class DodecagonToCircle(Scene): def construct(self): # Create the initial dodecagon dodecagon = RegularPolygon(n=12, radius=2, color=GRAY) self.play(ShowCreation(dodecagon)) self.wait(0.5) # Add the formula formula = TexMobject(...
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...
Here is an enhanced version of the animation with additional features: The enhanced animation begins by displaying the integral problem ∫ sin(x)cos(x) dx centered on screen, then introduces a dynamic visual explanation: as the trigonometric identity sin(2x) = 2sin(x)cos(x) appears at the top, two rotating unit circles...
```python from manim import * class EnhancedTrigIntegration(Scene): def construct(self): # Initial integral integral = MathTex(r"\int \sin(x)\cos(x) \, dx").scale(1.5) self.play(Write(integral)) self.wait(1) # Show identity at top identity = MathTex(r"\sin(2x) = 2\s...
```python from manim import * class EnhancedTrigIntegration(Scene): def construct(self): # Initial integral integral = MathTex(r"\int \sin(x)\cos(x) \, dx").scale(1.5) self.play(Write(integral)) self.wait(1) # Show identity at top identity = MathTex(r"\sin(2x) = 2\s...
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: Riemann Rectangles adapting dynamically with ValueTracker. Use updaters and ValueTracker. ```python from manim import * import numpy as np class DynamicScene62(Scene): def construct(self): ax = Axes(x_range=[0, 4, 1], y_range=[0, 5, 1], x_length=6, y...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class DynamicScene62(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 DynamicScene62(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_frac ...
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 an educational ManimCE animation on 'Quadratic Residues and Non-Residues' (Visualizing Quadratic Reciprocity: The Dance of Residues): How does the quadratic reciprocity law visually distinguish quadratic residues and non-residues for different prime bases? Visual style guidance: Cinematic and engaging visual sty...
```python from manim import * class QuadraticReciprocity(Scene): def construct(self): # Title title = Text("Visualizing Quadratic Reciprocity").scale(0.8) subtitle = Text("The Dance of Residues").scale(0.6).next_to(title, DOWN) self.play(Write(title)) self.play(Writ...
```python from manim import * class QuadraticReciprocity(Scene): def construct(self): # Title title = Text("Visualizing Quadratic Reciprocity").scale(0.8) subtitle = Text("The Dance of Residues").scale(0.6).next_to(title, DOWN) self.play(Write(title)) self.play(Writ...
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...
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 InterferenceAndNoise(Scene): def construct(self): context_1 = Text('5. Overall Machine Adjustment, Signal Coverage, and Tuning Mechanism', font_size=20, color=LIGHT_GREY) context_2 = Text('5.1 Steps for AC...
```python from manim import * from manim import config Text.set_default(font='SimHei') class InterferenceAndNoise(Scene): def construct(self): context_1 = Text('5. Overall Machine Adjustment, Signal Coverage, and Tuning Mechanism', font_size=20, color=LIGHT_GREY) context_2 = Text('5.1 Steps for AC...
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...
Display a set of coordinate axes with a cyan-colored parametric curve in the shape of a cardioid. The curve is traced using the parametric equations involving exponential and trigonometric functions, forming a heart-like shape that loops around the origin.
```python from manim import * class ParametricCurveExample(Scene): def construct(self): ax = Axes() cardioid = ax.plot_parametric_curve( lambda t: np.array( [ np.exp(1) * np.cos(t) * (1 - np.cos(t)), np.exp(1) * np.sin(t) * (1 - np...
```python from manim import * class ParametricCurveExample(Scene): def construct(self): ax = Axes(axis_color=BLUE, ) cardioid = ax.plot_parametric_curve( lambda t: np.array( [ np.exp(1) * np.cos(t) * (1 - np.cos(t)), np.exp(1) * np...
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...
Create an educational ManimCE animation on 'Surface Classification' (Unraveling the Surface: Torus vs Möbius Band): How does the concept of genus distinguish between a Torus and a Möbius band? Visual style guidance: A modern illustrative style using a calming color palette of blues and greens, coupled with clean, sharp...
```python from manim import * class TorusVsMobiusBand(Scene): def construct(self): # Create the title of the animation title = Text("Unraveling the Surface: Torus vs Mobius Band", font_size=32) title.to_edge(UP) # Create basic representations of torus (double circle) and Mö...
```python from manim import * class TorusVsMobiusBand(Scene): def construct(self): # Create the title of the animation title = Text("Unraveling the Surface: Torus vs Mobius Band", font_size=32) title # Create basic representations of torus (double circle) and Möbius band (r...
spatial_layout_overlap
synthetic_hard_neg:bespokelabs/bespoke-manim
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning data structures and want a visual of merge sort's divide-and-conquer process. Illustrate the recursive splitting into halves and the merging steps with real-time comparisons and stable merges. Show subarrays as color-coded bars, with a timeline highlighting each merge operation until a fully sorted array e...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class MergeSortDivideAndConquer(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class MergeSortDivideAndConquer(Scene): def construct(self): title = Text('Merge Sort: Divide and Conquer', font_size=36) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) analogy = Text('Split → Sort → Merge', font_size=28, color=BLUE)...
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 an undergraduate statistics class and want a visual of linear regression via least squares. Plot noisy data, draw the best-fit line, and animate residuals with their signs and magnitudes to show how the line minimizes error. Demonstrate gradient-descent style updates on slope and intercept, and show R^2 ev...
```python from manim import * class LinearRegressionLeastSquares(Scene): def construct(self): title = Text('Linear Regression', font_size=48, color=BLUE) subtitle = Text('& Least Squares Method', font_size=32, color=WHITE) subtitle.next_to(title, DOWN, buff=0.3) title_group = VGrou...
```python from manim import * class LinearRegressionLeastSquares(Scene): def construct(self): title = Text('Linear Regression', font_size=48, color=BLUE) subtitle = Text('& Least Squares Method', font_size=32, color=WHITE) subtitle title_group = VGroup(title, subtitle) titl...
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 DijkstraLectureNotes(Scene): def construct(self): title = Title('Single-Source Shortest Paths: Dijkstra Algorithm') self.play(Write(title)) self.wait(0.5) kc_title = Tex('\\textbf{Key Concl...
```python from manim import * from manim import config Text.set_default(font='SimHei') class DijkstraLectureNotes(Scene): def construct(self): title = Title('Single-Source Shortest Paths: Dijkstra Algorithm') self.play(Write(title)) self.wait(0.5) kc_title = Tex('\\textbf{Key Concl...
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 an undergrad course on numerical linear algebra and want a visual explanation of SVD. Show geometrically how a matrix A transforms the unit circle into an ellipse, with singular vectors as axes and Σ as scaling. Then decompose A as UΣV^T and illustrate the transformation step by step, including a noisy per...
```python from manim import * class SVDScene(Scene): def construct(self): title = Text('Geometric Interpretation of SVD', font_size=36) title.to_edge(UP, buff=0.5) formula = MathTex('A = U', '\\Sigma', 'V^T', font_size=32) formula.next_to(title, DOWN, buff=0.3) formula[0][2...
```python from manim import * class SVDScene(Scene): def construct(self): title = Text('Geometric Interpretation of SVD', font_size=36) title formula = MathTex('A = U', '\\Sigma', 'V^T', font_size=32) formula formula[0][2:].set_color(BLUE) formula[1].set_color(RED) ...
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 12-second operations-research scene explaining a queue bottleneck. Show jobs arriving at a workstation faster than they are completed so the queue grows, then reduce arrivals and let the queue drain. Emphasize that utilization near capacity makes waiting sensitive to variability.
```python from manim import * class QueueBottleneck(Scene): def construct(self): title = Text("When arrivals outpace service, the queue grows", font_size=37).to_edge(UP) source = Text("arrivals", font_size=24, color=BLUE_B).shift(LEFT * 5 + UP * 1.5) server = VGroup( RoundedRect...
```python from manim import * class QueueBottleneck(Scene): def construct(self): title = Text("When arrivals outpace service, the queue grows", font_size=37) source = Text("arrivals", font_size=24, color=BLUE_B) server = VGroup( RoundedRectangle(width=2.1, height=1.25, corner_ra...
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 16:9 Manim animation for an advanced grade 12 chemistry class on electrochemical cells. The video should follow this structure: 1. Title slide displaying "Electrochemical Cells: Real-Life Applications" 2. Introduce the question as text on screen: "Provide an example of a real-life application where a galvani...
```python from manim import * import numpy as np import random import math class ElectrochemicalCells(Scene): def construct(self): # --------------------------------------------------------- # SECTION 1: Title Slide # --------------------------------------------------------- title =...
```python from manim import * import numpy as np import random import math class ElectrochemicalCells(Scene): def construct(self): # --------------------------------------------------------- # SECTION 1: Title Slide # --------------------------------------------------------- title =...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching an undergrad ML class and want a visual contrast between deep ensembles and Bayesian neural nets for uncertainty estimation. Show two models—an ensemble producing multiple predictive modes and a Bayesian NN with posterior samples—on a noisy regression task. Illustrate epistemic vs. aleatoric uncertainty wi...
```python from manim import * class DeepEnsemblesVsBNN(Scene): def construct(self): def make_nn(name, color, x_pos, y_pos, scale=0.5): layers = [] layer_counts = [3, 4, 4, 2] v_spacing = 0.4 * scale h_spacing = 0.8 * scale for i, n_count in enum...
```python from manim import * class DeepEnsemblesVsBNN(Scene): def construct(self): def make_nn(name, color, x_pos, y_pos, scale=0.5): layers = [] layer_counts = [3, 4, 4, 2] v_spacing = 0.4 * scale h_spacing = 0.8 * scale for i, n_count in enum...
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 Manim animation for a geography lesson on quantitative maps at the high school level. The video should be in 16:9 format and follow this structure: 1. Title slide: Display "Quantitative Maps" as the main heading with a subtitle "Types of Maps Used in Geography" 2. Introduction scene: Show a brief explanation...
```python from manim import * import random import numpy as np class QuantitativeMaps(Scene): def construct(self): # Color Palette BG_COLOR = "#0f0f0f" TEXT_COLOR = "#d4d4d4" ACCENT_DOT = "#4a9eff" # Blue ACCENT_CHORO = "#6ba76e" # Green ACCENT_ISO = "#e8945e...
```python from manim import * import random import numpy as np class QuantitativeMaps(Scene): def construct(self): # Color Palette BG_COLOR = "#0f0f0f" TEXT_COLOR = "#d4d4d4" ACCENT_DOT = "#4a9eff" # Blue ACCENT_CHORO = "#6ba76e" # Green ACCENT_ISO = "#e8945e...
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 sequence models; show a time-unrolled RNN/Transformer cell by duplicating the architecture across the sequence length, with shared parameters and state carried forward. Include a storyboard of the timeline and how attention/recurrence contribute.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class SequenceModelsArchitecture(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class SequenceModelsArchitecture(Scene): def construct(self): title = Text('Sequence Models', font_size=48, color=BLUE) subtitle = Text('Architecture & Applications', font_size=32, color=GRAY) VGroup(title, subtitle).arrange(DOWN, buff=0.5) self.play(W...
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 exploring sequence models and want a visual comparison of causal versus non-causal convolution. Use overlapping arrows to depict receptive fields, clearly showing how future context is excluded in causal conv and included in non-causal conv. Include a tiny input sequence and two filters sliding over it, color-codin...
```python from manim import * class CausalVersusNonCausalConvolution(Scene): def construct(self): title = Text('Causal vs Non-Causal Convolution', font_size=40) subtitle = Text('Understanding Temporal Dependencies in Sequence Processing', font_size=24, color=GRAY) header = VGroup(title, su...
```python from manim import * class CausalVersusNonCausalConvolution(Scene): def construct(self): title = Text('Causal vs Non-Causal Convolution', font_size=40) subtitle = Text('Understanding Temporal Dependencies in Sequence Processing', font_size=24, color=GRAY) header = VGroup(title, su...
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: Proof of Pythagorean Theorem via geometric rearrangement. ```python from manim import * import numpy as np class PedagogicalScene688(Scene): def construct(self): title = Title("Pythagorean Theorem: $a^2 + b^2 = c^2$") formula = M...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class PedagogicalScene688(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 PedagogicalScene688(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning algorithms and want a vivid visualization of KMP pattern matching on a text and pattern. Show preprocessing of the prefix function, then walk through the text with the failure links guiding the scan, highlighting comparisons. Include multiple scenes: pattern indexing, the border table animation, and a live...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class KMPPatternMatchingScene(VoiceoverScene): def make_boxes(self, s, color=WHITE): group = VGroup() for ch in s: box = Square(side_length=0.45, color=color, f...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class KMPPatternMatchingScene(VoiceoverScene): def make_boxes(self, s, color=WHITE): group = VGroup() for ch in s: box = Square(side_length=0.45, color=color, f...
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 an undergrad ML course and want a vivid visualization of Softplus and its variants. Show how the curve changes with parameters like beta and offset, compare with ReLU, and illustrate gradient flow during a simple backprop step on a tiny network.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class ComparisonScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ...
```python from manim import * import numpy as np class ComparisonScene(Scene): def construct(self): title = Text('Softplus Variants and ReLU Comparison', font_size=36, color=BLUE) subtitle = Text('Activation Functions in Neural Networks', font_size=24, color=GRAY) subtitle.next_to(title, D...
narrated_pedagogical_preference
nabin2004/manim-narrated-dpo-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Could you create an animation where a series of multiplication problems involving the number 5 and the numbers 1 through 5 are displayed one under the other on a white background? Each multiplication step should be shown in a sequence where the number 5 is red, the multiplier of 5 is blue, and the resultant product is ...
```python from manim import * class GraphTheoryPrim(Scene): def construct(self): vertices = [ (np.cos(ang), np.sin(ang), 0) for ang in np.linspace(0, TAU, 7, endpoint=False) ] edges = [ (0, 2), (0, 3), (1, 3), (1, 4), ...
```python from manim import * class GraphTheoryPrim(Scene): def construct(self): vertices = [ (np.cos(ang), np.sin(ang), 0) for ang in np.linspace(0, TAU, 7, endpoint=False) ] edges = [ (0, 2), (0, 3), (1, 3), (1, 4), ...
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 9th grade science lesson on uniformly accelerated motion. The video should be in 16:9 format and follow this structure: Start with an introductory scene showing the title "Uniformly Accelerated Motion" with a subtitle "Starting from Rest". Use a calm, educational color scheme. Next, dis...
```python from manim import * import numpy as np class UniformlyAcceleratedMotion(Scene): def construct(self): # 1. INTRO SCENE # ----------------------------------------- title = Text("Uniformly Accelerated Motion", font_size=48, color="#4a9eff") title.to_edge(UP, buff=1.0) ...
```python from manim import * import numpy as np class UniformlyAcceleratedMotion(Scene): def construct(self): # 1. INTRO SCENE # ----------------------------------------- title = Text("Uniformly Accelerated Motion", font_size=48, color="#4a9eff") title.to_edge(UP, buff=1.0) ...
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...
Construct a clean Manim CE scene initializing RightAngle with verified keyword arguments. Ensure no deprecated ManimGL arguments (like element_color, max_value, or max_magnitude) are used. ```python from manim import * import numpy as np class ApiValidRightAngle70(Scene): def construct(self): obj = RightA...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class ApiValidRightAngle70(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 ApiValidRightAngle70(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
How do the prime ideals' heights in a Noetherian ring correlate with the dimensionality of the geometric structure over Spec(R)?
```python from manim import * class PrincipalIdealTheoremScene(Scene): def construct(self): # Title title = Text("The Geometry of Rings", font_size=32) subtitle = Text("Unveiling the Principal Ideal Theorem", font_size=24) subtitle.next_to(title, DOWN) # Group the t...
```python from manim import * class PrincipalIdealTheoremScene(Scene): def construct(self): # Title title = Text("The Geometry of Rings", font_size=32) subtitle = Text("Unveiling the Principal Ideal Theorem", font_size=24) subtitle.next_to(title, DOWN) # Group the t...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I’m teaching an undergrad ML course and want the final test evaluation to be shown as a single forward pass through the untouched test block, with the resulting accuracy displayed prominently. Build a concise scene where the test batch is fed once, and the final top-1 accuracy updates as the forward pass completes. Inc...
```python from manim import * class ForwardPassAccuracyEvaluation(Scene): def construct(self): title = Text('Forward Pass Accuracy Evaluation', font_size=42, color=BLUE) subtitle = Text('Assessing Neural Network Performance', font_size=24, color=GRAY) subtitle.next_to(title, DOWN, buff=0.3...
```python from manim import * class ForwardPassAccuracyEvaluation(Scene): def construct(self): title = Text('Forward Pass Accuracy Evaluation', font_size=42, color=BLUE) subtitle = Text('Assessing Neural Network Performance', font_size=24, color=GRAY) subtitle title_group = VGroup(...
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 how an MLP computes logits; please visualize a forward pass Input -> Linear1 -> Tanh -> Linear2 -> Logits, with the shapes displayed between layers (e.g., [B, D_in] -> [B, D_hidden] -> [B, D_hidden] -> [B, D_out]). Include a concrete example.
```python from manim import * import numpy as np class MLPForwardPass(Scene): def construct(self): title = Text('MLP Forward Pass Visualization', font_size=36, color=BLUE) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) self.wait(0.5) input_layer = self.cr...
```python from manim import * import numpy as np class MLPForwardPass(Scene): def construct(self): title = Text('MLP Forward Pass Visualization', font_size=36, color=BLUE) title self.play(Write(title), run_time=2.0) self.wait(0.5) input_layer = self.create_layer(3, LEFT * 4...
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...
Here is the enhanced animation description: The scene begins with an orange regular pentagon centered on the screen. As the pentagon rotates counterclockwise by 90 degrees over two seconds, a new feature is introduced—a dynamic mathematical formula appears above it, displaying the rotation angle in real-time. The fo...
```python from manim import * class EnhancedPentagonRotation(Scene): def construct(self): # Create pentagon pentagon = RegularPolygon(5, color=ORANGE, fill_opacity=0.8) pentagon.scale(2) # Create rotation formula formula = MathTex(r"\theta = 0^\circ").scale(1.2) ...
```python from manim import * class EnhancedPentagonRotation(Scene): def construct(self): # Create pentagon pentagon = RegularPolygon(5, color=ORANGE, fill_opacity=0.8) pentagon.scale(2) # Create rotation formula formula = MathTex(r"\theta = 0^\circ").scale(1.2) ...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create a 30-second Manim scene that combines a 3D surface walkthrough with a small fixed-frame dashboard table. Show the full surface first, then highlight two slice curves and a moving probe while the camera orbits.
```python from manim import * class SurfaceSliceDashboardStory(ThreeDScene): def construct(self): def z_height(u, v): return 0.25 * u * np.exp(-(u**2 + v**2) / 8) + 0.45 * np.sin(v) * np.cos(u / 2) title = Text("A Surface and Its Informative Slices", font_size=34).to_edge(UP) d...
```python from manim import * class SurfaceSliceDashboardStory(Scene): def construct(self): def z_height(u, v): return 0.25 * u * np.exp(-(u**2 + v**2) / 8) + 0.45 * np.sin(v) * np.cos(u / 2) title = Text("A Surface and Its Informative Slices", font_size=34).to_edge(UP) dashboa...
wrong_3d_scene_base
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 learning how running mean and variance converge to population statistics. Animate two lines that start apart and gradually settle toward a fixed population line as more data streams in, with a timeline of sample count and labels for bias correction. Show how train vs eval behavior depends on those limits and includ...
```python import random from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class ConvergenceRunningMeanVariance(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache"...
```python import random from manim import * class ConvergenceRunningMeanVariance(Scene): def construct(self): self.camera.background_color = '#1a1a2e' title = Text('Convergence of Running Mean & Variance', font_size=36, color='#eee') subtitle = Text('Incremental Statistics for Machine Lear...
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...
In a scale-free network, what role does resilience play in maintaining functionality when exposed to random vs targeted attacks?
```python from manim import * class ScaleFreeNetworkResilience(Scene): def construct(self): # Introduction title title = Text("The Resilient Heartbeat of Scale-Free Networks", font_size=32) self.play(Write(title)) self.wait(1) self.play(FadeOut(title)) ...
```python from manim import * class ScaleFreeNetworkResilience(Scene): def construct(self): # Introduction title title = Text("The Resilient Heartbeat of Scale-Free Networks", font_size=32) self.play(Write(title)) self.wait(1) self.play(FadeOut(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...
Here’s an enhanced version of the animation that retains the original features while adding dynamic transformations, explanatory text, and a smooth transition sequence: The animation begins with a square and a circle (radius 1) appearing simultaneously as part of a VGroup. After a brief pause, the square smoothly morp...
```python from manim import * class ShapeTransformation(Scene): def construct(self): # Create initial shapes square = Square(side_length=2, color=BLUE) circle = Circle(radius=1, color=RED) shapes = VGroup(square, circle) shapes.arrange(RIGHT, buff=1.5) # Cre...
```python from manim import * class ShapeTransformation(Scene): def construct(self): # Create initial shapes square = Square(side_length=2, color=BLUE) circle = Circle(radius=1, color=RED) shapes = VGroup(square, circle) shapes.arrange(RIGHT, buff=1.5) # Cre...
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 MFCCPreEmphasis(Scene): def construct(self): title = Text('Complete Calculation Process for MFCC', font_size=36, weight=BOLD) subtitle = Text('Step 1: Pre-emphasis', font_size=30, color=BLUE_C) hea...
```python from manim import * from manim import config Text.set_default(font='SimHei') class MFCCPreEmphasis(Scene): def construct(self): title = Text('Complete Calculation Process for MFCC', font_size=36, weight=BOLD) subtitle = Text('Step 1: Pre-emphasis', font_size=30, color=BLUE_C) hea...
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 educational ManimCE animation on 'Euler Characteristic' (Exploring Non-Orientable Surfaces and the Curious Euler Characteristic): What is the Euler characteristic of non-orientable surfaces like the Möbius strip? Visual style guidance: The animation will embrace a clean, vivid color palette with a focus on bl...
```python from manim import * class EulerCharacteristicNonOrientable(Scene): def construct(self): # Title title = Text("Exploring Non-Orientable Surfaces", font_size=32) subtitle = Text("and the Euler Characteristic", font_size=28) subtitle.next_to(title, DOWN) self...
```python from manim import * class EulerCharacteristicNonOrientable(Scene): def construct(self): # Title title = Text("Exploring Non-Orientable Surfaces", font_size=32) subtitle = Text("and the Euler Characteristic", font_size=28) subtitle.next_to(title, DOWN) self...
legacy_api_hallucination
synthetic_hard_neg:bespokelabs/bespoke-manim
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Construct a clean Manim CE scene initializing ArrowVectorField 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 ApiValidArrowVectorField148(Scene): def construct(self): ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class ApiValidArrowVectorField148(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_wi...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class ApiValidArrowVectorField148(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_wi...
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 an introductory linear algebra course and want a rich visualization of the spectral theorem. Create a multi-scene animation showing a symmetric matrix acting on vectors, then transform to the eigenbasis where eigenvectors stay fixed and the transform becomes simple scaling. Include a parameter sweep over e...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class SpectralTheoremScene(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 SpectralTheoremScene(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 autograd graphs and want to visualize the backward() call as a signal propagating backward through the graph. Light up each operation node in sequence with a fading glow, show gradient arrows flowing along edges, and include a short overlay that summarizes the chain rule steps as they propagate.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class AutogradBackwardScene(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 AutogradBackwardScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create a step-by-step educational Manim CE lecture scene explaining: Proof of Pythagorean Theorem via geometric rearrangement. ```python from manim import * import numpy as np class PedagogicalScene736(Scene): def construct(self): title = Title("Pythagorean Theorem: $a^2 + b^2 = c^2$") formula = M...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService MARGIN = 0.5 class PythagoreanTheoremScene(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_frac ma...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService MARGIN = 0.5 class PythagoreanTheoremScene(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_frac ma...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create an interactive Manim CE animation demonstrating: Tangent line dynamically tracking curve f(x) = x^2. Use updaters and ValueTracker. ```python from manim import * import numpy as np class DynamicScene76(Scene): def construct(self): ax = Axes(x_range=[-3, 3, 1], y_range=[0, 9, 3], x_length=6, y_lengt...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class DynamicTangentScene(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 DynamicTangentScene(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Here's an enhanced version that maintains all original elements while adding explanatory text, mathematical formulas, and a transformation sequence: The animation begins with a red rectangle fading into view while an orange triangle grows from the origin and positions itself above the rectangle. As these shapes stabil...
```python from manim import * class EnhancedAreaCalculation(Scene): def construct(self): # Create shapes rectangle = Rectangle(width=4, height=2, color=RED) triangle = Polygon(ORIGIN, [2,0,0], [2,2,0], color=ORANGE) triangle.next_to(rectangle, UP, buff=0.5) # Create...
```python from manim import * class EnhancedAreaCalculation(Scene): def construct(self): # Create shapes rectangle = Rectangle(width=4, height=2, color=RED) triangle = Polygon(ORIGIN, [2,0,0], [2,2,0], color=ORANGE) triangle.next_to(rectangle, UP, buff=0.5) # Create...
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...
Write a Manim CE visualization using scientific Python libraries (numpy, scipy, sympy) for: Linear Algebra 2D Matrix Eigenvector Transformation. ```python from manim import * import numpy as np class SciComputeScene660(Scene): def construct(self): plane = NumberPlane(x_range=[-4, 4, 1], y_range=[-3, 3, 1]...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class SciComputeScene660(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 SciComputeScene660(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 learning tensor shapes and want to trace shapes by hand on a visible scratchpad. Animate a pen-and-paper style derivation that shows how shapes transform through each operation, with dimension labels and broadcasting notes. Include arrows tracing axes and a live log of the resulting shape after each step. Finish wi...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class TensorShapesAndBroadcasting(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class TensorShapesAndBroadcasting(Scene): def construct(self): title = Text('Tensor Shapes and Broadcasting', font_size=48, color=BLUE) subtitle = Text('The Magic Behind Efficient AI Computations', font_size=28, color=GRAY) subtitle.next_to(title, DOWN, buff=0...
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 how single gradient outliers affect training dynamics and want a focused visualization. Animate a bar chart where one gradient spike explodes into a red outlier, tracking its impact on the overall norm. Show the surrounding bars barely budging at first, then the explode event, with a timeline caption. I wa...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import math class GradientOutliersScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import math class GradientOutliersScene(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...
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 LifeProblemsToExpressions(Scene): def construct(self): title = Text('Converting Life Problems to Expressions', font_size=36, color=YELLOW) title.to_edge(UP) self.play(Write(title)) ex1_titl...
```python from manim import * from manim import config Text.set_default(font='SimHei') class LifeProblemsToExpressions(Scene): def construct(self): title = Text('Converting Life Problems to Expressions', font_size=36, color=YELLOW) title self.play(Write(title)) ex1_title = Text('Ex...
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 PriorityQueueScene(Scene): def construct(self): title = Text('Priority Queue', font_size=34, color=WHITE, weight=BOLD) title.to_edge(UP, buff=0.5) title_line = Line(LEFT, RIGHT, color=ORANGE).next_...
```python from manim import * from manim import config Text.set_default(font='SimHei') class PriorityQueueScene(Scene): def construct(self): title = Text('Priority Queue', font_size=34, color=WHITE, weight=BOLD) title title_line = Line(LEFT, RIGHT, color=ORANGE) title_line.match_wi...
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 undergraduate ML class and need a clean line chart of training and validation loss across epochs. Show two lines, with a clear marker and annotation where validation starts to diverge (overfitting). Add shading for the gap, and a zoomed inset around the overfitting point to inspect the slope, plus a sma...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class TrainingValidationLossChart(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 TrainingValidationLossChart(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 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 DynamicScene919(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 DynamicScene919(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 DynamicScene919(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 teaching a course on CNNs and want a pyramidal visualization of convolution hierarchies capturing longer contexts. Construct stacked convolution blocks where each level expands receptive field, forming a pyramid that grows to cover larger context. Animate filters sliding over a 1D/2D input with increasing dilation ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class PyramidalVisualizationOfCNNHierarchies(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ...
```python from manim import * class PyramidalVisualizationOfCNNHierarchies(Scene): def construct(self): title = Text('Pyramidal Visualization of CNN Hierarchies', font_size=36) title.to_edge(UP, buff=0.4) self.play(Write(title), run_time=2.0 * 0.5) self.wait(2.0 * 0.5) laye...
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 optimization and want to understand why gradients zigzag in a narrow canyon. Visualize a 2D loss surface with a tight canyon and show gradient vectors pointing mostly along the canyon walls, causing oscillations. Add a depiction of the Hessian's eigenvectors and show how large curvature in one direction le...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class NarrowCanyonOptimization(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 NarrowCanyonOptimization(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model...
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 a signal about backprop gradients and want to visualize the gradient distribution for Layer 5 vs Layer 1 as two side-by-side histograms. Highlight vanishing gradients with color cues, and animate a moving cutoff line to reveal distribution shifts. Include captions explaining typical ranges and interpretabi...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class BackpropagationGradientDistribution(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ...
```python from manim import * class BackpropagationGradientDistribution(Scene): def construct(self): title = Text('Backpropagation Gradient Distribution', font_size=42, color=BLUE) subtitle = Text('Understanding How Gradients Flow', font_size=28, color=GRAY) subtitle.next_to(title, DOWN, b...
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: 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 * from manim import config Text.set_default(font='SimH...
```python from manim import * from manim import config Text.set_default(font='SimHei') class LaplaceDifferentialProperty(Scene): def construct(self): title = Text('Laplace Transform Properties: Differentiation', font_size=40, weight=BOLD) title.set_color(BLUE) title.to_edge(UP, buff=0.5) ...
```python from manim import * from manim import config Text.set_default(font='SimHei') class LaplaceDifferentialProperty(Scene): def construct(self): title = Text('Laplace Transform Properties: Differentiation', font_size=40, weight=BOLD) title.set_color(BLUE) title.to_edge(UP, buff=0.5) ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching an undergrad course on 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 * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class LayerNormGradientFlow(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 LayerNormGradientFlow(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...
How does the shape operator transform the tangent space of a surface as it deviates from a plane at a point?
```python from manim import * class ShapeOperatorScene(Scene): def construct(self): # Set up the title title = Text("Understanding Tangents: The Shape Operator's Dance", font_size=36) self.play(Write(title)) self.wait(1) self.play(FadeOut(title)) # Introduct...
```python from manim import * class ShapeOperatorScene(Scene): def construct(self): # Set up the title title = Text("Understanding Tangents: The Shape Operator's Dance", font_size=36) self.play(Write(title)) self.wait(1) self.play(FadeOut(title)) # Introduct...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning how batch statistics are computed for a single feature. Animate computing the batch mean and variance along the batch axis for one feature dimension, showing the formulas mu = (1/m) sum x_i and var = (1/m) sum (x_i - mu)^2, with a running window across the batch.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class BatchMeanAndVariance(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 BatchMeanAndVariance(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...
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): self.show_han_equations() self.show_han_advantages() self.show_bert_overview() self.show_bert_flowchart() def show_han_equations(self): ...
```python from manim import * from manim import config Text.set_default(font='SimHei') class LectureNotes(Scene): def construct(self): self.show_han_equations() self.show_han_advantages() self.show_bert_overview() self.show_bert_flowchart() def show_han_equations(self): ...
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 automatic differentiation and want a compute graph for a small expression I can gradient-check. Visualize the nodes and edges, and prompt me to trace the gradients by hand, then reveal the correct gradient values with a color fade. Include a few intermediate scalars and a final scalar to compare my trace a...
```python from manim import * class AutomaticDifferentiation(Scene): def construct(self): title = Text('Automatic Differentiation', font_size=48, color=BLUE) subtitle = Text('via Compute Graphs', font_size=32, color=GRAY) subtitle.next_to(title, DOWN) self.play(Write(title), Write(...
```python from manim import * class AutomaticDifferentiation(Scene): def construct(self): title = Text('Automatic Differentiation', font_size=48, color=BLUE) subtitle = Text('via Compute Graphs', font_size=32, color=GRAY) subtitle.next_to(title, DOWN) self.play(Write(title), Write(...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching an undergrad ML course and want a visualization of the training loop that evaluates on the dev set after every epoch. Include a vertical dashed line marking the best checkpoint and transitions showing early stopping criteria.
```python from manim import * class TrainingLoopWithEarlyStopping(Scene): def construct(self): title = Text('Training Loop with Early Stopping', font_size=44, color=BLUE) subtitle = Text('Preventing Overfitting in AI Models', font_size=26, color=WHITE) subtitle.next_to(title, DOWN, buff=0....
```python from manim import * class TrainingLoopWithEarlyStopping(Scene): def construct(self): title = Text('Training Loop with Early Stopping', font_size=44, color=BLUE) subtitle = Text('Preventing Overfitting in AI Models', font_size=26, color=WHITE) subtitle.next_to(title, DOWN, buff=0....
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 Bayesian optimization in RL and want a visualization of how a GP-based optimizer guides model-based RL for a robot vision task. Depict the interaction loop: agent collects data from robot-camera observations, a GP surrogate updates, and the acquisition function selects the next experiment. Show a 3D robot ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class RobotVisionBOScene(ThreeDScene, VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_camera_orientation(phi=70 * DEGREES, theta=-45 * DEGREES) ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class RobotVisionBOScene(ThreeDScene, VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_camera_orientation(phi=70 * DEGREES, theta=-45 * DEGREES) ...
invalid_axes_kwarg
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching an undergrad course on model introspection and want a visualization of the parameter iterator that yields all trainable tensors. Display a stream of labeled tensors for each layer and highlight the current parameter group as the iterator advances. Include a side panel with shapes, names, and requires_grad ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class ParameterIteratorScene(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 ParameterIteratorScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create an educational ManimCE animation on 'Cryptographic Key Exchange' (The Beauty Behind Cryptographic Key Efficiency): What graphical methods could be employed to compare the efficiency of elliptic curve cryptography (ECC) over RSA for the same level of security? Visual style guidance: The animation will feature a m...
```python from manim import * class CryptoKeyEfficiencyScene(Scene): def construct(self): # Title of the presentation title = Text("The Beauty Behind Cryptographic Key Efficiency", font_size=36) self.play(Write(title)) self.wait(1) self.play(FadeOut(title)) ...
```python from manim import * class CryptoKeyEfficiencyScene(Scene): def construct(self): # Title of the presentation title = Text("The Beauty Behind Cryptographic Key Efficiency", font_size=36) self.play(Write(title)) self.wait(1) self.play(FadeOut(title)) ...
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...
How do complex power series exhibit different convergence properties when expanded around essential singularities as opposed to regular points?
```python from manim import * class ComplexPowerSeriesScene(Scene): def construct(self): # Title of the animation title = Text("Diving into the Kaleidoscope of Complex Power Series", font_size=28) self.play(Write(title)) self.wait() self.play(title.animate.to_edge(UP)) ...
```python from manim import * class ComplexPowerSeriesScene(Scene): def construct(self): # Title of the animation title = Text("Diving into the Kaleidoscope of Complex Power Series", font_size=28) self.play(Write(title)) self.wait() self.play(title.animate) ...
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 ShortTimeEnergy(Scene): def construct(self): title = Text('Short-Time Energy Feature', font_size=34, color=WHITE, weight=BOLD) title.to_edge(UP, buff=0.5) title_line = Line(LEFT, RIGHT, color=ORANG...
```python from manim import * from manim import config Text.set_default(font='SimHei') class ShortTimeEnergy(Scene): def construct(self): title = Text('Short-Time Energy Feature', font_size=34, color=WHITE, weight=BOLD) title title_line = Line(LEFT, RIGHT, color=ORANGE) title_line....
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 DataWarehouseArchitecture(Scene): def construct(self): title = Text('Data Warehouse Architecture', font_size=48, weight=BOLD) subtitle = Text('Basic Concepts of Data Warehouse', font_size=24, color=GRAY) ...
```python from manim import * from manim import config Text.set_default(font='SimHei') class DataWarehouseArchitecture(Scene): def construct(self): title = Text('Data Warehouse Architecture', font_size=48, weight=BOLD) subtitle = Text('Basic Concepts of Data Warehouse', font_size=24, color=GRAY) ...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm studying overfitting and want a high-variance visualization: fit a highly oscillatory polynomial that passes through noisy data. Animate a complex polynomial curve weaving through all data points, then reveal the test data and show how this variance hurts generalization. Include zoom-ins on noisy regions and annota...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class OverfittingVarianceScene(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 OverfittingVarianceScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model...
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 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 PedagogicalScene657(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 GradientDescent2DScene(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 GradientDescent2DScene(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width *...
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 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 * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class NLLLossScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice='alba', cache_dir='voiceover_cache') ) title = Text('...
```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) ...
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: Lorenz Attractor Differential Equation with SciPy solve_ivp. ```python from manim import * import numpy as np from scipy.integrate import solve_ivp class SciComputeScene234(Scene): def construct(self): from scipy.i...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np from scipy.integrate import solve_ivp MARGIN = 0.5 class SciComputeScene234(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np from scipy.integrate import solve_ivp MARGIN = 0.5 class SciComputeScene234(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
The following Manim CE scene failed to compile. Truncated traceback: TypeError: Mobject.__init__() got an unexpected keyword argument 'max_value' Fix the code. Return a complete working scene. Do not keep the invalid constructor kwargs or Unicode subscripts. ```python from manim import * class CircularMotionExample...
```python from manim import * class CircularMotionExample(Scene): def construct(self): # Write the equation of the motion equation = MathTex(r"m \vec{a} = m \vec{g} + \vec{T}") self.play(Write(equation)) self.wait(1) # Explain the terms in the equation terms_explana...
```python from manim import * class CircularMotionExample(Scene): def construct(self): # Write the equation of the motion equation = MathTex(r"m \vec{a} = m \vec{g} + \vec{T}") self.play(Write(equation)) self.wait(1) # Explain the terms in the equation terms_explana...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create a 10-second Manim scene that demonstrates changing animation speed over time. Use ChangeSpeed on a moving dot and keep another shape spinning continuously so the timing difference is obvious.
```python from manim import * class SpeedModifierWithSpinner(Scene): def construct(self): title = Text("ChangeSpeed Re-times an Animation", font_size=34).to_edge(UP) dot = Dot(LEFT * 4 + DOWN * 1.1, color=YELLOW, radius=0.1) tracer = TracedPath(dot.get_center, stroke_color=YELLOW_D, stroke_...
```python from manim import * class SpeedModifierWithSpinner(Scene): def construct(self): title = Text("ChangeSpeed Re-times an Animation", font_size=34).to_edge(UP) dot = Dot(LEFT * 4 + DOWN * 1.1, color=YELLOW, radius=0.1) tracer = TracedPath(dot.get_center, stroke_color=YELLOW_D, stroke_...
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...
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(Scene): def construct(self): ax = Axes(x_range=[-PI, PI, PI/2], y_range=[-1.5, 1.5, 0.5...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class SciComputeScene469(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 SciComputeScene469(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 course on numerical stability in neural nets and want to visualize log_softmax on a vector, emphasizing the max-subtraction trick and how it prevents overflow.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class NumericalStabilityScene(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 NumericalStabilityScene(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 an undergrad ML course and want a side-by-side animation of optimization on a saddle point. Show SGD oscillating along the saddle and Adam progressively escaping, with velocity vectors and learning-rate indicators. Use a 2D surface, plot the trajectories, and annotate which terms drive the escape in Adam. ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class SaddlePointScene(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 SaddlePointScene(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 sequence modeling and want a clear confusion-matrix-style visualization for next-character predictions. Show predicted probability slices vs. actual next-character labels on the validation set, with a big heatmap comparing probabilities to true counts. Annotate typical mispredictions and emphasize per-char...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class SequenceModelingConfusionMatrixVisualization(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 SequenceModelingConfusionMatrixVisualization(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 internal covariate shift and batch norm. Visualize a layer receiving inputs from a drifting distribution, with a plot showing the mean and variance wandering over training. Then show batch normalization as a clamp that re-centers and scales inputs to a steady distribution, highlighting how the normal...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class InternalCovariateShiftAndBatchNorm(VoiceoverScene): """A comprehensive lecture on Internal Covariate Shift and Batch Normalization.""" def construct(self): # Set up...
```python from manim import * class InternalCovariateShiftAndBatchNorm(Scene): """A comprehensive lecture on Internal Covariate Shift and Batch Normalization.""" def construct(self): title = Text('Internal Covariate Shift', font_size=48, color=BLUE) subtitle = Text('& Batch Normalization', fon...
narrated_pedagogical_preference
nabin2004/manim-narrated-dpo-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Here's an enhanced version of the animation that maintains all original features while adding significant new visual elements: The enhanced animation begins by displaying the integral problem "∫₀^π sin(x) dx" with a smooth Write animation, then introduces a labeled sine wave graph that appears above the equation, show...
```python from manim import * class IntegralOfSine(Scene): def construct(self): # Setup colors equation_color = YELLOW graph_color = BLUE area_color = "#00FF00" antiderivative_color = "#FF00FF" text_color = WHITE # Create integral equation integral =...
```python from manim import * class IntegralOfSine(Scene): def construct(self): # Setup colors equation_color = YELLOW graph_color = BLUE area_color = "#00FF00" antiderivative_color = "#FF00FF" text_color = WHITE # Create integral equation integral =...
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 DigitalLogicLesson4(Scene): def construct(self): self.scene1_title() self.scene2_process() self.scene3_hierarchy() self.scene4_shared_terms() self.scene5_cost() def scene1_titl...
```python from manim import * from manim import config Text.set_default(font='SimHei') class DigitalLogicLesson4(Scene): def construct(self): self.scene1_title() self.scene2_process() self.scene3_hierarchy() self.scene4_shared_terms() self.scene5_cost() def scene1_titl...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm studying autoregressive language models and want to visualize the evolution of output logits over the vocabulary at each generation step. Show a horizontal bar chart for logits at time t, then animate t+1 with a new set of bars, highlighting the top-1 token. Include a caption describing temperature scaling and a sl...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class AutoregressiveLogitsScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_mode...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class AutoregressiveLogitsScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_mode...
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 interactive Manim CE animation demonstrating: Cycloid Generation with TracedPath and rolling circle. Use updaters and ValueTracker. ```python from manim import * import numpy as np class DynamicScene90(Scene): def construct(self): ground = Line(LEFT * 4 + DOWN * 1.5, RIGHT * 4 + DOWN * 1.5, colo...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class DynamicScene90(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 DynamicScene90(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_frac ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I’m teaching 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 LinearLayerWeightUpdate(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class LinearLayerWeightUpdate(Scene): def construct(self): title = Text('Linear Layer Weight Update', font_size=40, color=BLUE) subtitle = Text('How Neural Networks Learn', font_size=28, color=GRAY) subtitle.next_to(title, DOWN, buff=0.3) self.play(Wri...
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...
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 VirtualAddressSpace(Scene): def construct(self): title = Text('Virtual Address Space Abstraction', font_size=34, color=WHITE, weight=BOLD) title.to_edge(UP, buff=0.5) title_line = Line(LEFT, RIGHT,...
```python from manim import * from manim import config Text.set_default(font='SimHei') class VirtualAddressSpace(Scene): def construct(self): title = Text('Virtual Address Space Abstraction', font_size=34, color=WHITE, weight=BOLD) title title_line = Line(LEFT, RIGHT, color=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 learning data structures and want a visual of merge sort's divide-and-conquer process. Illustrate the recursive splitting into halves and the merging steps with real-time comparisons and stable merges. Show subarrays as color-coded bars, with a timeline highlighting each merge operation until a fully sorted array e...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class MergeSortScene(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 MergeSortScene(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 studying analytic geometry and want a dynamic construction of parabola, ellipse, and hyperbola. Animate the focus–directrix definitions and show how parameter changes yield the standard forms y^2=4ax, x^2/a^2+y^2/b^2=1, and x^2/a^2−y^2/b^2=1. Include the cone-slice interpretation or alternative definitions, and hig...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import math class ConicSectionsScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * import math class ConicSectionsScene(Scene): def construct(self): title = Text('Analytic Geometry of Conic Sections', font_size=40) title.to_edge(UP, buff=0.3) self.play(FadeIn(title), run_time=2.0 * 0.4) projectile = ParametricFunction(lambda t: [2 * ...
narrated_pedagogical_preference
nabin2004/manim-narrated-dpo-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching number sense to early undergrads and want a clear visualization of integer addition and subtraction on a number line. Show steps for adding positives and negatives, subtracting by reversals, and how to move left or right with emphasis on sign rules. Include examples with negative numbers and a few properti...
```python from manim import * class IntegerAdditionAndSubtractionVisualization(Scene): def construct(self): title = Text('Integer Addition & Subtraction', font_size=40) subtitle = Text('Visualizing with Number Lines', font_size=28, color=BLUE) title_group = VGroup(title, subtitle).arrange(...
```python from manim import * class IntegerAdditionAndSubtractionVisualization(Scene): def construct(self): title = Text('Integer Addition & Subtraction', font_size=40) subtitle = Text('Visualizing with Number Lines', font_size=28, color=BLUE) title_group = 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...
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 SemanticEvaluation(Scene): def construct(self): title1 = Tex('Example 7: Relation Explanation', color=YELLOW).to_edge(UP) self.play(Write(title1)) t1 = Tex('\\textbf{Language:} Contains the binary ...
```python from manim import * from manim import config Text.set_default(font='SimHei') class SemanticEvaluation(Scene): def construct(self): title1 = Tex('Example 7: Relation Explanation', color=YELLOW) self.play(Write(title1)) t1 = Tex('\\textbf{Language:} Contains the binary predicate $P...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create a Manim animation for a grade 12 physics lesson on rectifier circuits. The video should be 16:9 aspect ratio and follow this structure: 1. Title slide: Display "Rectifier Circuits" with a subtitle "Converting AC to DC" 2. Question presentation: Show the question "Provide an example of a device that uses a rect...
```python from manim import * import numpy as np class RectifierCircuits(Scene): def construct(self): # --- 1. Title Slide --- title = Text("Rectifier Circuits", font_size=54, color="#d4d4d4") subtitle = Text("Converting AC to DC", font_size=36, color="#4a9eff") # Position ...
```python from manim import * import numpy as np class RectifierCircuits(Scene): def construct(self): # --- 1. Title Slide --- title = Text("Rectifier Circuits", font_size=54, color="#d4d4d4") subtitle = Text("Converting AC to DC", font_size=36, color="#4a9eff") # Position ...
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 an instructor designing a Manim video for a sophomore linear algebra class; prerequisite: vectors, matrix multiplication, and basic eigen/SVD ideas. Create a visual that builds intuition for singular value decomposition: A = U Σ V^T with singular values as scaling along principal axes. Show multiple scenes: a 2D/3D...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class SVDExplanation(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) # ...
```python from manim import * class SVDExplanation(Scene): def construct(self): title = Text('Singular Value Decomposition', font_size=42) title.to_edge(UP, buff=0.4) subtitle = Text('Understanding the Hidden Structure of Data', font_size=26, color=GRAY) subtitle.next_to(title, DOW...
narrated_pedagogical_preference
nabin2004/manim-narrated-dpo-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create a 30-second Manim explainer showing how a square-wave approximation is built from odd sine terms. Show the first term, then the first two odd terms, then the first three odd terms, and compare the final approximation to a square-wave reference.
```python from manim import * class FourierSeriesBuild(Scene): def construct(self): title = Text("Building a Square Wave", font_size=40).to_edge(UP) axes = Axes( x_range=[-PI, PI, PI / 2], y_range=[-1.6, 1.6, 0.5], x_length=9, y_length=4.5, ...
```python from manim import * class FourierSeriesBuild(Scene): def construct(self): title = Text("Building a Square Wave", font_size=40).to_edge(UP) axes = Axes( x_range=[-PI, PI, PI / 2], y_range=[-1.6, 1.6, 0.5], x_length=9, y_length=4.5, ...
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 Manim animation for a Business Studies class (Grade 12) explaining the role of the Foreign Investment Promotion Board during India's 1991 economic reforms. The video should be in 16:9 format and follow this structure: 1. Title slide: Display "Economic Reforms in India (1991)" with a subtitle "Role of FIPB" 2...
```python from manim import * import numpy as np import random import math class FIPBRoleScene(Scene): def construct(self): # 1. Title Slide # --------------------------------------------------------- title = Text("Economic Reforms in India (1991)", font_size=42, color=BLUE) subtitl...
```python from manim import * import numpy as np import random import math class FIPBRoleScene(Scene): def construct(self): # 1. Title Slide # --------------------------------------------------------- title = Text("Economic Reforms in India (1991)", font_size=42, color=BLUE) subtitl...
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...
Construct a clean Manim CE scene initializing NumberPlane 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 ApiValidNumberPlane87(Scene): def construct(self): obj = Numb...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class ApiValidNumberPlane87(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 ApiValidNumberPlane87(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 video animation for a Grade 9 Science class explaining what a compound is. The video should be in 16:9 format. Start with a title slide displaying "What is a Compound?" in large, bold text centered on the screen. Below the title, include the subtitle "Chemistry Basics" in a smaller font. Next, introduc...
```python from manim import * import numpy as np class CompoundExplanation(Scene): def construct(self): # --- SCENE SETUP --- self.camera.background_color = "#0f0f0f" # --- SECTION 1: TITLE --- title = Text("What is a Compound?", font_size=54, weight=BOLD, color="#d4d4d4") ...
```python from manim import * import numpy as np class CompoundExplanation(Scene): def construct(self): # --- SCENE SETUP --- self.camera.background_color = "#0f0f0f" # --- SECTION 1: TITLE --- title = Text("What is a Compound?", font_size=54, weight=BOLD, color="#d4d4d4") ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching an undergrad ML course and want an animation of gradient flow through a residual connection. Show how the gradient splits, with the skip path preserving magnitude while the main path shrinks, using colored arrows, a magnitude trace across layers, and a quick comparison to a plain stack.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class GradientFlowResidualConnections(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 GradientFlowResidualConnections(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 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 * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class GradientFlowThroughLayerNormalization(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 GradientFlowThroughLayerNormalization(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 how an MLP computes logits; please visualize a forward pass Input -> Linear1 -> Tanh -> Linear2 -> Logits, with the shapes displayed between layers (e.g., [B, D_in] -> [B, D_hidden] -> [B, D_hidden] -> [B, D_out]). Include a concrete example.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class MLPForwardPass(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") )...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class MLPForwardPass(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