<commit_before>import slick.jdbc.PostgresProfile.api._
import com.liyaos.forklift.slick.SqlMigration

object M102 {
  RFMigrations.migrations = RFMigrations.migrations :+ SqlMigration(102)(List(
    sqlu"""
    UPDATE datasources
    SET name = 'Sentinel-2'
    WHERE id = '4a50cb75-815d-4fe5-8bc1-144729ce5b42';

    DELETE FROM datasources
    WHERE id = 'c33db82d-afdb-43cb-a6ac-ba899e48638d';

    UPDATE scenes
    SET datasource = '4a50cb75-815d-4fe5-8bc1-144729ce5b42'
    WHERE datasource = 'c33db82d-afdb-43cb-a6ac-ba899e48638d';
    """
  ))
}
<commit_msg>Delete datasource after updating scenes (#3177)<commit_after>import slick.jdbc.PostgresProfile.api._
import com.liyaos.forklift.slick.SqlMigration

object M102 {
  RFMigrations.migrations = RFMigrations.migrations :+ SqlMigration(102)(List(
    sqlu"""
    UPDATE datasources
    SET name = 'Sentinel-2'
    WHERE id = '4a50cb75-815d-4fe5-8bc1-144729ce5b42';

    UPDATE scenes
    SET datasource = '4a50cb75-815d-4fe5-8bc1-144729ce5b42'
    WHERE datasource = 'c33db82d-afdb-43cb-a6ac-ba899e48638d';

    DELETE FROM datasources
    WHERE id = 'c33db82d-afdb-43cb-a6ac-ba899e48638d';
    """
  ))
}

{'fraction_non_alphanumeric': 0.11406518010291596, 'fraction_numerical': 0.13893653516295026, 'mean_word_length': 3.8625, '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': '2766014', 'n_tokens_mistral': 576, 'n_tokens_neox': 482, 'n_words': 69}