system
stringclasses
1 value
prompt
stringlengths
78
12.9k
chosen
stringlengths
370
27.9k
rejected
stringlengths
327
28k
category
stringclasses
5 values
source
stringclasses
8 values
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching a discrete probability module and want to visualize Laplace (additive) smoothing on a transition matrix. Show zeros filling in, color distribution flattening as the smoothing parameter grows, and a before/after comparison with a short note on bias-variance tradeoffs.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class LaplaceSmoothingScene(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 LaplaceSmoothingScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning about neural nets and want to visualize nn.Sequential as a simple pipeline that streams a tensor through Conv, ReLU, and Linear layers. Show each module as a block with dimensionality labels that update as shapes change, and allow swapping or inserting a layer to see the effect. Include a back-and-forth de...
```python from manim import * class NeuralNetworksVisualizationWithSequential(Scene): def construct(self): title = Text('Neural Networks: Sequential Architecture', font_size=36) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) input_pos = [LEFT * 3.5 + UP * 1, LEFT...
```python from manim import * class NeuralNetworksVisualizationWithSequential(Scene): def construct(self): title = Text('Neural Networks: Sequential Architecture', font_size=36) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) input_pos = [LEFT * 3.5 + UP * 1, LEFT...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I’m studying inference-time behavior of batch normalization and want a forward pass that uses the frozen running statistics. Show normalization using the stored mean/variance, with a lock icon over the stats to indicate they are frozen. Compare to a quick training-time panel, highlighting activation differences caused ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class BatchNormInferenceScene(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 BatchNormInferenceScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Here’s an enhanced version of the animation that retains the original features while adding significant new elements: The animation begins by drawing a horizontal green line centered on the screen, just like the original. However, instead of simply shifting it downward, the line now smoothly transforms into a sine w...
```python from manim import * class EnhancedLineToSineWave(Scene): def construct(self): # Create initial green line line = Line(LEFT * 3, RIGHT * 3, color=GREEN) # Draw the line self.play(Create(line)) self.wait(0.5) # Shift the line downward ...
```python from manim import * class EnhancedLineToSineWave(Scene): def construct(self): # Create initial green line line = Line(LEFT * 3, RIGHT * 3, color=GREEN) # Draw the line self.play(Create(line)) self.wait(0.5) # Shift the line downward ...
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...
Create a Manim animation for a psychology lesson on creativity tests suitable for 12th grade students. The video should be in 16:9 format with a classroom-style flow. Start with a title screen displaying "Creativity Tests" centered on the screen with a subtitle "Assessing Creative Potential" below it. After 2 seconds,...
```python from manim import * import numpy as np import random import math class CreativityTests(Scene): def construct(self): # --- Config & Palette --- BG_COLOR = "#0f0f0f" TEXT_MAIN = "#d4d4d4" TEXT_HIGHLIGHT = "#ece6e2" BLUE_C = "#4a9eff" # Intelligence ORANGE_C...
```python from manim import * import numpy as np import random import math class CreativityTests(Scene): def construct(self): # --- Config & Palette --- BG_COLOR = "#0f0f0f" TEXT_MAIN = "#d4d4d4" TEXT_HIGHLIGHT = "#ece6e2" BLUE_C = "#4a9eff" # Intelligence ORANGE_C...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm studying data preprocessing and want to animate the transformation of inputs from (N, H) to (N, H) with normalization applied independently per feature. Visualize the batch of N samples with H features, show per-feature mean/variance evolution during normalization, and then reassemble the normalized (N, H) tensor.
```python from manim import * class DataPreprocessingScene(Scene): def construct(self): title = Text('Data Preprocessing & Normalization', font_size=40, color=BLUE) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) subtitle = Text('The Foundation of Machine Learning...
```python from manim import * class DataPreprocessingScene(Scene): def construct(self): title = Text('Data Preprocessing & Normalization', font_size=40, color=BLUE) title self.play(Write(title), run_time=2.0) subtitle = Text('The Foundation of Machine Learning', font_size=24, color...
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 MicroservicesArchitecture(Scene): def construct(self): title = Text('Microservices: Communication and Governance', font_size=34, color=WHITE, weight=BOLD) title.to_edge(UP, buff=0.5) title_line = L...
```python from manim import * from manim import config Text.set_default(font='SimHei') class MicroservicesArchitecture(Scene): def construct(self): title = Text('Microservices: Communication and Governance', font_size=34, color=WHITE, weight=BOLD) title title_line = Line(LEFT, RIGHT, color...
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 undergraduate linear algebra and want a visual explanation of the Moore–Penrose pseudoinverse and least-squares. Use a concrete overdetermined system 2x3 to show the least-squares solution as the projection of b onto the column space of A. Animate a step-by-step QR/SVD view to connect the formula A+ = (A^T...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class ConclusionScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class ConclusionScene(Scene): def construct(self): conclusion_title = Text('Key Takeaways', font_size=38, color=BLUE) conclusion_title.to_edge(UP, buff=0.8) self.play(Write(conclusion_title), run_time=2.0) takeaway1 = Text('1. Used when A inverse does ...
narrated_pedagogical_preference
nabin2004/manim-narrated-dpo-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Here’s an enhanced version of the animation with additional features: The animation begins by smoothly drawing a blue rectangle with a width of 4 and height of 2, positioned at (1, 1), using a slow, deliberate `Create` animation for clarity. As the rectangle appears, a label reading "Rectangle (4×2)" fades in above ...
```python from manim import * class EnhancedRectangleAnimation(Scene): def construct(self): # Create coordinate grid grid = NumberPlane( x_range=[-5, 5, 1], y_range=[-4, 4, 1], background_line_style={ "stroke_color": BLUE_D, "strok...
```python from manim import * class EnhancedRectangleAnimation(Scene): def construct(self): # Create coordinate grid grid = NumberPlane( x_range=[-5, 5, 1], y_range=[-4, 4, 1], background_line_style={ "stroke_color": BLUE_D, "strok...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er...
```python from manim import * from manim import config Text.set_default(font='SimHei') class AffineSetTheorem(Scene): def construct(self): context = Tex('Convex sets and convex functions $\\rightarrow$ Convex Sets', font_size=24, color=GRAY) context.to_corner(UL) self.add(context) ...
```python from manim import * from manim import config Text.set_default(font='SimHei') class AffineSetTheorem(Scene): def construct(self): context = Tex('Convex sets and convex functions $\\rightarrow$ Convex Sets', font_size=24, color=GRAY) context self.add(context) title = Tex('\...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching an undergrad ML course and want a vivid visualization of hook behavior in neural nets: animate a forward hook that logs activations and a backward hook that records gradients. Show a small module with a couple of layers, a forward pass highlighting activations, then backprop tracing gradient flow. I'd like...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class HookBehaviorInNeuralNetworks(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 HookBehaviorInNeuralNetworks(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
invalid_axes_kwarg
synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create a 30-second Manim scene that choreographs boolean operations on two overlapping shapes. Animate the source shapes first, then reveal intersection, union, difference, and exclusion as separate beats with clear labels and captions.
```python from manim import * class BooleanOperationsChoreographyStory(Scene): def construct(self): title = Text("Boolean Operations Build New Shapes", font_size=35).to_edge(UP) left_shape = Circle(radius=1.1, color=BLUE_D, fill_opacity=0.18).shift(LEFT * 1.05) right_shape = RoundedRectangl...
```python from manim import * class BooleanOperationsChoreographyStory(Scene): def construct(self): title = Text("Boolean Operations Build New Shapes", font_size=35).to_edge(UP) left_shape = Circle(radius=1.1, color=BLUE_D, fill_opacity=0.18).shift(LEFT * 1.05) right_shape = RoundedRectangl...
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...
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 LearningWithTimeDimension(Scene): def construct(self): context_text = Text('Classical Games and Nash Equilibrium > From Static Equilibrium to Dynamic Processes', font_size=20, color=GRAY).to_edge(UP, buff=0.3) ...
```python from manim import * from manim import config Text.set_default(font='SimHei') class LearningWithTimeDimension(Scene): def construct(self): context_text = Text('Classical Games and Nash Equilibrium > From Static Equilibrium to Dynamic Processes', font_size=20, color=GRAY).to_edge(UP, buff=0.3) ...
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 calculus to undergrads and want a geometric visualization of the product rule using rectangle areas. Construct small perturbations of f and g and decompose the change in area into four rectangles to illustrate d(fg) = f dg + g df. Include a sequence of scenes: a grid area for fg, traces of f and g, and a t...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class ProductRuleGeometricVisualization(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class ProductRuleGeometricVisualization(Scene): def construct(self): title = Text('Product Rule: A Geometric View', font_size=32).to_edge(UP, buff=0.2) bl = np.array([-2, -1.0, 0]) w0, h0 = (3.0, 2.0) dw, dh = (1.5, 1.5) rect_orig = Rectangle(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...
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 SubsetsScene(Scene): def construct(self): title = Tex('Basic Definitions and Relations of Sets: Subsets', color=YELLOW) title.to_edge(UP, buff=0.5) self.play(Write(title)) self.wait(0.5) ...
```python from manim import * from manim import config Text.set_default(font='SimHei') class SubsetsScene(Scene): def construct(self): title = Tex('Basic Definitions and Relations of Sets: Subsets', color=YELLOW) title.to_edge(UP, buff=0.5) self.play(Write(title)) self.wait(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...
Create a Manim animation video in 16:9 format for a Grade 10 Social Studies class on Land Utilisation. The video should follow this structure: 1. Title Scene: Display "Land Utilisation" as the main heading with a subtitle "Categories and Uses of Land Resources" 2. Question Introduction: Show the question "What are th...
```python from manim import * import numpy as np import random import math class LandUtilisation(Scene): def construct(self): # --- Setup --- self.camera.background_color = "#0f0f0f" # Color Palette C_TEXT = "#d4d4d4" C_GREEN = "#6ba76e" C_ORANGE = "#e8945e"...
```python from manim import * import numpy as np import random import math class LandUtilisation(Scene): def construct(self): # --- Setup --- self.camera.background_color = "#0f0f0f" # Color Palette C_TEXT = "#d4d4d4" C_GREEN = "#6ba76e" C_ORANGE = "#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...
Display a 3D square pyramid centered in the scene, constructed from five vertices: four forming a square base and one apex above the center. The pyramid consists of four triangular side faces and one square base. The camera is angled at 75° vertically and 30° horizontally, providing a clear, tilted view of the pyramid’...
```python from manim import * class SquarePyramidScene(ThreeDScene): def construct(self): self.set_camera_orientation(phi=75 * DEGREES, theta=30 * DEGREES) vertex_coords = [ [1, 1, 0], [1, -1, 0], [-1, -1, 0], [-1, 1, 0], [0, 0, 2] ...
```python from manim import * class SquarePyramidScene(Scene): def construct(self): self.set_camera_orientation(phi=75 * DEGREES, theta=30 * DEGREES) vertex_coords = [ [1, 1, 0], [1, -1, 0], [-1, -1, 0], [-1, 1, 0], [0, 0, 2] ] ...
wrong_3d_scene_base
synthetic_hard_neg:SuienR/ManimBench-v1
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Display a randomly generated graph with 14 nodes and edges based on the Erdős–Rényi model, arranged using a spring layout. After the graph is created, each node animates to a new position along an elliptical path, forming a smooth arc across the screen. Finally, the entire graph is removed from view.
```python from manim import * import networkx as nx nxgraph = nx.erdos_renyi_graph(14, 0.5) class ImportNetworkxGraph(Scene): def construct(self): G = Graph.from_networkx(nxgraph, layout="spring", layout_scale=3.5) self.play(Create(G)) self.play(*[G[v].animate.move_to(5*RIGHT*np.cos(ind/7...
```python from manim import * import networkx as nx nxgraph = nx.erdos_renyi_graph(14, 0.5) class ImportNetworkxGraph(Scene): def construct(self): G = Graph.from_networkx(nxgraph, layout="spring", layout_scale=3.5) self.play(ShowCreation(G)) self.play(*[G[v].animate.move_to(5*RIGHT*np.cos...
legacy_api_hallucination
synthetic_hard_neg:SuienR/ManimBench-v1
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm an upper-level linear algebra teacher; I want a Manim animation that builds intuition for spectral decomposition of a 3×3 matrix. Show the matrix acting on a field of vectors, with eigenvectors unchanged in direction and scaled by eigenvalues, and then visualize A = PDP^{-1} in a concrete example. Include multiple ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class SpectralDecompositionScene(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 SpectralDecompositionScene(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 automatic differentiation and want a visual of the chain rule as a backward flow of gradients through a simple two-layer expression tree. I'd like to see each derivative colored along the path and multiplications highlighted as they propagate toward the input.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class ChainRuleTreeScene(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 ChainRuleTreeScene(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 Manim animation for a Grade 11 Accountancy class explaining depreciation. The video should be 16:9 format. Start with a title screen displaying "DEPRECIATION IN ACCOUNTING" with a subtle background. Then introduce the question: "What is depreciation and why is it important for businesses?" displayed clearly o...
```python from manim import * import numpy as np class DepreciationExplanation(Scene): def construct(self): # --- CONFIGURATION --- self.camera.background_color = "#0f0f0f" BLUE_ACCENT = "#4a9eff" GREEN_ACCENT = "#6ba76e" TEXT_COLOR = "#d4d4d4" # --- SCENE 1...
```python from manim import * import numpy as np class DepreciationExplanation(Scene): def construct(self): # --- CONFIGURATION --- self.camera.background_color = "#0f0f0f" BLUE_ACCENT = "#4a9eff" GREEN_ACCENT = "#6ba76e" TEXT_COLOR = "#d4d4d4" # --- SCENE 1...
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 all the original features while adding new elements to deepen understanding and visual appeal: The animation begins by constructing the axes and plotting the quadratic function \( y = x^2 \) in green, with the area under the curve from \( x = 0 \) to \( x = 2 \)...
```python from manim import * class IntegralVisualization(Scene): def construct(self): # Create axes axes = Axes( x_range=[0, 3, 1], y_range=[0, 5, 1], axis_config={"color": BLUE}, ) axes_labels = axes.get_axis_labels(x_label="x", y_label="y") ...
```python from manim import * class IntegralVisualization(Scene): def construct(self): # Create axes axes = Axes( x_range=[0, 3, 1], y_range=[0, 5, 1], axis_config={"color": BLUE}, ) axes_labels = axes.get_axis_labels(x_label="x", y_label="y") ...
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 'Quadratic Reciprocity' (The Elegant Dance of Quadratic Reciprocity): Imagine visualizing quadratic reciprocity as a puzzle of aligning natural number tiles: how do the Legendre symbols visually reveal the symmetry between distinct odd primes? Visual style guidance: A vibrant ...
```python from manim import * class QuadraticReciprocity(Scene): def construct(self): # Title title = Text("The Elegant Dance of Quadratic Reciprocity") self.play(Write(title)) self.wait(1) self.play(title.animate.to_edge(UP)) # Introduction with number tile...
```python from manim import * class QuadraticReciprocity(Scene): def construct(self): # Title title = Text("The Elegant Dance of Quadratic Reciprocity") self.play(Write(title)) self.wait(1) self.play(title.animate.to_edge(UP)) # Introduction with number tile...
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...
Display a green filled circle, and a blue filled square grouped together. Then animate the entire group spiraling into view onto the screen.
```python from manim import * class SpiralInExample(Scene): def construct(self): pi = MathTex(r"\pi").scale(7) pi.shift(2.25 * LEFT + 1.5 * UP) circle = Circle(color=GREEN_C, fill_opacity=1).shift(LEFT) square = Square(color=BLUE_D, fill_opacity=1).shift(UP) shapes = VGroup(...
```python from manim import * class SpiralInExample(Scene): def construct(self): pi = MathTex(r"\pi").scale(7) pi circle = Circle(color=GREEN_C, fill_opacity=1) square = Square(color=BLUE_D, fill_opacity=1) shapes = VGroup(pi, circle, square) self.play(SpiralIn(shape...
spatial_layout_overlap
synthetic_hard_neg:SuienR/ManimBench-v1
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Write a Manim 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 SciComputeScene649(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 SciComputeScene649(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 SciComputeScene649(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 probability-inspired NLP and want a parallel visualization of two bigram models trained on different datasets. Start both from the same initial character and let each model sample next characters, showing two diverging strings over time. Plot the probability mass flowing through the bigram table as the str...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class ProbabilityNLP(VoiceoverScene): def construct(self): # Set up speech service self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cach...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class ProbabilityNLP(VoiceoverScene): def construct(self): # Set up speech service self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cach...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching 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 * class BatchNormGradientScene(Scene): def construct(self): title = Text('Batch Normalization & Gradient Vanishing', font_size=38) title.to_edge(UP, buff=0.4) self.play(Write(title), run_time=2.0) self.wait(0.3) problem_title = Text...
```python import random from manim import * class BatchNormGradientScene(Scene): def construct(self): title = Text('Batch Normalization & Gradient Vanishing', font_size=38) title.to_edge(UP, buff=0.4) self.play(Write(title), run_time=2.0) self.wait(0.3) problem_title = Text...
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...
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 MathUniversalLanguage(Scene): def construct(self): title = Text('Mathematics is a Universal Language', font_size=42, color=BLUE_C, weight=BOLD) title.to_edge(UP, buff=1.0) underline = Line(title.ge...
```python from manim import * from manim import config Text.set_default(font='SimHei') class MathUniversalLanguage(Scene): def construct(self): title = Text('Mathematics is a Universal Language', font_size=42, color=BLUE_C, weight=BOLD) title underline = Line(title.get_left(), title.get_ri...
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...
Write a Manim CE visualization using scientific Python libraries (numpy, scipy, sympy) for: SymPy Symbolic Derivative and animated derivation steps. ```python from manim import * import numpy as np import sympy as sp class SciComputeScene1491(Scene): def construct(self): import sympy as sp ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import sympy as sp class SciComputeScene1491(VoiceoverScene): MARGIN = 0.5 def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import sympy as sp class SciComputeScene1491(VoiceoverScene): MARGIN = 0.5 def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width ...
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 initialization effects and want to see two parallel training runs: one maintaining variance with sqrt(n), another with a constant 1. Show two kinetic plots of layer activations or gradients, side-by-side, with variance tracked over depth. Highlight divergence or stable propagation as depth increases, and a...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import math class InitializationEffects(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 InitializationEffects(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm studying optimization stability and want to visualize eps as a tiny buffer on variance. Animate how adding eps prevents division by zero, showing the variance curve padded by a small epsilon and its effect on the update magnitude. Include a zoomed-in view of the epsilon region and a comparison with and without eps.
```python from manim import * class OptimizationStabilityWithEpsilon(Scene): def construct(self): title = Text('Optimization Stability With Epsilon', font_size=48, color=BLUE) subtitle = Text('Understanding how small perturbations impact optimization', font_size=24, color=GRAY) subtitle.ne...
```python from manim import * class OptimizationStabilityWithEpsilon(Scene): def construct(self): title = Text('Optimization Stability With Epsilon', font_size=48, color=BLUE) subtitle = Text('Understanding how small perturbations impact optimization', font_size=24, color=GRAY) subtitle.ne...
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...
The following Manim CE scene failed to compile. Truncated traceback: AttributeError: VGroup object has no attribute 'c2p' Fix the code. Return a complete working scene. Do not keep the invalid constructor kwargs or Unicode subscripts. ```python from manim import * class RingHomomorphism(Scene): def construct(se...
```python from manim import * class RingHomomorphism(Scene): def construct(self): # Set up colors for a visually pleasing animation blue = "#3498db" green = "#2ecc71" # Introduction with title title = Text("Unlocking the Beauty of Ring Homomorphisms", color=blue) ...
```python from manim import * class RingHomomorphism(Scene): def construct(self): # Set up colors for a visually pleasing animation blue = "#3498db" green = "#2ecc71" # Introduction with title title = Text("Unlocking the Beauty of Ring Homomorphisms", color=blue) ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning numerical analysis to upper-level undergrads and want a rich visualization of Newton's method for root finding. Visualize f(x) on a 2D plot with Axes, show the tangent line at the current iterate, and animate the update path as a connected sequence of points. Include multiple starting points to illustrate ...
```python from manim import * class NewtonMethodScene(Scene): def construct(self): title = Text("Newton's Method", font_size=48) subtitle = Text('Numerical Root-Finding', font_size=28) subtitle.next_to(title, DOWN) self.play(Write(title), run_time=2.0 * 0.6) self.play(Write...
```python from manim import * class NewtonMethodScene(Scene): def construct(self): title = Text("Newton's Method", font_size=48) subtitle = Text('Numerical Root-Finding', font_size=28) subtitle.next_to(title, DOWN) self.play(Write(title), run_time=2.0 * 0.6) self.play(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 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 * class KMPPatternMatchingScene(Scene): def make_boxes(self, s, color=WHITE): group = VGroup() for ch in s: box = Square(side_length=0.45, color=color, fill_opacity=0) txt = MathTex(ch, font_size=20).move_to(box.get_center()) group.ad...
```python from manim import * class KMPPatternMatchingScene(Scene): def make_boxes(self, s, color=WHITE): group = VGroup() for ch in s: box = Square(side_length=0.45, color=color, fill_opacity=0) txt = MathTex(ch, font_size=20).move_to(box.get_center()) group.ad...
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 PedagogicalScene811(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 PedagogicalScene811(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 PedagogicalScene811(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...
Write a Manim CE visualization using scientific Python libraries (numpy, scipy, sympy) for: Fourier Series Square Wave Approximation with NumPy.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class FourierSquareWave(VoiceoverScene): def construct(self): # [SETUP] self.set_speech_service(GTTSService(transcription_model="base")) ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class FourierSquareWave(VoiceoverScene): def construct(self): # [SETUP] 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 optimization and want to illustrate the Adam bias correction step in early training. Animate the first (m) and second (v) moment estimates starting near zero, then show the bias-corrected estimates scaling up the step size. Include a side-by-side visualization of before/after bias correction and how the ef...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class AdamBiasCorrectionScene(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 AdamBiasCorrectionScene(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 advanced GP course and want a clear visualization of the Fully Independent Training Conditional approximation. Show inducing points and the sparse covariance structure, comparing exact GP predictions with FITC in a 2D domain. Animate how changing the number of inducing points trades off accuracy and com...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class FullyIndependentTrainingConditionalApproximation(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cac...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class FullyIndependentTrainingConditionalApproximation(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cac...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Here’s an enhanced version of the animation that retains all the original features while adding explanatory text, a dynamic bond formation sequence, and a molecular orbital visualization: The animation begins by fading in a hydrogen atom (white circle with "H") and a chlorine atom (green circle with "Cl") on opposite ...
```python from manim import * class PolarCovalentBondHCl(Scene): def construct(self): # Create atoms hydrogen = Circle(radius=0.5, color=WHITE, fill_opacity=1) hydrogen_label = Text("H").scale(0.7).move_to(hydrogen) chlorine = Circle(radius=0.7, color=GREEN, fill_opacity=1) ...
```python from manim import * class PolarCovalentBondHCl(Scene): def construct(self): # Create atoms hydrogen = Circle(radius=0.5, color=WHITE, fill_opacity=1) hydrogen_label = Text("H").scale(0.7).move_to(hydrogen) chlorine = Circle(radius=0.7, color=GREEN, fill_opacity=1) ...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Here’s an enhanced version of the animation that retains all the original features while adding significant new elements: The animation begins by displaying the differential equation of motion for a spring-mass system (`m\ddot{x} + c\dot{x} + kx = 0`) with a smooth `Write` effect, followed by an explanatory text ("Spr...
```python from manim import * class SpringMassSystem(Scene): def construct(self): # Initial equation equation = MathTex( "m\\ddot{x} + c\\dot{x} + kx = 0", substrings_to_isolate=["m", "c", "k", "x"] ) title = Text("Spring-mass-damper system").to_edge(UP) ...
```python from manim import * class SpringMassSystem(Scene): def construct(self): # Initial equation equation = MathTex( "m\\ddot{x} + c\\dot{x} + kx = 0", substrings_to_isolate=["m", "c", "k", "x"] ) title = Text("Spring-mass-damper system") ...
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 video in 16:9 format for an 11th grade sociology class explaining primary and secondary social groups. Start with a title slide showing "Social Groups" centered on screen. Then display the question "What are the two main types of social groups?" in a clear, readable font. Create a visual split-...
```python from manim import * import numpy as np class SocialGroupsScene(Scene): def construct(self): # Configuration audio_duration = 65.0 # Targeted duration self.camera.background_color = "#0f0f0f" # Colors primary_col = "#e8945e" # Orange accent second...
```python from manim import * import numpy as np class SocialGroupsScene(Scene): def construct(self): # Configuration audio_duration = 65.0 # Targeted duration self.camera.background_color = "#0f0f0f" # Colors primary_col = "#e8945e" # Orange accent second...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning about momentum in gradient descent and want to visualize the velocity vector accumulating over time. Show a ball rolling down a loss landscape, gaining speed in consistent directions and dampening oscillations.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class MomentumScene(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 MomentumScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) # [...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Write a Manim CE visualization using scientific Python libraries (numpy, scipy, sympy) for: Fourier Series Square Wave Approximation with NumPy. ```python from manim import * import numpy as np class SciComputeScene897(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 SciComputeScene897(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 SciComputeScene897(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...
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 MarxistPhilosophy(Scene): def construct(self): title = Text('Revolutionary Transformation in Marxist Philosophy', font_size=40, weight=BOLD) title.to_edge(UP, buff=0.8) title_underline = Underline(...
```python from manim import * from manim import config Text.set_default(font='SimHei') class MarxistPhilosophy(Scene): def construct(self): title = Text('Revolutionary Transformation in Marxist Philosophy', font_size=40, weight=BOLD) title.to_edge(UP, buff=0.8) title_underline = Underline(...
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: SymPy Symbolic Derivative and animated derivation steps.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import sympy as sp class SciComputeScene919(VoiceoverScene): def construct(self): # [SETUP] self.set_speech_service(GTTSService(transcription_model="base")) MARGIN ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import sympy as sp class SciComputeScene919(VoiceoverScene): def construct(self): # [SETUP] self.set_speech_service(GTTSService(transcription_model="base")) MARGIN ...
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 gated activations and want to visualize the gradient of a gate that combines Tanh and Sigmoid derivatives. Show the chain rule decomposition: tanh' times gate, sigmoid' times gate, and illustrate how the overall gradient evolves across time steps, with color coding for each component.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class GatedActivationsGradient(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 GatedActivationsGradient(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching an undergrad course on decision-theoretic planning and want a vivid visualization of MDP planning. Show states, actions, stochastic transitions, and rewards, with on-screen Bellman backups computing V(s) and Q(s,a). Include a gridworld example, policy iteration versus value iteration, and a comparison acro...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class MarkovDecisionProcess(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 MarkovDecisionProcess(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Here’s an enhanced version of the animation that retains all the original features while adding explanatory text, animating the molecular formula, and illustrating electron sharing with dynamic bonds: Begin by showing the hydrogen (blue circles with "+") and oxygen (red circle with "O") atoms separately, as in the ori...
```python from manim import * class WaterMoleculeFormation(Scene): def construct(self): # Create atoms oxygen = Circle(radius=0.5, color=RED, fill_opacity=1) oxygen_label = Text("O").next_to(oxygen, UP) oxygen_group = VGroup(oxygen, oxygen_label) hydrogen1 = Circle(...
```python from manim import * class WaterMoleculeFormation(Scene): def construct(self): # Create atoms oxygen = Circle(radius=0.5, color=RED, fill_opacity=1) oxygen_label = Text("O") oxygen_group = VGroup(oxygen, oxygen_label) hydrogen1 = Circle(radius=0.3, color=BL...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
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 SciComputeScene561(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 SciComputeScene561(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 SciComputeScene561(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 about pruning and quantization to compress RNNs and want a practical visual. Demonstrate pruning by gradually removing weights with magnitude thresholds while showing impact on accuracy and activation patterns. Show quantization as lowering precision per layer and visualize how quantized weights approximat...
```python from manim import * class PruningQuantizationRNNs(Scene): def construct(self): title = Text('Pruning and Quantization for RNNs', font_size=48, color=BLUE) subtitle = Text('Optimizing Neural Networks for Efficiency', font_size=28, color=GRAY) title_group = VGroup(title, subtitle)....
```python from manim import * class PruningQuantizationRNNs(Scene): def construct(self): title = Text('Pruning and Quantization for RNNs', font_size=48, color=BLUE) subtitle = Text('Optimizing Neural Networks for Efficiency', font_size=28, color=GRAY) title_group = VGroup(title, subtitle)....
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching an undergrad ML course and want to show the gradient flow from the loss through a Linear layer, BN, and Tanh sequentially. Visualize an error signal entering the linear block, map through BN scaling, then through tanh saturation, with gradient arrows changing thickness and color. Include notes on where van...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class GradientFlowScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class GradientFlowScene(Scene): def construct(self): title = Text('Gradient Flow Through Layers', font_size=40) subtitle = Text('How Neural Networks Learn', font_size=28, color=BLUE) title_group = VGroup(title, subtitle).arrange(DOWN, buff=0.3) self.pl...
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 graduate ML and want a precise visualization of backpropagation through a multi-layer perceptron. Trace the forward pass, then show the backward gradient flow, highlighting the gradient updates on each linear layer’s weights and biases. Use color-coded arrows to depict chain-rule multiplications and how gr...
```python from manim import * class BackpropagationScene(Scene): def construct(self): title = Text('Backpropagation in Multi-Layer Perceptron', font_size=36) title.to_edge(UP) self.play(Write(title), run_time=2.0) layer_x = [-4.5, -1.5, 1.5] layer_sizes = [2, 3, 1] ...
```python from manim import * class BackpropagationScene(Scene): def construct(self): title = Text('Backpropagation in Multi-Layer Perceptron', font_size=36) title self.play(Write(title), run_time=2.0) layer_x = [-4.5, -1.5, 1.5] layer_sizes = [2, 3, 1] spacing = 1....
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create an educational ManimCE animation on 'Homeomorphisms' (Beyond the Horizon: Homeomorphisms Explored): How can we demonstrate that the open intervals (0,1) and (0, infinity) are homeomorphic? Visual style guidance: The animation adopts a minimalistic style with smooth transitions and a calming color palette, predom...
```python from manim import * import numpy as np class HomeomorphismDemo(Scene): def construct(self): # Title title = Text("Beyond the Horizon: Homeomorphisms Explored", font_size=36) self.play(Write(title)) self.wait(1) self.play(FadeOut(title)) # Introduct...
```python from manim import * import numpy as np class HomeomorphismDemo(Scene): def construct(self): # Title title = Text("Beyond the Horizon: Homeomorphisms Explored", font_size=36) self.play(Write(title)) self.wait(1) self.play(FadeOut(title)) # Introduct...
spatial_layout_overlap
synthetic_hard_neg:bespokelabs/bespoke-manim
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching optimization strategies and want a fair comparison of random search versus grid search sampling points on a 2D plane. Animate two sets of points, color-coded by method, and show coverage over time with a metric like area explored. Overlay a smooth objective landscape and highlight how each method discovers...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class OptimizationStrategiesComparison(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 OptimizationStrategiesComparison(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...
The following Manim CE script crashed with this traceback: ```text TypeError: Mobject.__init__() got an unexpected keyword argument 'element_color' ``` Fix the bug and provide the corrected, fully compilable Manim CE code: ```python from manim import * import numpy as np class ApiValidDecimalNumber416(Scene): 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 ApiValidDecimalNumber416(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 ApiValidDecimalNumber416(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 exploring dilated convolutions and want a visualization where the dilation concept is shown as a spring pulling filter taps apart, illustrating effective receptive field growth. ```python from manim import * import numpy as np class AOSTrajectoryScene343(Scene): def construct(self): # Visualize the "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 AOSTrajectoryScene343(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 AOSTrajectoryScene343(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...
Explain the spectral theorem for real symmetric matrices with visual intuition. Visualize 2D and 3D transformations: show a unit circle mapped to an ellipse along eigen-directions, then decompose A = Q Λ Q^T and animate alignment with eigenvectors. Add a slider to vary A's entries, display eigenvalues/eigenvectors, and...
```python from manim import * class SpectralTheoremScene(Scene): def construct(self): title = Text('Spectral Theorem', font_size=48) subtitle = Text('Real Symmetric Matrices', font_size=36) title_group = VGroup(title, subtitle).arrange(DOWN, buff=0.3) self.play(Write(title_group), ...
```python from manim import * class SpectralTheoremScene(Scene): def construct(self): title = Text('Spectral Theorem', font_size=48) subtitle = Text('Real Symmetric Matrices', font_size=36) title_group = VGroup(title, subtitle).arrange(DOWN, buff=0.3) self.play(Write(title_group), ...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching undergrads optimization and want a vivid visualization of the running-mean EMA update: running_mean = momentum * running_mean + (1 - momentum) * batch_mean. Create a scene where the running_mean updates each step as a weighted blend of the previous value and the batch mean, with a momentum slider. Show a d...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class EMAUpdateScene(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 EMAUpdateScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) #...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create a 30-second Manim scene that uses MovingCameraScene to walk through a bar chart dashboard. Highlight the baseline, growth, and evaluation bars one by one while a small table updates the current interpretation.
```python from manim import * class MovingCameraBarChartFocusVariation(MovingCameraScene): def construct(self): title = Text("Following a Chart with a Moving Camera", font_size=34).to_edge(UP) bars = BarChart(values=[2.5, 5.5, 4.0], bar_names=["baseline", "growth", "eval"], y_range=[0, 8, 1], y_len...
```python from manim import * class MovingCameraBarChartFocusVariation(MovingCameraScene): def construct(self): title = Text("Following a Chart with a Moving Camera", font_size=34).to_edge(UP) bars = BarChart(values=[2.5, 5.5, 4.0], bar_names=["baseline", "growth", "eval"], y_range=[0, 8, 1], y_len...
legacy_api_hallucination
synthetic_hard_neg:sebastianboehler/autoresearch-manim
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
The following Manim CE script crashed with this traceback: ```text NameError: name 'undefined_variable_target' is not defined in construct() ``` Fix the bug and provide the corrected, fully compilable Manim CE code: ```python from manim import * import numpy as np class ApiValidDecimalNumber140(Scene): def cons...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class ApiValidDecimalNumber140(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 ApiValidDecimalNumber140(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create a Manim animation for a 7th grade science lesson on human teeth and their functions. The video should be 16:9 widescreen format. Start with a title screen showing "Human Teeth and Their Functions" in large, clear text. Below it, add a subtitle "Grade 7 Science" in smaller text. Next, display the question: "Wha...
```python from manim import * import numpy as np class TeethFunctions(Scene): def construct(self): # Timing constants READ_TIME = 2.0 TRANSITION_TIME = 1.0 # --- Section 1: Title Screen --- title = Text("Human Teeth and Their Functions", font_size=48, weight=BOLD) ...
```python from manim import * import numpy as np class TeethFunctions(Scene): def construct(self): # Timing constants READ_TIME = 2.0 TRANSITION_TIME = 1.0 # --- Section 1: Title Screen --- title = Text("Human Teeth and Their Functions", font_size=48, weight=BOLD) ...
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...
Write a Manim CE visualization using scientific Python libraries (numpy, scipy, sympy) for: SymPy Symbolic Derivative and animated derivation steps.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import sympy as sp MARGIN = 0.5 class SymPyDerivativeScene(VoiceoverScene): def construct(self): # [SETUP] self.set_speech_service(GTTSService(transcription_model="base"))...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import sympy as sp MARGIN = 0.5 class SymPyDerivativeScene(VoiceoverScene): def construct(self): # [SETUP] 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 learning data structures and want a visualization that walks through quicksort partitioning with a pivot. Show an array of bars, pick a pivot, reorganize elements into less/greater partitions with swaps, then recursively sort subarrays. Include clear highlights for the pivot, boundary lines, and a step-by-step time...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class QuicksortPartitionVisualization(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 QuicksortPartitionVisualization(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...
Display a 3D scene with a set of 15 points in space, each marked by a small dot. These points are enclosed by a translucent convex hull—a 3D shape formed by connecting the outermost points. The hull has no visible faces but faint blue edges with low opacity. The camera is angled to provide a clear view of the 3D struct...
```python from manim import * class ConvexHull3DExample(ThreeDScene): def construct(self): self.set_camera_orientation(phi=75 * DEGREES, theta=30 * DEGREES) points = [ [ 1.93192757, 0.44134585, -1.52407061], [-0.93302521, 1.23206983, 0.64117067], [-0.44350918,...
```python from manim import * class ConvexHull3DExample(Scene): def construct(self): self.set_camera_orientation(phi=75 * DEGREES, theta=30 * DEGREES) points = [ [ 1.93192757, 0.44134585, -1.52407061], [-0.93302521, 1.23206983, 0.64117067], [-0.44350918, -0.61...
wrong_3d_scene_base
synthetic_hard_neg:SuienR/ManimBench-v1
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create a Manim animation for an 8th grade science class explaining the Red Data Book and environmental conservation. The video should be 16:9 aspect ratio. Start with a title screen displaying "What is the Red Data Book?" in large, clear text. Then introduce the concept by showing a definition box that reads "The Red ...
```python from manim import * import numpy as np class RedDataBookLesson(Scene): def construct(self): # Color Palette BG_COLOR = "#0f0f0f" TEXT_COLOR = "#d4d4d4" ACCENT_BLUE = "#4a9eff" ACCENT_GREEN = "#6ba76e" ACCENT_ORANGE = "#e8945e" ACCENT_RED = "#ff6b6b"...
```python from manim import * import numpy as np class RedDataBookLesson(Scene): def construct(self): # Color Palette BG_COLOR = "#0f0f0f" TEXT_COLOR = "#d4d4d4" ACCENT_BLUE = "#4a9eff" ACCENT_GREEN = "#6ba76e" ACCENT_ORANGE = "#e8945e" ACCENT_RED = "#ff6b6b"...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er...
```python from manim import * from manim import config Text.set_default(font='SimHei') class MultiAgentRL(Scene): def construct(self): title1 = Title("Analysis of the Method's Limitations") self.play(Write(title1)) env = Rectangle(width=8, height=1.2, color=BLUE).shift(DOWN * 0.5) ...
```python from manim import * from manim import config Text.set_default(font='SimHei') class MultiAgentRL(Scene): def construct(self): title1 = Title("Analysis of the Method's Limitations") self.play(Write(title1)) env = Rectangle(width=8, height=1.2, color=BLUE).shift(DOWN * 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 learning advanced optimization to upper-level undergrads. Create a multi-scene animation visualizing gradient descent on a non-convex loss with at least two minima. Show a 3D surface and a 2D contour, with gradient-descent paths for different learning rates, including momentum, so we can compare convergence and sad...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class GradientDescentVisualization(VoiceoverScene): def construct(self): # Set up speech service self.set_speech_service( GTTSService(voice="alba", cache_dir="...
```python from manim import * class GradientDescentVisualization(Scene): def construct(self): title = Text('Gradient Descent Visualization', font_size=48, color=BLUE) subtitle = Text('Finding the Optimal Solution', font_size=32, color=GRAY) title_group = VGroup(title, subtitle).arrange(DOW...
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 is the enhanced animation instruction that builds upon the original while adding significant new features: The enhanced animation begins by displaying a rectangle (width=6, height=3) centered on screen, while simultaneously fading in a large letter 'H' positioned at (3,3). As these elements appear, a mathematical...
```python from manim import * import numpy as np class EnhancedQuantumAnimation(Scene): def construct(self): # Create initial elements rect = Rectangle(width=6, height=3, color=BLUE).set_fill(BLUE, opacity=0.3) h_letter = Tex("H", color=RED).scale(3).move_to([3, 3, 0]) hamiltonian =...
```python from manim import * import numpy as np class EnhancedQuantumAnimation(Scene): def construct(self): # Create initial elements rect = Rectangle(width=6, height=3, color=BLUE).set_fill(BLUE, opacity=0.3) h_letter = Tex("H", color=RED).scale(3).move_to([3, 3, 0]) hamiltonian =...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create an educational ManimCE animation on 'Surface Classification' (The Hidden Flip: Topology of Surfaces): How can we use boundary properties and orientability to differentiate between a sphere and a projective plane? Visual style guidance: 3D-rendered clean visualizations with a consistent color palette focusing on ...
```python from manim import * class TopologySurfaceClassification(Scene): def construct(self): # Title title = Text("The Hidden Flip: Topology of Surfaces", font_size=36) self.play(Write(title)) self.wait(1) self.play(title.animate.to_edge(UP)) # Introductio...
```python from manim import * class TopologySurfaceClassification(Scene): def construct(self): # Title title = Text("The Hidden Flip: Topology of Surfaces", font_size=36) self.play(Write(title)) self.wait(1) self.play(title.animate.to_edge(UP)) # Introductio...
legacy_api_hallucination
synthetic_hard_neg:bespokelabs/bespoke-manim
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm guiding a grad research seminar on gradient flow and want a dynamic bar chart of per-layer gradient norms. Update the bars every epoch to reveal vanishing or exploding trends across the network. Show optional overlays for average norm and max norm, and annotate bottleneck layers with colors. Include a narrative cap...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class GradientFlowAndLayerNorms(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class GradientFlowAndLayerNorms(Scene): def construct(self): title = Text('Gradient Flow & Layer Norms', font_size=44) subtitle = Text('Navigating Neural Network Training', font_size=22, color=BLUE) title_group = VGroup(title, subtitle).arrange(DOWN, buff=0.3)...
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...
Curious about how gradient descent navigates a non-convex loss. Show a 2D contour of a toy loss with multiple minima, then animate several optimization runs from different starting points using varied learning rates. I want to trace the paths, highlight saddle points, and visualize step updates as arrows or paths, with...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class GradientDescentNonConvex(ThreeDScene, VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_camera_orientation(phi=75 * DEGREES, theta=-45 * DEG...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class GradientDescentNonConvex(ThreeDScene, VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_camera_orientation(phi=75 * DEGREES, theta=-45 * DEG...
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 16:9 Manim animation for a Grade 12 Chemistry class on coordination compounds. The video should follow this flow: 1. Title slide: "Coordination Compounds - Identifying the Central Metal" in large text, centered, with a subtle chemistry-related color scheme (blues and purples). 2. Introduction section: Displa...
```python from manim import * import numpy as np import random import math class CoordinationCompounds(Scene): def construct(self): # Setup self.camera.background_color = "#0f0f0f" # 1. Title Slide (0-6s) # -------------------------------------------------------------------...
```python from manim import * import numpy as np import random import math class CoordinationCompounds(Scene): def construct(self): # Setup self.camera.background_color = "#0f0f0f" # 1. Title Slide (0-6s) # -------------------------------------------------------------------...
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 computer vision nets and want a clear animation of skip connections from each block summing to the final output layer. Show each block producing a feature map, then summing via additive merges into the final layer. Highlight gradient flow through the sum and how it reaches earlier blocks. Use color-coding ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class SkipConnectionsScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) # --...
```python from manim import * class SkipConnectionsScene(Scene): def construct(self): title = Text('Skip Connections in Computer Vision', font_size=40, color=BLUE) title.to_edge(UP, buff=0.4) self.play(Write(title), run_time=2.0) subtitle = Text('Avoiding vanishing gradients', font...
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 NLP and want to visualize a bigram state transition graph during generation. Display states as nodes for pairs of words and illuminate the active transition arrow at each step as the next word is chosen. Show several steps: current state, sampling next word, highlight the chosen edge, then move to the new ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class BigramTransitionScene(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 BigramTransitionScene(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...
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 HadoopArchitecture(Scene): def construct(self): title = Text('Hadoop Architecture Components', font_size=34, color=WHITE, weight=BOLD) title.to_edge(UP, buff=0.5) title_line = Line(LEFT, RIGHT, col...
```python from manim import * from manim import config Text.set_default(font='SimHei') class HadoopArchitecture(Scene): def construct(self): title = Text('Hadoop Architecture Components', font_size=34, color=WHITE, weight=BOLD) title title_line = Line(LEFT, RIGHT, color=ORANGE) tit...
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 video for Grade 11 Advanced Accountancy students explaining depreciation and its effect on asset value over time. The video should be in 16:9 widescreen format. Structure the video as follows: 1. Opening slide: Display the title "Depreciation and Asset Value" with a subtitle "How Assets Lose ...
```python from manim import * import numpy as np class DepreciationScene(Scene): def construct(self): # --- Scene 1: Opening Slide --- # Title "Depreciation and Asset Value" with subtitle title = Text("Depreciation and Asset Value", font_size=48, color=BLUE) subtitle = Text("How Ass...
```python from manim import * import numpy as np class DepreciationScene(Scene): def construct(self): # --- Scene 1: Opening Slide --- # Title "Depreciation and Asset Value" with subtitle title = Text("Depreciation and Asset Value", font_size=48, color=BLUE) subtitle = Text("How Ass...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning about hierarchical attention and want a visualization that builds intuition from words to sentences to documents. Show tokens grouped into sentences, with local attention within a sentence and global attention across sentences, plus weight heatmaps. Animate the flow of information through multi-level atten...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class HierarchicalAttentionScene(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 HierarchicalAttentionScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning about sampling distributions and want a vivid histogram of sequence lengths from 100 independent sampling runs. Show the bars, annotate the mean and variance, and overlay a smooth density estimate. I'd like a camera pan across the histogram, with outliers highlighted in a contrasting color.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import random class SamplingDistributionsScene(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 random class SamplingDistributionsScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ...
invalid_axes_kwarg
synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning logistic regression and want to see the cross-entropy loss surface for a two-class problem rendered as a 3D terrain. Animate a gradient-descent path sliding down the surface from a random start, with the gradient vectors shown, and show contour lines on the base. Include a side legend mapping loss value to...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import math class LogisticRegressionLossSurface(VoiceoverScene, ThreeDScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceov...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import math class LogisticRegressionLossSurface(VoiceoverScene, ThreeDScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceov...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create a Manim animation for a Social Studies class about freshwater lakes in India. The video should be 16:9 format and follow this structure: Start with a title screen that says "Freshwater Lakes in India" with a subtitle "Formed by Tectonic Activity". Use a clean, educational color scheme with blue tones for water ...
```python from manim import * import numpy as np import math import random class FreshwaterLakesIndia(Scene): def construct(self): # Set background self.camera.background_color = "#0f0f0f" # Color Palette TEXT_COLOR = "#d4d4d4" WATER_BLUE = "#4a9eff" LAND_GR...
```python from manim import * import numpy as np import math import random class FreshwaterLakesIndia(Scene): def construct(self): # Set background self.camera.background_color = "#0f0f0f" # Color Palette TEXT_COLOR = "#d4d4d4" WATER_BLUE = "#4a9eff" LAND_GR...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching undergrads and want a vivid visual of how requires_grad=True changes a tensor. Show a gradient accumulation box that fills up with each backward pass, highlighting when gradients accumulate vs. reset. Include a short backward trace and color cues for newly added gradients, with a couple of backward passes ...
```python from manim import * class GradientAccumulationVisualization(Scene): def construct(self): title = Text('Gradient Accumulation', font_size=48, color=BLUE) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) self.wait(0.5) self.play(FadeOut(title), run_...
```python from manim import * class GradientAccumulationVisualization(Scene): def construct(self): title = Text('Gradient Accumulation', font_size=48, color=BLUE) title self.play(Write(title), run_time=2.0) self.wait(0.5) self.play(FadeOut(title), run_time=2.0) nn_g...
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 Manim scene that explains a chemical equilibrium shift after adding more reactant. Show a reversible reaction with reactant and product bars, then increase the reactant side and animate the system settling to a new balance with more product than before.
```python from manim import * class EquilibriumShiftStory(Scene): def construct(self): title = Text('Adding Reactant Shifts The Equilibrium', font_size=29).to_edge(UP) react_frame = Rectangle(width=2.2, height=3.0, color=BLUE_D).shift(LEFT * 2.7 + DOWN * 0.05) prod_frame = Rectangle(width=2...
```python from manim import * class EquilibriumShiftStory(Scene): def construct(self): title = Text('Adding Reactant Shifts The Equilibrium', font_size=29) react_frame = Rectangle(width=2.2, height=3.0, color=BLUE_D) prod_frame = Rectangle(width=2.2, height=3.0, color=TEAL_D) arrow ...
spatial_layout_overlap
synthetic_hard_neg:sebastianboehler/autoresearch-manim
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning about denoising diffusion models for sequences and want a clear intuition. Animate the forward noising process and the reverse denoising steps, adapted to discrete tokens or time series. Show how the noise schedule affects sample quality, with plots of intermediate denoised estimates and a final generated ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class DenoisingDiffusionModel(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 DenoisingDiffusionModel(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 teach an upper-level linear algebra course and want a rich Manim animation to build intuition for QR decomposition and least squares. Show Gram–Schmidt on a 3D point cloud, visualize orthogonality step by step, then fit a plane to data with least-squares and animate the residuals. Include multiple scenes: decompositi...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class QRDecompositionScene(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 QRDecompositionScene(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...
Can perturbation theory demonstrate the gradual change in harmonic oscialltor wavefunctions under the influence of a weak anharmonic potential?
```python from manim import * class PerturbationTheoryScene(Scene): def construct(self): # Title title = Text("Unveiling The Secrets of Harmonic Oscillators") subtitle = Text("with Perturbation Theory") subtitle.next_to(title, DOWN) self.play(Write(title)) s...
```python from manim import * class PerturbationTheoryScene(Scene): def construct(self): # Title title = Text("Unveiling The Secrets of Harmonic Oscillators") subtitle = Text("with Perturbation Theory") subtitle self.play(Write(title)) self.play(Write(subtit...
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 CharacteristicFunctionProperties(Scene): def construct(self): title = Tex('\\textbf{Properties of Characteristic Functions}', font_size=40, color=BLUE) title.to_edge(UP, buff=0.4) intro = Tex('Char...
```python from manim import * from manim import config Text.set_default(font='SimHei') class CharacteristicFunctionProperties(Scene): def construct(self): title = Tex('\\textbf{Properties of Characteristic Functions}', font_size=40, color=BLUE) title intro = Tex('Characteristic functions 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 an educational ManimCE animation on 'Modular Inverse' (Visualizing Modular Inverses: Gaps, Patterns, and Connections): Why do certain integers not have a modular inverse, and how can visualizing their relationship with the modulus explain this phenomenon? Visual style guidance: A blend of 3D-looking grids and vi...
```python from manim import * import math class ModularInverseVisualization(Scene): def construct(self): # Title title = Text("Visualizing Modular Inverses", font_size=36) self.play(Write(title)) self.wait(1) self.play(FadeOut(title)) # Definition of modular...
```python from manim import * import math class ModularInverseVisualization(Scene): def construct(self): # Title title = Text("Visualizing Modular Inverses", font_size=36) self.play(Write(title)) self.wait(1) self.play(FadeOut(title)) # Definition of modular...
spatial_layout_overlap
synthetic_hard_neg:bespokelabs/bespoke-manim
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create an educational ManimCE animation on 'Modular Arithmetic' (The Dance of Numbers: Exploring Modular Arithmetic through a Geometric Loop): In modular arithmetic, how can we conceptualize a space where adding numbers results in a geometric loop? Visual style guidance: The animation adopts a clean, modern style remin...
```python from manim import * class ModularArithmeticScene(Scene): def construct(self): # Scene 1: Introduction title = Text("The Dance of Numbers") subtitle = Text("Exploring Modular Arithmetic") subtitle.next_to(title, DOWN) self.play(Write(title)) self.pl...
```python from manim import * class ModularArithmeticScene(Scene): def construct(self): # Scene 1: Introduction title = Text("The Dance of Numbers") subtitle = Text("Exploring Modular Arithmetic") subtitle self.play(Write(title)) self.play(Write(subtitle)) ...
spatial_layout_overlap
synthetic_hard_neg:bespokelabs/bespoke-manim
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er...
```python from manim import * from manim import config Text.set_default(font='SimHei') class HaltingProblemLecture(Scene): def construct(self): main_title = Text('Decidability, Recognizability, and Uncomputable Problems', font_size=32, weight=BOLD) main_title.to_edge(UP, buff=0.4) subtitle...
```python from manim import * from manim import config Text.set_default(font='SimHei') class HaltingProblemLecture(Scene): def construct(self): main_title = Text('Decidability, Recognizability, and Uncomputable Problems', font_size=32, weight=BOLD) main_title.to_edge(UP, buff=0.4) subtitle...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er...
```python from manim import * from manim import config Text.set_default(font='SimHei') class IndustryTrends(Scene): def construct(self): title = Text('Future Trends: Industry Trends', font_size=42, weight=BOLD) title.to_edge(UP, buff=0.5) underline = Underline(title, color=BLUE_C, buff=0.1...
```python from manim import * from manim import config Text.set_default(font='SimHei') class IndustryTrends(Scene): def construct(self): title = Text('Future Trends: Industry Trends', font_size=42, weight=BOLD) title underline = Underline(title, color=BLUE_C, buff=0.1) title_group ...
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 intro number theory course and want a vivid factor-tree visualization of prime factorization. Build a number like 360 as a rooted tree, repeatedly splitting composite nodes into two factors until primes remain. Color-code prime leaves and show the multiplicities with a running tally or a bar chart. Star...
```python from manim import * class PrimeFactorizationVisualization(Scene): def construct(self): title = Text('Prime Factorization', font_size=48, color=BLUE) subtitle = Text('Breaking Numbers into Prime Building Blocks', font_size=24, color=GRAY) subtitle.next_to(title, DOWN, buff=0.3) ...
```python from manim import * class PrimeFactorizationVisualization(Scene): def construct(self): title = Text('Prime Factorization', font_size=48, color=BLUE) subtitle = Text('Breaking Numbers into Prime Building Blocks', font_size=24, color=GRAY) subtitle.next_to(title, DOWN, buff=0.3) ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm studying character-level models and want to visualize a subset of test samples. Display the model's predicted character above the actual character, with a checkmark for correct and an X for incorrect. Add confidence scores and a small per-sample annotation to illustrate where the model errs.
```python from manim import Scene, Text, Write, FadeIn, FadeOut, TransformFromCopy, Create, Arrow, Square, Circle, VGroup, Line, DOWN, UP, LEFT, RIGHT, BLUE, GREEN, YELLOW, RED, GRAY, WHITE from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class CharacterLevelModelScene(...
```python from manim import Scene, Text, Write, FadeIn, FadeOut, TransformFromCopy, Create, Arrow, Square, Circle, VGroup, Line, DOWN, UP, LEFT, RIGHT, BLUE, GREEN, YELLOW, RED, GRAY, WHITE from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class CharacterLevelModelScene(...
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...
In what ways does the concept of 'direct sum' in module theory differ from that in vector space theory?
```python from manim import * class DirectSumsComparison(Scene): def construct(self): # Title sequence title = Text("Unveiling the Mystery: Direct Sums", font_size=28) subtitle = Text("Modules vs. Vector Spaces", font_size=24) subtitle.next_to(title, DOWN) self.play...
```python from manim import * class DirectSumsComparison(Scene): def construct(self): # Title sequence title = Text("Unveiling the Mystery: Direct Sums", font_size=28) subtitle = Text("Modules vs. Vector Spaces", font_size=24) subtitle self.play(Write(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 learning about normalization and want to compare pre-activation distributions before and after BatchNorm in a hidden layer. Animate histograms of a mini-batch showing raw pre-activations, followed by the BatchNorm-transformed values, highlighting shifts in mean and variance and a Gaussian fit.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class BatchNormComparison(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) # ---...
```python from manim import * class BatchNormComparison(Scene): def construct(self): title = Text('Batch Normalization: Pre-Activation Comparison', font_size=32) title.to_edge(UP, buff=0.4) self.play(Write(title), run_time=2.0) std_formula = MathTex('y = f(wx + b)') std_for...
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 a graduate-level optimization module and want a visual that explains why SGD behaves differently from full-batch gradient descent in non-convex landscapes. Show a high-dimensional loss surface projected to 3D with a 2D contour, and animate trajectories for SGD, Momentum, and Adam across multiple basins. In...
```python from manim import * class StochasticGradientDescentScene(Scene): def construct(self): title = Text('Stochastic Gradient Descent Dynamics', font_size=40) subtitle = Text('Learning in the Fog', font_size=28, color=BLUE) title_group = VGroup(title, subtitle).arrange(DOWN, buff=0.5) ...
```python from manim import * class StochasticGradientDescentScene(Scene): def construct(self): title = Text('Stochastic Gradient Descent Dynamics', font_size=40) subtitle = Text('Learning in the Fog', font_size=28, color=BLUE) title_group = VGroup(title, subtitle).arrange(DOWN, buff=0.5) ...
invalid_axes_kwarg
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching 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 * class NumericalStabilityBoard(Scene): def construct(self): title = Text('Numerical Stability in Neural Networks', font_size=44, color=BLUE) subtitle = Text('Why Precision Matters in Deep Learning', font_size=28, color=GRAY) subtitle.next_to(title, DOWN, buff=0...
```python from manim import * class NumericalStabilityBoard(Scene): def construct(self): title = Text('Numerical Stability in Neural Networks', font_size=44, color=BLUE) subtitle = Text('Why Precision Matters in Deep Learning', font_size=28, color=GRAY) subtitle title_group = VGrou...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create an educational ManimCE animation on 'Farey Sequences' (Unearthing Connections: Farey Sequences and the Euclidean Algorithm): How are Farey sequences related to the Euclidean algorithm for finding the greatest common divisor? Visual style guidance: Smooth animations with a classical color palette featuring deep b...
```python from manim import * class FareyEuclideanConnection(Scene): def construct(self): # Title title = Text("Unearthing Connections: Farey Sequences and Euclidean Algorithm") title.scale(0.7) self.play(Write(title)) self.wait(1) self.play(title.animate.to_edge(UP)...
```python from manim import * class FareyEuclideanConnection(Scene): def construct(self): # Title title = Text("Unearthing Connections: Farey Sequences and Euclidean Algorithm") title.scale(0.7) self.play(Write(title)) self.wait(1) self.play(title.animate) ...
spatial_layout_overlap
synthetic_hard_neg:bespokelabs/bespoke-manim
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er...
```python from manim import * from manim import config Text.set_default(font='SimHei') class NaturalPhenomena(Scene): def construct(self): title = Text('3. Explanation and Prediction of Natural Phenomena', font_size=32, weight=BOLD, color=BLUE) def create_section(title_text, desc_text, color): ...
```python from manim import * from manim import config Text.set_default(font='SimHei') class NaturalPhenomena(Scene): def construct(self): title = Text('3. Explanation and Prediction of Natural Phenomena', font_size=32, weight=BOLD, color=BLUE) def create_section(title_text, desc_text, color): ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching an undergrad algebra course and want a dynamic visualization of the quadratic formula and discriminant. Animate the parabola y equals a x^2 + b x + c as a b c vary and reveal real vs complex roots depending on D equals b^2 - 4 a c. Include a parameter sweep showing real roots D greater or equal zero and co...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class QuadraticFormulaScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class QuadraticFormulaScene(Scene): def construct(self): title = Text('Quadratic Formula', font_size=48, color=BLUE) subtitle = Text('& The Discriminant', font_size=36, color=YELLOW) subtitle.next_to(title, DOWN) full_title = 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...
I'm teaching an undergrad course on Bayesian optimization for RL with model-based components that use SDE dynamics. Visualize learning a control policy where system dynamics are modeled as SDEs, and BO tunes hyperparameters of the model or reward. Show the trajectory of the agent under stochastic dynamics, the GP poste...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class BayesianOptimizationScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache")...
```python from manim import * import numpy as np class BayesianOptimizationScene(Scene): def construct(self): title = Text('Bayesian Optimization for RL with SDEs', font_size=40) subtitle = Text('Making Optimal Decisions Under Uncertainty', font_size=28, color=BLUE) title_group = VGroup(ti...
narrated_pedagogical_preference
nabin2004/manim-narrated-dpo-400