<commit_before>/*
 * @file
 * This javascript is returned and executed when you create a new node.
 */
$('#topic_name').autocomplete('disable');
$('#new_topic').fadeOut('fast');
$('#topic_name').attr('value','');
$('#topic_grabTopic').attr('value','null');
$('#topic_addSynapse').attr('value','false');

var newnode = <%= @topic.self_as_json.html_safe %>;
var x = <%= @position['x'] %>;
var y = <%= @position['y'] %>;
  
<commit_msg>fix #145 - autocomplete widget fades out on topic creation<commit_after>/*
 * @file
 * This javascript is returned and executed when you create a new node.
 */
$('#topic_name').autocomplete('disable');
$('.ui-autocomplete.ui-widget').fadeOut('fast');
$('#new_topic').fadeOut('fast');
$('#topic_name').attr('value','');
$('#topic_grabTopic').attr('value','null');
$('#topic_addSynapse').attr('value','false');

var newnode = <%= @topic.self_as_json.html_safe %>;
var x = <%= @position['x'] %>;
var y = <%= @position['y'] %>;
  

{'fraction_non_alphanumeric': 0.2552083333333333, 'fraction_numerical': 0.003125, 'mean_word_length': 6.33587786259542, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5280140', 'n_tokens_mistral': 335, 'n_tokens_neox': 317, 'n_words': 65}