system
stringclasses
1 value
prompt
stringlengths
78
12.9k
chosen
stringlengths
370
27.9k
rejected
stringlengths
327
28k
category
stringclasses
5 values
source
stringclasses
8 values
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I’m teaching graduate ML and want a precise visualization of backpropagation through a multi-layer perceptron. Trace the forward pass, then show the backward gradient flow, highlighting the gradient updates on each linear layer’s weights and biases. Use color-coded arrows to depict chain-rule multiplications and how gr...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class BackpropagationScene(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 BackpropagationScene(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 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 PedagogicalScene690(Scene): def construct(self): title = Title(r"Gradient Descent: $x_{k+1} = x_k - \gamma \nabla f(x_k)$") ...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class GradientDescent2DScene(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width *...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class GradientDescent2DScene(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width *...
invalid_axes_kwarg
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm studying RL optimization with Bayesian methods and ECGA, and I want to visualize how ECGA partitions policy parameters. Show the probabilistic model built by the algorithm and how BO proposes new policy configurations. Animate a small model-based RL loop where performance guides updates across iterations. Include a...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class ECGAPartitioningScene(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 ECGAPartitioningScene(VoiceoverScene): def construct(self): # [SETUP] # [LAYOUT] self.set_speech_service(GTTSService(transcription_model="base")) ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching an advanced ML class and want to illustrate the effective rank of activations in a layer. Animate the singular value spectrum and show how many dimensions contribute meaningfully. Display a dynamic bar or heatmap of explained variance as you progressively keep top-k components. Provide intuitive captions a...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class AOSTrajectoryScene293(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 AOSTrajectoryScene293(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * ...
invalid_axes_kwarg
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm learning upper-level CS and want a vivid visualization of Kruskal's algorithm. Show a weighted undirected graph and animate the edge selections that build the minimum spanning tree, highlighting each decision as it's made. Include a running union-find visualization, a cost timeline, and a quick sweep over different...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class KruskalAlgorithmScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class KruskalAlgorithmScene(Scene): def construct(self): title = Text("Kruskal's Algorithm", font_size=48, color=BLUE) subtitle = Text('Finding a Minimum Spanning Tree', font_size=28, color=GRAY) subtitle.next_to(title, DOWN, buff=0.3) self.play(Write(...
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 undergraduate linear algebra and want a visual intuition for eigenvalues and eigenvectors. Animate a 3×3 matrix acting on vectors, showing how the transformation stretches along eigenvectors and rotates elsewhere. Include a demonstration of the power method: animate repeated applications to show convergenc...
```python from manim import * class EigenvaluesAndEigenvectorsIntuition(Scene): def construct(self): title = Text('Eigenvalues & Eigenvectors', font_size=48) subtitle = Text('Geometric Intuition', font_size=32).next_to(title, DOWN) title_group = VGroup(title, subtitle) self.play(Wr...
```python from manim import * class EigenvaluesAndEigenvectorsIntuition(Scene): def construct(self): title = Text('Eigenvalues & Eigenvectors', font_size=48) subtitle = Text('Geometric Intuition', font_size=32) title_group = VGroup(title, subtitle) self.play(Write(title_group), run...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
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 class EmbeddingImpactScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) ...
```python from manim import * class EmbeddingImpactScene(Scene): def construct(self): title = Text('NLP Embedding Dimension Effects', font_size=40, color=BLUE) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) self.wait(2.0) self.wait(2.0) self.play(...
narrated_pedagogical_preference
nabin2004/manim-narrated-dpo-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
The following Manim CE scene failed to compile. Truncated traceback: AttributeError: VGroup object has no attribute 'c2p' Fix the code. Return a complete working scene. Do not keep the invalid constructor kwargs or Unicode subscripts. ```python from manim import * from manim import config Text.set_default(font='SimH...
```python from manim import * from manim import config Text.set_default(font='SimHei') class ConformerResidualNorm(Scene): def construct(self): title = Text('Residual Connections and Normalization', font_size=36, weight=BOLD) title.to_edge(UP, buff=0.4) subtitle = Text('Conformer Block Str...
```python from manim import * from manim import config Text.set_default(font='SimHei') class ConformerResidualNorm(Scene): def construct(self): title = Text('Residual Connections and Normalization', font_size=36, weight=BOLD) title.to_edge(UP, buff=0.4) subtitle = Text('Conformer Block Str...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Here is the enhanced animation instruction that builds upon the original while adding significant new features: The enhanced animation begins by displaying a purple horizontal line centered on the screen, then transforms it into a more complex visualization: as the line shifts upward over one second, a coordinate syst...
```python from manim import * class EnhancedLineToSineWave(Scene): def construct(self): # Create initial purple line line = Line(LEFT*3, RIGHT*3, color=PURPLE) line.move_to(ORIGIN) # Create coordinate system axes = Axes( x_range=[-3, 3, 1], y...
```python from manim import * class EnhancedLineToSineWave(Scene): def construct(self): # Create initial purple line line = Line(LEFT*3, RIGHT*3, color=PURPLE) line.move_to(ORIGIN) # Create coordinate system axes = Axes(axis_color=BLUE, x_range=[-3, 3, ...
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 studying NLP and want to compare human-written text with a bigram-generated version. Create a side-by-side display with the two texts, color-coding differences at the word- or phrase-level and visually highlighting changed zones. Animate a diff pipeline that reveals where bigram generation matches or deviates, with...
```python from manim import * class NLPBigramComparison(Scene): def construct(self): title = Text('NLP Text Comparison Using Bigrams', font_size=36, color=BLUE) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) self.wait(0.5) section1 = Text('1. What are Big...
```python from manim import * class NLPBigramComparison(Scene): def construct(self): title = Text('NLP Text Comparison Using Bigrams', font_size=36, color=BLUE) title self.play(Write(title), run_time=2.0) self.wait(0.5) section1 = Text('1. What are Bigrams?', font_size=28, ...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
You are a Manim expert. Please convert the Markdown lecture notes into executable Manim CE v0.19.0 code that displays content in English. The page layout must be clear, with no overlapping elements, and you must not output any explanatory or descriptive text outside the code. Pay special attention to avoiding common er...
```python from manim import * from manim import config Text.set_default(font='SimHei') class GameTheoryLecture(Scene): def construct(self): main_title = Text('Formal Modeling Language for Game Theory', font_size=42, weight=BOLD, color=BLUE) subtitle = Text('The Significance of Formalizing Games\nf...
```python from manim import * from manim import config Text.set_default(font='SimHei') class GameTheoryLecture(Scene): def construct(self): main_title = Text('Formal Modeling Language for Game Theory', font_size=42, weight=BOLD, color=BLUE) subtitle = Text('The Significance of Formalizing Games\nf...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create a step-by-step educational Manim CE lecture scene explaining: Proof of Pythagorean Theorem via geometric rearrangement. ```python from manim import * import numpy as np class PedagogicalScene790(Scene): def construct(self): title = Title("Pythagorean Theorem: $a^2 + b^2 = c^2$") formula = M...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService import numpy as np MARGIN = 0.5 class PedagogicalScene790(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 PedagogicalScene790(VoiceoverScene): def fit_in_frame(self, mob: Mobject, w_frac=0.9, h_frac=0.9) -> Mobject: max_w = config.frame_width * w_...
spatial_layout_overlap
synthetic_hard_neg:nabin2004/qwen3-8b-manimator-gold-sft
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm exploring gradient-based updates and want to see parameter nudges on a 2D contour plot of the loss. Animate small nudges of parameters along the contour, tracing the path of optimization with multiple learning rates. Slow down at convergence and show the path length and final approach to a local minimum.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class GradientUpdates(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 GradientUpdates(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 exploring Auto-Keras and want to visualize the automated model search process on a small dataset. Show a search-space evolving with architectures, early-stopping signals, and the final chosen model's performance. Include a timeline of trials, a chart of architecture complexity vs accuracy, and a contrast with a han...
```python from manim import * class AutoKerasModelSearchScene(Scene): def construct(self): title = Text('Auto-Keras Model Search', font_size=48, color=BLUE) subtitle = Text('Automated Neural Architecture Search', font_size=28, color=GRAY) subtitle.next_to(title, DOWN, buff=0.5) tit...
```python from manim import * class AutoKerasModelSearchScene(Scene): def construct(self): title = Text('Auto-Keras Model Search', font_size=48, color=BLUE) subtitle = Text('Automated Neural Architecture Search', font_size=28, color=GRAY) subtitle.next_to(title, DOWN, buff=0.5) tit...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Here’s the enhanced animation instruction, which retains the original red circle while adding a dynamic transformation, explanatory text, and a mathematical formula to deepen the viewer's understanding: Begin by displaying a bold red circle with a radius of 2, centered on the screen. As the circle appears, smoothly fa...
```python from manim import * class CircleToSquareWithMath(Scene): def construct(self): # Create the red circle circle = Circle(radius=2, color=RED, fill_opacity=0.5) circle_label = Tex("Unit Circle (r = 2)", color=BLUE).next_to(circle, DOWN) # Show circle and label self.pl...
```python from manim import * class CircleToSquareWithMath(Scene): def construct(self): # Create the red circle circle = Circle(radius=2, color=RED, fill_opacity=0.5) circle_label = Tex("Unit Circle (r = 2)", color=BLUE) # Show circle and label self.play(Create(circle), Wri...
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 the geometry of linear transforms. Visualize a square grid being rotated, scaled, and translated by an affine transform (bias included). Show before/after grids, an example vector, and how the grid deformation corresponds to the matrix and bias.
```python from manim import * import numpy as np class GeometryOfLinearTransforms(Scene): def construct(self): title = Text('Geometry of Linear Transforms', font_size=36) title.to_edge(UP, buff=0.4) self.play(Write(title), run_time=2.0) plane = NumberPlane(x_range=[-3, 3, 1], y_ran...
```python from manim import * import numpy as np class GeometryOfLinearTransforms(Scene): def construct(self): title = Text('Geometry of Linear Transforms', font_size=36) title.to_edge(UP, buff=0.4) self.play(Write(title), run_time=2.0) plane = NumberPlane(x_range=[-3, 3, 1], y_ran...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/AOS-Manim-SFT
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
Create a 30-second Manim scene that explains a supply-demand chart with one curve shifting. Show the initial equilibrium, animate the supply shift, and update the equilibrium point with captions.
```python from manim import * class EconomicsSupplyDemandShiftStory(Scene): def construct(self): title = Text("Supply Shifts Move Market Equilibrium", font_size=34).to_edge(UP) axes = Axes(x_range=[0, 10, 1], y_range=[0, 10, 1], x_length=6.6, y_length=4.8, tips=False).shift(LEFT * 0.8 + DOWN * 0.25...
```python from manim import * class EconomicsSupplyDemandShiftStory(Scene): def construct(self): title = Text("Supply Shifts Move Market Equilibrium", font_size=34) axes = Axes(x_range=[0, 10, 1], y_range=[0, 10, 1], x_length=6.6, y_length=4.8, tips=False) demand = axes.plot(lambda x: 8 - 0...
spatial_layout_overlap
synthetic_hard_neg:sebastianboehler/autoresearch-manim
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching optimization methods and want a side-by-side animation calculating dL/dw for a single weight by finite difference, then comparing to the analytical gradient. Show a simple quadratic loss, move w in small steps, display numerical approximations, and highlight the error as we vary the step size h.
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class FiniteDifferenceScene(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 FiniteDifferenceScene(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 is the enhanced animation instruction that includes all original features plus significant new elements: The enhanced animation begins by graphing the quadratic function f(x) = 0.1x² on a coordinate plane that includes labeled x and y axes with appropriate scaling. As the graph appears, a dynamic point moves alon...
```python from manim import * import math class QuadraticIntegral(Scene): def construct(self): # Create axes with automatic scaling axes = Axes( x_range=[-2, 6, 1], y_range=[-0.5, 3, 0.5], x_length=8, y_length=5, axis_config={ ...
```python from manim import * import math class QuadraticIntegral(Scene): def construct(self): # Create axes with automatic scaling axes = Axes( x_range=[-2, 6, 1], y_range=[-0.5, 3, 0.5], x_length=8, y_length=5, axis_config={ ...
legacy_api_hallucination
synthetic_hard_neg:nabin2004/manim-sft-10k
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching an undergrad course and want to animate a conv2d operation on a small image, showing the kernel sliding and the dot product lighting up the output pixel. Use a tiny input grid, a 2D kernel, and illuminate the elementwise products as they sum to the output. Extend to a couple of positions, discuss padding/s...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class ConvolutionalNeuralNetworksBasics(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") )...
```python from manim import * class ConvolutionalNeuralNetworksBasics(Scene): def construct(self): title = Text('Convolutional Neural Networks', font_size=48, color=BLUE) subtitle = Text('Basics', font_size=32, color=GRAY) title_group = VGroup(title, subtitle).arrange(DOWN, buff=0.3) ...
narrated_pedagogical_preference
nabin2004/manim-narrated-dpo-400
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
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 CycloidGeneration(VoiceoverScene): def construct(self): # [SETUP] self.set_speech_service(GTTSService(transcription_model="base")) MARGIN = 0.5 # [LAYOUT] ground = Line( LEFT * (config.frame_width / ...
```python from manim import * import numpy as np class CycloidGeneration(VoiceoverScene): def construct(self): # [SETUP] self.set_speech_service(GTTSService(transcription_model="base")) MARGIN = 0.5 # [LAYOUT] ground = Line( LEFT * (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...
Display two side-by-side coordinate grids, each showing the graph of the function \( f(x) = \frac{x^2 - 2}{x^2 - 4} \): - On the left, a red curve is plotted without accounting for discontinuities, resulting in visual artifacts at \(x = \pm2\). - On the right, a green curve correctly omits the discontinuous points ...
```python from manim import * class DiscontinuousExample(Scene): def construct(self): ax1 = NumberPlane((-3, 3), (-4, 4)) ax2 = NumberPlane((-3, 3), (-4, 4)) VGroup(ax1, ax2).arrange() discontinuous_function = lambda x: (x ** 2 - 2) / (x ** 2 - 4) incorrect = ax1.plot(discon...
```python from manim import * class DiscontinuousExample(Scene): def construct(self): ax1 = NumberPlane((-3, 3), (-4, 4)) ax2 = NumberPlane((-3, 3), (-4, 4)) VGroup(ax1, ax2).arrange() discontinuous_function = lambda x: (x ** 2 - 2) / (x ** 2 - 4) incorrect = ax1.get_graph(d...
legacy_api_hallucination
synthetic_hard_neg:SuienR/ManimBench-v1
You are an expert Manim Community Edition (ManimCE v0.19+) Python developer and mathematical animator. Given a user request, first plan the spatial layout, coordinate bounds, timing, and pedagogical flow inside <think>...</think> tags (when reasoning is helpful), and then output a complete, runnable, self-contained Man...
I'm teaching an undergrad course on data visualization and want to illustrate Orange-style visual analytics in a narrative. Demonstrate how interactive widgets build a data pipeline: loading data, feature encoding, and visual projections, with decisions traced on the canvas. Create a sequence where the user toggles a f...
```python from manim import * from manim_voiceover import VoiceoverScene from manim_voiceover.services.gtts import GTTSService class InteractiveDataVizScene(VoiceoverScene): def construct(self): self.set_speech_service( GTTSService(voice="alba", cache_dir="voiceover_cache") ) #...
```python from manim import * class InteractiveDataVizScene(Scene): def construct(self): title = Text('Interactive Data Visualization Techniques', font_size=36) title.to_edge(UP, buff=0.5) self.play(Write(title), run_time=2.0) static_bars = VGroup(*[Rectangle(width=0.4, height=h * ...
narrated_pedagogical_preference
nabin2004/manim-narrated-dpo-400