<commit_before>/*
 * Author:        <NAME> <<EMAIL>>
 * Copyright:     (c) 2012-2016, <NAME>. All Rights Reserved.
 * License:       GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory.
 */

$('#post_id').keyup(function()
{
    $('.your-address').hide();
    var iProfileId = $('data-profile_id').val();
    var iPostId = $('#post_id').val();

    $.ajax({
        type: 'POST',
        url: pH7Url.base + 'note/asset/ajax/form/checkPostId',
        data: {'profile_id' : iProfileId, 'post_id' : iPostId},
        success:function(oData)
        {
            var oResponseData = $.parseJSON(oData);

            if(oResponseData.status == 1)
            {
                $('.post_id').fadeIn();
                $('#post_id').css('border','solid #00cc00 1px');<commit_msg>Bug fix for data attribute<commit_after>/*
 * Author:        <NAME> <<EMAIL>>
 * Copyright:     (c) 2012-2016, <NAME>. All Rights Reserved.
 * License:       GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory.
 */

$('#post_id').keyup(function()
{
    $('.your-address').hide();
    var iProfileId = $(this).data('profile_id');
    var iPostId = $('#post_id').val();

    $.ajax({
        type: 'POST',
        url: pH7Url.base + 'note/asset/ajax/form/checkPostId',
        data: {'profile_id' : iProfileId, 'post_id' : iPostId},
        success:function(oData)
        {
            var oResponseData = $.parseJSON(oData);

            if(oResponseData.status == 1)
            {
                $('.post_id').fadeIn();
                $('#post_id').css('border','solid #00cc00 1px');
{'fraction_non_alphanumeric': 0.17998779743746188, 'fraction_numerical': 0.020744356314826115, 'mean_word_length': 2.360655737704918, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '4260212', 'n_tokens_mistral': 555, 'n_tokens_neox': 520, 'n_words': 109}