<commit_before>var Firebase = require('./node_modules/firebase/lib/firebase-node')

var ref = new Firebase('https://togproof.firebaseio.com')
ref.set({
  galleries: []
}, function (error) {
  if (error) {
    console.error('Seeding failed')
    process.exit()
  } else {
    var galleriesRef = ref.child('galleries')
    galleriesRef.push({
      title: 'First',
      cover_image_url: 'http://www.weddingcardmessage.com/wp-content/uploads/2014/11/general-wedding-card-messages.jpg'
    }).then(function () {
      return galleriesRef.push({
        title: 'Second',
        cover_image_url: 'https://upload.wikimedia.org/wikipedia/commons/a/ab/Wedding_photo.jpg'
      })
    }).then(function () {
      return galleriesRef.push({
        title: 'Third',
        cover_image_url: 'http://eventsbywhim.ca/blog/wp-content/uploads/2015/07/Bride_and_Groom.jpg'
      })
    }).then(function () {
      console.log('Seeding succeeded')
      process.exit()
    })
  }
})<commit_msg>Fixed up seeds to be a bit cleaner and added 3 more<commit_after>var Firebase = require('./node_modules/firebase/lib/firebase-node')

function saveGalleries (ref, galleries) {
  if (galleries.length === 0) process.exit()

  console.log('Saveing:', galleries[0].title)
  ref.push({
    title: galleries[0].title,
    cover_image_url: galleries[0].cover_image_url
  }).then(function () {
    saveGalleries(ref, galleries.slice(1))
  })
}

var baseRef = new Firebase('https://togproof.firebaseio.com')
baseRef.set({
  galleries: []
}, function (error) {
  if (error) {
    console.error('Seeding failed')
    process.exit()
  } else {
    var ref = baseRef.child('galleries')

    galleries = [
      {
        title: 'First',
        cover_image_url: 'http://www.weddingcardmessage.com/wp-content/uploads/2014/11/general-wedding-card-messages.jpg'
      }, {
        title: 'Second',
        cover_image_url: 'https://upload.wikimedia.org/wikipedia/commons/a/ab/Wedding_photo.jpg'
      }, {
        title: 'Third',
        cover_image_url: 'http://www.oncewed.com/wp-content/uploads/2013/02/whimsical-vintage-wedding-at-butterfly-lane-estate-1.jpeg'
      }, {
        title: 'Fourth',
        cover_image_url: 'http://eventsbywhim.ca/blog/wp-content/uploads/2015/07/Bride_and_Groom.jpg'
      }, {
        title: 'Fifth',
        cover_image_url: 'http://noseroom.com/thomasculture/wp-content/uploads/2013/10/wedding-cake.jpg'
      }, {
        title: 'Sixth',
        cover_image_url: 'http://www.taitphoto.com/wedding-photography/wedding-photography.jpg'
      }
    ]
    saveGalleries(ref, galleries)
  }
})

{'fraction_non_alphanumeric': 0.15939791586260132, 'fraction_numerical': 0.01659590891547665, 'mean_word_length': 3.0373831775700935, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, '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': '7597078', 'n_tokens_mistral': 955, 'n_tokens_neox': 878, 'n_words': 119}