<commit_before>'use strict';

/**
 * @ngdoc function
 * @name gapFront.servece:APIService
 * @description Calls the Open FDA api for drug information as well as our local api.
 * # APIService
 * Angular Service providing access to the FDA Drug APIs
 */
angular.module('gapFront')
  .service('APIService', function (Restangular) {
    var FDAService = Restangular.withConfig(function(RestangularConfigurer) {
      RestangularConfigurer.setBaseUrl('https://api.fda.gov');
    });

    var railsService = Restangular.withConfig(function(RestangularConfigurer,Restangular) {
      RestangularConfigurer.setBaseUrl('http://localhost:3000/api/v1');
    });

    var pillboxService = Restangular.withConfig(function(RestangularConfigurer) {
      RestangularConfigurer.setBaseUrl('http://pillbox.nlm.nih.gov/PHP/pillboxAPIService.php');
    });


    var drug = FDAService.all('drug');
    //var drugLabel = drug.all('label.json');<commit_msg>More alert stuff on leaderboard<commit_after>'use strict';

/**
 * @ngdoc function
 * @name gapFront.servece:APIService
 * @description Calls the Open FDA api for drug information as well as our local api.
 * # APIService
 * Angular Service providing access to the FDA Drug APIs
 */
angular.module('gapFront')
  .service('APIService', function (Restangular) {
    var FDAService = Restangular.withConfig(function(RestangularConfigurer) {
      RestangularConfigurer.setBaseUrl('https://api.fda.gov');
    });

    var railsService = Restangular.withConfig(function(RestangularConfigurer,Restangular) {
      RestangularConfigurer.setBaseUrl('http://192.168.127.12:3000/api/v1');
    });

    var pillboxService = Restangular.withConfig(function(RestangularConfigurer) {
      RestangularConfigurer.setBaseUrl('http://pillbox.nlm.nih.gov/PHP/pillboxAPIService.php');
    });


    var drug = FDAService.all('drug');
    //var drugLabel = drug.all('label.json');
{'fraction_non_alphanumeric': 0.12704269899841855, 'fraction_numerical': 0.01107011070110701, 'mean_word_length': 4.517441860465116, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '2541317', 'n_tokens_mistral': 599, 'n_tokens_neox': 557, 'n_words': 109}