<commit_before>  # FIWARE URBO TRANSPORT CONNECTOR CONFIGURATION FILE

baseURL: http://url:port

# debugAccessToken:

# Logging configuration parameters
logging:
  # Level options: INFO|ERROR|DEBUG. Default: INFO
  level: DEBUG
  # Output options: console|file. Default: console
  output: file

# PostgreSQL configuration parameters
pgsql:
  host: postgis
  user: xxxxxxxxxx
  password: <PASSWORD>
  database: xxxxxxxxxx
  port: 5432

# CartoDB configuration parameters
cartodb:
  apiKey: <PASSWORD>
  user: xxxxxxxxxx
  active: false
  enterprise: true

# urbo-processing parameters
processing:
  active: false
  url: http://localhost:XXXX
  requestAttempts: 5
  psqlJob: connectorPsql
  cartoJob: connectorCarto
  jobAttempts: 3
  priority: critical

# Orion Context Broker API URLs
contextBrokerUrls:
  portAuthtk: xxxxxxxxxx
  portCtxApi: xxxxxxxxxx
  urlCtxBrBase: https://xxxxxxxxxx

# Fiware subservices subscriptions configuration
subservices:
  - id: transport_simulations
    service: urbo
    subservice: /geographica
    auth:
      user: xxxxxxxxxx
      password: <PASSWORD>

subscriptions:
  # TrafficFlowObserved ######################
  - id: transport_trafficflowobserved
    subservice_id: transport_simulations
    schemaname: distrito_telefonica
    subsduration: P8M
    substhrottling: PT0S
    fetchDataOnCreated: false
    entityTypes:
      - typeName: TrafficFlowObserved
    mode: append
    attributes:
      - name: location
        namedb: position
        type: geojson-line
        cartodb: true
      - name: dateModified
        namedb: TimeInstant
        type: ISO8601
        indexdb: true
        cartodb: true
        constraint: true
    trigger_attributes:
      - location

  - id: transport_trafficflowobserved_lastdata
    subservice_id: transport_simulations
    schemaname: distrito_telefonica
    subsduration: P8M
    substhrottling: PT0S
    fetchDataOnCreated: false
    entityTypes:
      - typeName: TrafficFlowObserved
    mode: update
    attributes:
      - name: location
        namedb: position
        type: geojson-line
        cartodb: true
      - name: dateModified
        namedb: TimeInstant
        type: ISO8601
        indexdb: true
        cartodb: true
        constraint: true
      - name: intensity
        type: integer
        cartodb: true
      - name: averageVehicleSpeed
        namedb: averagevehiclespeed
        type: float
        cartodb: true
      - name: averageVehicleLength
        namedb: averagevehiclelength
        type: float
        cartodb: true
      - name: congested
        type: string
        cartodb: true

    trigger_attributes:
      - dateModified

  - id: transport_trafficflowobserved_measurand
    subservice_id: transport_simulations
    schemaname: distrito_telefonica
    subsduration: P8M
    substhrottling: PT0S
    fetchDataOnCreated: false
    entityTypes:
      - typeName: TrafficFlowObserved
    mode: append
    attributes:
      - name: dateModified
        namedb: TimeInstant
        type: ISO8601
        indexdb: true
        cartodb: true
        constraint: true
      - name: intensity
        type: integer
        cartodb: true
      - name: averageVehicleSpeed
        namedb: averagevehiclespeed
        type: float
        cartodb: true
      - name: averageVehicleLength
        namedb: averagevehiclelength
        type: float
        cartodb: true
      - name: congested
        type: string
        cartodb: true

    trigger_attributes:
      - intensity
      - averageVehicleSpeed
      - averageVehicleLength
      - congested
<commit_msg>outcome -> config.transport.yml<commit_after>  # FIWARE URBO TRANSPORT CONNECTOR CONFIGURATION FILE

baseURL: http://url:port

# debugAccessToken:

# Logging configuration parameters
logging:
  # Level options: INFO|ERROR|DEBUG. Default: INFO
  level: DEBUG
  # Output options: console|file. Default: console
  output: file

# PostgreSQL configuration parameters
pgsql:
  host: postgis
  user: xxxxxxxxxx
  password: <PASSWORD>
  database: xxxxxxxxxx
  port: 5432

# CartoDB configuration parameters
cartodb:
  apiKey: xxxxxxxxxx
  user: xxxxxxxxxx
  active: false
  enterprise: true

# urbo-processing parameters
processing:
  active: false
  url: http://localhost:XXXX
  requestAttempts: 5
  psqlJob: connectorPsql
  cartoJob: connectorCarto
  jobAttempts: 3
  priority: critical

# Orion Context Broker API URLs
contextBrokerUrls:
  portAuthtk: xxxxxxxxxx
  portCtxApi: xxxxxxxxxx
  urlCtxBrBase: https://xxxxxxxxxx

# Fiware subservices subscriptions configuration
subservices:
  - id: transport_simulations
    service: urbo
    subservice: /geographica
    auth:
      user: xxxxxxxxxx
      password: <PASSWORD>

subscriptions:
  # TrafficFlowObserved ######################
  - id: transport_trafficflowobserved
    subservice_id: transport_simulations
    schemaname: distrito_telefonica
    subsduration: P8M
    substhrottling: PT0S
    fetchDataOnCreated: false
    entityTypes:
      - typeName: TrafficFlowObserved
    mode: append
    attributes:
      - name: location
        namedb: position
        type: geojson-line
        cartodb: true
      - name: dateModified
        namedb: TimeInstant
        type: ISO8601
        indexdb: true
        cartodb: true
        constraint: true
    trigger_attributes:
      - location

  - id: transport_trafficflowobserved_lastdata
    subservice_id: transport_simulations
    schemaname: distrito_telefonica
    subsduration: P8M
    substhrottling: PT0S
    fetchDataOnCreated: false
    entityTypes:
      - typeName: TrafficFlowObserved
    mode: update
    attributes:
      - name: location
        namedb: position
        type: geojson-line
        cartodb: true
      - name: dateModified
        namedb: TimeInstant
        type: ISO8601
        indexdb: true
        cartodb: true
        constraint: true
      - name: intensity
        type: outcome
        outcome:
          factor: 12
          operation: PROD
        cartodb: true
      - name: averageVehicleSpeed
        namedb: averagevehiclespeed
        type: float
        cartodb: true
      - name: averageVehicleLength
        namedb: averagevehiclelength
        type: float
        cartodb: true
      - name: congested
        type: string
        cartodb: true

    trigger_attributes:
      - dateModified

  - id: transport_trafficflowobserved_measurand
    subservice_id: transport_simulations
    schemaname: distrito_telefonica
    subsduration: P8M
    substhrottling: PT0S
    fetchDataOnCreated: false
    entityTypes:
      - typeName: TrafficFlowObserved
    mode: append
    attributes:
      - name: dateModified
        namedb: TimeInstant
        type: ISO8601
        indexdb: true
        cartodb: true
        constraint: true
      - name: outcome
        outcome:
          factor: 12
          operation: PROD
        cartodb: true
      - name: averageVehicleSpeed
        namedb: averagevehiclespeed
        type: float
        cartodb: true
      - name: averageVehicleLength
        namedb: averagevehiclelength
        type: float
        cartodb: true
      - name: congested
        type: string
        cartodb: true

    trigger_attributes:
      - intensity
      - averageVehicleSpeed
      - averageVehicleLength
      - congested

{'fraction_non_alphanumeric': 0.05994513031550069, 'fraction_numerical': 0.007133058984910837, 'mean_word_length': 2.5019212295869355, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 15, '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': '349015', 'n_tokens_mistral': 2215, 'n_tokens_neox': 2109, 'n_words': 553}