<commit_before><?xml version="1.0" encoding="UTF-8"?>
<module version="1.0">
  <managed-bean>
    <description>This bean allows to create or edit a question.</description>
    <managed-bean-name>question</managed-bean-name>
    <managed-bean-class>AWA.Questions.Beans.Question_Bean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <description>This bean allows to create or edit an answer.</description>
    <managed-bean-name>answer</managed-bean-name>
    <managed-bean-class>AWA.Questions.Beans.Answer_Bean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <description>This list bean represents the list of questions.</description>
    <managed-bean-name>questionList</managed-bean-name>
    <managed-bean-class>AWA.Questions.Beans.Question_List_Bean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <description>This list bean represents the list of questions.</description>
    <managed-bean-name>questionInfo</managed-bean-name>
    <managed-bean-class>AWA.Questions.Beans.Question_Display_Bean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
  </managed-bean>

  <navigation-rule>
    <from-view-id>/questions/ask.xhtml</from-view-id>
    <navigation-case>
      <from-outcome>success</from-outcome>
      <to-view-id>/questions/view.xhtml?id=#{question.id}</to-view-id>
      <redirect/>
    </navigation-case>
  </navigation-rule>

  <navigation-rule>
    <from-view-id>/questions/view.xhtml</from-view-id>
    <navigation-case>
      <from-outcome>success</from-outcome>
      <to-view-id>/questions/view.xhtml?id=#{answer.question_id}</to-view-id>
      <redirect/>
    </navigation-case>
  </navigation-rule>

    <filter-mapping>
        <filter-name>service</filter-name>
        <url-pattern>/questions/*.html</url-pattern>
    </filter-mapping>

    <filter-mapping>
        <filter-name>auth-filter</filter-name>
        <url-pattern>/questions/forms/*.html</url-pattern><commit_msg>Declare the questionVote bean to allow users to vote on questions<commit_after><?xml version="1.0" encoding="UTF-8"?>
<module version="1.0">
  <managed-bean>
    <description>This bean allows to create or edit a question.</description>
    <managed-bean-name>question</managed-bean-name>
    <managed-bean-class>AWA.Questions.Beans.Question_Bean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <description>This bean allows to create or edit an answer.</description>
    <managed-bean-name>answer</managed-bean-name>
    <managed-bean-class>AWA.Questions.Beans.Answer_Bean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <description>This list bean represents the list of questions.</description>
    <managed-bean-name>questionList</managed-bean-name>
    <managed-bean-class>AWA.Questions.Beans.Question_List_Bean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <description>This list bean represents the list of questions.</description>
    <managed-bean-name>questionInfo</managed-bean-name>
    <managed-bean-class>AWA.Questions.Beans.Question_Display_Bean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
  </managed-bean>

  <managed-bean>
    <description>The vote bean that allows to vote for a question.</description>
    <managed-bean-name>questionVote</managed-bean-name>
    <managed-bean-class>AWA.Votes.Beans.Votes_Bean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <managed-property>
       <property-name>permission</property-name>
       <property-class>String</property-class>
       <value>answer-create</value>
    </managed-property>
    <managed-property>
       <property-name>entity_type</property-name>
       <property-class>String</property-class>
       <value>awa_question</value>
    </managed-property>
  </managed-bean>x

  <navigation-rule>
    <from-view-id>/questions/ask.xhtml</from-view-id>
    <navigation-case>
      <from-outcome>success</from-outcome>
      <to-view-id>/questions/view.xhtml?id=#{question.id}</to-view-id>
      <redirect/>
    </navigation-case>
  </navigation-rule>

  <navigation-rule>
    <from-view-id>/questions/view.xhtml</from-view-id>
    <navigation-case>
      <from-outcome>success</from-outcome>
      <to-view-id>/questions/view.xhtml?id=#{answer.question_id}</to-view-id>
      <redirect/>
    </navigation-case>
  </navigation-rule>

    <filter-mapping>
        <filter-name>service</filter-name>
        <url-pattern>/questions/*.html</url-pattern>
    </filter-mapping>

    <filter-mapping>
        <filter-name>auth-filter</filter-name>
        <url-pattern>/questions/forms/*.html</url-pattern>
{'fraction_non_alphanumeric': 0.16037164209250657, 'fraction_numerical': 0.0020197939810139365, 'mean_word_length': 3.6497652582159623, 'pattern_counts': {'":': 0, '<': 179, '<?xml version=': 2, '>': 179, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '5208420', 'n_tokens_mistral': 1624, 'n_tokens_neox': 1578, 'n_words': 198}