<commit_before>AppModules.Draw = function (self) {
  return {
    eventMarkers: function (force, data, names) {
      if (!data) {
        $.when(self.Fetch.zoneEvents(force, self.Player.server, self.Get.mapInd()), self.Fetch.eventNames()).done(function (dat1, dat2) {
          self.Draw.eventMarkers(force, dat1, dat2);
        });
      } else {
        self.Label.clear('e');
        var mapInd = self.Get.mapInd(1),
          map = self.Maps.load(mapInd);
        if (!map) return console.log('OOPS NO MAP. hence NO EVENT for you');
        for (var idx in data.events) {
          var uid = data.events[idx].event_id,
            event = names[uid],
            status = data.events[idx].state,
            skip = {
              Inactive: 1,
              Warmup: 2,
              Fail: 1,
              Active: 3,
              Success: 1,
              Preperation: 2
            }[status] - 1;
          if ( /*skip > 1 &&*/ event) {
            var ll = self.Geo.pos2ll(event.location.center, mapInd, 1);
            var radius = event.location.radius || 1000;
            var polyArray = [];
            radius = radius / map.mRect[2] * map.cRect[2];
            switch (event.location.type) {
            case 'poly':
              polyArray = [];
              for(var i in event.location.points)
                polyArray.push(self.Geo.pos2ll(event.location.points[i],mapInd,1));
              //TODO : Poly events.. :/ 
            case 'sphere':
            case 'cylinder':
              self.Label.add('e', event.name, { // sector-name
                map: self.map,
                position: ll,
                  type:event.location.type,
                  positions:polyArray,
                flags: event.flags,
                status: skip,
                label: event.name,
                desc: event.flags.join(',') + '(' + status + ') ' + event.name,
                radius: radius
              });
              break;
            default:
              console.log('unknown event type:', event)
            }
          }
        }
      }
    },
    mapMarkers: function (map) {
      var types = {
        skill_challenges: 'skill',<commit_msg>eventmarkers-Player linker usage, distinguish prep/active<commit_after>AppModules.Draw = function (self) {
  return {
    eventMarkers: function (force, data, names) {
      if (!data) {
        $.when(self.Fetch.zoneEvents(force, self.Player.linker.server, self.Get.mapInd(1)), self.Fetch.eventNames()).done(function (dat1, dat2) {
          self.Draw.eventMarkers(force, dat1, dat2);
        });
      } else {
        self.Label.clear('e');
        var mapInd = self.Get.mapInd(1),
          map = self.Maps.load(mapInd);
        if (!map) return console.log('OOPS NO MAP. hence NO EVENT for you');
        for (var idx in data.events) {
          var uid = data.events[idx].event_id,
            event = names[uid],
            status = data.events[idx].state,
            skip = {
              Inactive: 1,
              Warmup: 2,
              Fail: 1,
              Active: 4,
              Success: 1,
              Preparation: 3
            }[status] - 1;
          if ( /*skip > 1 &&*/ event) {
            var ll = self.Geo.pos2ll(event.location.center, mapInd, 1);
            var radius = event.location.radius || 1000;
            var polyArray = [];
            radius = radius / map.mRect[2] * map.cRect[2];
            switch (event.location.type) {
            case 'poly':
              polyArray = [];
              for(var i in event.location.points)
                polyArray.push(self.Geo.pos2ll(event.location.points[i],mapInd,1));
              //TODO : Poly events.. :/ 
            case 'sphere':
            case 'cylinder':
              self.Label.add('e', event.name, { // sector-name
                map: self.map,
                position: ll,
                  type:event.location.type,
                  positions:polyArray,
                flags: event.flags,
                status: skip,
                label: event.name,
                desc: event.flags.join(',').replace('group_event','[Group]') + '(' + status + ') ' + event.name,
                radius: radius
              });
              break;
            default:
              console.log('unknown event type:', event)
            }
          }
        }
      }
    },
    mapMarkers: function (map) {
      var types = {
        skill_challenges: 'skill',
{'fraction_non_alphanumeric': 0.1329128182022978, 'fraction_numerical': 0.010587970263572877, 'mean_word_length': 1.3987034035656403, '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': '1731794', 'n_tokens_mistral': 1314, 'n_tokens_neox': 1257, 'n_words': 273}