<commit_before><blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
		   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
		   xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0"
		   xmlns:jaxws="http://cxf.apache.org/blueprint/jaxws"
		   xmlns:jaxrs="http://cxf.apache.org/blueprint/jaxrs"
		   xmlns:cxf="http://cxf.apache.org/blueprint/core"
		   xmlns:authz="http://aries.apache.org/xmlns/authorization/v1.0.0"
		   xsi:schemaLocation="
http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
http://cxf.apache.org/blueprint/jaxws http://cxf.apache.org/schemas/blueprint/jaxws.xsd
http://cxf.apache.org/blueprint/jaxrs http://cxf.apache.org/schemas/blueprint/jaxrs.xsd
http://cxf.apache.org/blueprint/core http://cxf.apache.org/schemas/blueprint/core.xsd">
	
	<cxf:bus id="bus">
		<cxf:features>
			<!-- <cxf:logging /> -->
		</cxf:features>
	</cxf:bus>
    
	<jaxrs:server address="/api/v1" id="ids_rest_api">
		
		<!-- This is where API endpoints are registered for CXF -->
		<jaxrs:serviceBeans>
			<bean id="app" class="de.fhg.aisec.ids.webconsole.api.AppApi" />
			<bean id="certs" class="de.fhg.aisec.ids.webconsole.api.CertApi" />
			<bean id="config" class="de.fhg.aisec.ids.webconsole.api.ConfigApi" />
			<bean id="connections" class="de.fhg.aisec.ids.webconsole.api.ConnectionAPI" />
			<bean id="metric" class="de.fhg.aisec.ids.webconsole.api.MetricAPI" />
			<bean id="policy" class="de.fhg.aisec.ids.webconsole.api.PolicyApi" />
			<bean id="route" class="de.fhg.aisec.ids.webconsole.api.RouteApi" />
		</jaxrs:serviceBeans>

		<!-- Extension mappings and interceptors are needed for JSONP support -->
		<jaxrs:extensionMappings>
			<entry key="xml" value="application/xml" />
			<entry key="json" value="application/json" />
			<entry key="jsonp" value="application/javascript" />
		</jaxrs:extensionMappings>

		<jaxrs:providers>
			<bean class="de.fhg.aisec.ids.webconsole.api.CORSResponseFilter" />
			<!-- Use Jackson JSON provider to support JSON representation of Java collections. Requires cxf-jackson feature. -->
			<bean id="jsonProvider" class="com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider">
				<property name="mapper" ref="jacksonMapper" />
			</bean>
            <!-- <ref component-id="authenticationFilter"/> -->
		</jaxrs:providers>
		
		<jaxrs:inInterceptors>
            <!-- <ref component-id="authorizationInterceptor"/> -->
			<bean class="org.apache.cxf.jaxrs.provider.jsonp.JsonpInInterceptor" />
		</jaxrs:inInterceptors>
		
		<jaxrs:outInterceptors>
			<bean class="org.apache.cxf.jaxrs.provider.jsonp.JsonpPreStreamInterceptor" />
			<bean class="org.apache.cxf.jaxrs.provider.jsonp.JsonpPostStreamInterceptor" />
		</jaxrs:outInterceptors>
	</jaxrs:server>

	<bean id="jacksonMapper" class="com.fasterxml.jackson.databind.ObjectMapper"/>

	<bean id="authenticationFilter" class="org.apache.cxf.jaxrs.security.JAASAuthenticationFilter">
		<property name="contextName" value="karaf" />
		<property name="realmName" value="connector-api" />
	</bean>

	<bean id="authorizationInterceptor" class="org.apache.cxf.interceptor.security.SimpleAuthorizingInterceptor">
	   <property name="globalRoles" value="api"/>
	</bean>

</blueprint><commit_msg>Approaching merge to develop: Removed unneeded JSONP from rest config<commit_after><blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:jaxrs="http://cxf.apache.org/blueprint/jaxrs"
	xmlns:cxf="http://cxf.apache.org/blueprint/core"
	xsi:schemaLocation="
http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
http://cxf.apache.org/blueprint/jaxrs http://cxf.apache.org/schemas/blueprint/jaxrs.xsd
http://cxf.apache.org/blueprint/core http://cxf.apache.org/schemas/blueprint/core.xsd">

	<cxf:bus id="bus">
		<cxf:features>
			<!-- <cxf:logging /> -->
		</cxf:features>
	</cxf:bus>

	<jaxrs:server address="/api/v1" id="ids_rest_api">

		<!-- This is where API endpoints are registered for CXF -->
		<jaxrs:serviceBeans>
			<bean id="app" class="de.fhg.aisec.ids.webconsole.api.AppApi" />
			<bean id="certs" class="de.fhg.aisec.ids.webconsole.api.CertApi" />
			<bean id="config" class="de.fhg.aisec.ids.webconsole.api.ConfigApi" />
			<bean id="connections" class="de.fhg.aisec.ids.webconsole.api.ConnectionAPI" />
			<bean id="metric" class="de.fhg.aisec.ids.webconsole.api.MetricAPI" />
			<bean id="policy" class="de.fhg.aisec.ids.webconsole.api.PolicyApi" />
			<bean id="route" class="de.fhg.aisec.ids.webconsole.api.RouteApi" />
		</jaxrs:serviceBeans>

		<jaxrs:providers>
			<bean class="de.fhg.aisec.ids.webconsole.api.CORSResponseFilter" />
			<!-- Use Jackson JSON provider to support JSON representation of Java collections. Requires cxf-jackson feature. -->
			<bean id="jsonProvider" class="com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider">
				<property name="mapper" ref="jacksonMapper" />
			</bean>
			<!-- <ref component-id="authenticationFilter"/> -->
		</jaxrs:providers>
	</jaxrs:server>

	<bean id="jacksonMapper" class="com.fasterxml.jackson.databind.ObjectMapper"/>

	<bean id="authenticationFilter" class="org.apache.cxf.jaxrs.security.JAASAuthenticationFilter">
		<property name="contextName" value="karaf" />
		<property name="realmName" value="connector-api" />
	</bean>

	<bean id="authorizationInterceptor" class="org.apache.cxf.interceptor.security.SimpleAuthorizingInterceptor">
		<property name="globalRoles" value="api"/>
	</bean>

</blueprint>
{'fraction_non_alphanumeric': 0.1790134529147982, 'fraction_numerical': 0.006457399103139014, 'mean_word_length': 4.429406037000974, 'pattern_counts': {'":': 0, '<': 92, '<?xml version=': 0, '>': 92, 'https://': 0, 'lorem ipsum': 0, 'www.': 8, 'xml': 25}, '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': '1888465', 'n_tokens_mistral': 2183, 'n_tokens_neox': 1991, 'n_words': 249}