<commit_before>// Enable materialize selects
// Found here: http://stackoverflow.com/questions/28258106/materialize-css-select-doesnt-seem-to-render
$(document).ready(function() {
    $('select').material_select();
});

// Load schema
var Schema = new Schema();

$("#sel-thing").change(function ()
{
	
	
	// Remove precreated input fields
	$(".deleatable").remove();
	// What was selected
	// TODO: make generic
	var choosen = $("#sel-thing option:selected").text();
	var type = Schema.getType(choosen);
	
		$.each(type.properties, function(key, value) {
			//display the key and value pair
			$("#left-column").append("<div class=\"form-group deleatable\"><label for=\"" + value + key + "\">" + capitalizeFirstLetter(value) + ":</label><input type=\"text\" class=\"form-control\" id=\"" + value + key + "\"></div>");
				
		});
});
		
		/*
 *
 *
 * Loading schema.org objects from jsonld on webpage start
 *
 *
 */
 
 
$.getJSON('./../src/schema/schema.json', {
	format: "json"
}, function (json)
{
/**
   creating Schema from received json
**/
	
	Schema.addJSON(json);
	//console.log(Schema);
/**
   getting childrens from schema, childrens are subclases of schema
**/
	//types = schema.getType("Event");
	//console.log(types);
/**
   creating list of options based on schema types
**/
	//Form.createList(types);


}).fail(function (jqxhr, textStatus, error)
{
	alert("unable to load jsonld!");
});
	





<commit_msg>Fade in input fields<commit_after>// Enable materialize selects
// Found here: http://stackoverflow.com/questions/28258106/materialize-css-select-doesnt-seem-to-render
$(document).ready(function() {
    $('select').material_select();
});

// Load schema
var Schema = new Schema();

$("#sel-thing").change(function () {
    // Remove precreated input fields
    $(".deleatable").remove();

    // What was selected
    var choosen = $("#sel-thing option:selected").text();
    var type = Schema.getType(choosen);
    $("#left-column").css("opacity", "0.0");
    $.each(type.properties, function(key, value) {
	//display the key and value pair
	$("#left-column").append("<div class=\"form-group deleatable\"><label for=\"" + value + key + "\">" + capitalizeFirstLetter(value) + ":</label><input type=\"text\" class=\"form-control\" id=\"" + value + key + "\"></div>");
    });
    $("#left-column").animate({opacity: 1.0}, 1000);
});

/*
 *
 *
 * Loading schema.org objects from jsonld on webpage start
 *
 *
 */
$.getJSON('./../src/schema/schema.json', {format: "json"}, function (json) {
    /**
       creating Schema from received json
    **/
    
    Schema.addJSON(json);
    //console.log(Schema);
    /**
       getting childrens from schema, childrens are subclases of schema
    **/
    //types = schema.getType("Event");
    //console.log(types);
    /**
       creating list of options based on schema types
    **/
    //Form.createList(types);


}).fail(function (jqxhr, textStatus, error) {
    alert("unable to load jsonld!");
});







{'fraction_non_alphanumeric': 0.19919246298788695, 'fraction_numerical': 0.008075370121130552, 'mean_word_length': 3.3464912280701755, 'pattern_counts': {'":': 2, '<': 13, '<?xml version=': 0, '>': 13, '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': '940621', 'n_tokens_mistral': 970, 'n_tokens_neox': 917, 'n_words': 217}