<commit_before><?php

require_once("include/oembed.php");
require_once('include/event.php');




function diaspora2bb($s) {

	$s = str_replace(array('\\**','\\__','\\*','\\_'), array('-^doublestar^-','-^doublescore-^','-^star^-','-^score^-'),$s);
	$s = preg_replace("/\*\*\*(.+?)\*\*\*/", '[b][i]$1[/i][/b]', $s);
	$s = preg_replace("/\_\_\_(.+?)\_\_\_/", '[b][i]$1[/i][/b]', $s);
	$s = preg_replace("/\*\*(.+?)\*\*/", '[b]$1[/b]', $s);
	$s = preg_replace("/\_\_(.+?)\_\_/", '[b]$1[/b]', $s);
	$s = preg_replace("/\*(.+?)\*/", '[i]$1[/i]', $s);
	$s = preg_replace("/\_(.+?)\_/", '[i]$1[/i]', $s);
	$s = str_replace(array('-^doublestar^-','-^doublescore-^','-^star^-','-^score^-'), array('**','__','*','_'), $s);
	$s = preg_replace('/\[(.+?)\]\((.+?)\)/','[url=$2]$1[/url]',$s);
	$s = preg_replace('/\!\[(.+?)\]\((.+?)\)/','[img]$2[/img]',$s);<commit_msg>translate D* images (markdown) before links, they overlap and conflict<commit_after><?php

require_once("include/oembed.php");
require_once('include/event.php');




function diaspora2bb($s) {

	$s = str_replace(array('\\**','\\__','\\*','\\_'), array('-^doublestar^-','-^doublescore-^','-^star^-','-^score^-'),$s);
	$s = preg_replace("/\*\*\*(.+?)\*\*\*/", '[b][i]$1[/i][/b]', $s);
	$s = preg_replace("/\_\_\_(.+?)\_\_\_/", '[b][i]$1[/i][/b]', $s);
	$s = preg_replace("/\*\*(.+?)\*\*/", '[b]$1[/b]', $s);
	$s = preg_replace("/\_\_(.+?)\_\_/", '[b]$1[/b]', $s);
	$s = preg_replace("/\*(.+?)\*/", '[i]$1[/i]', $s);
	$s = preg_replace("/\_(.+?)\_/", '[i]$1[/i]', $s);
	$s = str_replace(array('-^doublestar^-','-^doublescore-^','-^star^-','-^score^-'), array('**','__','*','_'), $s);
	$s = preg_replace('/\!\[(.+?)\]\((.+?)\)/','[img]$2[/img]',$s);
	$s = preg_replace('/\[(.+?)\]\((.+?)\)/','[url=$2]$1[/url]',$s);
{'fraction_non_alphanumeric': 0.4702549575070821, 'fraction_numerical': 0.0113314447592068, 'mean_word_length': 4.255952380952381, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7284356', 'n_tokens_mistral': 875, 'n_tokens_neox': 813, 'n_words': 88}