<commit_before>
CREATE TABLE file (
    ufn         VARCHAR(64) NOT NULL,
    uhn         VARCHAR(64) NOT NULL,
    hostname    VARCHAR(255) NOT NULL,
    path        TEXT NOT NULL,
    filename    TEXT NOT NULL,
    crcsum      VARCHAR(64) NOT NULL,
    block_size  INTEGER NOT NULL
);

ALTER TABLE file ADD CONSTRAINT file_pkey PRIMARY KEY (ufn);

CREATE TABLE file_block (
    file        VARCHAR(64) NOT NULL,
    id          INTEGER NOT NULL,
    crcsum      VARCHAR(64) NOT NULL,
    compressed  BOOLEAN NOT NULL DEFAULT FALSE
);

ALTER TABLE file_block ADD CONSTRAINT file_block_pkey PRIMARY KEY (file,id);
ALTER TABLE file_block ADD CONSTRAINT file_block_fk FOREIGN KEY
    (file) REFERENCES file (ufn) ON DELETE CASCADE ON UPDATE CASCADE;


<commit_msg>Add drop table stmt.<commit_after>
DROP TABLE IF EXISTS file CASCADE;

CREATE TABLE file (
    ufn         VARCHAR(64) NOT NULL,
    uhn         VARCHAR(64) NOT NULL,
    hostname    VARCHAR(255) NOT NULL,
    path        TEXT NOT NULL,
    filename    TEXT NOT NULL,
    crcsum      VARCHAR(64) NOT NULL,
    block_size  INTEGER NOT NULL
);

ALTER TABLE file ADD CONSTRAINT file_pkey PRIMARY KEY (ufn);


DROP TABLE IF EXISTS file_block CASCADE;

CREATE TABLE file_block (
    file        VARCHAR(64) NOT NULL,
    id          INTEGER NOT NULL,
    crcsum      VARCHAR(64) NOT NULL,
    compressed  BOOLEAN NOT NULL DEFAULT FALSE
);

ALTER TABLE file_block ADD CONSTRAINT file_block_pkey PRIMARY KEY (file,id);
ALTER TABLE file_block ADD CONSTRAINT file_block_fk FOREIGN KEY
    (file) REFERENCES file (ufn) ON DELETE CASCADE ON UPDATE CASCADE;



{'fraction_non_alphanumeric': 0.05403726708074534, 'fraction_numerical': 0.016149068322981366, 'mean_word_length': 2.7816901408450705, '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': '4573505', 'n_tokens_mistral': 570, 'n_tokens_neox': 527, 'n_words': 193}