<commit_before>/*
Rapid Prototyping with JS is a JavaScript and Node.js book that will teach you how to build mobile and web apps fast. — Read more at
http://rapidprototypingwithjs.com.
*/

$(document).ready(function() {
	var parseApplicationId=''
	var parseJavaScriptKey=''

	// Azat's app, please don't use it! Get your own keys at Parse.com

	parseApplicationId = '<KEY>'
	parseJavaScriptKey = '<KEY>'

	//change parseApplicationId and parseJavaScriptKey to values from Parse.com application dashboard
	Parse.initialize(parseApplicationId, parseJavaScriptKey)

	var Test = Parse.Object.extend('Test')
	var test = new Test()
	$('.btn-save').click(function(){
		try {
			var data = JSON.parse($('textarea').val())
		} catch (e) {
			alert('Invalid JSON')
		}
		if (!data) return false
		test.save(data, {
	    success: function(object) {
	      console.log('Parse.com object is saved: ', object)
				$('.log').html(JSON.stringify(object,null,2))
	      //alternatively you could use alert('Parse.com object is saved')
	    },
	    error: function(object) {
	      console.log('Error! Parse.com object is not saved: ', object)
	    }
		})
	})

})
<commit_msg>changes :kissing:<commit_after>$(document).ready(function() {
	var parseApplicationId = 'GET-YOUR-KEYS-AT-PARSE.COM'
	var parseJavaScriptKey = 'GET-YOUR-KEYS-AT-PARSE.COM'

	// Azat's app, please don't use it! Get your own keys at Parse.com

	parseApplicationId = '<KEY>'
	parseJavaScriptKey = '<KEY>'

	//change parseApplicationId and parseJavaScriptKey to values from Parse.com application dashboard
	Parse.initialize(parseApplicationId, parseJavaScriptKey)

	var Test = Parse.Object.extend('Test')
	var test = new Test()
	$('.btn-save').click(function(){
		try {
			var data = JSON.parse($('textarea').val())
		} catch (e) {
			alert('Invalid JSON')
		}
		if (!data) return false
		test.save(data, {
	    success: function(object) {
	      console.log('Parse.com object is saved: ', object)
				$('.log').html(JSON.stringify(object, null, 2))
	      //alternatively you could use alert('Parse.com object is saved')
	    },
	    error: function(object) {
	      console.log('Error! Parse.com object is not saved: ', object)
	    }
		})
	})

})

{'fraction_non_alphanumeric': 0.14421768707482993, 'fraction_numerical': 0.0009070294784580499, 'mean_word_length': 3.7339055793991416, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7274991', 'n_tokens_mistral': 747, 'n_tokens_neox': 674, 'n_words': 191}