<commit_before>///////new function.js file/////
function add_div()
{
/*	var lastChild = document.getElementById("articlefields").lastChild.id;
	//var lastChildID = lastChild.id;
	alert(lastChild);
	var children = document.getElementById("articlefields").children;
	if (children.length > 1) {
		alert(children[0].id);
	var first = children[0].id;
    var last = children[children.length - 1];
    var second = children[1];
}

*/	//document.getElementById("demo").innerHTML = list;
//coe to add div when add more button is clicked///////
var div_open = document.createElement("div");
div_open.id = 'art2';
div_open.className = 'row';
var div_inner1 = document.createElement("div");
div_inner1.className = 'col-sm-6';
var article_name_label = document.createElement("Label");
article_name_label.innerHTML = "Article Name";
var article_title_label = document.createElement("Label");
article_title_label.innerHTML = "Article Title";
var breakline = document.createElement("br");	
div_inner1.appendChild(article_name_label);
div_inner1.appendChild(breakline);
div_inner1.appendChild(breakline);
div_inner1.appendChild(breakline);
div_inner1.appendChild(article_title_label);
div_open.appendChild(div_inner1);
//document.getElementById('art1').appendChild(breakline);
//document.getElementById('art1').appendChild(breakline);
document.getElementById('art1').appendChild(div_open);


/* <div name="art" class="row">
        <div class='col-sm-6' id="articlelables">
		<label for="title">Article Title</label><br><br>
		<label for="name">Article Name</label>
		</div>
		<div class='col-sm-6' id="articlefields">
		<input type="text" name="article_title" id="t1"><br><br>
		<input type="text" name="article_name" id="t2"><br><br>
		</div>
		</div>

 */
/*
<div name="art1" class="row">
        <div class='col-sm-6' id="articlelables">
		<label for="title">Article Title</label><br><br>
		<label for="name">Article Name</label>
		</div>
		<div class='col-sm-6' id="articlefields">
		<input type="text" name="article_title" id="t1"><br><br>
		<input type="text" name="article_name" id="t2"><br><br>
		</div>
		</div>
/*	
/////code to add html elements to required divd
var article_name_label = document.createElement("Label");
article_name_label.innerHTML = "Article Name";
var article_name_text = document.createElement("input");

var article_title_label = document.createElement("Label");
article_title_label.innerHTML = "Article Title";
var article_title_text = document.createElement("input");

var breakline = document.createElement("br");	

var element = document.getElementById("articlelables");
element.appendChild(breakline);
element.appendChild(breakline);
element.appendChild(article_title_label);
var element = document.getElementById("articlefields");
element.appendChild(breakline);
element.appendChild(breakline);
element.appendChild(article_title_text);
element.appendChild(breakline);
element.appendChild(breakline);
var element = document.getElementById("articlelables");
element.appendChild(breakline);
element.appendChild(breakline);
element.appendChild(article_name_label);
var element = document.getElementById("articlefields");
element.appendChild(breakline);
element.appendChild(breakline);
element.appendChild(article_name_text);
*/
}
function delete_div()
{
	
}<commit_msg>test code<commit_after>///////new function.js file/////
function add_div()
{
/*	var lastChild = document.getElementById("articlefields").lastChild.id;
	//var lastChildID = lastChild.id;
	alert(lastChild);
	var children = document.getElementById("articlefields").children;
	if (children.length > 1) {
		alert(children[0].id);
	var first = children[0].id;
    var last = children[children.length - 1];
    var second = children[1];
}

*/	//document.getElementById("demo").innerHTML = list;
//coe to add div when add more button is clicked///////
var div_open = document.createElement("div");
div_open.id = 'art2';
div_open.className = 'row';
var div_inner1 = document.createElement("div");
div_inner1.className = 'col-sm-6';
var article_name_label = document.createElement("Label");
article_name_label.innerHTML = "Article Name";
var article_title_label = document.createElement("Label");
article_title_label.innerHTML = "Article Title";
var breakline = document.createElement("br");	
div_inner1.appendChild(article_name_label);
div_inner1.appendChild(breakline);
div_inner1.appendChild(breakline);
div_inner1.appendChild(breakline);
div_inner1.appendChild(article_title_label);
div_open.appendChild(div_inner1);
//document.getElementById('art1').appendChild(breakline);
//document.getElementById('art1').appendChild(breakline);
document.getElementById('art1').appendChild(div_open);


/* <div name="art" class="row">
        <div class='col-sm-6' id="articlelables">
		<label for="title">Article Title</label><br><br>
		<label for="name">Article Name</label>
		</div>
		<div class='col-sm-6' id="articlefields">
		<input type="text" name="article_title" id="t1"><br><br>
		<input type="text" name="article_name" id="t2"><br><br>
		</div>
		</div>

 */
/*
<div name="art1" class="row">
        <div class='col-sm-6' id="articlelables">
		<label for="title">Article Title</label><br><br>
		<label for="name">Article Name</label>
		</div>
		<div class='col-sm-6' id="articlefields">
		<input type="text" name="article_title" id="t1"><br><br>
		<input type="text" name="article_name" id="t2"><br><br>
		</div>
		</div>
/*	
/////code to add html elements to required divd
var article_name_label = document.createElement("Label");
article_name_label.innerHTML = "Article Name";
var article_name_text = document.createElement("input");

var article_title_label = document.createElement("Label");
article_title_label.innerHTML = "Article Title";
var article_title_text = document.createElement("input");

var breakline = document.createElement("br");	

var element = document.getElementById("articlelables");
element.appendChild(breakline);
element.appendChild(breakline);
element.appendChild(article_title_label);
var element = document.getElementById("articlefields");
element.appendChild(breakline);
element.appendChild(breakline);
element.appendChild(article_title_text);
element.appendChild(breakline);
element.appendChild(breakline);
var element = document.getElementById("articlelables");
element.appendChild(breakline);
element.appendChild(breakline);
element.appendChild(article_name_label);
var element = document.getElementById("articlefields");
element.appendChild(breakline);
element.appendChild(breakline);
element.appendChild(article_name_text);
*/
}
{
	
}
{'fraction_non_alphanumeric': 0.16274809160305342, 'fraction_numerical': 0.008244274809160306, 'mean_word_length': 6.688967136150235, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 77, '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': '3702720', 'n_tokens_mistral': 2024, 'n_tokens_neox': 1960, 'n_words': 371}