system
stringclasses
1 value
prompt
stringlengths
78
12.9k
chosen
stringlengths
370
27.9k
rejected
stringlengths
327
28k
category
stringclasses
5 values
source
stringclasses
8 values
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create a 20-second Manim scene that explains a reaction coordinate diagram. Show reactants, a transition-state peak, products, and dashed guides indicating the activation barrier.
```python from manim import * class ReactionCoordinateCurve(Scene): def construct(self): title = Text("Reaction Coordinate", font_size=36).to_edge(UP) axes = Axes(x_range=[0, 10, 1], y_range=[0, 6, 1], x_length=7.5, y_length=4.5, tips=False).shift(DOWN * 0.2) axis_labels = axes.get_axis_lab...
```python from manim import * class ReactionCoordinateCurve(Scene): def construct(self): title = Text("Reaction Coordinate", font_size=36) axes = Axes(x_range=[0, 10, 1], y_range=[0, 6, 1], x_length=7.5, y_length=4.5, tips=False) axis_labels = axes.get_axis_labels(Text("reaction progress", ...
spatial_layout_overlap
synthetic_hard_neg:sebastianboehler/autoresearch-manim
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'd like to have an animated video that teaches the process of integrating the function e^(2x) step by step using the substitution method. Please start by displaying the integral of e^(2x) with respect to x. Then have the video show a step where it explains that we are going to use substitution and introduces the subst...
```python from manim import * class ThirdOrderODEExample(Scene): def construct(self): # Displaying the original ODE ode_text = MathTex(r"y''' - 3y'' + 3y' - y = 0") self.play(Write(ode_text)) self.wait(1) # Explanation for characteristic equation derivation char_eq_...
```python from manim import * class ThirdOrderODEExample(Scene): def construct(self): # Displaying the original ODE ode_text = MathTex(r"y''' - 3y'' + 3y' - y = 0") self.play(Write(ode_text)) self.wait(1) # Explanation for characteristic equation derivation char_eq_...
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...
What is the impact of priority scheduling on the average waiting time in a multi-class queuing system?
```python from manim import * class PriorityQueueScene(Scene): def construct(self): # Title title = Text("The Waiting Game: Priority Scheduling in Queuing Theory").scale(0.7) self.play(Write(title)) self.wait(1) self.play(title.animate.to_edge(UP)) # Cafe Qu...
```python from manim import * class PriorityQueueScene(Scene): def construct(self): # Title title = Text("The Waiting Game: Priority Scheduling in Queuing Theory").scale(0.7) self.play(Write(title)) self.wait(1) self.play(title.animate.to_edge(UP)) # Cafe Qu...
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...
Explain singular value decomposition with a geometric visualization of a 3D data cloud. Show how projecting onto principal components preserves variance, then reconstruct with increasing rank and quantify reconstruction error. Include multiple scenes: the raw cloud, the principal axes, data after projection, and a scre...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class SVDVisualization(VoiceoverScene, ThreeDScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cac...
```python from manim import * import numpy as np class SVDVisualization(Scene, ThreeDScene): def construct(self): self.set_camera_orientation(phi=70 * DEGREES, theta=-110 * DEGREES) self.begin_ambient_camera_rotation(rate=0.08) angle_u = 45 * DEGREES U = np.array([[np.cos(angle_u),...
narrated_pedagogical_preference
nabin2004/manim-narrated-dpo-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Here’s the enhanced animation description, which retains all original features while adding new visual and explanatory elements: The animation begins by drawing the axes with labels *x* and *f(x)*, followed by the curve *f(x) = x²* in green. The area under the curve from *x = 0* to *x = 2* is then filled with a grad...
```python from manim import * class IntegralVisualization(Scene): def construct(self): # Create axes axes = Axes( x_range=[0, 3, 1], y_range=[0, 5, 1], axis_config={"color": BLUE}, x_axis_config={"numbers_to_include": [0, 1, 2]}, y_axis_co...
```python from manim import * class IntegralVisualization(Scene): def construct(self): # Create axes axes = Axes( x_range=[0, 3, 1], y_range=[0, 5, 1], axis_config={"color": BLUE}, x_axis_config={"numbers_to_include": [0, 1, 2]}, y_axis_co...
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 neural nets and want a clear visualization of activations across a mini-batch. Create a color-coded grid where each cell represents a neuron activation, with black meaning dead or zero activation, and a spectrum for varying activations. Show a small batch of N samples across layer depth D, with...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class VisualizingNeuralNetworkActivations(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ...
```python from manim import * class VisualizingNeuralNetworkActivations(Scene): def construct(self): title = Text('Visualizing Neural Network Activations', font_size=40, color=BLUE) subtitle = Text('What does a neural network see?', font_size=28, color=GRAY) title_group = VGroup(title, sub...
narrated_pedagogical_preference
nabin2004/manim-narrated-dpo-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching undergrads optimization and want a vivid visual of simulated annealing that shows escaping local minima. I want a 3D energy landscape where a point explores neighboring states, hopping over barriers when the temperature is high and settling as T cools. Include the Metropolis acceptance step and a dynamic t...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import random import math class SimulatedAnnealingVisualization(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voic...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import random import math class SimulatedAnnealingVisualization(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voic...
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 a vivid visualization of hook behavior in neural nets: animate a forward hook that logs activations and a backward hook that records gradients. Show a small module with a couple of layers, a forward pass highlighting activations, then backprop tracing gradient flow. I'd like...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class HookBehaviorScene(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 HookBehaviorScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm studying CNN dilation effects and want to show the dilation factor as expanding gaps between filter taps, growing exponentially with depth. Animate a 1D filter with gaps increasing at deeper layers, and plot the receptive field growth as depth increases. Include a side-by-side comparison of effective coverage and a...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class CNNDilationEffects(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class CNNDilationEffects(Scene): def construct(self): title = Text('CNN Dilation Effects', font_size=48, color=BLUE) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) self.wait(0.5) self.play(title.animate.scale(0.6).to_edge(UP,...
narrated_pedagogical_preference
nabin2004/manim-narrated-dpo-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching an intro regression unit and want to visualize underfitting as a high-bias scenario. Show a sinusoidal data set with a straight-line model that cannot fit well, plus residuals heatmap highlighting systematic error. Animate the attempt to fit with a low-complexity model, then zoom into the bias-dominated re...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class IntroRegressionUnderfittingVisualization(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ...
```python from manim import * class IntroRegressionUnderfittingVisualization(Scene): def construct(self): title = Text('Regression Underfitting Visualization', font_size=36, color=BLUE) title.to_edge(UP) self.play(Write(title), run_time=2.0) self.wait(2.0) self.play(FadeOut...
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 logistic regression and want to see the cross-entropy loss surface for a two-class problem rendered as a 3D terrain. Animate a gradient-descent path sliding down the surface from a random start, with the gradient vectors shown, and show contour lines on the base. Include a side legend mapping loss value to...
```python from manim import * import math class LogisticRegressionLossSurface(Scene, ThreeDScene): def construct(self): title = Text('Logistic Regression Loss Surface', font_size=36) title.to_edge(UP, buff=0.3) sigmoid_eq = MathTex('h(x)=\\frac{1}{1+e^{-wx}}', font_size=32) loss_eq...
```python from manim import * import math class LogisticRegressionLossSurface(Scene, ThreeDScene): def construct(self): title = Text('Logistic Regression Loss Surface', font_size=36) title.to_edge(UP, buff=0.3) sigmoid_eq = MathTex('h(x)=\\frac{1}{1+e^{-wx}}', font_size=32) loss_eq...
invalid_axes_kwarg
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning embedding optimization; animate the gradient update on a single embedding row, shifting its position in vector space over iterations, highlighting the gradient vector and update step, and showing the resulting trajectory.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class EmbeddingOptimizationScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_mod...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class EmbeddingOptimizationScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_mod...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create a Manim animation for a 16:9 video about ancient Indian temple architecture, specifically focusing on the Deogarh temple and Vishnu sculpture from the fifth century CE. The video should follow this structure: Start with a title slide reading "Ancient Indian Temple Architecture: Fifth Century CE" in large text...
```python from manim import * import numpy as np import math class AncientArchitecture(Scene): def construct(self): # --- SCENE 1: Introduction --- # Clear screen and set background (implied by default, but good to be clean) title = Text("Ancient Indian Temple Architecture", font_size=48, c...
```python from manim import * import numpy as np import math class AncientArchitecture(Scene): def construct(self): # --- SCENE 1: Introduction --- # Clear screen and set background (implied by default, but good to be clean) title = Text("Ancient Indian Temple Architecture", font_size=48, c...
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 that builds intuition for eigenvectors and eigenvalues. Show a 2D linear map transforming the unit circle into an ellipse and highlight the eigen-directions with scaled vectors. Then extend to 3D to illustrate how the matrix decomposes into eigen-directions, with a live par...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class EigenvalueScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class EigenvalueScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching a transformers module and want a visualization of the interaction radius: show the distance between tokens that can influence each other at each layer, doubling as you go deeper. Use a sequence of tokens laid out on a line, color-coded bands that expand to show receptive field, and animate the doubling acr...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class TransformersInteractionRadiusScene(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 TransformersInteractionRadiusScene(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 internal covariate shift and batch norm. Visualize a layer receiving inputs from a drifting distribution, with a plot showing the mean and variance wandering over training. Then show batch normalization as a clamp that re-centers and scales inputs to a steady distribution, highlighting how the normal...
```python from manim import * class InternalCovariateShiftAndBatchNorm(Scene): """A comprehensive lecture on Internal Covariate Shift and Batch Normalization.""" def construct(self): title = Text('Internal Covariate Shift', font_size=48, color=BLUE) subtitle = Text('& Batch Normalization', fon...
```python from manim import * class InternalCovariateShiftAndBatchNorm(Scene): """A comprehensive lecture on Internal Covariate Shift and Batch Normalization.""" def construct(self): title = Text('Internal Covariate Shift', font_size=48, color=BLUE) subtitle = Text('& Batch Normalization', fon...
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 about vanishing gradients in deep networks and want to visualize the gradient magnitude shrinking layer by layer during backpropagation. Show arrows getting thinner and lighter as they flow backward.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class VanishingGradientsScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class VanishingGradientsScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching undergrads optimization and want a vivid visual of simulated annealing that shows escaping local minima. I want a 3D energy landscape where a point explores neighboring states, hopping over barriers when the temperature is high and settling as T cools. Include the Metropolis acceptance step and a dynamic t...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import random import math class SimulatedAnnealingVisualization(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voic...
```python from manim import * import random import math class SimulatedAnnealingVisualization(Scene): def construct(self): title = Text('Simulated Annealing Visualization', font_size=36, color=BLUE) subtitle = Text('An AI Optimization Technique', font_size=24, color=GRAY) title.to_edge(UP,...
narrated_pedagogical_preference
nabin2004/manim-narrated-dpo-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
The following Manim CE scene failed to compile. Truncated traceback: TypeError: Animation only works on Mobjects Fix the code. Return a complete working scene. Do not keep the invalid constructor kwargs or Unicode subscripts. ```python from manim import * class WaveEquationExample(Scene): def construct(self): ...
```python from manim import * class WaveEquationExample(Scene): def construct(self): # Displaying the partial differential equation pde = MathTex(r"\frac{\partial^2 u}{\partial t^2} = c^2 \nabla^2 u") self.play(Write(pde)) self.wait(1) # Explanation for what kind of PDE it ...
```python from manim import * class WaveEquationExample(Scene): def construct(self): # Displaying the partial differential equation pde = MathTex(r"\frac{\partial^2 u}{\partial t^2} = c^2 \nabla^2 u") self.play(Write(pde)) self.wait(1) # Explanation for what kind of PDE it ...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Write Manim code for a scene illustrating the geometric interpretation of complex numbers in the complex plane. Show real and imaginary parts visually, and include a title saying "Complex Plane."
```python from manim import * class ComplexPlaneScene(Scene): def construct(self): # Title title = Text("Complex Plane") title.scale(1.5) title.to_edge(UP) self.play(Write(title)) self.wait(2) self.play(FadeOut(title)) # Complex plane complex...
```python from manim import * class ComplexPlaneScene(Scene): def construct(self): # Title title = Text("Complex Plane") title.scale(1.5) title self.play(Write(title)) self.wait(2) self.play(FadeOut(title)) # Complex plane complex_plane = Com...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Here’s an enhanced version of the animation that retains all the original features while adding significant new elements: The animation begins by introducing a water molecule (H₂O) with a central oxygen atom (blue circle labeled "O") and two hydrogen atoms (white circles labeled "H") positioned above it, forming a V...
```python from manim import * class WaterMoleculeAnimation(Scene): def construct(self): # Create the oxygen atom (blue circle) oxygen = Circle(color=BLUE, fill_opacity=1.0) oxygen_label = Tex("O").scale(0.7).move_to(oxygen.get_center()) # Create the hydrogen atoms (white ci...
```python from manim import * class WaterMoleculeAnimation(Scene): def construct(self): # Create the oxygen atom (blue circle) oxygen = Circle(color=BLUE, fill_opacity=1.0) oxygen_label = Tex("O").scale(0.7).move_to(oxygen.get_center()) # Create the hydrogen atoms (white ci...
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 course on neural nets and want a clear visualization of activations across a mini-batch. Create a color-coded grid where each cell represents a neuron activation, with black meaning dead or zero activation, and a spectrum for varying activations. Show a small batch of N samples across layer depth D, with...
```python from manim import * class VisualizingNeuralNetworkActivations(Scene): def construct(self): title = Text('Visualizing Neural Network Activations', font_size=40, color=BLUE) subtitle = Text('What does a neural network see?', font_size=28, color=GRAY) title_group = VGroup(title, sub...
```python from manim import * class VisualizingNeuralNetworkActivations(Scene): def construct(self): title = Text('Visualizing Neural Network Activations', font_size=40, color=BLUE) subtitle = Text('What does a neural network see?', font_size=28, color=GRAY) title_group = VGroup(title, sub...
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...
Explain the spectral theorem for real symmetric matrices with visual intuition. Visualize 2D and 3D transformations: show a unit circle mapped to an ellipse along eigen-directions, then decompose A = Q Λ Q^T and animate alignment with eigenvectors. Add a slider to vary A's entries, display eigenvalues/eigenvectors, and...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class SpectralTheoremScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class SpectralTheoremScene(Scene): def construct(self): title = Text('Spectral Theorem', font_size=48) subtitle = Text('Real Symmetric Matrices', font_size=36) title_group = VGroup(title, subtitle).arrange(DOWN, buff=0.3) self.play(Write(title_group), ...
narrated_pedagogical_preference
nabin2004/manim-narrated-dpo-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning about gradient computation in normalization layers and want a manual derivation of gradients with respect to gamma and beta using summations over the batch. Show the algebra visually, then animate the corresponding gradient vectors flowing from the batch statistics through the gamma/beta parameters, with a...
```python from manim import * class GradientComputationScene(Scene): def construct(self): title = Tex('Gradient Computation in Normalization Layers', font_size=40) title.to_edge(UP, buff=0.3) self.play(Write(title), run_time=2.0) intro = Tex('Normalization stabilizes activations an...
```python from manim import * class GradientComputationScene(Scene): def construct(self): title = Tex('Gradient Computation in Normalization Layers', font_size=40) title.to_edge(UP, buff=0.3) self.play(Write(title), run_time=2.0) intro = Tex('Normalization stabilizes activations an...
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 educational animation explaining isochrone lines in geography. Start with a title screen showing "Isochrone Lines and Transportation" in white text on a dark background. Then display the question "What do isochrone lines represent on a map?" centered on screen. Introduce the concept by showing a map with a c...
```python from manim import * import numpy as np import random import math class IsochroneScene(Scene): def construct(self): # --- Section 1: Title Screen --- title = Text("Isochrone Lines and Transportation", font_size=42, color=WHITE) title.to_edge(UP, buff=0.8) question ...
```python from manim import * import numpy as np import random import math class IsochroneScene(Scene): def construct(self): # --- Section 1: Title Screen --- title = Text("Isochrone Lines and Transportation", font_size=42, color=WHITE) title question = Text("What do isochr...
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 CNN course and want a visualization of gradient flow through the residual stack, bypassing the convolutional layers. Show a residual block with a skip path that bypasses conv layers, animate gradient magnitudes along the main and skip paths, and highlight how gradients propagate through the id...
```python from manim import * class GradientFlowInResidualNetworks(Scene): def construct(self): PRIMARY = BLUE SECONDARY = GREEN ACCENT = YELLOW DANGER = RED title = Text('Gradient Flow in Residual Networks', font_size=48, color=PRIMARY) subtitle = Text('Understandi...
```python from manim import * class GradientFlowInResidualNetworks(Scene): def construct(self): PRIMARY = BLUE SECONDARY = GREEN ACCENT = YELLOW DANGER = RED title = Text('Gradient Flow in Residual Networks', font_size=48, color=PRIMARY) subtitle = Text('Understandi...
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 gated activations and want to visualize the gradient of a gate that combines Tanh and Sigmoid derivatives. Show the chain rule decomposition: tanh' times gate, sigmoid' times gate, and illustrate how the overall gradient evolves across time steps, with color coding for each component.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class GatedActivationsGradientScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class GatedActivationsGradientScene(Scene): def construct(self): title = Text('Gated Activations: Gradient Flow', font_size=36) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) intro = Text('Gated activations serve as guiding compasses...
narrated_pedagogical_preference
nabin2004/manim-narrated-dpo-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching a graduate course on deep learning and want a toggle between model.train() and model.eval(), highlighting BN behavior: batch statistics in train and running statistics in eval. Visualize a small network with BatchNorm, animate batch mean/var versus running mean/var, and show how outputs differ when switchi...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class BatchNormBehaviorVisualization(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 numpy as np class BatchNormBehaviorVisualization(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_ca...
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...
Here is the enhanced animation instruction that builds upon the original while adding significant new features: The animation begins by drawing a thick purple horizontal line across the screen as in the original, but now the line dynamically extends from the center outward in both directions with a smooth drawing anim...
```python from manim import * class HorizontalLineGraph(Scene): def construct(self): # Create axes axes = Axes( x_range=[-7, 7, 1], y_range=[-4, 4, 1], axis_config={"color": BLUE}, x_axis_config={ "numbers_to_include": np.arange(-6, 7,...
```python from manim import * class HorizontalLineGraph(Scene): def construct(self): # Create axes axes = Axes(axis_color=BLUE, x_range=[-7, 7, 1], y_range=[-4, 4, 1], axis_config={"color": BLUE}, x_axis_config={ "numbers_to_include":...
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 an instructor designing a Manim video for a sophomore linear algebra class; prerequisite: vectors, matrix multiplication, and basic eigen/SVD ideas. Create a visual that builds intuition for singular value decomposition: A = U Σ V^T with singular values as scaling along principal axes. Show multiple scenes: a 2D/3D...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class SVDExplanation(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) # ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class SVDExplanation(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) # ...
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...
Here’s an enhanced version of the animation with additional features: The animation begins by displaying the differential equation \( y'' + \omega^2 y = 0 \) with a smooth `Write` effect, followed by a brief pause. A text explanation ("Consider a trial solution") appears at the top edge, setting the stage for the next...
```python from manim import * class HarmonicOscillatorSolution(Scene): def construct(self): # Initial equation equation = MathTex( r"y'' + \omega^2 y = 0", font_size=48 ) self.play(Write(equation)) self.wait(1) # Explanation text expl...
```python from manim import * class HarmonicOscillatorSolution(Scene): def construct(self): # Initial equation equation = TexMobject( r"y'' + \omega^2 y = 0", font_size=48 ) self.play(Write(equation)) self.wait(1) # Explanation text e...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
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 SpeechDiscretization(Scene): def construct(self): title = Text('Discretization Methods for Speech', font_size=40, color=YELLOW, weight=BOLD) title.to_edge(UP, buff=0.4) self.play(FadeIn(title, shif...
```python from manim import * from manim import config Text.set_default(font='SimHei') class SpeechDiscretization(Scene): def construct(self): title = Text('Discretization Methods for Speech', font_size=40, color=YELLOW, weight=BOLD) title self.play(FadeIn(title, shift=DOWN)) sem_t...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm 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 * class BatchNormalizationEffects(Scene): def construct(self): title = Text('Batch Normalization', font_size=48, color=BLUE) subtitle = Text('Effects on Input Distributions', font_size=32, color=WHITE) subtitle.next_to(title, DOWN, buff=0.5) self.play(Wr...
```python from manim import * class BatchNormalizationEffects(Scene): def construct(self): title = Text('Batch Normalization', font_size=48, color=BLUE) subtitle = Text('Effects on Input Distributions', font_size=32, color=WHITE) 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...
How can Monte Carlo Simulation illustrate the convergence of the estimation of π by randomly placing points within a square enclosing a circle?
```python from manim import * import numpy as np class MonteCarloPI(Scene): def construct(self): # Create the title title = Text("Dancing with Randomness: Estimating π with Monte Carlo") title.set_color(YELLOW) self.play(Write(title)) self.wait(1) self.play(FadeOut(t...
```python from manim import * import numpy as np class MonteCarloPI(Scene): def construct(self): # Create the title title = Text("Dancing with Randomness: Estimating π with Monte Carlo") title.set_color(YELLOW) self.play(Write(title)) self.wait(1) self.play(FadeOut(t...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching a grad course on initialization and normalization; visualize how BN reduces sensitivity to initial conditions by showing multiple random initializations converging to the same valley in a loss landscape when BN is enabled.
```python from manim import * class BatchNormalizationImpact(Scene): def construct(self): title = Text('Batch Normalization Impact', font_size=40, color=BLUE) subtitle = Text('Smoothing Training for Faster Convergence', font_size=24, color=WHITE) VGroup(title, subtitle).arrange(DOWN, buff=...
```python from manim import * class BatchNormalizationImpact(Scene): def construct(self): title = Text('Batch Normalization Impact', font_size=40, color=BLUE) subtitle = Text('Smoothing Training for Faster Convergence', font_size=24, color=WHITE) VGroup(title, subtitle).arrange(DOWN, buff=...
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...
Target audience: first-year undergrads in linear algebra; prerequisites: vectors, eigenvalues, and basic matrix multiplication. Create a visual tour of the spectral theorem for real symmetric matrices: start with a 2D scene showing eigenvectors as principal axes, then a 3D ellipsoid deformation demonstrating how A maps...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class MainScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) # ---------- Ti...
```python from manim import * class MainScene(Scene): def construct(self): title = Text('Spectral Theorem for Symmetric Matrices', font_size=36) title.to_edge(UP, buff=0.5) title.scale_to_fit_width(12) self.play(Write(title), run_time=2.0) sym_eq = MathTex('A = A^\\top', fo...
narrated_pedagogical_preference
nabin2004/manim-narrated-dpo-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
The following Manim CE scene failed to compile. Truncated traceback: ValueError: latex error converting to dvi. Unicode character ₁ (U+2081) Fix the code. Return a complete working scene. Do not keep the invalid constructor kwargs or Unicode subscripts. ```python """ Shows video of diffusion process. """ import...
```python """ Shows video of diffusion process. """ import manim_ml from manim import * from PIL import Image import os from diffusers import StableDiffusionPipeline import numpy as np import scipy from manim_ml.diffusion.mcmc import metropolis_hastings_sampler, gaussian_proposal from manim_ml.diffusion.random_wa...
```python """ Shows video of diffusion process. """ import manim_ml from manim import * from PIL import Image import os from diffusers import StableDiffusionPipeline import numpy as np import scipy from manim_ml.diffusion.mcmc import metropolis_hastings_sampler, gaussian_proposal from manim_ml.diffusion.random_wa...
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...
Could you create an educational video animation that initially shows the graph of the function y = 0.25x^2 on a set of axes ranging from 0 to 4 on the x-axis and from 0 to 2 on the y-axis, with the axes in blue and the curve in yellow? After the graph is displayed, can you add a text that introduces the problem "Find t...
```python from manim import * class FirstOrderODEExample(Scene): def construct(self): # Displaying the problem problem = MathTex(r"y' - 3y = 0") self.play(Write(problem)) self.wait(1) # Explanation for separation of variables explanation1 = Text("Separate the variab...
```python from manim import * class FirstOrderODEExample(Scene): def construct(self): # Displaying the problem problem = TexMobject(r"y' - 3y = 0") self.play(Write(problem)) self.wait(1) # Explanation for separation of variables explanation1 = Text("Separate the var...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er...
```python from manim import * from manim import config Text.set_default(font='SimHei') class DivideAndConquerStructure(Scene): def construct(self): title = Title('General Structure of Divide-and-Conquer') self.play(Write(title)) lines = ['Solve(problem P of size n):', ' if n is small en...
```python from manim import * from manim import config Text.set_default(font='SimHei') class DivideAndConquerStructure(Scene): def construct(self): title = Title('General Structure of Divide-and-Conquer') self.play(Write(title)) lines = ['Solve(problem P of size n):', ' if n is small en...
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 WaveNet and want to see how memory usage scales with depth and dilation. Animate the memory footprint as a stack of layers, each adding buffers and receptive field, with a running total and a log-scale plot. Include scenarios with fixed vs variable dilation, and show the peak memory during audio gene...
```python from manim import * class WaveNetMemoryUsageScaling(Scene): def construct(self): title = Text('WaveNet Memory Usage Scaling', font_size=48, color=BLUE) self.play(Write(title), run_time=2.0) self.wait(0.3) problem_text = Text('The Memory Challenge', font_size=36, color=RED...
```python from manim import * class WaveNetMemoryUsageScaling(Scene): def construct(self): title = Text('WaveNet Memory Usage Scaling', font_size=48, color=BLUE) self.play(Write(title), run_time=2.0) self.wait(0.3) problem_text = Text('The Memory Challenge', font_size=36, color=RED...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching an undergrad ML course and want an animation of gradient flow through a residual connection. Show how the gradient splits, with the skip path preserving magnitude while the main path shrinks, using colored arrows, a magnitude trace across layers, and a quick comparison to a plain stack.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class GradientFlowResidualConnections(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class GradientFlowResidualConnections(Scene): def construct(self): title = Text('Gradient Flow in Residual Connections', font_size=36) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) self.wait(0.5) input_layer = VGroup(*[Dot(r...
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...
How do different Seifert surfaces for the same knot contribute to varying interpretations of that knot's topology?
```python from manim import * class SeifertSurfaces(Scene): def construct(self): # Title title = Text("Unraveling Knots: The Secret World of Seifert Surfaces", font_size=36) self.play(Write(title), run_time=2) self.wait(1) self.play(title.animate.scale(0.7).to_edge(UP)) ...
```python from manim import * class SeifertSurfaces(Scene): def construct(self): # Title title = Text("Unraveling Knots: The Secret World of Seifert Surfaces", font_size=36) self.play(Write(title), run_time=2) self.wait(1) self.play(title.animate.scale(0.7)) ...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
How does Monte Carlo Simulation help in understanding the Central Limit Theorem through sampling distributions of means?
```python from manim import * class MonteCarloAndCLT(Scene): def construct(self): # Title title = Text("Monte Carlo Simulations & Central Limit Theorem") self.play(Write(title)) self.wait(1) self.play(title.animate.scale(0.7).to_edge(UP)) # Different distrib...
```python from manim import * class MonteCarloAndCLT(Scene): def construct(self): # Title title = Text("Monte Carlo Simulations & Central Limit Theorem") self.play(Write(title)) self.wait(1) self.play(title.animate.scale(0.7)) # Different distributions (Elem...
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 script crashed with this traceback: ```text NameError: name 'undefined_variable_target' is not defined in construct() ``` Fix the bug and provide the corrected, fully compilable Manim CE code: ```python from manim import * import numpy as np class ApiValidBarChart90(Scene): def construct(...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService MARGIN = 0.5 class ApiValidBarChart90(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_frac max_h =...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService MARGIN = 0.5 class ApiValidBarChart90(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_frac max_h =...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching a course on normalization techniques and want to visualize how BN affects gradient quality. Show gradient vectors before and after BN, highlighting how the signal-to-noise ratio improves as training progresses. Use a side-by-side pane with noisy, scattered vectors vs. cleaner, aligned vectors; include a nu...
```python from manim import * class BatchNormalizationScene(Scene): def construct(self): title = Text('Batch Normalization Effect on Gradients', font_size=36) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) self.wait(0.5) section1_title = Text('The Problem...
```python from manim import * class BatchNormalizationScene(Scene): def construct(self): title = Text('Batch Normalization Effect on Gradients', font_size=36) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) self.wait(0.5) section1_title = Text('The Problem...
invalid_axes_kwarg
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching undergrads ML and want a vivid visualization of how a forward hook and a backward hook intercept activations and gradients. Show the forward path with activations flowing to a hook node, color-coded by stage, and then the backward path capturing gradients routed back to the module. Include a side diagram l...
```python from manim import * class HooksLecture(Scene): def construct(self): title = Text('Visualizing Hooks in Machine Learning', font_size=40, color=BLUE) subtitle = Text('Understanding Model Behavior Through Hooks', font_size=24, color=GRAY) subtitle.next_to(title, DOWN, buff=0.3) ...
```python from manim import * class HooksLecture(Scene): def construct(self): title = Text('Visualizing Hooks in Machine Learning', font_size=40, color=BLUE) subtitle = Text('Understanding Model Behavior Through Hooks', font_size=24, color=GRAY) subtitle self.play(Write(title), Wri...
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 undergrad ML students and want a vivid visualization of optimization dynamics. Create an animation comparing gradient descent with and without momentum on a 2D non-convex loss, with both contour plots and a 3D surface view. Show how different learning rates affect convergence, oscillations, and overshoot, ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class GradientDescentMomentumScene(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 GradientDescentMomentumScene(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...
Construct a clean Manim CE scene initializing Axes 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 ApiValidAxes74(Scene): def construct(self): obj = Axes(x_range=[-3, ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class ApiValidAxes74(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 ApiValidAxes74(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_frac ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching an intro regression unit and want to visualize underfitting as a high-bias scenario. Show a sinusoidal data set with a straight-line model that cannot fit well, plus residuals heatmap highlighting systematic error. Animate the attempt to fit with a low-complexity model, then zoom into the bias-dominated re...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class IntroRegressionUnderfittingVisualization(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 IntroRegressionUnderfittingVisualization(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 studying sequence models and need to see padding strategy for causal convolutions. Visualize left padding to maintain sequence length, showing input sequences, padded zeros, and the resulting feature map. Include a timeline of how padding decisions affect prediction alignment, with a bonus: compare with no padding.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService MARGIN = 0.5 class AOSTrajectoryScene358(VoiceoverScene): def construct(self): # [SETUP] self.set_speech_service(GTTSService(transcription_model="base")) ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService MARGIN = 0.5 class AOSTrajectoryScene358(VoiceoverScene): def construct(self): # [SETUP] self.set_speech_service(GTTSService(transcription_model="base")) ...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching undergrad NLP and want to visualize embedding dimension effects. Show two training runs: small embedding dimension (underfit) and large dimension (overfit), plotting the training and validation losses over epochs. Add a geometric view of embedding space scatter to illustrate representational capacity diffe...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class EmbeddingDimensionScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model=...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class EmbeddingDimensionScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model=...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
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 CodeQualityAnimation(Scene): def construct(self): title = Text('Branching Code Quality', font_size=34, color=WHITE, weight=BOLD) title.to_edge(UP, buff=0.5) title_line = Line(LEFT, RIGHT, color=ORA...
```python from manim import * from manim import config Text.set_default(font='SimHei') class CodeQualityAnimation(Scene): def construct(self): title = Text('Branching Code Quality', font_size=34, color=WHITE, weight=BOLD) title title_line = Line(LEFT, RIGHT, color=ORANGE) title_lin...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching undergrads a neural nets course and want a vivid visualization of SoftShrink activation. Show how the lambda parameter creates sparsity, and compare with ReLU and tanh. Include multiple scenes: a 1D input-output curve, a 2D input vector field, and a simple backprop path illustrating gradient sparsity. I'd ...
```python from manim import * class SoftShrinkActivationVisualization(Scene): def construct(self): BLUE_SOFT = '#4ECDC4' RED_SOFT = '#FF6B6B' PURPLE_SOFT = '#9B59B6' ORANGE_SOFT = '#E67E22' DARK_BLUE = '#2C3E50' GREEN_SOFT = '#2ECC71' title = Text('SoftShrin...
```python from manim import * class SoftShrinkActivationVisualization(Scene): def construct(self): BLUE_SOFT = '#4ECDC4' RED_SOFT = '#FF6B6B' PURPLE_SOFT = '#9B59B6' ORANGE_SOFT = '#E67E22' DARK_BLUE = '#2C3E50' GREEN_SOFT = '#2ECC71' title = Text('SoftShrin...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create an educational ManimCE animation on 'Euler's Totient Function' (Euler's Totient Tango: A Dance of Prime Powers and Patterns): What unusual phenomena occur when we consider the product or composition of multiple Totient Functions, e.g., φ(mn)? Visual style guidance: Mathematical elegance with clear, minimalist ae...
```python from manim import * class EulerTotientTango(Scene): def construct(self): # Title title = Text("Euler's Totient Tango", font_size=40) subtitle = Text("A Dance of Prime Powers", font_size=24).next_to(title, DOWN) self.play(Write(title)) self.play(FadeIn(subt...
```python from manim import * class EulerTotientTango(Scene): def construct(self): # Title title = Text("Euler's Totient Tango", font_size=40) subtitle = Text("A Dance of Prime Powers", font_size=24) self.play(Write(title)) self.play(FadeIn(subtitle)) self.w...
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...
Here’s an enhanced version of the animation that retains all the original features while adding significant new elements: The animation begins by drawing an orange rectangle with a width of 3 and height of 4, just like the original script. However, instead of simply adding it to the scene, the rectangle now smoothly...
```python from manim import * class EnhancedRectangleAnimation(Scene): def construct(self): # Create the initial rectangle rect = Rectangle(width=3, height=4, color=ORANGE) # Animate the rectangle fading in while rotating self.play( Create(rect), Rot...
```python from manim import * class EnhancedRectangleAnimation(Scene): def construct(self): # Create the initial rectangle rect = Rectangle(width=3, height=4, color=ORANGE) # Animate the rectangle fading in while rotating self.play( ShowCreation(rect), ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create an 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 DynamicScene301(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 MARGIN = 0.5 class DynamicScene301(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_frac max_h = co...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService MARGIN = 0.5 class DynamicScene301(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_frac max_h = co...
invalid_axes_kwarg
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
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 DynamicScene1105(Scene): def construct(self): ground = Line(LEFT * 4 + DOWN * 1.5, RIGHT * 4 + DOWN * 1.5, co...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class CycloidGenerationScene2(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class CycloidGenerationScene2(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Explain the Gram-Schmidt orthogonalization process with a 3D visualization. Show three linearly independent vectors, then animate the projection and subtraction steps to orthogonalize them. Highlight the projection vectors and the resulting orthogonal basis, with a side panel showing the mathematical formulas for each ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class GramSchmidt(VoiceoverScene, ThreeDScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class GramSchmidt(VoiceoverScene, ThreeDScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model...
invalid_axes_kwarg
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching a Python/ML module design course and want a visualization of a module's __call__ wrapping the forward call, showing where hooks fire and the pre/post processing that happens around it.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class PythonMLModuleDesignVisualization(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 PythonMLModuleDesignVisualization(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") )...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/AOS-Narrated-Manim-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create a 10-second Manim scene with a ParametricFunction, a dot moving along it, and a traced path captioned as a parametric trajectory.
```python from manim import * class ParametricCurveProbe(Scene): def construct(self): title = Text("Parametric Curves Trace Position Over Time", font_size=32).to_edge(UP) axes = Axes(x_range=[-4, 4, 1], y_range=[-3, 3, 1], x_length=8, y_length=5, tips=False) curve = ParametricFunction(lambd...
```python from manim import * class ParametricCurveProbe(Scene): def construct(self): title = Text("Parametric Curves Trace Position Over Time", font_size=32).to_edge(UP) axes = Axes(axis_color=BLUE, x_range=[-4, 4, 1], y_range=[-3, 3, 1], x_length=8, y_length=5, tips=False) curve = Paramet...
invalid_axes_kwarg
synthetic_hard_neg:sebastianboehler/autoresearch-manim
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching optimization strategies and want a fair comparison of random search versus grid search sampling points on a 2D plane. Animate two sets of points, color-coded by method, and show coverage over time with a metric like area explored. Overlay a smooth objective landscape and highlight how each method discovers...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class SearchStrategies(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 SearchStrategies(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 backpropagation and want a step-by-step expansion of the equations for a single neuron. Visually display each partial derivative term explicitly, such as dw, db, and the chain rule components, with the terms highlighted as they propagate backward. Include small algebraic annotations synchronized with the a...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class BackpropagationLecture(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class BackpropagationLecture(Scene): def construct(self): title = Text('Backpropagation in Neural Networks', font_size=48, color=BLUE) subtitle = Text('Understanding how neural networks learn from errors', font_size=28, color=GRAY) title_group = VGroup(title, ...
narrated_pedagogical_preference
nabin2004/manim-narrated-dpo-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching an undergrad ML course on language models and want a vivid visualization of temperature scaling. Show how high temperature flattens the distribution into a near-uniform pie chart, how low temperature sharpens to a single dominant slice, and how T=1 yields the standard softmax. I'd like a sequence of scenes...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import math class TemperatureScalingScene(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 TemperatureScalingScene(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 undergrads and want a visually rich animation of the spectral theorem for real symmetric matrices. Animate how a sphere is stretched into an ellipsoid by M, then reveal invariant eigen-directions with M = PDP^T and the diagonal scaling D in those coordinates. Include a parameter sweep showing how eigenvalu...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class SpectralTheoremScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class SpectralTheoremScene(Scene): def construct(self): title = Title('Spectral Theorem for Real Symmetric Matrices', font_size=40) self.play(Write(title), run_time=2.0) self.wait(0.3) intro_text = Text('Imagine you have a complex system that can be si...
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 model introspection and want to see a dynamic summary table being generated like torchinfo, expanding rows for each layer with parameter counts. Start with a compact header and progressively reveal layers showing shapes, channels, and total parameters. Highlight how the total parameter count grows as the n...
```python from manim import * class ModelIntrospectionDynamics(Scene): def construct(self): title = Text('Model Introspection Dynamics', font_size=40) subtitle = Text('Understanding How AI Models Think', font_size=24) subtitle.next_to(title, DOWN) title_group = VGroup(title, subtit...
```python from manim import * class ModelIntrospectionDynamics(Scene): def construct(self): title = Text('Model Introspection Dynamics', font_size=40) subtitle = Text('Understanding How AI Models Think', font_size=24) subtitle title_group = VGroup(title, subtitle) self.play...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create a step-by-step educational Manim CE lecture scene explaining: Gradient Descent Optimization on 2D Quadratic Function. ```python from manim import * import numpy as np class PedagogicalScene87(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 MARGIN = 0.5 class PedagogicalScene87(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_frac max_h =...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService MARGIN = 0.5 class PedagogicalScene87(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_frac max_h =...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
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 CourseNotes(Scene): def construct(self): course_title = Title('Processes, Encapsulation, and Functions', font_size=40) self.play(Write(course_title)) subtitle = Text('Learning Objectives', font_siz...
```python from manim import * from manim import config Text.set_default(font='SimHei') class CourseNotes(Scene): def construct(self): course_title = Title('Processes, Encapsulation, and Functions', font_size=40) self.play(Write(course_title)) subtitle = Text('Learning Objectives', font_siz...
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 stochastic processes and want a visualization of 1D and 2D random walks. Show multiple walkers performing steps with a clear time axis, tracking mean displacement and the spreading cloud. Compare 1D and 2D behavior, include a single long trajectory overlay and an ensemble path ensemble to illustrate diffus...
```python import math from manim import * class StochasticProcessVisualizer(Scene): def construct(self): title = Text('Stochastic Processes', font_size=52) subtitle = Text('Visualizing Randomness Through Time', font_size=30) subtitle.next_to(title, DOWN) self.play(Write(title), run...
```python import math from manim import * class StochasticProcessVisualizer(Scene): def construct(self): title = Text('Stochastic Processes', font_size=52) subtitle = Text('Visualizing Randomness Through Time', font_size=30) subtitle.next_to(title, DOWN) self.play(Write(title), run...
invalid_axes_kwarg
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning activation functions and want a visual of Softplus and its variants (scaled/beta-softplus) and how they compare to ReLU. Show a family of curves, a 2D decision boundary for a simple classifier, and a small network's gradient flow under different betas. Include a parameter sweep and demonstration of numeric...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class ActivationComparisonScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_mode...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class ActivationComparisonScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_mode...
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 backprop for a 3-layer MLP and want to see the nested chain-rule expansions visually. Animate forward passes through three layers, then step through dL/dW and dL/db layer by layer, highlighting the multiplication chain with color-coded arrows and a symbolic equation evolving.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class BackpropMLPScene(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 BackpropMLPScene(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 RecursionCourseNotes(Scene): def construct(self): title = Title('Recursion and Problem Solving - Course Notes', color=YELLOW) self.play(Write(title)) self.wait(1) debug_subtitle = Text('Deb...
```python from manim import * from manim import config Text.set_default(font='SimHei') class RecursionCourseNotes(Scene): def construct(self): title = Title('Recursion and Problem Solving - Course Notes', color=YELLOW) self.play(Write(title)) self.wait(1) debug_subtitle = Text('Deb...
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 is the enhanced animation instruction that includes all the original features while adding significant new elements: The animation begins by creating a blue equilateral triangle centered on the screen, with its base parallel to the bottom edge. As the triangle rotates 90 degrees clockwise, a mathematical formula ...
```python from manim import * import math class ShapeTransformationWithMath(Scene): def construct(self): # Create initial triangle triangle = Triangle(color=BLUE, fill_opacity=0.5).scale(2) triangle_label = MathTex("A = \\frac{\\sqrt{3}}{4}a^2", color=WHITE).to_edge(UP) # A...
```python from manim import * import math class ShapeTransformationWithMath(Scene): def construct(self): # Create initial triangle triangle = Triangle(color=BLUE, fill_opacity=0.5).scale(2) triangle_label = MathTex("A = \\frac{\\sqrt{3}}{4}a^2", color=WHITE) # Add triangle ...
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 multivariable calculus and want students to truly grasp the gradient intuition. Create a visualization of a 3D surface z = f(x, y) with a visible gradient field and the steepest ascent paths from several starting points. Show how gradient directions relate to contour lines and directional derivatives, with...
```python from manim import * import numpy as np class GradientIntuition(VoiceoverScene, ThreeDScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) self.set_camera_orientation(phi=70 * DEGREES, theta=-30 * DEGREES) ...
```python from manim import * import numpy as np class GradientIntuition(VoiceoverScene, ThreeDScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) self.set_camera_orientation(phi=70 * DEGREES, theta=-30 * DEGREES) ...
invalid_axes_kwarg
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning introductory calculus and I want a rich, multi-scene animation to explain the derivative from first principles. Start with the limit definition, showing how the secant slope converges to the tangent slope as h -> 0, with a moving point on the curve. Then provide geometric intuition, followed by the product...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class DerivativeFromFirstPrinciples(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 DerivativeFromFirstPrinciples(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 receptive fields and want a visual comparison table across architectures. Show MLP with fixed receptive field, RNN with effectively infinite, and WaveNet with exponential growth as depth increases. Animate the table updating as you sweep depth, and add a short geometric intuition for each case.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class ReceptiveFieldLecture(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class ReceptiveFieldLecture(Scene): def construct(self): title = Text('Receptive Fields in Neural Architectures', font_size=36) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) self.wait(0.5) question = Text('How do neural netw...
narrated_pedagogical_preference
nabin2004/manim-narrated-dpo-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
The following Manim CE scene failed to compile. Truncated traceback: ValueError: latex error converting to dvi. Unicode character ₁ (U+2081) Fix the code. Return a complete working scene. Do not keep the invalid constructor kwargs or Unicode subscripts. ```python from manim import * from manim import config Text.set...
```python from manim import * from manim import config Text.set_default(font='SimHei') class InstructionSelection(Scene): def construct(self): title = Text('Backend Core: Instruction Selection', font_size=34, color=WHITE, weight=BOLD) title.to_edge(UP, buff=0.5) title_line = Line(LEFT, RIG...
```python from manim import * from manim import config Text.set_default(font='SimHei') class InstructionSelection(Scene): def construct(self): title = Text('Backend Core: Instruction Selection', font_size=34, color=WHITE, weight=BOLD) title.to_edge(UP, buff=0.5) title_line = Line(LEFT, RIG...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Write a Manim CE visualization using scientific Python libraries (numpy, scipy, sympy) for: SymPy Symbolic Derivative and animated derivation steps.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import sympy as sp MARGIN = 0.5 class SciComputeScene1171(VoiceoverScene): def construct(self): # [SETUP] self.set_speech_service(GTTSService(transcription_model="base")) ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import sympy as sp MARGIN = 0.5 class SciComputeScene1171(VoiceoverScene): def construct(self): # [SETUP] self.set_speech_service(GTTSService(transcription_model="base")) ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I would like an animation that starts by creating a 5 by 5 grid of red circles, each labeled with the text "Li+" representing lithium ions. Then I want an animation of a small white electron moving in a complex path around and through the lithium ion grid. The electron's path should include upwards, downwards, and diag...
```python from manim import * class DoubleIntegralExample(Scene): def construct(self): # Displaying the problem problem = MathTex(r"\int_{0}^{1} \int_{0}^{\sqrt{1-y^2}} x^2 dx\,dy") self.play(Write(problem)) self.wait(1) # Explanation for inner integral explanation1...
```python from manim import * class DoubleIntegralExample(Scene): def construct(self): # Displaying the problem problem = MathTex(r"\int_{0}^{1} \int_{0}^{\sqrt{1-y^2}} x^2 dx\,dy") self.play(Write(problem)) self.wait(1) # Explanation for inner integral explanation1...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching optimization strategies and want a fair comparison of random search versus grid search sampling points on a 2D plane. Animate two sets of points, color-coded by method, and show coverage over time with a metric like area explored. Overlay a smooth objective landscape and highlight how each method discovers...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class OptimizationStrategiesComparison(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class OptimizationStrategiesComparison(Scene): def construct(self): title = Text('Optimization Strategies Comparison', font_size=48, color=BLUE) subtitle = Text('Finding the Best Algorithm for Your AI Model', font_size=28, color=GRAY) subtitle.next_to(title, D...
narrated_pedagogical_preference
nabin2004/manim-narrated-dpo-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm an intro calculus professor; I want a visual that clarifies the Fundamental Theorem of Calculus for undergrads. Show how Riemann sums approximate the area under y=f(x) and how the accumulated area becomes the antiderivative F with F'(x)=f(x). Include multiple scenes: dynamic partition size n, a 3D intuition with ve...
```python from manim import * class FundamentalTheoremScene(Scene): def construct(self): title = Text('Fundamental Theorem of Calculus', font_size=40, color=BLUE) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) part1_title = Text('Part 1: Differentiation undoes In...
```python from manim import * class FundamentalTheoremScene(Scene): def construct(self): title = Text('Fundamental Theorem of Calculus', font_size=40, color=BLUE) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) part1_title = Text('Part 1: Differentiation undoes In...
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: Orbital mechanics simulation using add_updater with dt. Use updaters and ValueTracker. ```python from manim import * import numpy as np class DynamicScene813(Scene): def construct(self): sun = Dot(ORIGIN, radius=0.25, color=GOLD) planet = Dot...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class DynamicScene813(VoiceoverScene): MARGIN = 0.5 def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np class DynamicScene813(VoiceoverScene): MARGIN = 0.5 def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_...
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 geology scene explaining why P waves arrive before S waves at a seismic station. Show an earthquake source, two labeled wave pulses traveling along the same path at different speeds, and an arrival timeline. State that arrival-time separation helps estimate distance, not earthquake magnitude by itsel...
```python from manim import * class SeismicWaveArrivals(Scene): def construct(self): title = Text("P waves arrive before slower S waves", font_size=38).to_edge(UP) ground = Line(LEFT * 5.5, RIGHT * 5.5, color=GRAY_B).shift(UP * 0.8) source = Star(n=7, outer_radius=0.35, color=ORANGE, fill_o...
```python from manim import * class SeismicWaveArrivals(Scene): def construct(self): title = Text("P waves arrive before slower S waves", font_size=38) ground = Line(LEFT * 5.5, RIGHT * 5.5, color=GRAY_B) source = Star(n=7, outer_radius=0.35, color=ORANGE, fill_opacity=0.8).move_to(LEFT * 4...
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...
In what way do Julia Sets illustrate the concept of attractors and how can they demonstrate the duality between order and chaos?
```python from manim import * class JuliaSetsScene(Scene): def construct(self): # Title and introduction title = Text("Navigating Chaos: Julia Sets as Attractors", font_size=28) self.play(Write(title)) self.wait(1) self.play(title.animate.to_edge(UP)) # Crea...
```python from manim import * class JuliaSetsScene(Scene): def construct(self): # Title and introduction title = Text("Navigating Chaos: Julia Sets as Attractors", font_size=28) self.play(Write(title)) self.wait(1) self.play(title.animate.to_edge(UP)) # Crea...
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...
Here’s an enhanced version of the animation that retains all the original features while adding a dynamic visual representation of the infinite geometric series converging to its sum: The animation begins by displaying the infinite geometric series formula \( S = \sum_{n=0}^{\infty} ar^n \) with a smooth `Write` effec...
```python from manim import * class GeometricSeries(Scene): def construct(self): # Introduction to the infinite geometric series series = MathTex(r"S = \sum_{n=0}^{\infty} ar^n").scale(1.5) explanation = Text("Sum of an infinite geometric series", font_size=24).to_edge(UP) ...
```python from manim import * class GeometricSeries(Scene): def construct(self): # Introduction to the infinite geometric series series = MathTex(r"S = \sum_{n=0}^{\infty} ar^n").scale(1.5) explanation = Text("Sum of an infinite geometric series", font_size=24) self.play(Wr...
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...
Can you create an educational animation that illustrates the principles of circular motion and tension involved, starting with the general equation of motion under gravity, explaining the relevant terms, then transforming it into a circular motion specific equation and finally discussing tension in that context, all wh...
```python from manim import * class AreaUnderCurve(Scene): def construct(self): axes = Axes( x_range=[0, 10, 1], y_range=[0, 10, 1], axis_config={"color": BLUE}, ) curve = axes.plot(lambda x: 0.1 * x**2, color=GREEN) area = axes.get_area(curve, x...
```python from manim import * class AreaUnderCurve(Scene): def construct(self): axes = Axes(axis_color=BLUE, x_range=[0, 10, 1], y_range=[0, 10, 1], axis_config={"color": BLUE}, ) curve = axes.plot(lambda x: 0.1 * x**2, color=GREEN) area = axes....
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...
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 WaveParticleDuality(Scene): def construct(self): title = Text('Birth of Atomic Physics and Origin of Quantum Concepts', font_size=36, color=BLUE) title.to_edge(UP, buff=0.6) summary_label = Text('S...
```python from manim import * from manim import config Text.set_default(font='SimHei') class WaveParticleDuality(Scene): def construct(self): title = Text('Birth of Atomic Physics and Origin of Quantum Concepts', font_size=36, color=BLUE) title.to_edge(UP, buff=0.6) summary_label = Text('S...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching an undergrad ML course on language models and want a vivid visualization of temperature scaling. Show how high temperature flattens the distribution into a near-uniform pie chart, how low temperature sharpens to a single dominant slice, and how T=1 yields the standard softmax. I'd like a sequence of scenes...
```python from manim import * import math class TemperatureScalingScene(Scene): def construct(self): title = Text('Temperature Scaling in Language Models', font_size=36, color=BLUE) subtitle = Text('Controlling Model Confidence', font_size=24, color=GRAY) subtitle.next_to(title, DOWN) ...
```python from manim import * import math class TemperatureScalingScene(Scene): def construct(self): title = Text('Temperature Scaling in Language Models', font_size=36, color=BLUE) subtitle = Text('Controlling Model Confidence', font_size=24, color=GRAY) subtitle self.play(Write(t...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create an educational ManimCE animation on 'Euler Characteristic' (Unveiling Surfaces: The Euler Characteristic's Hidden Secrets): How can we use the Euler characteristic to distinguish between different topological spaces, such as a torus and a Klein bottle? Visual style guidance: Visually dynamic with a soft, invitin...
```python from manim import * class EulerCharacteristicScene(Scene): def construct(self): # Title title = Text("Unveiling Surfaces: The Euler Characteristic's Hidden Secrets", font_size=36) self.play(Write(title)) self.wait(1) self.play(FadeOut(title)) # Int...
```python from manim import * class EulerCharacteristicScene(Scene): def construct(self): # Title title = Text("Unveiling Surfaces: The Euler Characteristic's Hidden Secrets", font_size=36) self.play(Write(title)) self.wait(1) self.play(FadeOut(title)) # Int...
spatial_layout_overlap
synthetic_hard_neg:bespokelabs/bespoke-manim
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create an 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 DynamicScene658(Scene): def construct(self): sun = Dot(ORIGIN, radius=0.25, color=GOLD) planet = Dot...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class DynamicScene658(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 DynamicScene658(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 new elements for clarity and engagement: Begin by displaying the sum notation *Sₙ = Σₖ₌₀ⁿ arᵏ* with a smooth `Write` animation, then introduce an explanatory text at the top: *"Solve for the sum of a geometric series."* N...
```python from manim import * class GeometricSeriesScene(Scene): def construct(self): # Initial setup sum_notation = MathTex("S_n = \\sum_{k=0}^n ar^k").scale(1.5) explanation = Tex("Solve for the sum of a geometric series.").to_edge(UP) self.play(Write(sum_notation), Write...
```python from manim import * class GeometricSeriesScene(Scene): def construct(self): # Initial setup sum_notation = TexMobject("S_n = \\sum_{k=0}^n ar^k").scale(1.5) explanation = Tex("Solve for the sum of a geometric series.").to_edge(UP) self.play(Write(sum_notation), Wr...
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 mathematical explanation and a transformation sequence: The animation begins with the title "Números primos e retângulos" appearing at the top in green, as before. Below it, the prime rectangles (each labeled with...
```python from manim import * class PrimeRectangles(Scene): def construct(self): # Title title = Text("Números primos e retângulos", color=GREEN).to_edge(UP) self.play(Write(title)) self.wait(0.5) # Prime numbers primes = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29] ...
```python from manim import * class PrimeRectangles(Scene): def construct(self): # Title title = Text("Números primos e retângulos", color=GREEN).to_edge(UP) self.play(Write(title)) self.wait(0.5) # Prime numbers primes = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29] ...
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 model regularization module and want a visualization showing how batch normalization reduces reliance on dropout, with validation loss curves illustrating the regularizing effect.
```python from manim import * class BatchNormalizationScene(Scene): def construct(self): title = Text('Batch Normalization & Regularization', font_size=40) subtitle = Text('Stabilizing Deep Neural Networks', font_size=28, color=BLUE) subtitle.next_to(title, DOWN) self.play(Write(ti...
```python from manim import * class BatchNormalizationScene(Scene): def construct(self): title = Text('Batch Normalization & Regularization', font_size=40) subtitle = Text('Stabilizing Deep Neural Networks', font_size=28, color=BLUE) subtitle.next_to(title, DOWN) self.play(Write(ti...
invalid_axes_kwarg
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Here is the enhanced animation instruction that maintains all original features while adding significant new elements: The enhanced animation begins by displaying the function f(x) = x² with a smooth fade-in effect, then creates its parabolic graph across x=[-3,3] with a dynamic drawing animation. As the area under th...
```python from manim import * class EnhancedIntegrationScene(Scene): def construct(self): # Create axes axes = Axes( x_range=[-3, 3, 1], y_range=[0, 9, 1], axis_config={"color": BLUE}, ) axes_labels = axes.get_axis_labels(x_label="x", y_label="f(x...
```python from manim import * class EnhancedIntegrationScene(Scene): def construct(self): # Create axes axes = Axes( x_range=[-3, 3, 1], y_range=[0, 9, 1], axis_config={"color": BLUE}, ) axes_labels = axes.get_axis_labels(x_label="x", y_label="f(x...
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 significant new elements: The animation begins by drawing a vibrant green line diagonally across the screen from (1, 1) to (-1, -1). As the line appears, a coordinate system fades in subtly in the background to provide sp...
```python from manim import * class EnhancedRotation(Scene): def construct(self): # Create coordinate axes axes = Axes( x_range=[-2, 2, 1], y_range=[-2, 2, 1], axis_config={"color": BLUE}, ) axes_labels = axes.get_axis_labels() # ...
```python from manim import * class EnhancedRotation(Scene): def construct(self): # Create coordinate axes axes = Axes(axis_color=BLUE, x_range=[-2, 2, 1], y_range=[-2, 2, 1], axis_config={"color": BLUE}, ) axes_labels = axes.get_axis_labels() ...
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 teaching NLP students and want a concrete visualization of Diverse Beam Search. Show a beam search with several diverse hypotheses evolving in parallel, highlight diversity penalties, and compare beams with and without diversity on a short sentence generation task.
```python from manim import * import numpy as np class DiverseBeamSearchScene(Scene): def construct(self): title = Text('Diverse Beam Search', font_size=48, color=BLUE) subtitle = Text('Balancing Quality and Diversity', font_size=28, color=GRAY) title_group = VGroup(title, subtitle).arrang...
```python from manim import * import numpy as np class DiverseBeamSearchScene(Scene): def construct(self): title = Text('Diverse Beam Search', font_size=48, color=BLUE) subtitle = Text('Balancing Quality and Diversity', font_size=28, color=GRAY) title_group = VGroup(title, subtitle).arrang...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching undergrads a NLP course and want a visualization of non-contrastive SSL for sentiment analysis. Show how two augmentations of movie reviews produce aligned representations via a teacher-student setup, with projection heads and a momentum update. Include a loss landscape and a transition from unlabeled fine...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class NonContrastiveSSLSentimentScene(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 NonContrastiveSSLSentimentScene(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 step-by-step educational Manim CE lecture scene explaining: Taylor Series Expansion of exp(x). ```python from manim import * import numpy as np class PedagogicalScene626(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 PedagogicalScene626(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 PedagogicalScene626(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Display a decimal table with two rows: - The first row shows the values of \( x = [-2, -1, 0, 1, 2] \). - The second row shows the corresponding values of \( f(x) = e^x \), each rounded to two decimal places. The rows are labeled with LaTeX-style expressions “\( x \)” and “\( f(x) = e^x \)”, and there is extra horizo...
```python from manim import * class DecimalTableExample(Scene): def construct(self): x_vals = [-2,-1,0,1,2] y_vals = np.exp(x_vals) t0 = DecimalTable( [x_vals, y_vals], row_labels=[MathTex("x"), MathTex("f(x)=e^{x}")], h_buff=1, element_to_mob...
```python from manim import * class DecimalTableExample(Scene): def construct(self): x_vals = [-2,-1,0,1,2] y_vals = np.exp(x_vals) t0 = DecimalTable( [x_vals, y_vals], row_labels=[TexMobject("x"), MathTex("f(x)=e^{x}")], h_buff=1, element_to_...
legacy_api_hallucination
synthetic_hard_neg:SuienR/ManimBench-v1
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create an educational ManimCE animation on 'Wilson's Theorem' (Exploring the Limits of Wilson's Theorem): How might we extend Wilson's Theorem with visual examples using composite numbers, and what exceptions arise? Visual style guidance: Dynamic, engaging visuals using a palette of deep blues, bright oranges, and gent...
```python from manim import * class WilsonsTheorem(Scene): def construct(self): # Title title = Text("Exploring the Limits of Wilson's Theorem") self.play(Write(title)) self.wait(1) self.play(FadeOut(title)) # Introduction to Wilson's Theorem intro =...
```python from manim import * class WilsonsTheorem(Scene): def construct(self): # Title title = Text("Exploring the Limits of Wilson's Theorem") self.play(Write(title)) self.wait(1) self.play(FadeOut(title)) # Introduction to Wilson's Theorem intro =...
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 9th grade advanced Social Studies class explaining dispute resolution mechanisms in democratic countries. The video should be in 16:9 format and follow this structure: 1. Title scene: Display "Democratic Institutions: Dispute Resolution" in large, clear text centered on screen with a sub...
```python from manim import * import numpy as np import random import math class DemocracyDisputeResolution(Scene): def construct(self): # --------------------------------------------------------- # Color Palette & Setup # --------------------------------------------------------- BG...
```python from manim import * import numpy as np import random import math class DemocracyDisputeResolution(Scene): def construct(self): # --------------------------------------------------------- # Color Palette & Setup # --------------------------------------------------------- BG...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k