<commit_before>#------------------------------------------------------------
# General Server Configuration 
#------------------------------------------------------------

server:
  # JAX-RS resources are served from "/api/*"
  # (asset bundle by default serves assets from "/*")
  rootPath: /api/*
  applicationConnectors:
    - type: http
      port: 8080
  adminConnectors:
    - type: http
      port: 8081

logging:
  # The default level of all loggers. Can be OFF, ERROR, WARN, INFO, DEBUG, TRACE, or ALL.
  level: INFO
  loggers:
    de.ustutt.iaas.cc: DEBUG
    # shows SQL statements
    #org.skife.jdbi: TRACE
    # shows error messages when JSON parsing fails
    #io.dropwizard.jersey.jackson: DEBUG
  appenders:
    # write log to console
    - type: console
    # write log to file
    - type: file
      threshold: DEBUG
      logFormat: "%-6level [%d{HH:mm:ss.SSS}] [%t] %logger{5} - %X{code} %msg %n"
      currentLogFilename: /tmp/application.log
      archivedLogFilenamePattern: /tmp/application-%d{yyyy-MM-dd}.log
      archivedFileCount: 7
      timeZone: UTC

# swagger configuration
swagger:
  resourcePackage: de.ustutt.iaas.cc.resources

# database configuration for file-based H2 database
database:
  # the name of your JDBC driver
  driverClass: org.h2.Driver
  # the username (default root: sa)
  user: sa
  # the password (default empty)
  password: 
  # the JDBC URL
  # http://www.h2database.com/html/faq.html#database_files
  # uses (or creates) a database file in the directory where the application is started
  url: jdbc:h2:file:./NotesDB
  # any properties specific to your JDBC driver:
  properties:
    charSet: UTF-8
  # the maximum amount of time to wait on an empty pool before throwing an exception
  maxWaitForConnection: 1s
  # the SQL query to run when validating a connection's liveness
  validationQuery: "/* DB Health Check */ SELECT 17 FROM NOTES"
  # the timeout before a connection validation queries fail
  validationQueryTimeout: 3s
  # the minimum number of connections to keep open
  minSize: 8
  # the maximum number of connections to keep open<commit_msg>fix DB health check query (should only check DB availability, not existence of tables, otherwise DB migrations cannot be run for table creation because the health check fails before...)<commit_after>#------------------------------------------------------------
# General Server Configuration 
#------------------------------------------------------------

server:
  # JAX-RS resources are served from "/api/*"
  # (asset bundle by default serves assets from "/*")
  rootPath: /api/*
  applicationConnectors:
    - type: http
      port: 8080
  adminConnectors:
    - type: http
      port: 8081

logging:
  # The default level of all loggers. Can be OFF, ERROR, WARN, INFO, DEBUG, TRACE, or ALL.
  level: INFO
  loggers:
    de.ustutt.iaas.cc: DEBUG
    # shows SQL statements
    #org.skife.jdbi: TRACE
    # shows error messages when JSON parsing fails
    #io.dropwizard.jersey.jackson: DEBUG
  appenders:
    # write log to console
    - type: console
    # write log to file
    - type: file
      threshold: DEBUG
      logFormat: "%-6level [%d{HH:mm:ss.SSS}] [%t] %logger{5} - %X{code} %msg %n"
      currentLogFilename: /tmp/application.log
      archivedLogFilenamePattern: /tmp/application-%d{yyyy-MM-dd}.log
      archivedFileCount: 7
      timeZone: UTC

# swagger configuration
swagger:
  resourcePackage: de.ustutt.iaas.cc.resources

# database configuration for file-based H2 database
database:
  # the name of your JDBC driver
  driverClass: org.h2.Driver
  # the username (default root: sa)
  user: sa
  # the password (default empty)
  password: 
  # the JDBC URL
  # http://www.h2database.com/html/faq.html#database_files
  # uses (or creates) a database file in the directory where the application is started
  url: jdbc:h2:file:./NotesDB
  # any properties specific to your JDBC driver:
  properties:
    charSet: UTF-8
  # the maximum amount of time to wait on an empty pool before throwing an exception
  maxWaitForConnection: 1s
  # the SQL query to run when validating a connection's liveness
  validationQuery: "/* DB Health Check */ SELECT 1"
  # the timeout before a connection validation queries fail
  validationQueryTimeout: 3s
  # the minimum number of connections to keep open
  minSize: 8
  # the maximum number of connections to keep open
{'fraction_non_alphanumeric': 0.135202918376653, 'fraction_numerical': 0.009347925216598267, 'mean_word_length': 2.643687707641196, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, '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': '3538940', 'n_tokens_mistral': 1295, 'n_tokens_neox': 1246, 'n_words': 470}