<commit_before># Script for populating the database. You can run it as:
#
#     mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
#     BandIndigo.Repo.insert!(%SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fail if something goes wrong.

# clean database
BandIndigo.Repo.delete_all(BandIndigo.Track)
BandIndigo.Repo.delete_all(BandIndigo.Disk)

{:ok, d1_date} = Ecto.Date.cast("2009-01-11")
{:ok, d2_date} = Ecto.Date.cast("2012-01-11")

d1 = BandIndigo.Repo.insert!(%BandIndigo.Disk{name: "La Terre est bleue comme une orange",
                                              label: "Georgaphy Edge",
                                              year: d1_date,
                                              cover_name: "earth_2009.jpg",
                                              itunes_link: "https://itunes.apple.com/ru/album/la-terre-est-bleue-comme-une-orange/id1208303564",
                                              google_play_link: "https://play.google.com/store/music/album?id=Bsfr4sx5yhrzfvdfmpesolrl2ku&tid=song-Tu4pnmlx3xqu7ub6itsrg6x24zi&hl=en",
                                              amazon_link: "https://www.amazon.com/gp/product/B01BPW05YM"})
d2 = BandIndigo.Repo.insert!(%BandIndigo.Disk{name: "Bushido",
                                              label: "Georgaphy Edge",
                                              year: d2_date,
                                              cover_name: "bushido_2012.jpg",
                                              itunes_link: "https://itunes.apple.com/us/album/bushido/id1208009998",
                                              google_play_link: "https://play.google.com/store/music/album/Indigo_Bushido?id=B6db7rej2yum5wy26fptrj4dl3u&hl=en",
                                              amazon_link: "https://www.amazon.com/gp/product/B01BPTNEY8"})

tracks = [
  {"Kaleidoscope", "00:03:11", d1.id},<commit_msg>Change iTunes link to US<commit_after># Script for populating the database. You can run it as:
#
#     mix run priv/repo/seeds.exs
#
# Inside the script, you can read and write to any of your
# repositories directly:
#
#     BandIndigo.Repo.insert!(%SomeModel{})
#
# We recommend using the bang functions (`insert!`, `update!`
# and so on) as they will fail if something goes wrong.

# clean database
BandIndigo.Repo.delete_all(BandIndigo.Track)
BandIndigo.Repo.delete_all(BandIndigo.Disk)

{:ok, d1_date} = Ecto.Date.cast("2009-01-11")
{:ok, d2_date} = Ecto.Date.cast("2012-01-11")

d1 = BandIndigo.Repo.insert!(%BandIndigo.Disk{name: "La Terre est bleue comme une orange",
                                              label: "Georgaphy Edge",
                                              year: d1_date,
                                              cover_name: "earth_2009.jpg",
                                              itunes_link: "https://itunes.apple.com/us/album/la-terre-est-bleue-comme-une-orange/id1208303564",
                                              google_play_link: "https://play.google.com/store/music/album?id=Bsfr4sx5yhrzfvdfmpesolrl2ku&tid=song-Tu4pnmlx3xqu7ub6itsrg6x24zi&hl=en",
                                              amazon_link: "https://www.amazon.com/gp/product/B01BPW05YM"})
d2 = BandIndigo.Repo.insert!(%BandIndigo.Disk{name: "Bushido",
                                              label: "Georgaphy Edge",
                                              year: d2_date,
                                              cover_name: "bushido_2012.jpg",
                                              itunes_link: "https://itunes.apple.com/us/album/bushido/id1208009998",
                                              google_play_link: "https://play.google.com/store/music/album/Indigo_Bushido?id=B6db7rej2yum5wy26fptrj4dl3u&hl=en",
                                              amazon_link: "https://www.amazon.com/gp/product/B01BPTNEY8"})

tracks = [
  {"Kaleidoscope", "00:03:11", d1.id},
{'fraction_non_alphanumeric': 0.11372064276885044, 'fraction_numerical': 0.040543881334981456, 'mean_word_length': 1.639269406392694, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 48, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4374415', 'n_tokens_mistral': 1301, 'n_tokens_neox': 1200, 'n_words': 203}