<commit_before><?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"    
           xmlns:camel="http://camel.apache.org/schema/blueprint"
           xsi:schemaLocation="
               http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
               http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">
    <bean id="milo-client" class="org.apache.camel.component.milo.client.MiloClientComponent">
        <!--<property name="enableAnonymousAuthentication" value="true"/>-->
    </bean>

    <camelContext xmlns="http://camel.apache.org/schema/blueprint">
      <route id="opctorest">
        <from uri="milo-client:tcp://10.244.192.172:4840?node=RAW(ns=2;i=3)&amp;samplingInterval=10000"/>        
        <log message="Triggered Route: opctorest, requesting node: Sensorreading body: ${body}"/>
        <setHeader headerName="CamelHttpMethod">
          <constant>POST</constant>
        </setHeader>
        <convertBodyTo type="java.lang.String"/>
        <to uri="http://localhost:8080/sensordataapp/sensordataelements/addraw"/>
        <log message="Got ${body}"/>        
      </route>
      <!--<route id="opctorestpower">
        <from uri="milo-client:tcp://10.244.192.172:4840?node=RAW(ns=2;i=3)&amp;samplingInterval=10000"/>        
        <log message="Triggered Route: opctorest, requesting node: Sensorreading body: ${body}"/>
        <convertBodyTo type="java.lang.String"/>
        <to uri="http://localhost:8080/sensordataapp/sensordataelements/addraw"/>
        <log message="Got ${body}"/>
        <to uri="mock:foo"/>
      </route>-->
      <!--<route id="opctorestwrite">
        <from uri="timer://simpleTimer?period=10000"/>  
        <setBody>
          <simple>33</simple>
        </setBody>
        <log message="Triggered Route: opctorestwrite, writingSensorreading body: ${body}"/>
        <to uri="milo-client:tcp://10.244.192.172:4840?node=RAW(ns=2;i=2)"/>        
      </route>-->
    </camelContext>
</blueprint>
<!--         <convertBodyTo type="java.lang.String"/>        
        <to uri="stream:out"/> --><commit_msg>routes for opcua<commit_after><?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"    
           xmlns:camel="http://camel.apache.org/schema/blueprint"
           xsi:schemaLocation="
               http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
               http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">
    <bean id="milo-client" class="org.apache.camel.component.milo.client.MiloClientComponent">
        <!--<property name="enableAnonymousAuthentication" value="true"/>-->
    </bean>

    <camelContext xmlns="http://camel.apache.org/schema/blueprint">
      <route id="opctorest">
        <from uri="milo-client:tcp://10.244.192.172:4840?node=RAW(ns=2;i=3)&amp;samplingInterval=10000"/>        
        <log message="Triggered Route: opctorest, requesting node: Sensorreading body: ${body}"/>
        <setHeader headerName="CamelHttpMethod">
          <constant>POST</constant>
        </setHeader>
        <convertBodyTo type="java.lang.String"/>
        <to uri="http://localhost:8080/sensordataapp/sensordataelements/addraw"/>
        <log message="Got ${body}"/>        
      </route>
      <route id="opctorestwrite">
        <from uri="timer://simpleTimer?period=10000"/>  
        <setBody>
          <simple>10</simple>
        </setBody>
        <convertBodyTo type="java.lang.Integer"/>
        <log message="Triggered Route: opctorestwrite, writingSensorreading body: ${body}"/>
        <to uri="milo-client:tcp://10.244.192.172:4840?node=RAW(ns=2;i=2)"/>        
      </route>
    </camelContext>
</blueprint>
{'fraction_non_alphanumeric': 0.18048659384309831, 'fraction_numerical': 0.039721946375372394, 'mean_word_length': 2.848137535816619, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 2, '>': 75, 'https://': 0, 'lorem ipsum': 0, 'www.': 8, 'xml': 16}, 'pii_count': 5, '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': '6615345', 'n_tokens_mistral': 1429, 'n_tokens_neox': 1317, 'n_words': 161}