<commit_before><?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_9" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <display-name>sakai-podcasts</display-name>
    <description>Sakai Podcasts Tool</description>

    <context-param>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>server</param-value>
    </context-param>
 
    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>/WEB-INF/local.xml</param-value>
    </context-param>
    
   <!-- JSF TAGLIBS -->
  <jsp-config>
  <taglib>
    <taglib-uri>http://www.sakaiproject.org/podcasts</taglib-uri>
    <taglib-location>/WEB-INF/podcasts.tld</taglib-location>
  </taglib>
  </jsp-config>
<!-- END PODCASTS JSF -->
   
<!--sakai-->
    
  <!-- to wire up the FacesServlet -->
  <!-- so the app can hook your content into faces -->
    <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup> 2 </load-on-startup>
    </servlet>
 
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
     
	<!-- the missing link of my attempt, servlet-name must match tool.
		 it is JsfTool that will intercept requests and grap the
		 correct information -->
     <servlet>
      <servlet-name>sakai.podcasts</servlet-name>
      <servlet-class>org.sakaiproject.jsf.util.HelperAwareJsfTool</servlet-class>
        <init-param>
            <param-name>path</param-name>
            <param-value>/podcasts</param-value>
        </init-param>
      <load-on-startup>2</load-on-startup>
        <init-param>
            <param-name>default</param-name>
            <param-value>podMain</param-value>
        </init-param>
         <init-param>
            <param-name>default.last.view</param-name>
            <param-value>true</param-value>
        </init-param>
   </servlet>
 
	<!-- the RequestFilter works with JsfTool to intercept requests -->
    <filter>
        <filter-name>org.sakaiproject.util.RequestFilter</filter-name>
        <filter-class>org.sakaiproject.util.RequestFilter</filter-class>
		<init-param>
			<param-name>upload.max</param-name>
			<param-value>50</param-value>
		</init-param>
    </filter>

  <!-- tells RequestFilter what can be done with your servlet
  	   usually all 3 dispachers values kept -->
   <filter-mapping>
        <filter-name>org.sakaiproject.util.RequestFilter</filter-name>
        <servlet-name>sakai.podcasts</servlet-name>
        <dispatcher>REQUEST</dispatcher>
        <dispatcher>FORWARD</dispatcher>
        <dispatcher>INCLUDE</dispatcher>
    </filter-mapping>

  <!-- tells RequestFilter what can be done with your servlet
  	   usually all 3 dispachers values kept -->
    <filter>
        <filter-name>sakai.request</filter-name>
        <filter-class>org.sakaiproject.util.RequestFilter</filter-class>
		<init-param>
			<param-name>upload.max</param-name>
			<param-value>500</param-value>
		</init-param>
<!--        <init-param>
          <param-name>upload.enabled</param-name>
        	  <param-value>true</param-value><commit_msg>SAK-9822: Reset upload.max on RequestFilter to 500 (lowered to 50 for easier testing)<commit_after><?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_9" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <display-name>sakai-podcasts</display-name>
    <description>Sakai Podcasts Tool</description>

    <context-param>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>server</param-value>
    </context-param>
 
    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>/WEB-INF/local.xml</param-value>
    </context-param>
    
   <!-- JSF TAGLIBS -->
  <jsp-config>
  <taglib>
    <taglib-uri>http://www.sakaiproject.org/podcasts</taglib-uri>
    <taglib-location>/WEB-INF/podcasts.tld</taglib-location>
  </taglib>
  </jsp-config>
<!-- END PODCASTS JSF -->
   
<!--sakai-->
    
  <!-- to wire up the FacesServlet -->
  <!-- so the app can hook your content into faces -->
    <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup> 2 </load-on-startup>
    </servlet>
 
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
     
	<!-- the missing link of my attempt, servlet-name must match tool.
		 it is JsfTool that will intercept requests and grap the
		 correct information -->
     <servlet>
      <servlet-name>sakai.podcasts</servlet-name>
      <servlet-class>org.sakaiproject.jsf.util.HelperAwareJsfTool</servlet-class>
        <init-param>
            <param-name>path</param-name>
            <param-value>/podcasts</param-value>
        </init-param>
      <load-on-startup>2</load-on-startup>
        <init-param>
            <param-name>default</param-name>
            <param-value>podMain</param-value>
        </init-param>
         <init-param>
            <param-name>default.last.view</param-name>
            <param-value>true</param-value>
        </init-param>
   </servlet>
 
	<!-- the RequestFilter works with JsfTool to intercept requests -->
    <filter>
        <filter-name>org.sakaiproject.util.RequestFilter</filter-name>
        <filter-class>org.sakaiproject.util.RequestFilter</filter-class>
		<init-param>
			<param-name>upload.max</param-name>
			<param-value>500</param-value>
		</init-param>
    </filter>

  <!-- tells RequestFilter what can be done with your servlet
  	   usually all 3 dispachers values kept -->
   <filter-mapping>
        <filter-name>org.sakaiproject.util.RequestFilter</filter-name>
        <servlet-name>sakai.podcasts</servlet-name>
        <dispatcher>REQUEST</dispatcher>
        <dispatcher>FORWARD</dispatcher>
        <dispatcher>INCLUDE</dispatcher>
    </filter-mapping>

  <!-- tells RequestFilter what can be done with your servlet
  	   usually all 3 dispachers values kept -->
    <filter>
        <filter-name>sakai.request</filter-name>
        <filter-class>org.sakaiproject.util.RequestFilter</filter-class>
		<init-param>
			<param-name>upload.max</param-name>
			<param-value>500</param-value>
		</init-param>
<!--        <init-param>
          <param-name>upload.enabled</param-name>
        	  <param-value>true</param-value>
{'fraction_non_alphanumeric': 0.15806404445094313, 'fraction_numerical': 0.00877321245796169, 'mean_word_length': 2.6675603217158175, 'pattern_counts': {'":': 0, '<': 235, '<?xml version=': 2, '>': 233, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 14}, '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': '5706389', 'n_tokens_mistral': 2399, 'n_tokens_neox': 2275, 'n_words': 337}