<commit_before><?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 3.0//EN" "http://tuckey.org/res/dtds/urlrewrite3.0.dtd">

<urlrewrite>

  <!-- Disable the Red Hat crawler -->
  <rule>
    <condition name="remote-addr">192.168.127.12</condition>
    <from>.*</from>
    <to last="true" type="temporary-redirect">/robots.txt</to>
  </rule>

  <!-- Disable anything that comes out of Microsoft -->
  <rule>
    <condition name="remote-addr">172.16.31.10</condition>
    <from>.*</from>
    <to last="true" type="temporary-redirect">/robots.txt</to>
  </rule>

  <!-- Community Rules -->

  <rule>
    <from casesensitive="true">^/community/create(.+)$</from>
    <to last="true">/community/create_community.seam?$1</to>
  </rule>

  <rule>
    <from casesensitive="true">^/community/view/(.+)$</from>
    <to last="true">/community/community.seam\?slug=$1</to>
  </rule>

  <rule>
    <from casesensitive="true">^/community/list(.+)?$</from>
    <to last="true">/community/home.seam$1</to>
  </rule>

  <!-- Tribe rules -->

  <rule>
    <from casesensitive="true">^/tribe/view/(.+)$</from>
    <to last="true">/tribe/tribe.seam\?id=$1</to>
  </rule>

  <rule>
    <from casesensitive="true">^/tribe/list(.+)?$</from>
    <to last="true">/tribe/home.seam$1</to>
  </rule>

  <!-- Project Rules -->

  <rule>
    <from casesensitive="true">^/project/add_iteration/(.+)$</from>
    <to last="true">/project/add_iteration.seam\?slug=$1</to>
  </rule>

  <rule>
    <from casesensitive="true">^/project/create(.+)$</from>
    <to last="true">/project/create_project.seam?$1</to>
  </rule>

  <rule>
    <from casesensitive="true">^/project/view/(.+)$</from>
    <to last="true">/project/project.seam\?slug=$1</to>
  </rule>

  <rule>
    <from casesensitive="true">^/project/list(.+)?$</from>
    <to last="true">/project/home.seam$1</to>
  </rule>

  <!-- ProjectIteration Rules -->

  <rule>
    <from casesensitive="true">^/project/([^/]+)/(.+)?$</from>
    <to last="true">/project/iteration.seam\?mslug=$1/$2</to>
  </rule>

  <!-- account / -->

  <rule>
    <from casesensitive="true">^/account/sign_in(.+)?$</from>
    <to last="true">/account/login.seam$1</to>
  </rule>

  <rule>
    <from casesensitive="true">^/account/register(.+)?$</from>
    <to last="true">/account/register.seam$1</to>
  </rule>

  <rule>
    <from casesensitive="true">^/account/activate/(.+)$</from>
    <to last="true">/account/activate.seam\?key=$1</to>
  </rule>
  <rule>
    <from casesensitive="true">^/account/activate(.+)?$</from>
    <to last="true">/account/activate.seam$1</to>
  </rule>

  <rule>
    <from casesensitive="true">^/account/password_reset_request(.+)?$</from>
    <to last="true">/account/password_reset_request.seam$1</to>
  </rule>

  <rule>
    <from casesensitive="true">^/account/password_reset/(.+)$</from>
    <to last="true">/account/password_reset.seam\?key=$1</to>
  </rule>

  <!-- ROOT / -->
  <rule>
    <from>^/$</from>
    <to>/home.seam</to>
  </rule>

  <outbound-rule>
    <from>^(/.+)?/community/create_community.seam(.+)?$</from>
    <to>$1/community/create/$2</to>
  </outbound-rule>

  <outbound-rule>
    <from>^(/.+)?/community/community.seam\?slug=(.+)$</from>
    <to>$1/community/view/$2</to>
  </outbound-rule>

  <outbound-rule>
    <from>^(/.+)?/community/home.seam(.+)?$</from>
    <to>$1/community/list$2</to>
  </outbound-rule>
  <outbound-rule>
    <from>^(/.+)?/tribe/tribe.seam\?id=(.+)$</from>
    <to>$1/tribe/view/$2</to>
  </outbound-rule>
  <outbound-rule>
    <from>^(/.+)?/tribe/home.seam(.+)?$</from>
    <to>$1/tribe/list$2</to>
  </outbound-rule>
  <outbound-rule>
    <from>^(/.+)?/project/add_iteration.seam\?slug=(.+)$</from>
    <to>$1/project/add_iteration/$2</to>
  </outbound-rule>
  <outbound-rule>
    <from>^(/.+)?/project/create_project.seam(.+)?$</from>
    <to>$1/project/create/$2</to>
  </outbound-rule>
  <outbound-rule>
    <from>^(/.+)?/project/project.seam\?slug=(.+)$</from>
    <to>$1/project/view/$2</to>
  </outbound-rule>
  <outbound-rule>
    <from>^(/.+)?/project/home.seam(.+)?$</from>
    <to>$1/project/list$2</to>
  </outbound-rule>
  <outbound-rule>
    <from>^(/.+)?/project/iteration.seam\?mslug=([^/]+|^%2F+)(/|%2F)(.+)$</from>
    <to>$1/project/$2/$4</to>
  </outbound-rule>
  <outbound-rule>
    <from>^(/.+)?/account/login.seam(.+)?$</from>
    <to>$1/account/sign_in$2</to>
  </outbound-rule>
  <outbound-rule>
    <from>^(/.+)?/account/register.seam(.+)?$</from>
    <to>$1/account/register$2</to>
  </outbound-rule>
  <outbound-rule>
    <from>^(/.+)?/account/activate.seam\?key=(.+)$</from>
    <to>$1/account/activate/$2</to>
  </outbound-rule>
  <outbound-rule>
    <from>^(/.+)?/account/activate.seam(.+)?$</from>
    <to>$1/account/activate$2</to>
  </outbound-rule>
  <outbound-rule>
    <from>^(/.+)?/account/password_reset_request.seam(.+)?$</from>
    <to>$1/account/password_reset_request$2</to>
  </outbound-rule>
  <outbound-rule>
    <from>^(/.+)?/account/password_reset.seam\?key=(.+)$</from>
    <to>$1/account/password_reset/$2</to>
  </outbound-rule>

  <outbound-rule>
    <from>^(/.+)?/home.seam(.+)?$</from>
    <to>$1/$2</to>
  </outbound-rule>

</urlrewrite>

<commit_msg>clean up unneeded url rewrite rules<commit_after><?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 3.0//EN" "http://tuckey.org/res/dtds/urlrewrite3.0.dtd">

<urlrewrite>

  <!-- Disable the Red Hat crawler -->
  <rule>
    <condition name="remote-addr">192.168.127.12</condition>
    <from>.*</from>
    <to last="true" type="temporary-redirect">/robots.txt</to>
  </rule>

  <!-- Disable anything that comes out of Microsoft -->
  <rule>
    <condition name="remote-addr">172.16.31.10</condition>
    <from>.*</from>
    <to last="true" type="temporary-redirect">/robots.txt</to>
  </rule>

  <!-- Community Rules -->

  <rule>
    <from casesensitive="true">^/community/create(.+)$</from>
    <to last="true">/community/create_community.seam?$1</to>
  </rule>

  <rule>
    <from casesensitive="true">^/community/view/(.+)$</from>
    <to last="true">/community/community.seam\?slug=$1</to>
  </rule>

  <rule>
    <from casesensitive="true">^/community/list(.+)?$</from>
    <to last="true">/community/home.seam$1</to>
  </rule>

  <!-- Tribe rules -->

  <rule>
    <from casesensitive="true">^/tribe/view/(.+)$</from>
    <to last="true">/tribe/tribe.seam\?id=$1</to>
  </rule>

  <rule>
    <from casesensitive="true">^/tribe/list(.+)?$</from>
    <to last="true">/tribe/home.seam$1</to>
  </rule>

  <!-- Project Rules -->

  <rule>
    <from casesensitive="true">^/project/add_iteration/(.+)$</from>
    <to last="true">/project/add_iteration.seam\?slug=$1</to>
  </rule>

  <rule>
    <from casesensitive="true">^/project/create(.+)$</from>
    <to last="true">/project/create_project.seam?$1</to>
  </rule>

  <rule>
    <from casesensitive="true">^/project/view/(.+)$</from>
    <to last="true">/project/project.seam\?slug=$1</to>
  </rule>

  <rule>
    <from casesensitive="true">^/project/list(.+)?$</from>
    <to last="true">/project/home.seam$1</to>
  </rule>


  <!-- account / -->

  <rule>
    <from casesensitive="true">^/account/sign_in(.+)?$</from>
    <to last="true">/account/login.seam$1</to>
  </rule>

  <rule>
    <from casesensitive="true">^/account/register(.+)?$</from>
    <to last="true">/account/register.seam$1</to>
  </rule>

  <rule>
    <from casesensitive="true">^/account/activate/(.+)$</from>
    <to last="true">/account/activate.seam\?key=$1</to>
  </rule>
  <rule>
    <from casesensitive="true">^/account/activate(.+)?$</from>
    <to last="true">/account/activate.seam$1</to>
  </rule>

  <rule>
    <from casesensitive="true">^/account/password_reset_request(.+)?$</from>
    <to last="true">/account/password_reset_request.seam$1</to>
  </rule>

  <rule>
    <from casesensitive="true">^/account/password_reset/(.+)$</from>
    <to last="true">/account/password_reset.seam\?key=$1</to>
  </rule>

  <!-- ROOT / -->
  <rule>
    <from>^/$</from>
    <to>/home.seam</to>
  </rule>

  <outbound-rule>
    <from>^(/.+)?/community/create_community.seam(.+)?$</from>
    <to>$1/community/create/$2</to>
  </outbound-rule>

  <outbound-rule>
    <from>^(/.+)?/community/community.seam\?slug=(.+)$</from>
    <to>$1/community/view/$2</to>
  </outbound-rule>

  <outbound-rule>
    <from>^(/.+)?/community/home.seam(.+)?$</from>
    <to>$1/community/list$2</to>
  </outbound-rule>
  <outbound-rule>
    <from>^(/.+)?/tribe/tribe.seam\?id=(.+)$</from>
    <to>$1/tribe/view/$2</to>
  </outbound-rule>
  <outbound-rule>
    <from>^(/.+)?/tribe/home.seam(.+)?$</from>
    <to>$1/tribe/list$2</to>
  </outbound-rule>
  <outbound-rule>
    <from>^(/.+)?/project/add_iteration.seam\?slug=(.+)$</from>
    <to>$1/project/add_iteration/$2</to>
  </outbound-rule>
  <outbound-rule>
    <from>^(/.+)?/project/create_project.seam(.+)?$</from>
    <to>$1/project/create/$2</to>
  </outbound-rule>
  <outbound-rule>
    <from>^(/.+)?/project/project.seam\?slug=(.+)$</from>
    <to>$1/project/view/$2</to>
  </outbound-rule>
  <outbound-rule>
    <from>^(/.+)?/project/home.seam(.+)?$</from>
    <to>$1/project/list$2</to>
  </outbound-rule>
  <outbound-rule>
    <from>^(/.+)?/account/login.seam(.+)?$</from>
    <to>$1/account/sign_in$2</to>
  </outbound-rule>
  <outbound-rule>
    <from>^(/.+)?/account/register.seam(.+)?$</from>
    <to>$1/account/register$2</to>
  </outbound-rule>
  <outbound-rule>
    <from>^(/.+)?/account/activate.seam\?key=(.+)$</from>
    <to>$1/account/activate/$2</to>
  </outbound-rule>
  <outbound-rule>
    <from>^(/.+)?/account/activate.seam(.+)?$</from>
    <to>$1/account/activate$2</to>
  </outbound-rule>
  <outbound-rule>
    <from>^(/.+)?/account/password_reset_request.seam(.+)?$</from>
    <to>$1/account/password_reset_request$2</to>
  </outbound-rule>
  <outbound-rule>
    <from>^(/.+)?/account/password_reset.seam\?key=(.+)$</from>
    <to>$1/account/password_reset/$2</to>
  </outbound-rule>

  <outbound-rule>
    <from>^(/.+)?/home.seam(.+)?$</from>
    <to>$1/$2</to>
  </outbound-rule>

</urlrewrite>


{'fraction_non_alphanumeric': 0.27265571189609367, 'fraction_numerical': 0.015251402145035915, 'mean_word_length': 3.349165596919127, 'pattern_counts': {'":': 0, '<': 454, '<?xml version=': 2, '>': 454, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 4, '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': '6338242', 'n_tokens_mistral': 4420, 'n_tokens_neox': 4131, 'n_words': 429}