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 an undergrad course on sequence models and want a probabilistic sampling visualization. Animate a spinning wheel divided into character slices, landing on the next character according to the learned distribution. Show the probability weights as arc lengths and reflect the sample decision with a glow and a ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import random class ProbabilisticSamplingVisualization(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_ca...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import random class ProbabilisticSamplingVisualization(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_ca...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create a Manim animation for a Grade 7 science class explaining how biogas plants work as part of sanitation systems. The video should be in 16:9 format. Start with a title screen displaying "Sanitation Systems: Biogas Plants" in large text. Then introduce the main question: "How does a biogas plant work in the contex...
```python from manim import * import numpy as np import random import math class BiogasPlantScene(Scene): def construct(self): # --------------------------------------------------------- # SETTINGS & CONSTANTS # --------------------------------------------------------- self.camera.b...
```python from manim import * import numpy as np import random import math class BiogasPlantScene(Scene): def construct(self): # --------------------------------------------------------- # SETTINGS & CONSTANTS # --------------------------------------------------------- self.camera.b...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Display three groups of arrows demonstrating different arrow properties: 1. The first group shows two gold arrows pointing left—one with a default triangular tip and one with a square tip—stacked vertically. 2. The second group shows two right-pointing arrows near a maroon square—one with default spacing from the squa...
```python from manim import * from manim.mobject.geometry.tips import ArrowSquareTip class ArrowExample(Scene): def construct(self): arrow_1 = Arrow(start=RIGHT, end=LEFT, color=GOLD) arrow_2 = Arrow(start=RIGHT, end=LEFT, color=GOLD, tip_shape=ArrowSquareTip).shift(DOWN) g1 = Group(arrow_1...
```python from manim import * from manim.mobject.geometry.tips import ArrowSquareTip class ArrowExample(Scene): def construct(self): arrow_1 = Arrow(start=RIGHT, end=LEFT, color=GOLD) arrow_2 = Arrow(start=RIGHT, end=LEFT, color=GOLD, tip_shape=ArrowSquareTip) g1 = Group(arrow_1, arrow_2) ...
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...
Here’s an enhanced version of the animation with additional features: The animation begins by presenting the matrix \(\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}\) with a smooth `Write` effect. Next, a title ("Determinant of the Matrix") appears at the top, followed by the determinant formula \(\text{det} = 1 \cdot...
```python from manim import * class MatrixDeterminantAndEigenvalues(Scene): def construct(self): # Initial matrix matrix = Matrix([[1, 2], [3, 4]]) matrix_title = Text("Determinant of the Matrix").to_edge(UP) # Write matrix and title self.play(Write(matrix)) ...
```python from manim import * class MatrixDeterminantAndEigenvalues(Scene): def construct(self): # Initial matrix matrix = Matrix([[1, 2], [3, 4]]) matrix_title = Text("Determinant of the Matrix") # Write matrix and title self.play(Write(matrix)) self.wait(0...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Construct a clean Manim CE scene initializing Brace with verified keyword arguments. Ensure no deprecated ManimGL arguments (like element_color, max_value, or max_magnitude) are used.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService MARGIN = 0.5 class ApiValidBrace407(VoiceoverScene): def construct(self): # [SETUP] self.set_speech_service(GTTSService(transcription_model="base")) # [LA...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService MARGIN = 0.5 class ApiValidBrace407(VoiceoverScene): def construct(self): # [SETUP] self.set_speech_service(GTTSService(transcription_model="base")) # [LA...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning an undergrad course on numerical linear algebra and want a visual explanation of SVD. Show geometrically how a matrix A transforms the unit circle into an ellipse, with singular vectors as axes and Σ as scaling. Then decompose A as UΣV^T and illustrate the transformation step by step, including a noisy per...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class SVDGeometricScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) # [BEAT...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class SVDGeometricScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) # [BEAT...
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 12-second Manim scene that explains why XOR needs nonlinearity. Show the XOR points in input space with one straight boundary crossed out, then transform them into a new representation on the right where a single vertical separator now works.
```python from manim import * class XorNonlinearityStory(Scene): def construct(self): title = Text('XOR Needs A Nonlinear Transformation', font_size=28).to_edge(UP) left_panel = RoundedRectangle(corner_radius=0.12, width=3.8, height=4.2, color=GRAY_B).shift(LEFT * 3.0 + DOWN * 0.05) right_p...
```python from manim import * class XorNonlinearityStory(Scene): def construct(self): title = Text('XOR Needs A Nonlinear Transformation', font_size=28).to_edge(UP) left_panel = RoundedRectangle(corner_radius=0.12, width=3.8, height=4.2, color=GRAY_B).shift(LEFT * 3.0 + DOWN * 0.05) right_p...
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 EMAlgorithmDerivation(Scene): def construct(self): title = Text('EM Algorithm Derivation', font_size=40, weight=BOLD) title.to_edge(UP, buff=0.4) self.play(Write(title)) self.wait(0.5) ...
```python from manim import * from manim import config Text.set_default(font='SimHei') class EMAlgorithmDerivation(Scene): def construct(self): title = Text('EM Algorithm Derivation', font_size=40, weight=BOLD) title.to_edge(UP, buff=0.4) 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...
The following Manim CE script crashed with this traceback: ```text TypeError: Text.__init__() got an unexpected keyword argument 'size' ``` Fix the bug and provide the corrected, fully compilable Manim CE code: ```python from manim import * import numpy as np class ApiValidMatrix108(Scene): def construct(self):...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class ApiValidMatrix108(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_fr...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class ApiValidMatrix108(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_fr...
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 OSLectureNotes(Scene): def construct(self): title_color = TEAL subtitle_color = YELLOW text_color = WHITE title1 = Text('Integration with Other Courses', font_size=40, color=title_color, we...
```python from manim import * from manim import config Text.set_default(font='SimHei') class OSLectureNotes(Scene): def construct(self): title_color = TEAL subtitle_color = YELLOW text_color = WHITE title1 = Text('Integration with Other Courses', font_size=40, color=title_color, we...
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 course and want to visualize a simple computational graph for the expression (a * b) + c. Show input nodes feeding through a multiplication node to an intermediate result, then added to c, with numerical values propagating forward and edges annotated. Add a quick note on dependencies to prepar...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class ComputationalGraphVisualization(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 ComputationalGraphVisualization(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching NLP visualization and want a 26x26 heatmap showing a character transition matrix, where each cell color encodes the log-frequency of a character pair. Build a grid with labeled axes for source and target characters, animate a gradual heat buildup across cells, and include a colorbar and a note on interpret...
```python from manim import * class CharacterTransitionHeatmapScene(Scene, ThreeDScene): def construct(self): title = Text('NLP Character Transition Heatmap', font_size=36, color=BLUE) subtitle = Text('Visualizing Character Relationships Over Time', font_size=24, color=GRAY) subtitle.next_...
```python from manim import * class CharacterTransitionHeatmapScene(Scene, ThreeDScene): def construct(self): title = Text('NLP Character Transition Heatmap', font_size=36, color=BLUE) subtitle = Text('Visualizing Character Relationships Over Time', font_size=24, color=GRAY) 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...
Create a 15-second epidemiology scene comparing transmission chains when the effective reproduction number is below one and above one. Reveal generations side by side and show shrinking versus expanding average chains. Clarify that the reproduction number is an average, not a guarantee for each individual case.
```python from manim import * class ReproductionThreshold(Scene): def construct(self): title = Text("Average transmission shrinks below one and grows above one", font_size=34).to_edge(UP) divider = DashedLine(UP * 2.4, DOWN * 2.3, color=GRAY_B) labels = VGroup( Text("effective R...
```python from manim import * class ReproductionThreshold(Scene): def construct(self): title = Text("Average transmission shrinks below one and grows above one", font_size=34) divider = DashedLine(UP * 2.4, DOWN * 2.3, color=GRAY_B) labels = VGroup( Text("effective R < 1", font_...
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...
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 BlochSphereRepresentation(Scene): def construct(self): title = Text('Geometric Representation: Bloch Sphere', font_size=34, color=WHITE, weight=BOLD) title.to_edge(UP, buff=0.5) title_line = Line(L...
```python from manim import * from manim import config Text.set_default(font='SimHei') class BlochSphereRepresentation(Scene): def construct(self): title = Text('Geometric Representation: Bloch Sphere', font_size=34, color=WHITE, weight=BOLD) title.to_edge(UP, buff=0.5) title_line = Line(L...
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') import random class JPEGDecompression(Scene): def construct(self): title = Text('JPEG Decompression', font_size=40, weight=BOLD) title.to_edge(UP, buff=0.5) self.play(Write(title)) steps = ['Entr...
```python from manim import * from manim import config Text.set_default(font='SimHei') import random class JPEGDecompression(Scene): def construct(self): title = Text('JPEG Decompression', font_size=40, weight=BOLD) title.to_edge(UP, buff=0.5) self.play(Write(title)) steps = ['Entr...
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 activations and want a dying ReLU animation: a neuron whose output stays zero for all inputs. Visualize the input axis, pre-activation, and the activation output, with the line clipped at zero so the output is flat despite rising input. Compare with a healthy ReLU path to highlight the behavior, and show g...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class DyingReLUNeuronVisualization(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class DyingReLUNeuronVisualization(Scene): def construct(self): title = Text('Dying ReLU Neuron Visualization', font_size=36, color=BLUE) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) self.wait(0.5) self.play(title.animate.s...
narrated_pedagogical_preference
nabin2004/manim-narrated-dpo-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching a NLP/signal processing topic and want to visualize a 1D convolutional filter sliding over a sequence of character embeddings. Show the kernel as a small window moving along the character vector, with dot-product sums forming the output feature map. Color-code the overlapping input patches and reveal how r...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class NLP1DConvolutionVisualization(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 NLP1DConvolutionVisualization(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I’m teaching an undergrad ML course and want the final test evaluation to be shown as a single forward pass through the untouched test block, with the resulting accuracy displayed prominently. Build a concise scene where the test batch is fed once, and the final top-1 accuracy updates as the forward pass completes. Inc...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class TestEvaluationScene(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 TestEvaluationScene(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 undergrads software design for ML and want a clean UML class diagram for an MLP showing inheritance from nn.Module and composition of layers. Include notes on the forward pass, activation modules, and a zoomed-in view of the layer stack with color-coded relationships.
```python from manim import * class SoftwareDesignForMachineLearning(Scene): def construct(self): title = Text('Software Design for Machine Learning', font_size=36) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) opener = Text('Thoughtful design guides your code a...
```python from manim import * class SoftwareDesignForMachineLearning(Scene): def construct(self): title = Text('Software Design for Machine Learning', font_size=36) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) opener = Text('Thoughtful design guides your code a...
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...
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 SciComputeScene1139(Scene): def construct(self): import sympy as sp ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np import sympy as sp MARGIN = 0.5 class SymPyDerivativeScene(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = con...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np import sympy as sp MARGIN = 0.5 class SymPyDerivativeScene(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = con...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create an interactive Manim CE animation demonstrating: Tangent line dynamically tracking curve f(x) = x^2. Use updaters and ValueTracker. ```python from manim import * import numpy as np class DynamicScene601(Scene): def construct(self): ax = Axes(x_range=[-3, 3, 1], y_range=[0, 9, 3], x_length=6, y_leng...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class DynamicScene601(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_frac...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class DynamicScene601(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_frac...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
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 CorporaOverview(Scene): def construct(self): title = Text('Definition and Features of Corpora', font_size=34, color=WHITE, weight=BOLD) title.to_edge(UP, buff=0.5) title_line = Line(LEFT, RIGHT, co...
```python from manim import * from manim import config Text.set_default(font='SimHei') class CorporaOverview(Scene): def construct(self): title = Text('Definition and Features of Corpora', font_size=34, color=WHITE, weight=BOLD) title.to_edge(UP, buff=0.5) title_line = Line(LEFT, RIGHT, co...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning about embeddings and want to visualize how uniformly initialized embedding vectors evolve after 1000 training steps. Start with a uniform random scatter in high-dimensional space projected to 2D, then show gradual organization as training proceeds. Highlight a few representative vectors with trajectories a...
```python from manim import * import random import math class EmbeddingVectorsEvolution(Scene): def construct(self): title = Text('Visualizing Embedding Vectors Evolution', font_size=36, color=BLUE) title.to_edge(UP, buff=0.3) self.play(Write(title), run_time=2.0) self.wait(2.0) ...
```python from manim import * import random import math class EmbeddingVectorsEvolution(Scene): def construct(self): title = Text('Visualizing Embedding Vectors Evolution', font_size=36, color=BLUE) title.to_edge(UP, buff=0.3) self.play(Write(title), run_time=2.0) self.wait(2.0) ...
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 exploring gradient-based updates and want to see parameter nudges on a 2D contour plot of the loss. Animate small nudges of parameters along the contour, tracing the path of optimization with multiple learning rates. Slow down at convergence and show the path length and final approach to a local minimum.
```python from manim import * class GradientDescentVisualization(Scene): def construct(self): title = Text('Gradient-Based Optimization', font_size=36, color=BLUE) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) bowl_circles = VGroup() colors = [BLUE_E, BL...
```python from manim import * class GradientDescentVisualization(Scene): def construct(self): title = Text('Gradient-Based Optimization', font_size=36, color=BLUE) title self.play(Write(title), run_time=2.0) bowl_circles = VGroup() colors = [BLUE_E, BLUE_D, BLUE_C, BLUE_B, ...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching an NLP demo to undergrads. Show a generated text string typed out character by character, with a glowing cursor whose brightness encodes the probability of the next character. Include a small probability distribution bar for top candidates that updates as each character is typed, and a brief note about sam...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class NLPTextGeneration(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 NLPTextGeneration(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 ML course and want a vivid visualization of cross-entropy as the overlap integral between the predicted distribution (blue) and the target distribution (red, one-hot). Show the two distributions as evolving histograms and highlight the shared area that contributes to the loss. Animate how shif...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class CrossEntropyVisualization(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache")...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class CrossEntropyVisualization(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...
Why do certain 4-dimensional Riemannian manifolds admit black hole solutions, and how can these be dynamically visualized?
```python from manim import * class RiemannianGeometryBlackHoles(Scene): def construct(self): # Introduction title = Text("Visualizing Black Holes through Riemannian Geometry", font_size=28) title.to_edge(UP) self.play(Write(title)) self.wait(1) # Key Concep...
```python from manim import * class RiemannianGeometryBlackHoles(Scene): def construct(self): # Introduction title = Text("Visualizing Black Holes through Riemannian Geometry", font_size=28) title self.play(Write(title)) self.wait(1) # Key Concept 1: Spaceti...
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 with additional features: The animation begins by displaying the double integral in polar coordinates, \( \int_{0}^{2\pi} \int_{0}^{1} r\, dr\,d\theta \), while a unit circle fades in on the side to visually represent the region of integration. As the first explanation app...
```python from manim import * class PolarIntegrationScene(Scene): def construct(self): # Set up axes axes = Axes( x_range=[-1.5, 1.5, 0.5], y_range=[-1.5, 1.5, 0.5], axis_config={"color": BLUE}, ) axes_labels = axes.get_axis_labels() # Cr...
```python from manim import * class PolarIntegrationScene(Scene): def construct(self): # Set up axes axes = Axes( x_range=[-1.5, 1.5, 0.5], y_range=[-1.5, 1.5, 0.5], axis_config={"color": BLUE}, ) axes_labels = axes.get_axis_labels() # Cr...
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 a dynamic visualization of Fourier series convergence and an interactive formula breakdown: The animation begins by displaying the Fourier series formula (`f(x) = a₀ + Σ(aₙcos(nx) + bₙsin(nx))`) with a smooth `Write` anim...
```python from manim import * class FourierSeriesScene(Scene): def construct(self): # Display Fourier series formula formula = MathTex( "f(x) = a_0 + \\sum_{n=1}^{\\infty}", "\\left(", "a_n \\cos(nx) + b_n \\sin(nx)", "\\right)" ).scale(1.2) ...
```python from manim import * class FourierSeriesScene(Scene): def construct(self): # Display Fourier series formula formula = MathTex( "f(x) = a_0 + \\sum_{n=1}^{\\infty}", "\\left(", "a_n \\cos(nx) + b_n \\sin(nx)", "\\right)" ).scale(1.2) ...
invalid_axes_kwarg
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning deep nets and want to visualize vanishing gradients in a 10-layer network. Animate gradient arrows at each layer so the first layer has microscopic updates and the last layer has large, colorful arrows. Include a side-by-side comparison showing how gradient magnitudes shrink as you move toward the input, w...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class VanishingGradientsInDeepNetworks(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 VanishingGradientsInDeepNetworks(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning 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 * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class SequentialPipelineScene(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 SequentialPipelineScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er...
```python from manim import * from manim import config Text.set_default(font='SimHei') class DiscreteTimeSignalsClassification(Scene): def construct(self): title = Title('Classification of Discrete-Time Signals', font_size=40) self.play(Write(title)) self.wait(1) p1_title = Text('1...
```python from manim import * from manim import config Text.set_default(font='SimHei') class DiscreteTimeSignalsClassification(Scene): def construct(self): title = Title('Classification of Discrete-Time Signals', font_size=40) self.play(Write(title)) self.wait(1) p1_title = Text('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...
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 ExponentialIntegrationExample(Scene): def...
```python from manim import * class ExponentialIntegrationExample(Scene): def construct(self): # Displaying the problem problem = MathTex(r"\int e^{2x} \,dx") self.play(Write(problem)) self.wait(1) # Explanation for the integration method explanation1 = Text("Use u-...
```python from manim import * class ExponentialIntegrationExample(Scene): def construct(self): # Displaying the problem problem = TexMobject(r"\int e^{2x} \,dx") self.play(Write(problem)) self.wait(1) # Explanation for the integration method explanation1 = Text("Use...
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 step-by-step educational Manim CE lecture scene explaining: Gradient Descent Optimization on 2D Quadratic Function. ```python from manim import * import numpy as np class PedagogicalScene720(Scene): def construct(self): title = Title(r"Gradient Descent: $x_{k+1} = x_k - \gamma \nabla f(x_k)$") ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class PedagogicalScene720(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 PedagogicalScene720(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_...
invalid_axes_kwarg
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching undergrads ML and want a vivid visualization of the tanh activation curve. Show logits ranging from -∞ to ∞ mapped to -1 to 1, with saturation regions colored red. Include a moving input slider and an annotation of the slope decay, plus a side plot of the derivative magnitude.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class TanhActivationScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="bas...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class TanhActivationScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="bas...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create an interactive Manim CE animation demonstrating: Cycloid Generation with TracedPath and rolling circle. Use updaters and ValueTracker. ```python from manim import * import numpy as np class DynamicScene150(Scene): def construct(self): ground = Line(LEFT * 4 + DOWN * 1.5, RIGHT * 4 + DOWN * 1.5, col...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class DynamicScene150(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_frac...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class DynamicScene150(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_frac...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm studying symmetry and want to visualize reflections across the x-axis and y-axis. Show a set of points or shapes and map them to their reflections across each axis, animate the mapping, and discuss fixed points and how successive reflections compose. Provide examples with a general curve, a polygon, and a point clo...
```python from manim import * class VisualizingReflectionsAndSymmetry(Scene): def construct(self): title = Text('Visualizing Reflections and Symmetry', font_size=40) subtitle = Text('Geometry', font_size=28, color=BLUE) title_group = VGroup(title, subtitle).arrange(DOWN, buff=0.3) ...
```python from manim import * class VisualizingReflectionsAndSymmetry(Scene): def construct(self): title = Text('Visualizing Reflections and Symmetry', font_size=40) subtitle = Text('Geometry', font_size=28, color=BLUE) title_group = VGroup(title, subtitle).arrange(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...
Create an interactive Manim CE animation demonstrating: Tangent line dynamically tracking curve f(x) = x^2. Use updaters and ValueTracker.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService MARGIN = 0.5 class DynamicScene601(VoiceoverScene): def construct(self): # [SETUP] self.set_speech_service(GTTSService(transcription_model="base")) # [LAY...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService MARGIN = 0.5 class DynamicScene601(VoiceoverScene): def construct(self): # [SETUP] self.set_speech_service(GTTSService(transcription_model="base")) # [LAY...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching undergrads ML and want a vivid visualization of a custom PyTorch Linear layer subclassing nn.Module. Show separate scenes for __init__ (weights and bias initialization) and forward (batch matrix–vector multiply). Illustrate gradient flow during backprop and compare with a standard nn.Linear.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class CustomLinearLayer(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) # ====...
```python from manim import * class CustomLinearLayer(Scene): def construct(self): title = Text('Custom PyTorch Linear Layer', font_size=44) subtitle = Text('Build Your Own Fully-Connected Layer', font_size=24, color=BLUE) header = VGroup(title, subtitle).arrange(DOWN, buff=0.3) se...
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 * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class StochasticGradientDescentScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * 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) ...
narrated_pedagogical_preference
nabin2004/manim-narrated-dpo-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning how batch sampling works in practice. Animate the process: shuffle dataset indices, group them into mini-batches, and feed each batch to the model, with a live indicator showing batch order and progress. Provide a couple of camera moves to focus on the shuffle and the batch assembly, plus a final accuracy ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class BatchSamplingScene(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 BatchSamplingScene(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...
The following Manim CE script crashed with this traceback: ```text ValueError: latex error converting to dvi. Unicode character ₁ (U+2081) not supported. ``` Fix the bug and provide the corrected, fully compilable Manim CE code: ```python from manim import * import numpy as np class ApiValidBrace59(Scene): def ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class ApiValidBrace59(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_frac...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class ApiValidBrace59(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_frac...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching undergrad CNNs and want a vivid visualization of how weight initialization in very deep conv nets scales with receptive field. Show parallel stacks of conv layers with increasing depth, and color-coded variance across layers. Include transitions that illustrate how maintaining variance depends on the recep...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class WeightInitializationScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class WeightInitializationScene(Scene): def construct(self): title = Text('Weight Initialization in Deep CNNs', 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 Deep Learning...
narrated_pedagogical_preference
nabin2004/manim-narrated-dpo-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create an educational ManimCE animation on 'The Sieve of Eratosthenes' (Unveiling Twin Primes with the Sieve of Eratosthenes): What insights does the Sieve of Eratosthenes provide about the distribution of twin primes? Visual style guidance: A clean, minimalist style with numerals fading into view on a cream background...
```python from manim import * class TwinPrimesSieve(Scene): def construct(self): # Introduction title = Text("Unveiling Twin Primes with the Sieve of Eratosthenes") self.play(Write(title)) self.wait(1) self.play(FadeOut(title)) # Create a number line from 1 ...
```python from manim import * class TwinPrimesSieve(Scene): def construct(self): # Introduction title = Text("Unveiling Twin Primes with the Sieve of Eratosthenes") self.play(Write(title)) self.wait(1) self.play(FadeOut(title)) # Create a number line from 1 ...
legacy_api_hallucination
synthetic_hard_neg:bespokelabs/bespoke-manim
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create a Manim animation for a Grade 9 Social Studies lesson on educated unemployment in urban areas. The video should be in 16:9 format and follow this structure: 1. Introduction Scene (0-3 seconds): Display the title "Educated Unemployment in Urban Areas" in large text, centered on screen with a professional color s...
```python from manim import * import numpy as np class EducatedUnemployment(Scene): def construct(self): # 0. Setup self.camera.background_color = "#0f0f0f" # 1. Introduction Scene (0-3s) title = Text("Educated Unemployment\nin Urban Areas", font_size=48, line_spacing=1.2, ...
```python from manim import * import numpy as np class EducatedUnemployment(Scene): def construct(self): # 0. Setup self.camera.background_color = "#0f0f0f" # 1. Introduction Scene (0-3s) title = Text("Educated Unemployment\nin Urban Areas", font_size=48, line_spacing=1.2, ...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Curious: visualize eigenvectors and eigenvalues with intuition for undergraduates. Show a 2D linear transformation acting on several vectors, highlighting directions that stretch without rotation, then transform into the eigenbasis and reconstruct the action. Include scenes: a 2D plane with animated arrows, a 3D extens...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class EigenVectorScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class EigenVectorScene(Scene): def construct(self): axes = NumberPlane(x_range=[-5, 5, 1], y_range=[-4, 4, 1], axis_config={'stroke_color': GREY_D, 'stroke_width': 1}, background_line_style={'stroke_color': GREY_E, 'stroke_width': 0.5}).scale(0.8).shift(LEFT * 0.5) ti...
narrated_pedagogical_preference
nabin2004/manim-narrated-dpo-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching a data pipelines module and want a clear before/after comparison of input distributions across 10 epochs. Show two panels: without batch normalization where the distribution drifts, and with BN where it remains stationary. Animate histograms or kernel density plots per epoch and overlay the shift in mean/v...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class BNDistributions(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 import numpy as np class BNDistributions(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base"))...
invalid_axes_kwarg
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching an undergrad ML course and want a vivid visualization of the softmax output over a character sequence. Render a pie chart where each slice represents a character's probability, highlighting the max probability colorfully. Animate changes as the input token shifts and when temperature is varied. Include inf...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class SoftmaxPieChart(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 import numpy as np class SoftmaxPieChart(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 ML course and want a visual of the Cosine Annealing learning rate scheduler as a sinusoidal curve. Plot the LR over time and update the current LR value on top as the curve undulates. Include a parameter sweep to show how different cycles affect convergence, with slow motion at the minima.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class CosineAnnealingScene(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 CosineAnnealingScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
invalid_axes_kwarg
synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning about 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 * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class RNNCompressionScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) # [BE...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class RNNCompressionScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) # [BE...
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 studying CNN dilation effects and want to show the dilation factor as expanding gaps between filter taps, growing exponentially with depth. Animate a 1D filter with gaps increasing at deeper layers, and plot the receptive field growth as depth increases. Include a side-by-side comparison of effective coverage and a...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class CNNDilationEffects(VoiceoverScene): def construct(self): # [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 CNNDilationEffects(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 undergrads and want a vivid visualization of a live training dashboard. Show four panels: Loss (top-left), LR (top-right), Accuracy (bottom-left), and Gradient Norms (bottom-right), updating in real time. Use smooth transitions, synchronized time axis, and color cues to highlight spikes or trends. Include ...
```python from manim import * class RealTimeTrainingDashboardScene(Scene): def construct(self): title = Text('Real-Time Training Dashboard', font_size=36, color=BLUE) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) dashboard = RoundedRectangle(width=12, height=6.5...
```python from manim import * class RealTimeTrainingDashboardScene(Scene): def construct(self): title = Text('Real-Time Training Dashboard', font_size=36, color=BLUE) title self.play(Write(title), run_time=2.0) dashboard = RoundedRectangle(width=12, height=6.5, corner_radius=0.2, s...
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 KerberosSecurityAnalysis(Scene): def construct(self): context_title = Text('Authentication Protocols: Homework', font_size=32, color=BLUE) context_title.to_edge(UP, buff=0.4) main_title = Text('Ana...
```python from manim import * from manim import config Text.set_default(font='SimHei') class KerberosSecurityAnalysis(Scene): def construct(self): context_title = Text('Authentication Protocols: Homework', font_size=32, color=BLUE) context_title main_title = Text('Analyzing the Security of...
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 optimization and want a visual that clarifies why gradient descent struggles near saddle points. Display a non-convex 3D loss surface with several trajectories under different learning rates, and compare with momentum. I'd like intuition first, then the exact update equations shown in sync as the path evol...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class OptimizationAndGradientDescent(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 OptimizationAndGradientDescent(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er...
```python from manim import * from manim import config Text.set_default(font='SimHei') class RomanNumeralRules(Scene): def construct(self): title = Text('Rules of Roman Numerals', font_size=48, weight=BOLD) title.to_edge(UP, buff=0.5) self.play(Write(title)) v_line = DashedLine(UP ...
```python from manim import * from manim import config Text.set_default(font='SimHei') class RomanNumeralRules(Scene): def construct(self): title = Text('Rules of Roman Numerals', font_size=48, weight=BOLD) title.to_edge(UP, buff=0.5) self.play(Write(title)) v_line = DashedLine(UP ...
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 a computer architecture of CNNs and want to visualize gradient flow through residual connections. Animate a primary gradient path that flows directly through a skip connection, while obstacles or branches force alternate routes; show how the bypass helps gradient magnitude. Use flowing particles along the ...
```python from manim import * class GradientFlow(Scene): def construct(self): title = Text('Gradient Flow in CNN Residual Connections', font_size=36) title.to_edge(UP) self.play(Write(title), run_time=2.0) problem_title = Text('The Problem: Vanishing Gradients', font_size=28, color...
```python from manim import * class GradientFlow(Scene): def construct(self): title = Text('Gradient Flow in CNN Residual Connections', font_size=36) title self.play(Write(title), run_time=2.0) problem_title = Text('The Problem: Vanishing Gradients', font_size=28, color=RED) ...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
How does the residue theorem illuminate the relationship between contour integrals over different complex plane regions?
```python from manim import * class ResidueTheoremScene(Scene): def construct(self): # Create and display the title title = Text("Illuminating Contours with the Residue Theorem") self.play(Write(title)) self.wait(1) self.play(title.animate.scale(0.7).to_edge(UP)) ...
```python from manim import * class ResidueTheoremScene(Scene): def construct(self): # Create and display the title title = Text("Illuminating Contours with the Residue Theorem") self.play(Write(title)) self.wait(1) self.play(title.animate.scale(0.7)) # Crea...
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...
Curious about how SVD reshapes data in PCA-like fashion. Can you animate a 3D point cloud undergoing a sequence: first the original cloud, then its alignment along the left singular vectors, then scaling by the singular values, and finally projecting back to 3D with a low-rank approximation. I want to see the reconstru...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class SVDPCADataReshaping(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 SVDPCADataReshaping(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er...
```python from manim import * from manim import config Text.set_default(font='SimHei') class KnillLaflammeApplication(Scene): def construct(self): context_text = Text('Quantum Error Correction Codes (I) — Fundamental Theory and Classical Models', font_size=20, color=GRAY).to_edge(UP) subtitle = Te...
```python from manim import * from manim import config Text.set_default(font='SimHei') class KnillLaflammeApplication(Scene): def construct(self): context_text = Text('Quantum Error Correction Codes (I) — Fundamental Theory and Classical Models', font_size=20, color=GRAY) subtitle = Text('Exercise...
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 linear algebra and want a visual derivation of the spectral theorem for real symmetric matrices. Show a 3×3 symmetric matrix undergoing eigen-decomposition with an evolving eigenbasis; animate how A v = λ v when v is aligned with eigenvectors. Include the reconstruction A = Q Λ Q^T and a demonstration that...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class SpectralTheorem(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) # -------...
```python from manim import * class SpectralTheorem(Scene): def construct(self): title = Text('Spectral Theorem for Symmetric Matrices', font_size=38) subtitle = Text('Why symmetric matrices diagonalize beautifully', font_size=26) header = 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...
I'm learning how tensors are laid out in memory. Show a contiguous memory strip in row-major order as a sequence of colored cells, with an accompanying timeline that moves the read/write head as it traverses the tensor. I want to highlight strides and the logical vs physical layout, plus a small note on cache-friendly ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class TensorsInMemoryLayoutScene(VoiceoverScene): def construct(self): # Set up speech service self.set_speech_service( GTTSService(voice="alba", cache_dir="vo...
```python from manim import * class TensorsInMemoryLayoutScene(Scene): def construct(self): title = Text('Tensors In Memory Layout', font_size=48, color=BLUE) subtitle = Text('Understanding How Data Lives in Memory', font_size=24, color=GRAY) subtitle.next_to(title, 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...
I'm curious about the backward pass through log-softmax and want a clean visualization of the cancellations. Animate the backward computation showing gradients flowing through the log-softmax, canceling terms step by step. Include stacked diagrams of the cross-entropy loss terms and highlight the terms that cancel. Wra...
```python from manim import * class BackwardPassLogSoftmaxScene(Scene): def construct(self): title = Text('Backward Pass Through Log Softmax', font_size=40, color=BLUE) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) self.wait(0.5) section1_title = Text('1...
```python from manim import * class BackwardPassLogSoftmaxScene(Scene): def construct(self): title = Text('Backward Pass Through Log Softmax', font_size=40, color=BLUE) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) self.wait(0.5) section1_title = Text('1...
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 optimization and want an animation of the RMS-based learning-rate component: dividing by the root mean square of past gradients. Show a set of parameter boxes with adaptive step sizes that grow or shrink as the RMS evolves. Include a comparison against a fixed learning rate and a live trace of convergence ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class RMSPropVisualization(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 RMSPropVisualization(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) ...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create an interactive Manim CE animation demonstrating: Riemann Rectangles adapting dynamically with ValueTracker. Use updaters and ValueTracker. ```python from manim import * import numpy as np class DynamicScene92(Scene): def construct(self): ax = Axes(x_range=[0, 4, 1], y_range=[0, 5, 1], x_length=6, y...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class DynamicRiemannRectanglesScene2(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class DynamicRiemannRectanglesScene2(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
For first-year calculus students, I want an intuitive animation that shows the derivative as a limit of secant slopes. Begin with a smooth function, animate secants approaching the tangent, then reveal the derivative formula and plot f'(x) alongside. Include examples like x^2 and sin x, and a real-world interpretation ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class DerivativeAsLimitOfSecantSlopes(VoiceoverScene): def construct(self): # Set up speech service self.set_speech_service( GTTSService(voice="alba", cache_di...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class DerivativeAsLimitOfSecantSlopes(VoiceoverScene): def construct(self): # Set up speech service self.set_speech_service( GTTSService(voice="alba", cache_di...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create a Manim animation for a Grade 12 Business Studies class on Capital Budgeting. The video should be 16:9 format and follow this structure: 1. Title slide: Display "Capital Budgeting" in large text with a subtitle "Impact on Business" below it. Add a simple icon or graphic representing a business/investment concep...
```python from manim import * import numpy as np import random import math class CapitalBudgeting(Scene): def construct(self): # --------------------------------------------------------- # SETUP & CONFIGURATION # --------------------------------------------------------- self.camera....
```python from manim import * import numpy as np import random import math class CapitalBudgeting(Scene): def construct(self): # --------------------------------------------------------- # SETUP & CONFIGURATION # --------------------------------------------------------- self.camera....
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 a course on CNNs and want a pyramidal visualization of convolution hierarchies capturing longer contexts. Construct stacked convolution blocks where each level expands receptive field, forming a pyramid that grows to cover larger context. Animate filters sliding over a 1D/2D input with increasing dilation ...
```python from manim import * class PyramidalVisualizationOfCNNHierarchies(Scene): def construct(self): title = Text('Pyramidal Visualization of CNN Hierarchies', font_size=36) title.to_edge(UP, buff=0.4) self.play(Write(title), run_time=2.0 * 0.5) self.wait(2.0 * 0.5) laye...
```python from manim import * class PyramidalVisualizationOfCNNHierarchies(Scene): def construct(self): title = Text('Pyramidal Visualization of CNN Hierarchies', font_size=36) title self.play(Write(title), run_time=2.0 * 0.5) self.wait(2.0 * 0.5) layers = [('Input Image\n(...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning neural network initialization and want a visual that makes random weights feel tangible. Animate the initialization of a multilayer perceptron, displaying weight matrices colored by their random values and overlaying a quick statistics panel. Show the distribution of weights with a color scale, and zoom in...
```python from manim import * class NeuralNetworkInitVisualization(Scene): def construct(self): title = Text('Neural Network Initialization', font_size=48, color=BLUE) subtitle = Text('From Zero to He: Why It Matters', font_size=32, color=WHITE) subtitle.next_to(title, DOWN, buff=0.5) ...
```python from manim import * class NeuralNetworkInitVisualization(Scene): def construct(self): title = Text('Neural Network Initialization', font_size=48, color=BLUE) subtitle = Text('From Zero to He: Why It Matters', font_size=32, color=WHITE) subtitle title_group = VGroup(title,...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching an NLP demo to undergrads. Show a generated text string typed out character by character, with a glowing cursor whose brightness encodes the probability of the next character. Include a small probability distribution bar for top candidates that updates as each character is typed, and a brief note about sam...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class NLPTextGenerationStrategies(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 NLPTextGenerationStrategies(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...
Construct a clean Manim CE scene initializing Matrix with verified keyword arguments. Ensure no deprecated ManimGL arguments (like element_color, max_value, or max_magnitude) are used. ```python from manim import * import numpy as np class ApiValidMatrix156(Scene): def construct(self): obj = Matrix([[1, 2...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class ApiValidMatrix156(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_fr...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class ApiValidMatrix156(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_fr...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create an interactive Manim CE animation demonstrating: Orbital mechanics simulation using add_updater with dt. Use updaters and ValueTracker. ```python from manim import * import numpy as np class DynamicScene1138(Scene): def construct(self): sun = Dot(ORIGIN, radius=0.25, color=GOLD) planet = Do...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class DynamicScene1138(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_fra...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class DynamicScene1138(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_fra...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching undergrads about debugging neural nets. Create an animation where a breakpoint pauses the forward pass mid-multiplication, displays the current layer outputs as a diagram of activations, and shows how gradients would flow if resumed. Include a pane with the call stack and paused tensors, then resume action...
```python from manim import * class DebuggingNeuralNetworks(Scene): def construct(self): question = Text('Why is my neural network performing poorly?', font_size=40, color=BLUE) self.play(Write(question), run_time=2.0) self.wait(0.5) self.play(FadeOut(question), run_time=0.5) ...
```python from manim import * class DebuggingNeuralNetworks(Scene): def construct(self): question = Text('Why is my neural network performing poorly?', font_size=40, color=BLUE) self.play(Write(question), run_time=2.0) self.wait(0.5) self.play(FadeOut(question), run_time=0.5) ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning a linear algebra module to upper-undergraduates and want a visual that makes eigen decomposition intuition-rich. Show a 2D rotation-scaling example to reveal invariant eigenvectors, then a 3D view of a symmetric matrix acting on a shape so eigen-directions stand out. Animate how any vector decomposes into ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class EigenDecompositionVisualIntuition(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 EigenDecompositionVisualIntuition(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 self-supervised learning and want to see a non-contrastive method (e.g., BYOL-like) built step-by-step. Visualize the online network, target network, and predictor, with moving representations for two augmentations. Include a 2D projection showing alignment over iterations and a comparison to a small super...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class NonContrastiveSSLScene(VoiceoverScene): def construct(self): 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 NonContrastiveSSLScene(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 16:9 Manim animation for a 9th grade social studies class on electoral politics and voter participation. The animation should follow this structure: 1. Title Scene: Display "Free and Fair Elections in Democracy" centered on screen with a subtle background color. 2. Question Scene: Show the question "What is ...
```python from manim import * import numpy as np import random import math class ElectionDemocracy(Scene): def construct(self): # --------------------------------------------------------- # 1. Title Scene # --------------------------------------------------------- title = Text("Free...
```python from manim import * import numpy as np import random import math class ElectionDemocracy(Scene): def construct(self): # --------------------------------------------------------- # 1. Title Scene # --------------------------------------------------------- title = Text("Free...
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 'Pell's Equation' (Cracking the Code of Pell's Equation through Continued Fractions): What patterns emerge when viewing the continued fraction representations of solutions to Pell's Equation? Visual style guidance: An elegant and cohesive flow of visuals with a subtle mathemat...
```python from manim import * class PellsEquation(Scene): def construct(self): # Set up colors blue = "#3498db" green = "#2ecc71" # Title slide title = Text("Cracking the Code of Pell's Equation", color=blue) subtitle = Text("through Continued Fractions", co...
```python from manim import * class PellsEquation(Scene): def construct(self): # Set up colors blue = "#3498db" green = "#2ecc71" # Title slide title = Text("Cracking the Code of Pell's Equation", color=blue) subtitle = Text("through Continued Fractions", co...
spatial_layout_overlap
synthetic_hard_neg:bespokelabs/bespoke-manim
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Write a Manim CE visualization using scientific Python libraries (numpy, scipy, sympy) for: Fourier Series Square Wave Approximation with NumPy.
```python from manim import * import numpy as np MARGIN = 0.5 class SciComputeScene1417(VoiceoverScene): def construct(self): # [SETUP] self.set_speech_service(GTTSService(transcription_model="base")) # [LAYOUT] ax = Axes( x_range=[-PI, PI, PI/2], y...
```python from manim import * import numpy as np MARGIN = 0.5 class SciComputeScene1417(VoiceoverScene): def construct(self): # [SETUP] self.set_speech_service(GTTSService(transcription_model="base")) # [LAYOUT] ax = Axes(axis_color=BLUE, x_range=[-PI, PI, PI/...
invalid_axes_kwarg
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning algorithms and want a clear visualization comparing counting sort and radix sort. Show step-by-step digit/grouping processing, with buckets filling, stable merges, and the final sorted output. Include side-by-side timelines and histograms to emphasize how counts drive work and how base choice affects perfo...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class CountingSortVsRadixSort(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class CountingSortVsRadixSort(Scene): def construct(self): title = Text('Counting Sort vs Radix Sort', font_size=48, color=BLUE) subtitle = Text('Two Powerful Linear Time Sorting Algorithms', font_size=28, color=GRAY) subtitle.next_to(title, 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...
Create an interactive Manim CE animation demonstrating: Dynamic vector between moving points with put_start_and_end_on. Use updaters and ValueTracker. ```python from manim import * import numpy as np class DynamicScene1299(Scene): def construct(self): dot1 = Dot(LEFT * 2 + DOWN, color=RED) dot2 = ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class DynamicScene1299(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_fra...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class DynamicScene1299(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_fra...
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 data pipelines and want a clean animation of splitting a dataset into train, dev, and test blocks. Render the data as a row of items that splits into blue (train), green (dev), and red (test) blocks, with a rotating separator passing through. Show counts and proportions, and optionally a note on stratifica...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class DatasetSplittingScene(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 DatasetSplittingScene(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 activation functions and want a visual intuition for d/dx tanh(x) = 1 - tanh(x)^2. Show the tanh curve and, below it, the derivative as an inverted-parabola shape mapped onto tanh-values. Animate a moving x that drags both curves, highlighting the correspondence between slope and tanh. Include labele...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import math class TanhActivationFunctionScene(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 TanhActivationFunctionScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create a Manim animation for a Grade 12 History lesson on the Indian Rebellion of 1857. The video should be in 16:9 format and follow this structure: 1. Title slide: Display "The Indian Rebellion of 1857" in large text, with a subtitle "India's First War of Independence" below it. Include a simple historical icon or b...
```python from manim import * import numpy as np class IndianRebellion1857(Scene): def construct(self): # --------------------------------------------------------- # Configuration & Theme # --------------------------------------------------------- self.camera.background_color = "#0f...
```python from manim import * import numpy as np class IndianRebellion1857(Scene): def construct(self): # --------------------------------------------------------- # Configuration & Theme # --------------------------------------------------------- self.camera.background_color = "#0f...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create an interactive Manim CE animation demonstrating: Tangent line dynamically tracking curve f(x) = x^2. Use updaters and ValueTracker. ```python from manim import * import numpy as np class DynamicScene401(Scene): def construct(self): ax = Axes(x_range=[-3, 3, 1], y_range=[0, 9, 3], x_length=6, y_leng...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class DynamicScene401(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_frac...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class DynamicScene401(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_frac...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create an interactive Manim CE animation demonstrating: Cycloid Generation with TracedPath and rolling circle. Use updaters and ValueTracker. ```python from manim import * import numpy as np class DynamicScene465(Scene): def construct(self): ground = Line(LEFT * 4 + DOWN * 1.5, RIGHT * 4 + DOWN * 1.5, col...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class DynamicScene465(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_frac...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class DynamicScene465(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_frac...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Here’s an enhanced version of the animation that retains all the original features while adding significant new elements: The animation begins by constructing the axes with labeled increments, followed by plotting the quadratic function *y = 0.2x²* in red. As the curve is drawn, a dynamic Riemann sum visualization a...
```python from manim import * class IntegralVisualization(Scene): def construct(self): # Create axes axes = Axes( x_range=[0, 5, 1], y_range=[0, 4, 1], x_length=6, y_length=5, axis_config={"color": BLUE}, x_axis_config={ ...
```python from manim import * class IntegralVisualization(Scene): def construct(self): # Create axes axes = Axes( x_range=[0, 5, 1], y_range=[0, 4, 1], x_length=6, y_length=5, axis_config={"color": BLUE}, x_axis_config={ ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Here is the enhanced animation instruction that maintains all original features while adding significant new elements: The enhanced animation begins by creating a feedforward neural network with three layers (4-input, 6-hidden with ReLU activation, and 3-output with Softmax), just like the original. As the network app...
```python from manim import * import numpy as np class EnhancedNeuralNetwork(Scene): def construct(self): # Colors NEURON_COLOR = BLUE CONNECTION_COLOR = GREY INPUT_COLOR = GREEN HIDDEN_COLOR = BLUE OUTPUT_COLOR = RED ACTIVATION_COLOR = YELLOW ...
```python from manim import * import numpy as np class EnhancedNeuralNetwork(Scene): def construct(self): # Colors NEURON_COLOR = BLUE CONNECTION_COLOR = GREY INPUT_COLOR = GREEN HIDDEN_COLOR = BLUE OUTPUT_COLOR = RED ACTIVATION_COLOR = YELLOW ...
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...
The following Manim CE scene failed to compile. Truncated traceback: TypeError: Mobject.__init__() got an unexpected keyword argument 'max_value' Fix the code. Return a complete working scene. Do not keep the invalid constructor kwargs or Unicode subscripts. ```python from manim import * class WaveEquationScene(Sce...
```python from manim import * class WaveEquationScene(Scene): def construct(self): # Displaying the wave equation wave_eq = MathTex(r"\frac{\partial^2 u}{\partial t^2} = c^2 \frac{\partial^2 u}{\partial x^2}") self.play(Write(wave_eq)) self.wait(1) # Explanation for the wav...
```python from manim import * class WaveEquationScene(Scene): def construct(self): # Displaying the wave equation wave_eq = TexMobject(r"\frac{\partial^2 u}{\partial t^2} = c^2 \frac{\partial^2 u}{\partial x^2}") self.play(Write(wave_eq)) self.wait(1) # Explanation for the ...
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 robustness to misspecification and want to animate sensitivity analysis: perturb priors/likelihoods, display how outputs shift, and plot robustness measures across a parameter grid with quick scenario comparisons.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class RobustnessToMisspecification(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class RobustnessToMisspecification(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
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 trying to understand abstract reasoning tasks like ARC and want to visualize how an agent identifies patterns. Construct a mini-challenge where scenes evolve from simple shapes to abstract rule discovery, with a growing rule space. Visualize the rule derivation as a decision tree and track where the agent applies i...
```python from manim import * class AbstractReasoningVisualization(Scene): def construct(self): title = Text('Abstract Reasoning Tasks', font_size=48, color=BLUE) subtitle = Text('How AI Understands Complex Patterns', font_size=28, color=WHITE) title_group = VGroup(title, subtitle).arrange...
```python from manim import * class AbstractReasoningVisualization(Scene): def construct(self): title = Text('Abstract Reasoning Tasks', font_size=48, color=BLUE) subtitle = Text('How AI Understands Complex Patterns', font_size=28, color=WHITE) title_group = VGroup(title, subtitle).arrange...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create a Manim educational animation for Grade 11 Psychology on Indigenous Psychology in India. The video should be in 16:9 aspect ratio and follow this structure: 1. Title slide: Display "Indigenous Psychology in India" with a subtle background suggesting Indian cultural elements 2. Introduction section: Show the qu...
```python from manim import * import numpy as np import math import random class IndigenousPsychologyIndia(Scene): def construct(self): # --------------------------------------------------------- # 1. Setup & Configuration # --------------------------------------------------------- ...
```python from manim import * import numpy as np import math import random class IndigenousPsychologyIndia(Scene): def construct(self): # --------------------------------------------------------- # 1. Setup & Configuration # --------------------------------------------------------- ...
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 backprop and want a heatmap of gradient magnitudes across all weights in a small network after one backward pass. Visualize a tiny 3–4 layer architecture with each weight matrix as a grid, color by |grad|, and include a legend. Animate a couple of representative weight updates to illustrate how gradi...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class BackpropHeatmap(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 import numpy as np class BackpropHeatmap(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 three shapes with distinct styles and positions: a circle with a thick green outline on the left, a fully yellow-filled square above the center, and a pink-filled triangle with 50% transparency on the right. Show all three shapes on screen and pause for one second.
```python from manim import * class MobjectStyling(Scene): def construct(self): circle = Circle().shift(LEFT) square = Square().shift(UP) triangle = Triangle().shift(RIGHT) circle.set_stroke(color=GREEN, width=20) square.set_fill(YELLOW, opacity=1.0) triangle.set_fi...
```python from manim import * class MobjectStyling(Scene): def construct(self): circle = Circle() square = Square() triangle = Triangle() circle.set_stroke(color=GREEN, width=20) square.set_fill(YELLOW, opacity=1.0) triangle.set_fill(PINK, opacity=0.5) self...
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...
I'm teaching probability and want to visualize marginal distributions derived from a joint density. Animate a bivariate example, show the joint surface, and slice to reveal X and Y marginals. Add conditioning to illustrate P(A|B) and the effect on the marginal curves. Include a quick contrast with independent variables...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class MarginalDistributionsScene(ThreeDScene, VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_camera_orientation(phi=65 * DEG...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class MarginalDistributionsScene(ThreeDScene, VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_camera_orientation(phi=65 * 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...
I'm teaching numerical vs analytic gradients and want to demonstrate a manual gradient check by perturbing inputs. Compare finite-difference estimates to the analytical gradient, with a real-time error metric. Show how decreasing the perturbation improves agreement and reveals numerical issues. Provide a small schemati...
```python from manim import * class GradientLecture(Scene): def construct(self): title = Text('Numerical and Analytic Gradients', font_size=48) subtitle = Text('The Mathematics Behind Machine Learning Optimization', font_size=28) subtitle.next_to(title, DOWN, buff=0.5) self.play(Wr...
```python from manim import * class GradientLecture(Scene): def construct(self): title = Text('Numerical and Analytic Gradients', font_size=48) subtitle = Text('The Mathematics Behind Machine Learning Optimization', font_size=28) subtitle.next_to(title, DOWN, buff=0.5) self.play(Wr...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
The following Manim CE scene failed to compile. Truncated traceback: TypeError: Mobject.__init__() got an unexpected keyword argument 'max_value' Fix the code. Return a complete working scene. Do not keep the invalid constructor kwargs or Unicode subscripts. ```python from manim import * class MandelbrotFractalDyna...
```python from manim import * class MandelbrotFractalDynamics(Scene): def construct(self): # Introduction title = Text("Fractal Frontiers", font_size=36) subtitle = Text("The Ever-Changing Boundaries of Mandelbrot", font_size=24) subtitle.next_to(title, DOWN) self.p...
```python from manim import * class MandelbrotFractalDynamics(Scene): def construct(self): # Introduction title = Text("Fractal Frontiers", font_size=36) subtitle = Text("The Ever-Changing Boundaries of Mandelbrot", font_size=24) subtitle.next_to(title, DOWN) self.p...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching an undergrad ML course and want a visualization of the training loop that evaluates on the dev set after every epoch. Include a vertical dashed line marking the best checkpoint and transitions showing early stopping criteria.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class TrainingLoopWithEarlyStopping(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class TrainingLoopWithEarlyStopping(Scene): def construct(self): title = Text('Training Loop with Early Stopping', font_size=44, color=BLUE) subtitle = Text('Preventing Overfitting in AI Models', font_size=26, color=WHITE) subtitle.next_to(title, DOWN, buff=0....
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 NamespaceStrategies(Scene): def construct(self): title = Text('Namespace Usage Strategies', font_size=34, color=WHITE, weight=BOLD) title.to_edge(UP, buff=0.5) title_line = Line(LEFT, RIGHT, color=...
```python from manim import * from manim import config Text.set_default(font='SimHei') class NamespaceStrategies(Scene): def construct(self): title = Text('Namespace Usage Strategies', font_size=34, color=WHITE, weight=BOLD) title.to_edge(UP, buff=0.5) title_line = Line(LEFT, RIGHT, color=...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create a step-by-step educational Manim CE lecture scene explaining: Taylor Series Expansion of exp(x). ```python from manim import * import numpy as np class PedagogicalScene338(Scene): def construct(self): title = Title(r"Taylor Series of $f(x) = e^x$ around $x=0$") ax = Axes(x_range=[-3, 3, 1],...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class PedagogicalScene338(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 PedagogicalScene338(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_...
invalid_axes_kwarg
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm studying deep nets and want to visualize gradient flow through a 10-layer network without batch norm, comparing the gradient magnitudes of layer 1 vs. layer 10. Animate per-layer gradient norms with color-coded bands and slow down when gradients shrink or explode. Include a path showing backpropagation through the ...
```python from manim import * class GradientFlowScene(Scene): def construct(self): title = Text('Visualizing Gradient Flow in Deep Nets', font_size=36) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) input_layer = VGroup(*[Circle(radius=0.25, color=BLUE, fill_opac...
```python from manim import * class GradientFlowScene(Scene): def construct(self): title = Text('Visualizing Gradient Flow in Deep Nets', font_size=36) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) input_layer = VGroup(*[Circle(radius=0.25, color=BLUE, fill_opac...
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...
In what ways can compact and non-compact Lie groups act differently on homogeneous spaces?
```python from manim import * class LieGroupActions(Scene): def construct(self): # Title title = Text("Circles, Spirals, and the Dance of Lie Groups", font_size=30) self.play(Write(title)) self.wait(1) self.play(FadeOut(title)) # Introduction intro =...
```python from manim import * class LieGroupActions(Scene): def construct(self): # Title title = Text("Circles, Spirals, and the Dance of Lie Groups", font_size=30) self.play(Write(title)) self.wait(1) self.play(FadeOut(title)) # Introduction intro =...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k