<commit_before><html>
<head>
  <link rel="stylesheet" type="text/css" href="main.css">
</head>
<body>
  <div class="main">
    <h1>Namespace: joker.string</h1>
    <span class="var-added">v1.0</span>
    <p class="var-docstr">Implements simple functions to manipulate strings.</p>
    <h2>Index</h2>
    <ul class="index">
      <li>
  <a href="#blank?">blank?</a>
</li>
<li>
  <a href="#capitalize">capitalize</a>
</li>
<li>
  <a href="#ends-with?">ends-with?</a>
</li>
<li>
  <a href="#escape">escape</a>
</li>
<li>
  <a href="#includes?">includes?</a>
</li>
<li>
  <a href="#index-of">index-of</a>
</li>
<li>
  <a href="#join">join</a>
</li>
<li>
  <a href="#pad-left">pad-left</a>
</li>
<li>
  <a href="#pad-right">pad-right</a>
</li>
<li>
  <a href="#replace">replace</a>
</li>
<li>
  <a href="#split">split</a>
</li>
<li>
  <a href="#split-lines">split-lines</a>
</li>
<li>
  <a href="#starts-with?">starts-with?</a>
</li>
<li>
  <a href="#trim-space">trim-space</a>
</li>

    </ul>
    <ul>
      <li>
  <h3 id="blank?">blank?</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(blank? s)</code></div>
</pre>
  <p class="var-docstr">True if s is nil, empty, or contains only whitespace.</p>
  
</li>
<li>
  <h3 id="capitalize">capitalize</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(capitalize s)</code></div>
</pre>
  <p class="var-docstr">Converts first character of the string to upper-case, all other<br>  characters to lower-case.</p>
  
</li>
<li>
  <h3 id="ends-with?">ends-with?</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(ends-with? s substr)</code></div>
</pre>
  <p class="var-docstr">True if s ends with substr.</p>
  
</li>
<li>
  <h3 id="escape">escape</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(escape s cmap)</code></div>
</pre>
  <p class="var-docstr">Return a new string, using cmap to escape each character ch<br>  from s as follows:<br><br>  If (cmap ch) is nil, append ch to the new string.<br>  If (cmap ch) is non-nil, append (str (cmap ch)) instead.</p>
  
</li>
<li>
  <h3 id="includes?">includes?</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(includes? s substr)</code></div>
</pre>
  <p class="var-docstr">True if s includes substr.</p>
  
</li>
<li>
  <h3 id="index-of">index-of</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(index-of s value)</code></div>
<div><code>(index-of s value from)</code></div>
</pre>
  <p class="var-docstr">Return index of value (string or char) in s, optionally searching<br>  forward from from or nil if not found.</p>
  
</li>
<li>
  <h3 id="join">join</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(join separator coll)</code></div>
</pre>
  <p class="var-docstr">Returns a string of all elements in coll, as returned by (seq coll), separated by a separator.</p>
  
</li>
<li>
  <h3 id="pad-left">pad-left</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(pad-left s pad n)</code></div>
</pre>
  <p class="var-docstr">Returns s padded with pad at the beginning to length n.</p>
  
</li>
<li>
  <h3 id="pad-right">pad-right</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(pad-right s pad n)</code></div>
</pre>
  <p class="var-docstr">Returns s padded with pad at the end to length n.</p>
  
</li>
<li>
  <h3 id="replace">replace</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(replace s old new)</code></div>
</pre>
  <p class="var-docstr">Replaces all instances of string old with string new in string s.</p>
  
</li>
<li>
  <h3 id="split">split</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(split s re)</code></div>
</pre>
  <p class="var-docstr">Splits string on a regular expression. Returns vector of the splits.</p>
  
</li>
<li>
  <h3 id="split-lines">split-lines</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(split-lines s)</code></div>
</pre>
  <p class="var-docstr">Splits string on \n or \r\n. Returns vector of the splits.</p>
  
</li>
<li>
  <h3 id="starts-with?">starts-with?</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(starts-with? s substr)</code></div>
</pre>
  <p class="var-docstr">True if s starts with substr.</p>
  
</li>
<li>
  <h3 id="trim-space">trim-space</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(trim-space s)</code></div>
</pre>
  <p class="var-docstr">Returns a string s, with all leading and trailing white space removed, as defined by Unicode.</p>
  
</li>

    </ul>
  </div>
</body>
</html><commit_msg>Update docs<commit_after><html>
<head>
  <link rel="stylesheet" type="text/css" href="main.css">
</head>
<body>
  <div class="main">
    <h1>Namespace: joker.string</h1>
    <span class="var-added">v1.0</span>
    <p class="var-docstr">Implements simple functions to manipulate strings.</p>
    <h2>Index</h2>
    <ul class="index">
      <li>
  <a href="#blank?">blank?</a>
</li>
<li>
  <a href="#capitalize">capitalize</a>
</li>
<li>
  <a href="#ends-with?">ends-with?</a>
</li>
<li>
  <a href="#escape">escape</a>
</li>
<li>
  <a href="#includes?">includes?</a>
</li>
<li>
  <a href="#index-of">index-of</a>
</li>
<li>
  <a href="#join">join</a>
</li>
<li>
  <a href="#last-index-of">last-index-of</a>
</li>
<li>
  <a href="#lower-case">lower-case</a>
</li>
<li>
  <a href="#pad-left">pad-left</a>
</li>
<li>
  <a href="#pad-right">pad-right</a>
</li>
<li>
  <a href="#replace">replace</a>
</li>
<li>
  <a href="#replace-first">replace-first</a>
</li>
<li>
  <a href="#reverse">reverse</a>
</li>
<li>
  <a href="#split">split</a>
</li>
<li>
  <a href="#split-lines">split-lines</a>
</li>
<li>
  <a href="#starts-with?">starts-with?</a>
</li>
<li>
  <a href="#trim">trim</a>
</li>
<li>
  <a href="#trim-left">trim-left</a>
</li>
<li>
  <a href="#trim-newline">trim-newline</a>
</li>
<li>
  <a href="#trim-right">trim-right</a>
</li>
<li>
  <a href="#upper-case">upper-case</a>
</li>

    </ul>
    <ul>
      <li>
  <h3 id="blank?">blank?</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(blank? s)</code></div>
</pre>
  <p class="var-docstr">True if s is nil, empty, or contains only whitespace.</p>
  
</li>
<li>
  <h3 id="capitalize">capitalize</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(capitalize s)</code></div>
</pre>
  <p class="var-docstr">Converts first character of the string to upper-case, all other<br>  characters to lower-case.</p>
  
</li>
<li>
  <h3 id="ends-with?">ends-with?</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(ends-with? s substr)</code></div>
</pre>
  <p class="var-docstr">True if s ends with substr.</p>
  
</li>
<li>
  <h3 id="escape">escape</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(escape s cmap)</code></div>
</pre>
  <p class="var-docstr">Return a new string, using cmap to escape each character ch<br>  from s as follows:<br><br>  If (cmap ch) is nil, append ch to the new string.<br>  If (cmap ch) is non-nil, append (str (cmap ch)) instead.</p>
  
</li>
<li>
  <h3 id="includes?">includes?</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(includes? s substr)</code></div>
</pre>
  <p class="var-docstr">True if s includes substr.</p>
  
</li>
<li>
  <h3 id="index-of">index-of</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(index-of s value)</code></div>
<div><code>(index-of s value from)</code></div>
</pre>
  <p class="var-docstr">Return index of value (string or char) in s, optionally searching<br>  forward from from or nil if not found.</p>
  
</li>
<li>
  <h3 id="join">join</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(join coll)</code></div>
<div><code>(join separator coll)</code></div>
</pre>
  <p class="var-docstr">Returns a string of all elements in coll, as returned by (seq coll), separated by an optional separator.</p>
  
</li>
<li>
  <h3 id="last-index-of">last-index-of</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(last-index-of s value)</code></div>
<div><code>(last-index-of s value from)</code></div>
</pre>
  <p class="var-docstr">Return last index of value (string or char) in s, optionally<br>  searching backward from from or nil if not found.</p>
  
</li>
<li>
  <h3 id="lower-case">lower-case</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(lower-case s)</code></div>
</pre>
  <p class="var-docstr">Converts string to all lower-case.</p>
  
</li>
<li>
  <h3 id="pad-left">pad-left</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(pad-left s pad n)</code></div>
</pre>
  <p class="var-docstr">Returns s padded with pad at the beginning to length n.</p>
  
</li>
<li>
  <h3 id="pad-right">pad-right</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(pad-right s pad n)</code></div>
</pre>
  <p class="var-docstr">Returns s padded with pad at the end to length n.</p>
  
</li>
<li>
  <h3 id="replace">replace</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(replace s match repl)</code></div>
</pre>
  <p class="var-docstr">Replaces all instances of match (String of Regex) with string repl in string s.<br><br>  If match is Regex, $1, $2, etc. in the replacement string repl are<br>  substituted with the string that matched the corresponding<br>  parenthesized group in the pattern.<br>  </p>
  
</li>
<li>
  <h3 id="replace-first">replace-first</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(replace-first s match repl)</code></div>
</pre>
  <p class="var-docstr">Replaces the first instance of match (String of Regex) with string repl in string s.<br><br>  If match is Regex, $1, $2, etc. in the replacement string repl are<br>  substituted with the string that matched the corresponding<br>  parenthesized group in the pattern.<br>  </p>
  
</li>
<li>
  <h3 id="reverse">reverse</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(reverse s)</code></div>
</pre>
  <p class="var-docstr">Returns s with its characters reversed.</p>
  
</li>
<li>
  <h3 id="split">split</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(split s re)</code></div>
<div><code>(split s re n)</code></div>
</pre>
  <p class="var-docstr">Splits string on a regular expression. Returns vector of the splits.</p>
  
</li>
<li>
  <h3 id="split-lines">split-lines</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(split-lines s)</code></div>
</pre>
  <p class="var-docstr">Splits string on \n or \r\n. Returns vector of the splits.</p>
  
</li>
<li>
  <h3 id="starts-with?">starts-with?</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(starts-with? s substr)</code></div>
</pre>
  <p class="var-docstr">True if s starts with substr.</p>
  
</li>
<li>
  <h3 id="trim">trim</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(trim s)</code></div>
</pre>
  <p class="var-docstr">Removes whitespace from both ends of string.</p>
  
</li>
<li>
  <h3 id="trim-left">trim-left</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(trim-left s)</code></div>
</pre>
  <p class="var-docstr">Removes whitespace from the left side of string.</p>
  
</li>
<li>
  <h3 id="trim-newline">trim-newline</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(trim-newline s)</code></div>
</pre>
  <p class="var-docstr">Removes all trailing newline \n or return \r characters from string.</p>
  
</li>
<li>
  <h3 id="trim-right">trim-right</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(trim-right s)</code></div>
</pre>
  <p class="var-docstr">Removes whitespace from the right side of string.</p>
  
</li>
<li>
  <h3 id="upper-case">upper-case</h3>
  <span class="var-type Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(upper-case s)</code></div>
</pre>
  <p class="var-docstr">Converts string to all upper-case.</p>
  
</li>

    </ul>
  </div>
</body>
</html>
{'fraction_non_alphanumeric': 0.2307800421644413, 'fraction_numerical': 0.011243851018973999, 'mean_word_length': 4.335958005249344, 'pattern_counts': {'":': 0, '<': 808, '<?xml version=': 0, '>': 808, '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': '732771', 'n_tokens_mistral': 5581, 'n_tokens_neox': 5544, 'n_words': 1249}