<commit_before><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>SoundManager 2 Demo: Play MP3 links on a page, "page as playlist" style</title>
<meta name="robots" content="noindex" />

<!-- Page player core CSS -->
<%= stylesheet_link_tag ActionController::Base.helpers.asset_path("rglossa/speech/wfplayer.css") %>

<!-- soundManager.useFlashBlock: related CSS -->
<%= stylesheet_link_tag ActionController::Base.helpers.asset_path("rglossa/speech/wfplayer-flashblock.css") %>

<style type="text/css">
ul.playlist li .comment {font-size:0.65em;opacity:0.5}
</style>

<!-- soundManager API -->
<%= javascript_include_tag ActionController::Base.helpers.asset_path("rglossa/speech/soundmanager2-nodebug-jsmin.js") %>

<script>
  var total_width = <%= @total_imgwidth %>;

/* --------

  Config override: This demo uses shiny flash 9 stuff, overwriting Flash 8-based defaults
  Alternate PP_CONFIG object must be defined before soundManager.onready()/onload() fire.
  Alternately, edit the config in page-player.js to simply use the values below by default

-------- */
soundManager.setup({
  flashVersion: 9,
  preferFlash: !window.location.toString().match(/experimental/i), // for visualization effects
  debugMode: false,
  debugFlash: false,
  useHighPerformance: true, // keep flash on screen, boost performance
  wmode: 'transparent', // transparent SWF, if possible
  url: '<%= ActionController::Base.helpers.asset_path("rglossa/speech/") %>'
});

// custom page player configuration

var PP_CONFIG = {
  autoStart: true,      // begin playing first sound when page loads
  playNext: false,        // stop after one sound, or play through list until end
  allowRightClick: true,
  useThrottling: true,  // try to rate-limit potentially-expensive calls (eg. dragging position around)</span>
  usePeakData: true,     // [Flash 9 only] whether or not to show peak data (left/right channel values) - nor noticable on CPU
  useWaveformData: false,// [Flash 9 only] show raw waveform data - WARNING: LIKELY VERY CPU-HEAVY
  useEQData: false,      // [Flash 9 only] show EQ (frequency spectrum) data
  useFavIcon: false     // try to apply peakData to address bar (Firefox + Opera) - performance note: appears to make Firefox 3 do some temporary, heavy disk access/swapping/garbage collection at first(?) - may be too heavy on CPU
}

</script>

<!-- Page player main script -->
<%= javascript_include_tag ActionController::Base.helpers.asset_path("rglossa/speech/wfplayer.js") %>
<%= javascript_include_tag ActionController::Base.helpers.asset_path("jquery.min") %>

</head>

<body>
 <div id="debug"></div>
 <div id="bar"></div>
 <ul class="playlist" data-value="<%= @conf['output_dir'] %>">
  <li><span data-value="<%= @file %>"><div class="btn"><img src="<%= ActionController::Base.helpers.asset_path('rglossa/speech/play-pause.png') %>"></div>&nbsp;<div class="btn">Play / Pause</div></span></li>
 </ul>
 <%
   @basenames.zip(@imgwidths, (0..Float::INFINITY)).each do |basename, imgwidth, i|
     width = 100 * imgwidth / @total_imgwidth
   %><img id='small<%= i %>' src='<%= @conf['output_dir'] %>/<%= basename %>-wave.jpg' width='<%= width %>%' height='70' style='display:none'><%
   end<commit_msg>Quick fix for wrong paths with a relative URL root.<commit_after><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>SoundManager 2 Demo: Play MP3 links on a page, "page as playlist" style</title>
<meta name="robots" content="noindex" />

<!-- Page player core CSS -->
<%= stylesheet_link_tag ActionController::Base.helpers.asset_path("rglossa/speech/wfplayer.css") %>

<!-- soundManager.useFlashBlock: related CSS -->
<%= stylesheet_link_tag ActionController::Base.helpers.asset_path("rglossa/speech/wfplayer-flashblock.css") %>

<style type="text/css">
ul.playlist li .comment {font-size:0.65em;opacity:0.5}
</style>

<!-- soundManager API -->
<%= javascript_include_tag ActionController::Base.helpers.asset_path("rglossa/speech/soundmanager2-nodebug-jsmin.js") %>

<script>
  var total_width = <%= @total_imgwidth %>;

/* --------

  Config override: This demo uses shiny flash 9 stuff, overwriting Flash 8-based defaults
  Alternate PP_CONFIG object must be defined before soundManager.onready()/onload() fire.
  Alternately, edit the config in page-player.js to simply use the values below by default

-------- */
soundManager.setup({
  flashVersion: 9,
  preferFlash: !window.location.toString().match(/experimental/i), // for visualization effects
  debugMode: false,
  debugFlash: false,
  useHighPerformance: true, // keep flash on screen, boost performance
  wmode: 'transparent', // transparent SWF, if possible
  url: '<%= File.join ENV['RAILS_RELATIVE_URL_ROOT'], ActionController::Base.helpers.asset_path("rglossa/speech/") %>'
});

// custom page player configuration

var PP_CONFIG = {
  autoStart: true,      // begin playing first sound when page loads
  playNext: false,        // stop after one sound, or play through list until end
  allowRightClick: true,
  useThrottling: true,  // try to rate-limit potentially-expensive calls (eg. dragging position around)</span>
  usePeakData: true,     // [Flash 9 only] whether or not to show peak data (left/right channel values) - nor noticable on CPU
  useWaveformData: false,// [Flash 9 only] show raw waveform data - WARNING: LIKELY VERY CPU-HEAVY
  useEQData: false,      // [Flash 9 only] show EQ (frequency spectrum) data
  useFavIcon: false     // try to apply peakData to address bar (Firefox + Opera) - performance note: appears to make Firefox 3 do some temporary, heavy disk access/swapping/garbage collection at first(?) - may be too heavy on CPU
}

</script>

<!-- Page player main script -->
<%= javascript_include_tag ActionController::Base.helpers.asset_path("rglossa/speech/wfplayer.js") %>
<%= javascript_include_tag ActionController::Base.helpers.asset_path("jquery.min") %>

</head>

<body>
 <div id="debug"></div>
 <div id="bar"></div>
 <ul class="playlist" data-value="<%= @conf['output_dir'] %>">
  <li><span data-value="<%= @file %>"><div class="btn"><img src="<%= File.join ENV['RAILS_RELATIVE_URL_ROOT'], ActionController::Base.helpers.asset_path('rglossa/speech/play-pause.png') %>"></div>&nbsp;<div class="btn">Play / Pause</div></span></li>
 </ul>
 <%
   @basenames.zip(@imgwidths, (0..Float::INFINITY)).each do |basename, imgwidth, i|
     width = 100 * imgwidth / @total_imgwidth
   %><img id='small<%= i %>' src='<%= @conf['output_dir'] %>/<%= basename %>-wave.jpg' width='<%= width %>%' height='70' style='display:none'><%
   end
{'fraction_non_alphanumeric': 0.16364421416234887, 'fraction_numerical': 0.009499136442141624, 'mean_word_length': 4.537051792828685, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 101, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 4}, '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': '7387377', 'n_tokens_mistral': 2370, 'n_tokens_neox': 2195, 'n_words': 592}