<commit_before>$('#move_friends_link').live( 'click', 
    function(){
      $.post('/groups/move_friends',
        {'moves' : $('#group_list').data()},
        function(){ $('#group_title').html("Groups edited successfully!");});
      $(".person").css('background-color','white');
      $('#group_list').removeData();
      $(".person").attr('from_group_id', function(){return $(this).parent().attr('id')})
    });

$(function() {
    $("li .person").draggable({
		  revert: true
    });
    
    $("li .person").draggable({
		  revert: true
    });
		
    $(".group ul").droppable({

			drop: function(event, ui) {
        var move = {};
        move[ 'friend_id' ] = ui.draggable[0].id
        move[ 'to' ] = $(this)[0].id;
        move[ 'from' ] = ui.draggable[0].getAttribute('from_group_id');
        if (move['to'] == move['from']){
          $('#group_list').data( ui.draggable[0].id, []);
          ui.draggable.css('background-color','white');
        } else{
          $('#group_list').data( ui.draggable[0].id, move);
          ui.draggable.css('background-color','orange');
        }
        $(this).closest("ul").append(ui.draggable);
      }
		});

    

	});<commit_msg>DG IZ alert on dragging a request, trying to check<commit_after>$('#move_friends_link').live( 'click', 
    function(){
      $.post('/groups/move_friends',
        {'moves' : $('#group_list').data()},
        function(){ $('#group_title').html("Groups edited successfully!");});
      $(".person").css('background-color','white');
      $('#group_list').removeData();
      $(".person").attr('from_group_id', function(){return $(this).parent().attr('id')})
    });

$(function() {
    $("li .person").draggable({
		  revert: true
    });
    
    $("li .person").draggable({
		  revert: true
    });
		
    $(".group ul").droppable({

			drop: function(event, ui) {
        if (ui.draggable[0].attr('request_id') != undefined){
          alert('This is a request!');
        }

        var move = {};
        move[ 'friend_id' ] = ui.draggable[0].id
        move[ 'to' ] = $(this)[0].id;
        move[ 'from' ] = ui.draggable[0].getAttribute('from_group_id');
        if (move['to'] == move['from']){
          $('#group_list').data( ui.draggable[0].id, []);
          ui.draggable.css('background-color','white');
        } else{
          $('#group_list').data( ui.draggable[0].id, move);
          ui.draggable.css('background-color','orange');
        }
        $(this).closest("ul").append(ui.draggable);
      }
		});

    

	});
{'fraction_non_alphanumeric': 0.2374157748711851, 'fraction_numerical': 0.004359889021006738, 'mean_word_length': 2.647398843930636, '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': '6179578', 'n_tokens_mistral': 851, 'n_tokens_neox': 823, 'n_words': 120}