<commit_before>module('lively.morphic.MorphAddons').requires('lively.morphic.Core', 'lively.morphic.Events', 'lively.morphic.Widgets', 'lively.morphic.Styles').toRun(function() {

/*
 * Extends the default morphic interface with convenience methods, methods that
 * we are currently experimenting with, or methods that exist for compatibility
 * to older morphs
 */

Object.extend(lively.morphic, {

    showMarkerFor: function(morph) {
      var m = lively._showMarker || (lively._showMarker = $world.loadPartItem("Marker", "PartsBin/Basic"));
      m.setOpacity(1);
      m.openInWorld();
      m.setBounds(morph.globalBounds().expandBy(10));
      m.applyStyle({borderWidth: 7, borderRadius: 10});
      (function() {
        m.setOpacityAnimated(0, 1000, function() { m.remove(); })
      }).delay(1);
    },

    show: function(obj) {

        function showText(text) {
          $world.setStatusMessage(text, Color.gray);
          return text;
        }

        function newShowPt(/*pos or x,y, duration, extent*/) {
            var args = Array.from(arguments);
            // pos either specified using point object or two numbers
            var pos = args[0].constructor == lively.Point ? args.shift() : pt(args.shift(), args.shift()),
                duration = args.shift(),<commit_msg>morphic: fix showMarkerFor<commit_after>module('lively.morphic.MorphAddons').requires('lively.morphic.Core', 'lively.morphic.Events', 'lively.morphic.Widgets', 'lively.morphic.Styles').toRun(function() {

/*
 * Extends the default morphic interface with convenience methods, methods that
 * we are currently experimenting with, or methods that exist for compatibility
 * to older morphs
 */

Object.extend(lively.morphic, {

    showMarkerFor: function(morph) {
      if (!morph) return;
      var m = lively._showMarker || (lively._showMarker = $world.loadPartItem("Marker", "PartsBin/Basic"));
      m.setOpacity(1);
      m.openInWorld();
      m.setBounds(morph.globalBounds().expandBy(10));
      m.applyStyle({borderWidth: 7, borderRadius: 10});
      (function() {
        m.setOpacityAnimated(0, 1000, function() { m.remove(); })
      }).delay(1);
    },

    show: function(obj) {

        function showText(text) {
          $world.setStatusMessage(text, Color.gray);
          return text;
        }

        function newShowPt(/*pos or x,y, duration, extent*/) {
            var args = Array.from(arguments);
            // pos either specified using point object or two numbers
            var pos = args[0].constructor == lively.Point ? args.shift() : pt(args.shift(), args.shift()),
                duration = args.shift(),
{'fraction_non_alphanumeric': 0.14209928003031452, 'fraction_numerical': 0.009852216748768473, 'mean_word_length': 3.049079754601227, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7467136', 'n_tokens_mistral': 813, 'n_tokens_neox': 767, 'n_words': 174}