<commit_before>var s = new Snap(800,800);

var dog = Snap.select('#dog'),
  dogStartMatrix = new Snap.Matrix(),
  dogMidMatrix = new Snap.Matrix();
console.log(dog);
var nose = dog.select('#nose');
var ear = dog.select('#ear');
var eye = dog.select('#eye');
var frontleg = dog.select('#frontleg');
var face = dog.select('#face');
// s.attr({ viewBox: "0 0 600 600" });

eyeAnimation();

function eyeAnimation(){
  eye.stop().animate(
    { transform: 'r360,210,80'},
    1000,
    mina.bounce, function() {
      eyeAnimation();
    } );
}



// var dog = s.select('.dog'),
//   dogStartMatrix = new Snap.Matrix(),
//   dogMidMatrix = new Snap.Matrix();

// dogStartMatrix.rotate(10);
// dogStartMatrix.translate(0,-50);
// dogMidMatrix.rotate(-15);
// dogMidMatrix.translate(300,-20);

dog.animate({
  transform: dogStartMatrix
}, 1250, mina.easeinout, function() {
  dog.animate({
    transform: dogMidMatrix
  }, 250);
});

// Snap.load("svg/dog_01.svg", function(response) {
//   var dog = response;
//   s.append(dog);
//   // s.append(g);
//   // g.drag();
//   s.drag();
// });
<commit_msg>added animations<commit_after>var s = new Snap(800,800);

var dog = Snap.select('#dog'),
  dogStartMatrix = new Snap.Matrix(),
  dogMidMatrix = new Snap.Matrix();
console.log(dog);
var nose = dog.select('#nose');
var ear = dog.select('#ear');
var eye = dog.select('#eye');
var frontleg = dog.select('#frontleg');
var face = dog.select('#face');
var earandtail = dog.select('#earandtail');
var faceblob = dog.select('#faceblob');
// s.attr({ viewBox: "0 0 600 600" });

// var wholeEar = s.group(ear,earandtail);
// console.log(wholeEar);

eyeAnimation();
earAnimation();
innerEarAnimation();
faceAnimation();

function eyeAnimation(){
  eye.stop().animate(
    { transform: 'r45,210,80'},
    1000,
    mina.bounce,
    function(){
      eye.attr({ transform: 'rotate(0 256 256'});
      eyeAnimation();
    }
  );
}

function earAnimation(){
  earandtail.stop().animate(
    { transform: 't0,3'},
    1000,
    mina.bounce,
    function(){
      earandtail.attr({ transform: 'rotate(0 256 256'});
      earAnimation();
    }
  );
}

function innerEarAnimation(){
  ear.stop().animate(
    { transform: 't0,3'},
    1000,
    mina.bounce,
    function(){
      ear.attr({ transform: 'rotate(0 256 256'});
      innerEarAnimation();
    }
  );
}

function faceAnimation(){
  face.stop().animate(
    { transform: 't0,3'},
    1000,
    mina.bounce,
    function(){
      face.attr({ transform: 'rotate(0 256 256'});
      faceAnimation();
    }
  );
  faceblob.stop().animate(
    { transform: 't0,3'},
    1000,
    mina.bounce,
    function(){
      faceblob.attr({ transform: 'rotate(0 256 256'});
      faceAnimation();
    }
  );
  nose.stop().animate(
    { transform: 't0,3'},
    1000,
    mina.bounce,
    function(){
      nose.attr({ transform: 'rotate(0 256 256'});
      faceAnimation();
    }
  );
}

// function raysAnimation(){
//     sunRays.stop().animate(
//       { transform: 'r90,256,256'}, // Basic rotation around a point. No frills.
//       10000, // Nice slow turning rays
//       function(){ 
//         sunRays.attr({ transform: 'rotate(0 256 256)'}); // Reset the position of the rays.
//         raysAnimation(); // Repeat this animation so it appears infinite.
//       }
//     );
  
//   }

// function frontlegAnimation(){
//   frontleg.stop()
// }



// var dog = s.select('.dog'),
//   dogStartMatrix = new Snap.Matrix(),
//   dogMidMatrix = new Snap.Matrix();

// dogStartMatrix.rotate(10);
// dogStartMatrix.translate(0,-50);
// dogMidMatrix.rotate(-15);
// dogMidMatrix.translate(300,-20);

dog.animate({
  transform: dogStartMatrix
}, 1250, mina.easeinout, function() {
  dog.animate({
    transform: dogMidMatrix
  }, 250);
});

// Snap.load("svg/dog_01.svg", function(response) {
//   var dog = response;
//   s.append(dog);
//   // s.append(g);
//   // g.drag();
//   s.drag();
// });

{'fraction_non_alphanumeric': 0.2012226184411615, 'fraction_numerical': 0.04712175241976566, 'mean_word_length': 2.9626639757820383, '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': '3360632', 'n_tokens_mistral': 1509, 'n_tokens_neox': 1319, 'n_words': 279}