<commit_before>#!/usr/bin/python3
# -*- coding: utf-8 -*-
ATLANTSOLIA = 'Atlantsolía'
COSTCO = '<NAME>'
N1 = 'N1'
DAELAN = 'Dælan'
OLIS = 'Olís'
OB = 'ÓB'
SKELJUNGUR = 'Skeljungur'
ORKAN = 'Orkan'
ORKAN_X = 'Orkan X'


class PRICETYPE:
    INDIVIDUAL = 0
    GLOBAL = 1


ATLANTSOLIA_LOCATION_RELATION = {
    '<NAME>': 'ao_000',
    '<NAME>': 'ao_001',
    'Bíldshöfði': 'ao_002',
    'Borgarnes': 'ao_003',
    'Búðarkór': 'ao_004',
    'Egilsstaðir': 'ao_005',
    'Hafnarfjarðarhöfn': 'ao_006',
    'Hveragerði': 'ao_007',
    'Kaplakriki *': 'ao_008',
    'Kópavogsbraut': 'ao_009',
    'Mosfellsbær': 'ao_010',
    'Njarðvík': 'ao_011',
    'Öskjuhlíð': 'ao_012',
    'Selfoss': 'ao_013',
    'Skeifan': 'ao_014',
    'Skemmuvegi': 'ao_015',
    'Skúlagata': 'ao_016',
    'Sprengisandur *': 'ao_017',
    'Stykkishólmur': 'ao_018',
    'Starengi': 'ao_019',
    'Kirkjustétt': 'ao_020',
    'Knarrvogur': 'ao_021',  # typo in address?
    'Knarravogur': 'ao_021',  # put these two just in case ..
    'Knarrarvogur': 'ao_021',
    'Kjalarnes': 'ao_022'
}
# Atlantsolia declared one (and now two) of its stations to be without discount,
# on their site that station is marked with a star (*) and the following comment at the bottom:
# "* Engir afslaettir gilda"
ATLANTSOLIA_DISCOUNTLESS_STATIONS = ['ao_008', 'ao_017']

OLIS_MINIMUM_DISCOUNT = 5
OLIS_LOCATION_RELATION = {
    'Baula': 'ol_016',
    'Borgarnes': 'ol_017',
    'Akranes, Esjubraut': 'ol_012',
    'Akranes, Umboð': 'ol_013',
    'Akureyri, bensínstöð': 'ol_014',
    'Arnarstapi - bensínstöð': 'ol_015',
    'Álfheimar': 'ol_001',
    'Ánanaust': 'ol_002',
    'Básinn': 'ol_025',
    'Dalvík Bensínstöð': 'ol_018',
    'Fellabær': 'ol_019',
    'Ferstikla Veitingaskáli': 'ol_020',
    'Garðabær': 'ol_004',
    'Gullinbrú': 'ol_005',
    'Hamraborg': 'ol_006',
    'Hella - bensínstöð': 'ol_021',
    'Hornafjörður bensínst.': 'ol_024',
    'Húsavík': 'ol_023',
    'Klöpp': 'ol_008',
    'Langitangi': 'ol_009',
    'Litla-Kaffistofan': 'ol_027',
    'Mjódd': 'ol_000',
    'Neskaupstaður': 'ol_028',
    'Norðlingaholt': 'ol_010',
    'Ólafsfjörður, bensínstöð': 'ol_029',
    'Reyðarfjörður': 'ol_030',
    'Sauðárkrókur - þjónustust.': 'ol_031',
    'Selfoss': 'ol_032',
    'Siglufjörður bensínstöð': 'ol_033',
    'Skagaströnd bensínst.': 'ol_034',
    'Sæbraut': 'ol_011'
}
OB_MINIMUM_DISCOUNT = 5
OB_LOCATION_RELATION = {
    'Arnarsmára': 'ob_003',
    'Bæjarlind': 'ob_010',
    'Fjarðarkaup': 'ob_012',
    'Borgarnes': 'ob_009',
    'Akranes, Esjubraut': 'ob_000',
    'Aðalgötu': 'ob_035',
    'Akureyri': 'ob_001',
    'Akureyri BSÓ': 'ob_002',
    'Barðastaðir': 'ob_004',
    'Baula': 'ob_005',
    'Bíldshöfða': 'ob_006',
    'Blönduós': 'ob_007',
    'Bolungarvík': 'ob_008',
    'Búðardalur': '',  # note: station missing
    'Eyrarbakka': 'ob_011',
    'Grindavík': 'ob_014',
    'Grundartanga': 'ob_015',
    'Hólmavík': 'ob_016',
    'Húsavík': 'ob_017',
    'Ísafjörður': 'ob_018',
    'Kirkjubæjarklaustur': 'ob_019',
    'Landvegamót': 'ob_020',
    'Laugabakki': 'ol_036',
    'Melabraut': 'ob_021',
    '<NAME>': 'ob_022',
    'Neskaupstaður': 'ob_023',
    'Njarðvík': 'ob_024',
    'Reyðarfjörður': 'ob_026',
    'Selfoss': 'ob_027',
    'Snorrabraut': 'ob_028',
    'Stykkishólmur': 'ob_030',
    'Suðurhella': 'ob_031',
    'Varmahlíð': 'ob_034',
    '<NAME>': 'ob_032',
    'Þorlákshöfn': 'ob_033'
}
# OB has been playing the "random five stations of ours have minimum of 15 ISK discount", they
# shuffle the stations every month.
# In 2019-06 the stations are the following:
# * Baejarlind (ob_010)  <-- this station was made discountless 2019-06-04T11:39, see below
# * Thorlakshofn (ob_033)
# * Akureyri - Hlidarbraut (ob_001)
# * Blonduos (ob_007)
# * Varmahlid (ob_034)
OB_EXTRA_DISCOUNT_STATIONS = ['ob_033', 'ob_001', 'ob_007', 'ob_034']
OB_EXTRA_DISCOUNT_AMOUNT = 15
OB_EXTRA_DISCOUNT_UNTIL = '2019-06-30T23:59'
# OB joins the discountless madness
# https://www.facebook.com/ob.bensin/photos/a.208957995809394/2301004636604709/
# Says the following (2019-06-04T11:39):
# ------------------------------------------------------------------------------------------------
# OB hefur nu laekkad verð á eldsneytislitranum umtalsvert á thremur stoðvum!
# * Fjardarkaupum i Hafnarfirdi (ob_012)<commit_msg>ÓB xtra discount stations 2019-07<commit_after>#!/usr/bin/python3
# -*- coding: utf-8 -*-
ATLANTSOLIA = 'Atlantsolía'
COSTCO = '<NAME>'
N1 = 'N1'
DAELAN = 'Dælan'
OLIS = 'Olís'
OB = 'ÓB'
SKELJUNGUR = 'Skeljungur'
ORKAN = 'Orkan'
ORKAN_X = 'Orkan X'


class PRICETYPE:
    INDIVIDUAL = 0
    GLOBAL = 1


ATLANTSOLIA_LOCATION_RELATION = {
    '<NAME>': 'ao_000',
    '<NAME>': 'ao_001',
    'Bíldshöfði': 'ao_002',
    'Borgarnes': 'ao_003',
    'Búðarkór': 'ao_004',
    'Egilsstaðir': 'ao_005',
    'Hafnarfjarðarhöfn': 'ao_006',
    'Hveragerði': 'ao_007',
    'Kaplakriki *': 'ao_008',
    'Kópavogsbraut': 'ao_009',
    'Mosfellsbær': 'ao_010',
    'Njarðvík': 'ao_011',
    'Öskjuhlíð': 'ao_012',
    'Selfoss': 'ao_013',
    'Skeifan': 'ao_014',
    'Skemmuvegi': 'ao_015',
    'Skúlagata': 'ao_016',
    'Sprengisandur *': 'ao_017',
    'Stykkishólmur': 'ao_018',
    'Starengi': 'ao_019',
    'Kirkjustétt': 'ao_020',
    'Knarrvogur': 'ao_021',  # typo in address?
    'Knarravogur': 'ao_021',  # put these two just in case ..
    'Knarrarvogur': 'ao_021',
    'Kjalarnes': 'ao_022'
}
# Atlantsolia declared one (and now two) of its stations to be without discount,
# on their site that station is marked with a star (*) and the following comment at the bottom:
# "* Engir afslaettir gilda"
ATLANTSOLIA_DISCOUNTLESS_STATIONS = ['ao_008', 'ao_017']

OLIS_MINIMUM_DISCOUNT = 5
OLIS_LOCATION_RELATION = {
    'Baula': 'ol_016',
    'Borgarnes': 'ol_017',
    'Akranes, Esjubraut': 'ol_012',
    'Akranes, Umboð': 'ol_013',
    'Akureyri, bensínstöð': 'ol_014',
    'Arnarstapi - bensínstöð': 'ol_015',
    'Álfheimar': 'ol_001',
    'Ánanaust': 'ol_002',
    'Básinn': 'ol_025',
    'Dalvík Bensínstöð': 'ol_018',
    'Fellabær': 'ol_019',
    'Ferstikla Veitingaskáli': 'ol_020',
    'Garðabær': 'ol_004',
    'Gullinbrú': 'ol_005',
    'Hamraborg': 'ol_006',
    'Hella - bensínstöð': 'ol_021',
    'Hornafjörður bensínst.': 'ol_024',
    'Húsavík': 'ol_023',
    'Klöpp': 'ol_008',
    'Langitangi': 'ol_009',
    'Litla-Kaffistofan': 'ol_027',
    'Mjódd': 'ol_000',
    'Neskaupstaður': 'ol_028',
    'Norðlingaholt': 'ol_010',
    'Ólafsfjörður, bensínstöð': 'ol_029',
    'Reyðarfjörður': 'ol_030',
    'Sauðárkrókur - þjónustust.': 'ol_031',
    'Selfoss': 'ol_032',
    'Siglufjörður bensínstöð': 'ol_033',
    'Skagaströnd bensínst.': 'ol_034',
    'Sæbraut': 'ol_011'
}
OB_MINIMUM_DISCOUNT = 5
OB_LOCATION_RELATION = {
    'Arnarsmára': 'ob_003',
    'Bæjarlind': 'ob_010',
    'Fjarðarkaup': 'ob_012',
    'Borgarnes': 'ob_009',
    'Akranes, Esjubraut': 'ob_000',
    'Aðalgötu': 'ob_035',
    'Akureyri': 'ob_001',
    'Akureyri BSÓ': 'ob_002',
    'Barðastaðir': 'ob_004',
    'Baula': 'ob_005',
    'Bíldshöfða': 'ob_006',
    'Blönduós': 'ob_007',
    'Bolungarvík': 'ob_008',
    'Búðardalur': '',  # note: station missing
    'Eyrarbakka': 'ob_011',
    'Grindavík': 'ob_014',
    'Grundartanga': 'ob_015',
    'Hólmavík': 'ob_016',
    'Húsavík': 'ob_017',
    'Ísafjörður': 'ob_018',
    'Kirkjubæjarklaustur': 'ob_019',
    'Landvegamót': 'ob_020',
    'Laugabakki': 'ol_036',
    'Melabraut': 'ob_021',
    '<NAME>': 'ob_022',
    'Neskaupstaður': 'ob_023',
    'Njarðvík': 'ob_024',
    'Reyðarfjörður': 'ob_026',
    'Selfoss': 'ob_027',
    'Snorrabraut': 'ob_028',
    'Stykkishólmur': 'ob_030',
    'Suðurhella': 'ob_031',
    'Varmahlíð': 'ob_034',
    'Vestmannaeyjar Klettur': 'ob_032',
    'Þorlákshöfn': 'ob_033'
}
# OB has been playing the "random five stations of ours have minimum of 15 ISK discount", they
# shuffle the stations every month.
# In 2019-07 the stations are the following:
# https://www.facebook.com/ob.bensin/photos/a.208957995809394/2349874545051051/
# * Stykkishólmur
# * Bolungarvík
# * Reyðarfjörður
# * Selfoss
# * Njarðvík
OB_EXTRA_DISCOUNT_STATIONS = ['ob_030', 'ob_008', 'ob_026', 'ob_027', 'ob_024']
OB_EXTRA_DISCOUNT_AMOUNT = 15
OB_EXTRA_DISCOUNT_UNTIL = '2019-07-31T23:59'
# OB joins the discountless madness
# https://www.facebook.com/ob.bensin/photos/a.208957995809394/2301004636604709/
# Says the following (2019-06-04T11:39):
# ------------------------------------------------------------------------------------------------
# OB hefur nu laekkad verð á eldsneytislitranum umtalsvert á thremur stoðvum!
# * Fjardarkaupum i Hafnarfirdi (ob_012)
{'fraction_non_alphanumeric': 0.1932081594807603, 'fraction_numerical': 0.09214186369958276, 'mean_word_length': 3.5825809877854486, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 12, 'https://': 3, 'lorem ipsum': 0, 'www.': 3, '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': '572924', 'n_tokens_mistral': 4532, 'n_tokens_neox': 3968, 'n_words': 712}