<commit_before>SET @@FOREIGN_KEY_CHECKS = 0;

/****************/
/*  experiment  */
/****************/
DROP TABLE IF EXISTS experiment;
CREATE TABLE experiment (
  pk INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
  dateOfExperiment DATE NOT NULL,
  experimentId VARCHAR(255) NOT NULL,
  sequenceId VARCHAR(255) DEFAULT NULL,
  center_procedure_pk INT UNSIGNED NOT NULL,

  KEY dateOfExperiment_idx(dateOfExperiment),
  KEY experimentId_idx(experimentId)

) ENGINE=InnoDB DEFAULT CHARSET=utf8;

DROP TABLE IF EXISTS experiment_statuscode;
CREATE TABLE experiment_statuscode (
  pk INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
  experiment_pk INT UNSIGNED NOT NULL,
  statuscode_pk INT UNSIGNED NOT NULL,

  UNIQUE KEY experimentPk_statuscodePk_uk (experiment_pk, statuscode_pk)

) ENGINE=InnoDB DEFAULT CHARSET=utf8;

DROP TABLE IF EXISTS experiment_specimen;
CREATE TABLE experiment_specimen (
  pk INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
  experiment_pk INT UNSIGNED NOT NULL,
  specimen_pk INT UNSIGNED NOT NULL,

  UNIQUE KEY experimentPk_specimenPk_uk (experiment_pk, specimen_pk)

) ENGINE=InnoDB DEFAULT CHARSET=utf8;

DROP TABLE IF EXISTS housing;<commit_msg>Added column to dcc experiment to hold the datasourceShortName.<commit_after>SET @@FOREIGN_KEY_CHECKS = 0;

/****************/
/*  experiment  */
/****************/
DROP TABLE IF EXISTS experiment;
CREATE TABLE experiment (
  pk INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
  dateOfExperiment DATE NOT NULL,
  experimentId VARCHAR(255) NOT NULL,
  sequenceId VARCHAR(255) DEFAULT NULL,
  datasourceShortName VARCHAR(40) NOT NULL,
  center_procedure_pk INT UNSIGNED NOT NULL,

  KEY dateOfExperiment_idx(dateOfExperiment),
  KEY experimentId_idx(experimentId),
  KEY center_procedure_pk_idx(center_procedure_pk)

) ENGINE=InnoDB DEFAULT CHARSET=utf8;

DROP TABLE IF EXISTS experiment_statuscode;
CREATE TABLE experiment_statuscode (
  pk INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
  experiment_pk INT UNSIGNED NOT NULL,
  statuscode_pk INT UNSIGNED NOT NULL,

  UNIQUE KEY experimentPk_statuscodePk_uk (experiment_pk, statuscode_pk)

) ENGINE=InnoDB DEFAULT CHARSET=utf8;

DROP TABLE IF EXISTS experiment_specimen;
CREATE TABLE experiment_specimen (
  pk INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
  experiment_pk INT UNSIGNED NOT NULL,
  specimen_pk INT UNSIGNED NOT NULL,

  UNIQUE KEY experimentPk_specimenPk_uk (experiment_pk, specimen_pk)

) ENGINE=InnoDB DEFAULT CHARSET=utf8;

DROP TABLE IF EXISTS housing;
{'fraction_non_alphanumeric': 0.0759141494435612, 'fraction_numerical': 0.008744038155802861, 'mean_word_length': 5.802702702702702, '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': '1084451', 'n_tokens_mistral': 889, 'n_tokens_neox': 813, 'n_words': 247}