<commit_before><?php
$items = $this->contents;
$isStaticSmartBlock = ($this->obj instanceof Application_Model_Block && $this->obj->isStatic());
$isPlaylist = ($this->obj instanceof Application_Model_Playlist);

if (count($items) && ($isSmartBlock || $isPlaylist)) : ?>
<?php $i = 0; ?>
<?php foreach($items as $item) :
$staticBlock = null;
$nextFileUrl = null;
if ($item['type'] == 2) {
    $bl= new Application_Model_Block($item['item_id']);
    $staticBlock = $bl->isStatic();
    $fileUrl = null;
}
else if ($item['type'] == 1) {
    $fileUrl = null;
}
else if ($item['type'] == 0) {
	$audiofile = Application_Model_StoredFile::RecallById($item['item_id']);
	$fileUrl = $audiofile->getFileUrl();
}

if (($i < count($items) -1) && ($items[$i+1]['type'] == 0)) {<commit_msg>Resolve variable name for isSmartBlock vs. isStaticSmartblock to avoid conflict<commit_after><?php
$items = $this->contents;
$isSmartBlock = ($this->obj instanceof Application_Model_Block);
$isPlaylist = ($this->obj instanceof Application_Model_Playlist);

if (count($items) && ($isSmartBlock || $isPlaylist)) : ?>
<?php $i = 0; ?>
<?php foreach($items as $item) :
$staticBlock = null;
$nextFileUrl = null;
if ($item['type'] == 2) {
    $bl= new Application_Model_Block($item['item_id']);
    $staticBlock = $bl->isStatic();
    $fileUrl = null;
}
else if ($item['type'] == 1) {
    $fileUrl = null;
}
else if ($item['type'] == 0) {
	$audiofile = Application_Model_StoredFile::RecallById($item['item_id']);
	$fileUrl = $audiofile->getFileUrl();
}

if (($i < count($items) -1) && ($items[$i+1]['type'] == 0)) {
{'fraction_non_alphanumeric': 0.2159090909090909, 'fraction_numerical': 0.008838383838383838, 'mean_word_length': 5.687763713080169, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 19, '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': '4262132', 'n_tokens_mistral': 565, 'n_tokens_neox': 549, 'n_words': 122}