<commit_before><?php
// Zabbix GUI configuration file
global $DB;

<% dbtypes = Hash.new %>
<% dbtypes['mysql'] = "MYSQL" %>
<% dbtypes['rds_mysql'] = "MYSQL" %>
<% dbtypes['postgres'] = "POSTGRESQL" %>

$DB["TYPE"]                     = '<%= dbtypes[@database[:install_method]] %>';
$DB["SERVER"]                   = '<%= @database[:dbhost] %>';
$DB["PORT"]                     = '<%= @database[:dbport] %>';
$DB["DATABASE"]                 = '<%= @database[:dbname] %>';
$DB["USER"]                     = '<%= @database[:dbuser] %>';
$DB["PASSWORD"]                 = '<%= @database[:dbpassword] %>';
// SCHEMA is relevant only for IBM_DB2 database
$DB["SCHEMA"]                   = '<%= @database[:schema] %>';

$ZBX_SERVER                     = '<%= @server[:host] %>';
$ZBX_SERVER_PORT                = '<%= @server[:port] %>';
$ZBX_SERVER_NAME                = '<%= @server[:name] %>';

$IMAGE_FORMAT_DEFAULT   = IMAGE_FORMAT_PNG;
?><commit_msg>Add support for Oracle DB type<commit_after><?php
// Zabbix GUI configuration file
global $DB;

<% dbtypes = Hash.new %>
<% dbtypes['mysql'] = "MYSQL" %>
<% dbtypes['rds_mysql'] = "MYSQL" %>
<% dbtypes['postgres'] = "POSTGRESQL" %>
<% dbtypes['oracle'] = "ORACLE" %>

$DB["TYPE"]                     = '<%= dbtypes[@database[:install_method]] %>';
$DB["SERVER"]                   = '<%= @database[:dbhost] %>';
$DB["PORT"]                     = '<%= @database[:dbport] %>';
$DB["DATABASE"]                 = '<%= @database[:dbname] %>';
$DB["USER"]                     = '<%= @database[:dbuser] %>';
$DB["PASSWORD"]                 = '<%= @database[:dbpassword] %>';
// SCHEMA is relevant only for IBM_DB2 database
$DB["SCHEMA"]                   = '<%= @database[:schema] %>';

$ZBX_SERVER                     = '<%= @server[:host] %>';
$ZBX_SERVER_PORT                = '<%= @server[:port] %>';
$ZBX_SERVER_NAME                = '<%= @server[:name] %>';

$IMAGE_FORMAT_DEFAULT   = IMAGE_FORMAT_PNG;
?>
{'fraction_non_alphanumeric': 0.2359263050153531, 'fraction_numerical': 0.0010235414534288639, 'mean_word_length': 2.4479717813051147, 'pattern_counts': {'":': 0, '<': 34, '<?xml version=': 0, '>': 34, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '2354680', 'n_tokens_mistral': 685, 'n_tokens_neox': 633, 'n_words': 95}