<commit_before><HTML>
<HEAD>
  <TITLE>Radix</TITLE>

  <META NAME="description" CONTENT="Convert to and from any base."> 

  <LINK rel="shortcut icon" href="assets/ruby.png"/>

  <LINK type="text/css" rel="stylesheet" href="assets/reset.css" />
  <LINK type="text/css" rel="stylesheet" href="assets/custom.css" />

  <SCRIPT language="javascript" type="text/javascript" src="assets/jquery.js"></SCRIPT>
  <SCRIPT language="javascript" type="text/javascript" src="assets/highlight.js"></SCRIPT>

  <SCRIPT type="text/javascript">
    $(document).ready(function() {
      /* highlight code */
      $('pre').wrapInner('<code></code>');
      hljs.tabReplace = '    ';
      hljs.initHighlightingOnLoad('ruby');
      // $(".block").animate({"left": "+=50px"}, "slow");
      $('.main').mouseover(function(){
        $('.main').animate({backgroundPosition: '100px 0px'});
        $('.main').animate({backgroundPosition: '0px 0px'});
      });
    });
  </SCRIPT>

  <LINK type="text/css" rel="stylesheet" href="assets/highlight.css" />
</HEAD>
<BODY>

<div id="header">
<div class="centered">
  <div class="title">
    <h1>Radix</h1>
    <div id="nav">
      <ul>
        <li><a href="docs/qed">QED</a></li>
        <li><a href="docs/api">API</a></li>
        <li><a href="http://rubygems.org/gems/radix">GEM</a></li>
        <li><a href="http://github.com/rubyworks/radix">CODE</a></li>
        <li><a href="http://groups.google.com/group/rubyworks-mailinglist">MAIL</a></li>
      </ul>
    </div>
  </div>
</div>
</div>

<div class="main">
<div class="centered">
    <div id="doc" style="clear: both;">
      <p>Radix is a Ruby gem for converting to and from any base.</p><br/>
      <a href="#" onclick="$('#readme').toggle();">Toggle README</a>
    </div>
</div>
</div>

<div id="readme" style="display: none;">
<div class="centered">
<h2>DESCRIPTION</h2>
<p>
Radix provides the means of converting to and from any base.
</p>
<p>
In addition, string-based notations need not be in ASCII order
&#8212;any user-defined notation can be used.
</p>
<h2>FEATURES/ISSUES</h2>
<ul>
<li><p>
Convert to and from any base.
</p>
</li>
<li><p>
Define custom character sets.
</p>
</li>
<li><p>
Can be used to encode/decode strings.
</p>
</li>
<li><p>
Very intuitive API.
</p>
</li>
</ul>
<h2>RELEASE NOTES</h2>
<p>
Please see the HISTORY.rdoc file.
</p>
<h2>SYNOPSIS</h2>
<p>
Base conversions with ASCII ordered notations are easy in Ruby.
</p>
<pre>
  255.to_s(16)   #=&gt; &quot;FF&quot;
  &quot;FF&quot;.to_i(16)  #=&gt; 255
</pre>
<p>
But Ruby reaches it&#8217;s limit at base 36.
</p>
<pre>
  255.to_s(37)   #=&gt; Error
</pre>
<p>
Radix provides the means of converting to and from any base.
</p>
<p>
For example, a number in base 256 can be represented by the array [100, 10]
(ie. 100**256 + 10**1) and can be convert to base 10.
</p>
<pre>
  [100,10].b(256).to_a(10)  #=&gt; [2,5,6,1,0]
</pre>
<p>
Or, to get a string representation for any base upto 62.
</p>
<pre>
  [100,10].b(256).to_s(10)  #=&gt; &quot;25610&quot;
</pre>
<p>
A string representation of anumber can be converted too, again, upto base
62.
</p>
<pre>
  &quot;10&quot;.b(62).to_s(10)  #=&gt; &quot;62&quot;
</pre>
<p>
To use a custom character set, use an array of characters as the base
rather than an integer. For example we can convert a base 10 number to
another base 10 number using a different encoding.
</p>
<pre>
  base = [:Q, :W, :E, :R, :T, :Y, :U, :I, :O, :U]

  &quot;10&quot;.b(10).to_a(base)  #=&gt; [:W, :Q]
</pre>
<p>
To learn more have a look at the <a
href="http://rubyworks.github.com/radix/docs/qed">QED</a>.
</p>
<h2>HOW TO INSTALL</h2>
<p>
To install with RubyGems simply open a console and type:
</p>
<pre>
  $ gem install radix
</pre>
<p>
Radix follows <a href="http://rubyworks.github.com/setup">Ruby Setup</a>
package standard.
</p>
<h2>LICENSE/COPYRIGHT</h2>
<p>
Copyright &#169; 2009 <NAME>
</p>
<p>
This program is ditributed unser the terms of the Apache 2.0 license.
</p>
<p>
See LICENSE file for details.
</p>

</div>
</div>

<div id="footer">
<div class="centered">
  <div class="advert">
    <!-- TODO: %= advert % -->
  </div>
  <div class="copyright">
    Copyright (c) 2009 <NAME>
  </div>
</div>
</div>

</BODY>
</HTML>

<!-- WebMe Copyright (c) 2009 <NAME> -->

<commit_msg>admin: minor improvement to website<commit_after><HTML>
<HEAD>
  <TITLE>Radix</TITLE>

  <META NAME="description" CONTENT="Convert to and from any base."> 

  <LINK rel="shortcut icon" href="assets/ruby.png"/>

  <LINK type="text/css" rel="stylesheet" href="assets/reset.css" />
  <LINK type="text/css" rel="stylesheet" href="assets/custom.css" />

  <SCRIPT language="javascript" type="text/javascript" src="assets/jquery.js"></SCRIPT>
  <SCRIPT language="javascript" type="text/javascript" src="assets/highlight.js"></SCRIPT>

  <SCRIPT type="text/javascript">
    $(document).ready(function() {
      /* highlight code */
      $('pre').wrapInner('<code></code>');
      hljs.tabReplace = '    ';
      hljs.initHighlightingOnLoad('ruby');
      // $(".block").animate({"left": "+=50px"}, "slow");
      $('.main').mouseover(function(){
        $('.main').animate({backgroundPosition: '100px 0px'});
        $('.main').animate({backgroundPosition: '0px 0px'});
      });
    });
  </SCRIPT>

  <LINK type="text/css" rel="stylesheet" href="assets/highlight.css" />
</HEAD>
<BODY>

<div id="header">
<div class="centered">
  <div class="title">
    <h1>Radix</h1>
    <div id="nav">
      <ul>
        <li><a href="docs/qed">QED</a></li>
        <li><a href="docs/api">API</a></li>
        <li><a href="http://rubygems.org/gems/radix">GEM</a></li>
        <li><a href="http://github.com/rubyworks/radix">CODE</a></li>
        <li><a href="http://groups.google.com/group/rubyworks-mailinglist">MAIL</a></li>
      </ul>
    </div>
  </div>
</div>
</div>

<div class="main">
<div class="centered">
    <div id="doc" style="clear: both;">
      <p>Radix is a Ruby gem for converting to and from any base.</p><br/>
      <a href="#" onclick="$('#readme').toggle();">Toggle README</a>
    </div>
</div>
</div>

<div id="readme" style="display: none;">
<div class="centered">
<h2>DESCRIPTION</h2>
<p>
Radix provides the means of converting to and from any base.
</p>
<p>
In addition, string-based notations need not be in ASCII order
&#8212;any user-defined notation can be used.
</p>
<h2>FEATURES/ISSUES</h2>
<ul>
<li><p>
Convert to and from any base.
</p>
</li>
<li><p>
Define custom character sets.
</p>
</li>
<li><p>
Can be used to encode/decode strings.
</p>
</li>
<li><p>
Very intuitive API.
</p>
</li>
</ul>
<h2>RELEASE NOTES</h2>
<p>
Please see the HISTORY.rdoc file.
</p>
<h2>SYNOPSIS</h2>
<p>
Basic base conversions in Ruby are easy.
</p>
<pre>
  255.to_s(16)   #=&gt; &quot;FF&quot;
  &quot;FF&quot;.to_i(16)  #=&gt; 255
</pre>
<p>
But Ruby reaches it&#8217;s limit at base 36.
</p>
<pre>
  255.to_s(37)   #=&gt; Error
</pre>
<p>
Radix can handle any base. For example, a number in base 256 can be represented
by the array [100, 10] (ie. 100**256 + 10**1) and can be convert to base 10.
</p>
<pre>
  [100,10].b(256).to_a(10)  #=&gt; [2,5,6,1,0]
</pre>
<p>
Or, to get a string representation for any base upto 62.
</p>
<pre>
  [100,10].b(256).to_s(10)  #=&gt; &quot;25610&quot;
</pre>
<p>
A string representation of a number, up to base 62, can be converted as well.
</p>
<pre>
  &quot;10&quot;.b(62).to_s(10)  #=&gt; &quot;62&quot;
</pre>
<p>
To use a custom character set, use an array of characters as the base
rather than an integer. For example we can convert a base 10 number to
another base 10 number using a different encoding.
</p>
<pre>
  base = [:Q, :W, :E, :R, :T, :Y, :U, :I, :O, :U]

  &quot;10&quot;.b(10).to_a(base)  #=&gt; [:W, :Q]
</pre>
<p>
To learn more have a look at the <a
href="http://rubyworks.github.com/radix/docs/qed">QED</a>.
</p>
<h2>HOW TO INSTALL</h2>
<p>
To install with RubyGems simply open a console and type:
</p>
<pre>
  $ gem install radix
</pre>
<p>
Radix follows <a href="http://rubyworks.github.com/setup">Ruby Setup</a>
package standard.
</p>
<h2>LICENSE/COPYRIGHT</h2>
<p>
Copyright &#169; 2009 <NAME>
</p>
<p>
This program is ditributed unser the terms of the Apache 2.0 license.
</p>
<p>
See LICENSE file for details.
</p>

</div>
</div>

<div id="footer">
<div class="centered">
  <div class="advert">
    <!-- TODO: %= advert % -->
  </div>
  <div class="copyright">
    Copyright (c) 2009 <NAME>
  </div>
</div>
</div>

</BODY>
</HTML>

<!-- WebMe Copyright (c) 2009 <NAME> -->


{'fraction_non_alphanumeric': 0.21321109543958627, 'fraction_numerical': 0.031264692054536906, 'mean_word_length': 3.688154269972452, 'pattern_counts': {'":': 2, '<': 323, '<?xml version=': 0, '>': 323, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6669460', 'n_tokens_mistral': 3590, 'n_tokens_neox': 3293, 'n_words': 913}