<commit_before>
/*

	Set of statistics for the protein tree pipeline
	Requires a write access to the database to create
	  temporary tables / keys

*/

/*
	Number of genes, peptides per species, proportion covered by the gene trees
	rel65/pt: 7 min
	rel65/nc: 15 sec
*/

CREATE TEMPORARY TABLE tmp_coverage
	SELECT
		member.taxon_id,
		SUM(source_name='ENSEMBLGENE') AS nb_genes,
		SUM(source_name='ENSEMBLPEP') AS nb_pep,
		SUM(gene_tree_node_attr.taxon_id = member.taxon_id) AS nb_pep_spectree,
		SUM(gene_tree_node_attr.taxon_id IS NOT NULL AND gene_tree_node_attr.taxon_id != member.taxon_id) AS nb_pep_anctree
	FROM<commit_msg>Universal set of commands<commit_after>
/*

	Set of statistics for the gene tree pipelines
	Requires a write access to the database to create
	  temporary tables / keys

*/

/*
	Number of genes, peptides per species, proportion covered by the gene trees
	rel65/pt: 7 min
	rel65/nc: 15 sec
*/

CREATE TEMPORARY TABLE tmp_coverage
	SELECT
		member.taxon_id,
		SUM(source_name='ENSEMBLGENE') AS nb_genes,
		SUM(source_name='ENSEMBLPEP') AS nb_pep,
		SUM(gene_tree_node_attr.taxon_id = member.taxon_id) AS nb_pep_spectree,
		SUM(gene_tree_node_attr.taxon_id IS NOT NULL AND gene_tree_node_attr.taxon_id != member.taxon_id) AS nb_pep_anctree
	FROM
{'fraction_non_alphanumeric': 0.0706436420722135, 'fraction_numerical': 0.01098901098901099, 'mean_word_length': 4.795454545454546, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6229965', 'n_tokens_mistral': 512, 'n_tokens_neox': 467, 'n_words': 132}