<commit_before>(function() {
'use strict';
// SERVICES/DATA (CONNECT TO API BACK-END)

app.service('dataService', function($http, $q) {

  // CREATE
  this.addSong = function(songData) {
    console.log('inside service > addSong');
    return http.post('/songs/form').then(cb);
  };

  // READ
  this.getSingers = function(callback) {
    console.log('inside service getSingers');
    return $http.get('/api/status').then(callback);
  };

  // UPDATE
  this.saveSingerData = function(songData) {
    console.log("I saved " + songData.length + " singers!");
    return $http.put('/api/status', songData);
  };

  // DELETE
  this.deleteSingerData = function(songData) {
    console.log("I deleted the singer, " + songData.singer + "!");
    return $http.delete('/api/status', songData);
  };

});
})();<commit_msg>wrap in IIFE<commit_after>(function() {
'use strict';
// SERVICES/DATA (CONNECT TO API BACK-END)
  const app = angular.module('MNCApp');
  
  app.service('dataService', ['$http', function($http, $q) {

    // CREATE
    this.addData = function(songData) {
      console.log(songData);
      console.log('inside service > addSong');
      return $http.post('/api/status', songData);
    };

    // READ
    this.getSingers = function(callback) {
      return $http.get('/api/status').then(callback);
    };

    // UPDATE
    this.saveSingerData = function(songData) {
      console.log("I saved " + songData.length + " singers!");
      return $http.put('/api/status', songData);
    };

    // DELETE
    this.deleteSingerData = function(songData) {
      console.log("I deleted the singer, " + songData.singer + "!");
      return $http.delete('/api/status', songData);
    };

  }]);
})();
{'fraction_non_alphanumeric': 0.1841642228739003, 'fraction_numerical': 0.0, 'mean_word_length': 3.191646191646192, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7185484', 'n_tokens_mistral': 582, 'n_tokens_neox': 547, 'n_words': 101}