<commit_before>export const INFLUXQL_FUNCTIONS = [
  'mean',
  'median',
  'count',
  'min',
  'max',
  'sum',
  'first',
  'last',
  'spread',
  'stddev',
]

const SEPARATOR = 'SEPARATOR'

export const QUERY_TEMPLATES = [
  {text: 'Show Databases', query: 'SHOW DATABASES'},
  {text: 'Create Database', query: 'CREATE DATABASE "db_name"'},
  {text: 'Drop Database', query: 'DROP DATABASE "db_name"'},
  {text: `${SEPARATOR}`},
  {text: 'Show Measurements', query: 'SHOW MEASUREMENTS ON "db_name"'},
  {
    text: 'Show Tag Keys',
    query: 'SHOW TAG KEYS ON "db_name" FROM "measurement_name"',
  },
  {
    text: 'Show Tag Values',
    query: 'SHOW TAG VALUES ON "db_name" FROM "measurement_name" WITH KEY = "tag_key"',
  },
  {text: `${SEPARATOR}`},
  {
    text: 'Show Retention Policies',
    query: 'SHOW RETENTION POLICIES on "db_name"',
  },
  {
    text: 'Create Retention Policy',
    query: 'CREATE RETENTION POLICY "rp_name" ON "db_name" DURATION 30d REPLICATION 1 DEFAULT',
  },
  {
    text: 'Drop Retention Policy',
    query: 'DROP RETENTION POLICY "rp_name" ON "db_name"',
  },
  {text: `${SEPARATOR}`},
  {
    text: 'Show Continuos Queries',
    query: 'SHOW CONTINUOUS QUERIES',
  },
  {
    text: 'Create Continuous Query',
    query: 'CREATE CONTINUOUS QUERY "cq_name" ON "db_name" BEGIN SELECT min("field") INTO "target_measurement" FROM "current_measurement" GROUP BY time(30m) END',
  },<commit_msg>Fix typo in Query Templates dropdown<commit_after>export const INFLUXQL_FUNCTIONS = [
  'mean',
  'median',
  'count',
  'min',
  'max',
  'sum',
  'first',
  'last',
  'spread',
  'stddev',
]

const SEPARATOR = 'SEPARATOR'

export const QUERY_TEMPLATES = [
  {text: 'Show Databases', query: 'SHOW DATABASES'},
  {text: 'Create Database', query: 'CREATE DATABASE "db_name"'},
  {text: 'Drop Database', query: 'DROP DATABASE "db_name"'},
  {text: `${SEPARATOR}`},
  {text: 'Show Measurements', query: 'SHOW MEASUREMENTS ON "db_name"'},
  {
    text: 'Show Tag Keys',
    query: 'SHOW TAG KEYS ON "db_name" FROM "measurement_name"',
  },
  {
    text: 'Show Tag Values',
    query: 'SHOW TAG VALUES ON "db_name" FROM "measurement_name" WITH KEY = "tag_key"',
  },
  {text: `${SEPARATOR}`},
  {
    text: 'Show Retention Policies',
    query: 'SHOW RETENTION POLICIES on "db_name"',
  },
  {
    text: 'Create Retention Policy',
    query: 'CREATE RETENTION POLICY "rp_name" ON "db_name" DURATION 30d REPLICATION 1 DEFAULT',
  },
  {
    text: 'Drop Retention Policy',
    query: 'DROP RETENTION POLICY "rp_name" ON "db_name"',
  },
  {text: `${SEPARATOR}`},
  {
    text: 'Show Continuous Queries',
    query: 'SHOW CONTINUOUS QUERIES',
  },
  {
    text: 'Create Continuous Query',
    query: 'CREATE CONTINUOUS QUERY "cq_name" ON "db_name" BEGIN SELECT min("field") INTO "target_measurement" FROM "current_measurement" GROUP BY time(30m) END',
  },
{'fraction_non_alphanumeric': 0.1573816155988858, 'fraction_numerical': 0.003481894150417827, 'mean_word_length': 3.953448275862069, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1774256', 'n_tokens_mistral': 1140, 'n_tokens_neox': 1085, 'n_words': 299}