<commit_before><% samples.each do |sample| -%>
<li class="sample">
	<% if sample.sample -%>
	<%= link_to "Sample #{sample.id}", sample_sample_path(sample.sample, sample) %>
	<% elsif sample.patient -%>
	<%= link_to "Sample #{sample.id}", patient_sample_path(@patient, sample) %>
	<% end -%>
	<ul>
		<li class="sample">
			<%= link_to 'Samples', sample_samples_path(sample) %>
			<ul>
				<li><%= link_to 'Create new sample', new_sample_sample_path(sample), :class => 'create' %></li>
				<%= render :partial => '/layouts/samples_hierarchy', :locals => { :samples => sample.samples } %>
			</ul>
		</li>
		<li class="report">
			<%= link_to 'Experiments', sample_experiments_path(sample) %>
			<ul>
				<li><%= link_to 'Perform new experiment', new_sample_experiment_path(sample), :class => 'create' %></li>
				<% sample.experiments.each do |experiment| -%>
				<li class="report"><%= link_to experiment.name, sample_experiment_path(sample, experiment) %></li>
				<%= link_to 'Data files', experiment_data_files_path(experiment) %>
				<ul>
					<li class="report"><%= link_to 'Upload data file', new_experiment_data_file_path(experiment), :class => 'create' %></li>
					<% experiment.data_files.each do |data_file| -%>
					<li class="report"><%= link_to data_file.filename, experiment_data_file_path(experiment, data_file) %></li>
					<% end -%>
				</ul>
				</ul>
				<% end -%>
		</li>
	</ul>
</li>
<% end -%><commit_msg>- fixed patient tree so it renders properly<commit_after><% samples.each do |sample| -%>
<li class="sample">
	<% if sample.sample -%>
	<%= link_to "Sample #{sample.id}", sample_sample_path(sample.sample, sample) %>
	<% elsif sample.patient -%>
	<%= link_to "Sample #{sample.id}", patient_sample_path(@patient, sample) %>
	<% end -%>
	<ul>
		<li class="sample">
			<%= link_to 'Samples', sample_samples_path(sample) %>
			<ul>
				<li><%= link_to 'Create new sample', new_sample_sample_path(sample), :class => 'create' %></li>
				<%= render :partial => '/layouts/samples_hierarchy', :locals => { :samples => sample.samples } %>
			</ul>
		</li>
		<li class="report">
			<%= link_to 'Experiments', sample_experiments_path(sample) %>
			<ul>
				<li><%= link_to 'Perform new experiment', new_sample_experiment_path(sample), :class => 'create' %></li>
				<% sample.experiments.each do |experiment| -%>
				<li class="report">
					<%= link_to experiment.name, sample_experiment_path(sample, experiment) %>
					<ul>
						<li class="report">
							<%= link_to 'Data files', experiment_data_files_path(experiment) %>
							<ul>
								<li class="report"><%= link_to 'Upload data file', new_experiment_data_file_path(experiment), :class => 'create' %></li>
								<% experiment.data_files.each do |data_file| -%>
								<li class="report"><%= link_to data_file.filename, experiment_data_file_path(experiment, data_file) %></li>
								<% end -%>
							</ul>
						</li>
					</ul>
				</li>
				<% end -%>
			</ul>
		</li>
	</ul>
</li>
<% end -%>
{'fraction_non_alphanumeric': 0.20013431833445267, 'fraction_numerical': 0.0, 'mean_word_length': 3.973288814691152, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 107, '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': '3861134', 'n_tokens_mistral': 1264, 'n_tokens_neox': 1045, 'n_words': 218}