<commit_before>#import('dart:html');
#import('../pl/pl.dart');


main(){
  CanvasElement canvas = document.query("#content");
  var demo = new Demo(canvas);
  demo.start();

}

class Demo{
  CanvasElement _canvas;
  PElement _element;
  Stage _stage;
  AffineTransform _tx;
  
  Demo(CanvasElement canvas){
    _canvas = canvas;
    
    PCanvas pCanvas = new PCanvas(200, 200);
    var blue = new Shape(100, 100, 'blue');
    var red = new Shape(50, 50, 'red');

    pCanvas.addElement(blue);
    pCanvas.addElement(red);
    _element = pCanvas;

    _element.addTransform().translate(
      (canvas.width - _element.width) / 2, 
      (canvas.height - _element.height) / 2);
    this._tx = _element.addTransform();
    _stage = new Stage(_canvas, _element);
  }
  
  void start(){
    _requestFrame();
  }
  
  bool _onFrame(num highResTime){
    _tx.rotate(Math.PI * 0.01, 100, 100);<commit_msg>one more color for fun<commit_after>#import('dart:html');
#import('../pl/pl.dart');


main(){
  CanvasElement canvas = document.query("#content");
  var demo = new Demo(canvas);
  demo.start();

}

class Demo{
  CanvasElement _canvas;
  PElement _element;
  Stage _stage;
  AffineTransform _tx;
  
  Demo(CanvasElement canvas){
    _canvas = canvas;
    
    PCanvas pCanvas = new PCanvas(200, 200);
    var blue = new Shape(100, 100, 'blue');
    var green = new Shape(75, 75, 'green');
    var red = new Shape(50, 50, 'red');

    pCanvas.addElement(blue);
    pCanvas.addElement(green);
    pCanvas.addElement(red);
    _element = pCanvas;

    _element.addTransform().translate(
      (canvas.width - _element.width) / 2, 
      (canvas.height - _element.height) / 2);
    this._tx = _element.addTransform();
    _stage = new Stage(_canvas, _element);
  }
  
  void start(){
    _requestFrame();
  }
  
  bool _onFrame(num highResTime){
    _tx.rotate(Math.PI * 0.01, 100, 100);
{'fraction_non_alphanumeric': 0.1478723404255319, 'fraction_numerical': 0.030851063829787233, 'mean_word_length': 3.18, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7506726', 'n_tokens_mistral': 712, 'n_tokens_neox': 647, 'n_words': 148}