<commit_before><?php
//Handle database connections
include "db.php";

//Connect to the database
connectDB();
?>

<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>How-I-Know-It</title>
</head>
<body>
	<!-- Form for submitting new content which the user can then read -->
	<div id='form'>
		<form action='reading.php' method='post' >
			Title <input type='text' name='title' required> <br />
			Please paste the document text <br />
			<textarea id='content' name='content' cols='100' rows='20' required> </textarea> <br />
			<button type="submit">Know it now!</button>
            <!-- <input type='hidden' name='cmd' value='process' /> -->
		</form>
	</div>

	<!-- List of content that the user has submitted -->
	<div id='mydocs'>
		<?php
			$media = getMedia();
			if(count($media) > 0) {
				$title = "title";
				foreach($media as $item) {
					echo "<p class='media'>" . $item->$title . "</p><br />";
				} 
			} else {
				echo "You have not added any media items yet.";
			}<commit_msg>fixing object references<commit_after><?php
//Handle database connections
include "db.php";

//Connect to the database
connectDB();
?>

<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>How-I-Know-It</title>
</head>
<body>
	<!-- Form for submitting new content which the user can then read -->
	<div id='form'>
		<form action='reading.php' method='post' >
			Title <input type='text' name='title' required> <br />
			Please paste the document text <br />
			<textarea id='content' name='content' cols='100' rows='20' required> </textarea> <br />
			<button type="submit">Know it now!</button>
            <!-- <input type='hidden' name='cmd' value='process' /> -->
		</form>
	</div>

	<!-- List of content that the user has submitted -->
	<div id='mydocs'>
		<?php
			$media = getMedia();
			if(count($media) > 0) {
				$title = "title";
				for($i = 0; $i < count($media); ++$i) {
					echo "<p class='media'>" . $media[$i] . "</p><br />";
				} 
			} else {
				echo "You have not added any media items yet.";
			}
{'fraction_non_alphanumeric': 0.2004914004914005, 'fraction_numerical': 0.007371007371007371, 'mean_word_length': 3.2594142259414225, 'pattern_counts': {'":': 0, '<': 64, '<?xml version=': 0, '>': 64, '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': '3035617', 'n_tokens_mistral': 777, 'n_tokens_neox': 676, 'n_words': 206}