<commit_before>declare namespace atom="http://www.w3.org/2005/Atom";
<service xmlns="http://purl.org/atom/app#">
   <workspace title="{/atom:feed/atom:title}">
   { 
     "&#x0a;",
     let $current := substring-before(base-uri(/atom:feed),'/.feed.atom'),
         $current-path := substring-after($current,'/db')
        for $i in (collection($current)/atom:feed) 
           let $path :=  substring-after(substring-before(base-uri($i),'/.feed.atom'),'/db')
              return ( <collection title="{$i/atom:title}" href="/atom/edit{$path}">
                         <accept>text/*,image/*,application/*</accept>
                       </collection>,
                       "&#x0a;"
                     )
   }
   </workspace>
</service><commit_msg>Fixed error when there are no feeds<commit_after>declare namespace atom="http://www.w3.org/2005/Atom";
<service xmlns="http://purl.org/atom/app#">
  {
   if (/atom:feed)
   then
   <workspace title="{/atom:feed/atom:title}">
   { 
     "&#x0a;",
     let $current := substring-before(base-uri(/atom:feed),'/.feed.atom'),
         $current-path := substring-after($current,'/db')
        for $i in (collection($current)/atom:feed) 
           let $path :=  substring-after(substring-before(base-uri($i),'/.feed.atom'),'/db')
              return ( <collection title="{$i/atom:title}" href="/atom/edit{$path}">
                         <accept>text/*,image/*,application/*</accept>
                       </collection>,
                       "&#x0a;"
                     )
   }
   </workspace>
   else ()
  }
</service>
{'fraction_non_alphanumeric': 0.20127388535031848, 'fraction_numerical': 0.008917197452229299, 'mean_word_length': 2.1673387096774195, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '238630', 'n_tokens_mistral': 513, 'n_tokens_neox': 482, 'n_words': 67}