<commit_before>var app = angular.module('gw2App', ['ngResource']);

app.config(function($routeProvider, $locationProvider) {
  $routeProvider.when('/world/:worldId', { controller: 'gw2Ctrl' })
});

app.controller('gw2Ctrl', function($scope, $http, $resource, $location, $route, $routeParams, $timeout) {
  $http.defaults.useXDomain = true;
  // So CORS works event without OPTIONS requests supported by API server
  delete $http.defaults.headers.common['X-Requested-With'];

  $scope.$on("$routeChangeSuccess", function($currentRoute, $previousRoute) {
    $scope.worldId = $routeParams.worldId;
  });

  Worlds = $resource('https://api.guildwars2.com/v1/world_names.json');
  Matches = $resource('https://api.guildwars2.com/v1/wvw/matches.json');
  MatchDetails = $resource('https://api.guildwars2.com/v1/wvw/match_details.json');
  Events = $resource('https://api.guildwars2.com/v1/events.json');

  var timer;
  $scope.interval = 0;

  $scope.worlds = Worlds.query();
  $scope.redWorld = {};
  $scope.blueWorld = {};
  $scope.greenWorld = {};

  $scope.watchedEvents = [
    { id: "0464CB9E-1848-4AAA-BA31-4779A959DD71", name: "<NAME>" },
    { id: "568A30CF-8512-462F-9D67-647D69BEFAED", name: "Tequatl the Sunless" },
    { id: "03BF176A-D59F-49CA-A311-39FC6F533F2F", name: "The Shatterer" },
    { id: "31CEBA08-E44D-472F-81B0-7143D73797F5", name: "Shadow behemoth."},
    { id: "33F76E9E-0BB6-46D0-A3A9-BE4CDFC4A3A4", name: "Fire elemental"},
    { id: "C5972F64-B894-45B4-BC31-2DEEA6B7C033", name: "<NAME>"},
    { id: "9AA133DC-F630-4A0E-BB5D-EE34A2B306C2", name: "<NAME>"}
  ]

  var eventNotificationsEnabled = false;

  var fetch = function() {
    Matches.get({}, function(data) {
      // Loop through the matches to find in wich one the selected world is participating
      for (var i = 0; i < data.wvw_matches.length; i++) {
        m = data.wvw_matches[i];<commit_msg>Add the remaining events with bonus chests<commit_after>var app = angular.module('gw2App', ['ngResource']);

app.config(function($routeProvider, $locationProvider) {
  $routeProvider.when('/world/:worldId', { controller: 'gw2Ctrl' })
});

app.controller('gw2Ctrl', function($scope, $http, $resource, $location, $route, $routeParams, $timeout) {
  $http.defaults.useXDomain = true;
  // So CORS works event without OPTIONS requests supported by API server
  delete $http.defaults.headers.common['X-Requested-With'];

  $scope.$on("$routeChangeSuccess", function($currentRoute, $previousRoute) {
    $scope.worldId = $routeParams.worldId;
  });

  Worlds = $resource('https://api.guildwars2.com/v1/world_names.json');
  Matches = $resource('https://api.guildwars2.com/v1/wvw/matches.json');
  MatchDetails = $resource('https://api.guildwars2.com/v1/wvw/match_details.json');
  Events = $resource('https://api.guildwars2.com/v1/events.json');

  var timer;
  $scope.interval = 0;

  $scope.worlds = Worlds.query();
  $scope.redWorld = {};
  $scope.blueWorld = {};
  $scope.greenWorld = {};

  $scope.watchedEvents = [
    { id: "0464CB9E-1848-4AAA-BA31-4779A959DD71", name: "<NAME>" },
    { id: "568A30CF-8512-462F-9D67-647D69BEFAED", name: "Tequatl the Sunless" },
    { id: "03BF176A-D59F-49CA-A311-39FC6F533F2F", name: "The Shatterer" },
    { id: "31CEBA08-E44D-472F-81B0-7143D73797F5", name: "Shadow behemoth"},
    { id: "33F76E9E-0BB6-46D0-A3A9-BE4CDFC4A3A4", name: "Fire elemental"},
    { id: "C5972F64-B894-45B4-BC31-2DEEA6B7C033", name: "<NAME>"},
    { id: "9AA133DC-F630-4A0E-BB5D-EE34A2B306C2", name: "<NAME>"},

    { id: "2555EFCB-2927-4589-AB61-1957D9CC70C8", name: "Balthazar"},
    { id: "A5B5C2AF-22B1-4619-884D-F231A0EE0877", name: "Melandru"},
    { id: "0372874E-59B7-4A8F-B535-2CF57B8E67E4", name: "Lyssa"},
    { id: "99254BA6-F5AE-4B07-91F1-61A9E7C51A51", name: "Grenth"},
    { id: "6A6FD312-E75C-4ABF-8EA1-7AE31E469ABA", name: "Dwayna"},

    { id: "F7D9D427-5E54-4F12-977A-9809B23FBA99", name: "<NAME>"},
    { id: "4B478454-8CD2-4B44-808C-A35918FA86AA", name: "<NAME>"},
    { id: "E6872A86-E434-4FC1-B803-89921FF0F6D6", name: "<NAME>"},
    { id: "95CA969B-0CC6-4604-B166-DBCCE125864F", name: "<NAME>"},
    { id: "242BD241-E360-48F1-A8D9-57180E146789", name: "<NAME>"},
    { id: "295E8D3B-8823-4960-A627-23E07575ED96", name: "Fire Shaman"},
    { id: "A0796EC5-191D-4389-9C09-E48829D1FDB2", name: "Eye of Zaithan"}
  ]

  var eventNotificationsEnabled = false;

  var fetch = function() {
    Matches.get({}, function(data) {
      // Loop through the matches to find in wich one the selected world is participating
      for (var i = 0; i < data.wvw_matches.length; i++) {
        m = data.wvw_matches[i];
{'fraction_non_alphanumeric': 0.1836469824789098, 'fraction_numerical': 0.12026822409690677, 'mean_word_length': 4.23669309173273, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 14, 'https://': 8, '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': '3331021', 'n_tokens_mistral': 2189, 'n_tokens_neox': 1918, 'n_words': 294}