<commit_before>create extension if not exists "pg_trgm";

drop table torrents;
drop type torrent_file;

create type torrent_file as (
  "path" text,
  "length" bigint
);

create table torrents (
  "info_hash" char(40) not null primary key,
  "name" text not null,
  "comment" text,
  "size" bigint not null,
  "first_seen" timestamp with time zone not null,
  "files" torrent_file[] not null,
  "trackers" text[] not null,
  "locations" text[] not null
);

create index name_idx on torrents USING gin (name gin_trgm_ops);
<commit_msg>remove testing drop statements from schema<commit_after>create extension if not exists "pg_trgm";

create type torrent_file as (
  "path" text,
  "length" bigint
);

create table torrents (
  "info_hash" char(40) not null primary key,
  "name" text not null,
  "comment" text,
  "size" bigint not null,
  "first_seen" timestamp with time zone not null,
  "files" torrent_file[] not null,
  "trackers" text[] not null,
  "locations" text[] not null
);

create index name_idx on torrents USING gin (name gin_trgm_ops);

{'fraction_non_alphanumeric': 0.09895337773549001, 'fraction_numerical': 0.003805899143672693, 'mean_word_length': 4.5661375661375665, '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': '1909593', 'n_tokens_mistral': 370, 'n_tokens_neox': 347, 'n_words': 133}