<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" xml:lang="en" lang="en">

<head>

  <title><?php echo HTML::chars($title), Arr::get($_SERVER, 'HTTP_HOST', $_SERVER['SERVER_NAME']) ?></title>
  <meta http-equiv="content-type" content="text/html;charset=utf-8" />

  <link rel="stylesheet" href="/css/screen.css" type="text/css" media="screen, projection" />
  <link rel="stylesheet" href="/css/print.css" type="text/css" media="print" />
  <!--[if IE]>
    <link rel="stylesheet" href="/css/ie.css" type="text/css" media="screen, projection" />
  <![endif]-->
  <link rel="stylesheet" href="/css/style.css" type="text/css" media="screen, projection" />

  <?php if (Kohana::$environment === Kohana::PRODUCTION): ?>
  <script type="text/javascript">

    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-3588987-13']);
    _gaq.push(['_trackPageview']);

    (function() {
      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();

  </script>
  <?php endif ?>

</head>

<body>

    <div id="container">

        <div id="header" class="clearfix">
            <div class="container">
                <div class="span-17">
                    <h1><a href="/"><?php echo Arr::get($_SERVER, 'HTTP_HOST', $_SERVER['SERVER_NAME']) ?></a></h1>
                    <p>Indexing <span><?php echo ORM::factory('module')->count_all() ?></span> modules from
                        <span><?php echo DB::query(Database::SELECT, 'SELECT DISTINCT username FROM modules')->execute()->count() ?></span>
                        developers.</p>
                </div>
        
                <div id="search" class="span-7 last">
                    <?php
                        $form = YForm::factory();
                        echo $form->open('search', array('method' => 'get')),
                            $form->text('query')->set_label('')->set_value(Arr::get($_GET, 'query')),
                            $form->submit('')->set_label('Search'),
                            $form->close();
                    ?>
                </div>
            </div>
        </div><!-- end #header -->

      <div id="content" class="container">
    
        <div id="main" class="span-16 colborder">
            <?php echo $content ?>
        </div><!-- end #main -->
    
        <div id="sidebar" class="span-7 last">
        
            <div>
                <h3>Recently Added</h3>
            
                <ol>
                <?php foreach (ORM::factory('module')->limit(5)->order_by('created_at', 'DESC')->find_all() as $module): ?>
                    <li>
                        <span class="username"><?php echo HTML::anchor("modules/$module->username", $module->username) ?></span>
                        /
                        <span class="name"><?php echo HTML::anchor("modules/$module->username/$module->name", $module->name) ?></span>
                        <span style="float:right"><?php echo date('d M H:i', $module->created_at) ?></span>
                    </li>
                <?php endforeach ?>
                </ol>
            </div>
        
            <div>
                <h3>Most Prolific Authors</h3>
            
                <ol>
                <?php foreach (DB::select('username', DB::expr('COUNT(1) as module_count'))->
                    from('modules')->limit(5)->order_by('module_count', 'DESC')->
                    group_by('username')->as_object()->execute() as $module): ?>
                    <li>
                        <?php echo HTML::anchor("modules/$module->username", $module->username) ?>
                        <span style="float:right"><?php echo $module->module_count ?> modules</span>
                    </li>
                <?php endforeach ?>
                </ol>
            </div>
        
        </div>

      </div> <!-- end #content -->

      <div id="footer" class="clearfix">
        <div class="container">
          <ul id="primary-nav" class="span-14">
              <li><a href="/pages/about">About</a></li>
              <li><a href="http://twitter.com/KohanaModules">Status</a></li>
              <li><a href="/pages/suggest">Suggest a Module</a></li>
              <li><a href="/pages/feedback">Feedback</a></li>
          </ul>

          <p class="span-10 last" id="footnote">
              Powered by <?php echo HTML::anchor('http://kohanaframework.org', 'Kohana') ?> v<?php echo Kohana::VERSION ?>
          </p>
        </div>
      </div><!-- end #footer -->

  </div><!-- end #container -->

  <script type="text/javascript">
  var disqus_shortname = 'kohana-modules';
  (function () {
    var s = document.createElement('script'); s.async = true;
    s.src = 'http://disqus.com/forums/kohana-modules/count.js';
    (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
  }());
  </script>

</body>
</html>

<commit_msg>RSS feed auto-discovery and sidebar link<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" xml:lang="en" lang="en">

<head>

  <title><?php echo HTML::chars($title), Arr::get($_SERVER, 'HTTP_HOST', $_SERVER['SERVER_NAME']) ?></title>
  <meta http-equiv="content-type" content="text/html;charset=utf-8" />

  <link rel="stylesheet" href="/css/screen.css" type="text/css" media="screen, projection" />
  <link rel="stylesheet" href="/css/print.css" type="text/css" media="print" />
  <!--[if IE]>
    <link rel="stylesheet" href="/css/ie.css" type="text/css" media="screen, projection" />
  <![endif]-->
  <link rel="stylesheet" href="/css/style.css" type="text/css" media="screen, projection" />
  <link rel="alternate" href="http://feeds.feedburner.com/KohanaModules" type="application/rss+xml" title="kohana-modules.com - Recently Added Modules" />

  <?php if (Kohana::$environment === Kohana::PRODUCTION): ?>
  <script type="text/javascript">

    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-3588987-13']);
    _gaq.push(['_trackPageview']);

    (function() {
      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();

  </script>
  <?php endif ?>

</head>

<body>

    <div id="container">

        <div id="header" class="clearfix">
            <div class="container">
                <div class="span-17">
                    <h1><a href="/"><?php echo Arr::get($_SERVER, 'HTTP_HOST', $_SERVER['SERVER_NAME']) ?></a></h1>
                    <p>Indexing <span><?php echo ORM::factory('module')->count_all() ?></span> modules from
                        <span><?php echo DB::query(Database::SELECT, 'SELECT DISTINCT username FROM modules')->execute()->count() ?></span>
                        developers.</p>
                </div>
        
                <div id="search" class="span-7 last">
                    <?php
                        $form = YForm::factory();
                        echo $form->open('search', array('method' => 'get')),
                            $form->text('query')->set_label('')->set_value(Arr::get($_GET, 'query')),
                            $form->submit('')->set_label('Search'),
                            $form->close();
                    ?>
                </div>
            </div>
        </div><!-- end #header -->

      <div id="content" class="container">
    
        <div id="main" class="span-16 colborder">
            <?php echo $content ?>
        </div><!-- end #main -->
    
        <div id="sidebar" class="span-7 last">
        
            <div>
                <h3>Recently Added</h3>
            
                <ol>
                <?php foreach (ORM::factory('module')->limit(5)->order_by('created_at', 'DESC')->find_all() as $module): ?>
                    <li>
                        <span class="username"><?php echo HTML::anchor("modules/$module->username", $module->username) ?></span>
                        /
                        <span class="name"><?php echo HTML::anchor("modules/$module->username/$module->name", $module->name) ?></span>
                        <span style="float:right"><?php echo date('d M H:i', $module->created_at) ?></span>
                    </li>
                <?php endforeach ?>
                </ol>
            </div>
        
            <div>
                <h3>Most Prolific Authors</h3>
            
                <ol>
                <?php foreach (DB::select('username', DB::expr('COUNT(1) as module_count'))->
                    from('modules')->limit(5)->order_by('module_count', 'DESC')->
                    group_by('username')->as_object()->execute() as $module): ?>
                    <li>
                        <?php echo HTML::anchor("modules/$module->username", $module->username) ?>
                        <span style="float:right"><?php echo $module->module_count ?> modules</span>
                    </li>
                <?php endforeach ?>
                </ol>
            </div>

            <div>
                <h3>Subscribe</h3>
        
                <p><a href="http://feeds.feedburner.com/KohanaModules" rel="alternate"
                    type="application/rss+xml"><img
                    src="http://www.feedburner.com/fb/images/pub/feed-icon16x16.png" alt=""
                    style="vertical-align:middle;border:0"/></a>&nbsp;<a
                    href="http://feeds.feedburner.com/KohanaModules" rel="alternate"
                    type="application/rss+xml">Subscribe via RSS</a></p>
            </div>

        </div>

      </div> <!-- end #content -->

      <div id="footer" class="clearfix">
        <div class="container">
          <ul id="primary-nav" class="span-14">
              <li><a href="/pages/about">About</a></li>
              <li><a href="http://twitter.com/KohanaModules">Status</a></li>
              <li><a href="/pages/suggest">Suggest a Module</a></li>
              <li><a href="/pages/feedback">Feedback</a></li>
          </ul>

          <p class="span-10 last" id="footnote">
              Powered by <?php echo HTML::anchor('http://kohanaframework.org', 'Kohana') ?> v<?php echo Kohana::VERSION ?>
          </p>
        </div>
      </div><!-- end #footer -->

  </div><!-- end #container -->

  <script type="text/javascript">
  var disqus_shortname = 'kohana-modules';
  (function () {
    var s = document.createElement('script'); s.async = true;
    s.src = 'http://disqus.com/forums/kohana-modules/count.js';
    (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
  }());
  </script>

</body>
</html>


{'fraction_non_alphanumeric': 0.19908896034297963, 'fraction_numerical': 0.008306538049303322, 'mean_word_length': 1.985070647827246, 'pattern_counts': {'":': 0, '<': 251, '<?xml version=': 0, '>': 309, 'https://': 2, 'lorem ipsum': 0, 'www.': 7, 'xml': 7}, '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': '5500311', 'n_tokens_mistral': 3431, 'n_tokens_neox': 3286, 'n_words': 598}