<commit_before># ======================
# Troll Build Properties
# ======================

riot:
  api:
    key: # from RIOT_API_KEY environment variable or -Driot.api.key argument property
    static-data:
      base-url: global.api.pvp.net/api/lol/static-data/{region}/v1.2
      param: api_key
      region: na
      scheme: https
      champions:  /champion
      champion:  /champion/{id}
      items: /item
      item: /item/{id}
      maps: /map
      summoner-spells: /summoner-spell
      summoner-spell: /summoner-spell/{id}
      versions: /versions
    ddragon:
      base-url: ddragon.leagueoflegends.com/cdn
      scheme: http
      champions-img: /{version}/img/champion/{championImgFull}
      items-img: /{version}/img/item/{itemImgFull}
      maps-img: /{version}/img/map/{mapImgFull}
      summoner-spells-img: /{version}/img/spell/{summonerSpellImgFull}

# ======================
# Spring Boot Properties
# ======================

spring:
  # Spring active profile
  profiles.active: external
  # Data REST base URI
  data.rest.base-path: /api
  # Internalization
  messages.basename: i18n/messages
  # Resource handling
  resources.cache-period: 31556926
# Security Properties
security.ignored: /webjars/**
# Actuator
management.context-path: /admin/actuator

---

# Production profile with an embedded H2 database
spring:
  profiles: embedded
  jpa:
    properties:
      hibernate:
        dialect: org.hibernate.dialect.H2Dialect
        show_sql: false
        format_sql: true
        generate_statistics: false
        hbm2ddl.auto:

---

# Production profile with an external PostgreSQL database
spring:
  profiles: external
  datasource:
    initialize: false
    driverClassName: org.postgresql.Driver
    url: ${DB_URL}
    username: ${DB_USERNAME}
    password: ${DB_PASSWORD}
  jpa:
    properties:
      hibernate:
        dialect: org.hibernate.dialect.PostgreSQL9Dialect
        show_sql: false
        format_sql: true
        generate_statistics: false
        hbm2ddl.auto:

---

# Development profile with a local PostgreSQL database
spring:
  profiles: dev
  datasource:
    initialize: false
    driverClassName: org.postgresql.Driver
    url: jdbc:postgresql://localhost/loltrollbuild
    username: postgres
    password: <PASSWORD>
  jpa:
    properties:
      hibernate:
        dialect: org.hibernate.dialect.PostgreSQL9Dialect
        show_sql: true
        format_sql: true
        generate_statistics: true
        hbm2ddl.auto:

---

# Unit testing profile with an embedded H2 database
spring:
  profiles: testing
  jpa:
    properties:
      hibernate:
        dialect: org.hibernate.dialect.H2Dialect
        show_sql: true
        format_sql: true
        generate_statistics: false
        hbm2ddl.auto:<commit_msg>Disable H2 console for profiles using PostgreSQL<commit_after># ======================
# Troll Build Properties
# ======================

riot:
  api:
    key: # from RIOT_API_KEY environment variable or -Driot.api.key argument property
    static-data:
      base-url: global.api.pvp.net/api/lol/static-data/{region}/v1.2
      param: api_key
      region: na
      scheme: https
      champions:  /champion
      champion:  /champion/{id}
      items: /item
      item: /item/{id}
      maps: /map
      summoner-spells: /summoner-spell
      summoner-spell: /summoner-spell/{id}
      versions: /versions
    ddragon:
      base-url: ddragon.leagueoflegends.com/cdn
      scheme: http
      champions-img: /{version}/img/champion/{championImgFull}
      items-img: /{version}/img/item/{itemImgFull}
      maps-img: /{version}/img/map/{mapImgFull}
      summoner-spells-img: /{version}/img/spell/{summonerSpellImgFull}

# ======================
# Spring Boot Properties
# ======================

spring:
  # Spring active profile
  profiles.active: external
  # Data REST base URI
  data.rest.base-path: /api
  # Internalization
  messages.basename: i18n/messages
  # Resource handling
  resources.cache-period: 31556926
# Security Properties
security.ignored: /webjars/**
# Actuator
management.context-path: /admin/actuator

---

# Production profile with an embedded H2 database
spring:
  profiles: embedded
  jpa:
    properties:
      hibernate:
        dialect: org.hibernate.dialect.H2Dialect
        show_sql: false
        format_sql: true
        generate_statistics: false
        hbm2ddl.auto:

---

# Production profile with an external PostgreSQL database
spring:
  profiles: external
  datasource:
    initialize: false
    driverClassName: org.postgresql.Driver
    url: ${DB_URL}
    username: ${DB_USERNAME}
    password: <PASSWORD>}
  jpa:
    properties:
      hibernate:
        dialect: org.hibernate.dialect.PostgreSQL9Dialect
        show_sql: false
        format_sql: true
        generate_statistics: false
        hbm2ddl.auto:
  h2.console.enabled: false

---

# Development profile with a local PostgreSQL database
spring:
  profiles: dev
  datasource:
    initialize: false
    driverClassName: org.postgresql.Driver
    url: jdbc:postgresql://localhost/loltrollbuild
    username: postgres
    password: <PASSWORD>
  jpa:
    properties:
      hibernate:
        dialect: org.hibernate.dialect.PostgreSQL9Dialect
        show_sql: true
        format_sql: true
        generate_statistics: true
        hbm2ddl.auto:
  h2.console.enabled: false

---

# Unit testing profile with an embedded H2 database
spring:
  profiles: testing
  jpa:
    properties:
      hibernate:
        dialect: org.hibernate.dialect.H2Dialect
        show_sql: true
        format_sql: true
        generate_statistics: false
        hbm2ddl.auto:
{'fraction_non_alphanumeric': 0.12015641663704231, 'fraction_numerical': 0.00835407038748667, 'mean_word_length': 2.7892255892255893, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '400662', 'n_tokens_mistral': 1817, 'n_tokens_neox': 1782, 'n_words': 395}