<commit_before>import Loader from './loader.js'
import {COLORS7, COLORS9} from './colors.js'

const SOURCES = [
  {
    slug: 'e-coli-cephalosporins',
    name: 'Escherichia coli vs cephalosporins',
    title: 'Resistance to 3rd generation cephalosporins  in percent. Of all infections with this bacterium, this percentage was resistant to this antibiotic.',
    annotation: 'ECDC Surveillance report 2014, except Poland (2013)',
    euData: 12,
    unit: '%',
    range: {
      min: 0,
      max: 64
    },
    data: require('dsv!./csv/1_e-coli.csv')
  },
  {
    slug: 'e-coli-fluoroquinolones',
    name: 'Escherichia coli vs fluoroquinolones ',
    title: 'Resistance to fluoroquinolones in percent. Of all infections with this bacterium, this percentage was resistant to this antibiotic.',
    annotation: 'ECDC Surveillance report 2014, except Poland (2013)',
    euData: 22.4,
    unit: '%',
    range: {
      min: 0,
      max: 64
    },
    data: require('dsv!./csv/0_e-coli.csv')
  },
  {
    slug: 'k-pneu-cephalosporins',
    name: 'Klebsiella pneumoniae vs cephalosporins',
    title: 'Resistance to 3rd generation cephalosporins in percent. Of all infections with this bacterium, this percentage was resistant to this antibiotic.',
    euData: 28,
    annotation: 'ECDC Surveillance report 2014, except Poland (2013)',
    unit: '%',
    range: {
      min: 0,
      max: 64
    },
    data: require('dsv!./csv/2_k-p.csv')
  },
  {
    slug: 'k-pneu-carbapenems',
    name: 'Klebsiella pneumoniae vs carbapenems',
    title: 'Resistance to carbapenems in percent. Of all infections with this bacterium, this percentage was resistant to this antibiotic.',
    euData: 7.3,
    annotation: 'ECDC Surveillance report 2014, except Poland (2013)',
    unit: '%',
    range: {
      min: 0,
      max: 64
    },
    data: require('dsv!./csv/3_k-p.csv')
  },
  {
    slug: 's-aure-methicillin',
    name: 'Staphylococcus aureus vs methicillin',
    title: 'MRSA in percent. Of all infections with this bacterium, this percentage was resistant to this antibiotic.',
    euData: 17.4,
    annotation: 'ECDC Surveillance report 2014, except Poland (2013)',
    unit: '%',
    range: {
      min: 0,
      max: 64
    },
    data: require('dsv!./csv/5_mrsa.csv')
  },
  {
    slug: 's-pneu-penicillin',
    name: 'Streptococcus pneumoniae vs penicillin',
    title: 'Resistance to penicillin in percent. Of all infections with this bacterium, this percentage was resistant to this antibiotic.',
    annotation: 'ECDC Surveillance report 2014, except Poland (2013)',
    unit: '%',
    range: {
      min: 0,
      max: 64
    },
    data: require('dsv!./csv/4_s-p.csv')
  },
  {
    slug: 'salmonella-fluoroquinolones',
    name: 'Salmonella vs fluoroquinolones',
    title: 'Resistance to fluoroquinolones in percent. Of all infections with this bacterium, this percentage was resistant to this antibiotic.',
    annotation: 'WHO Surveillance report 2014',
    unit: '%',
    range: {
      min: 0,
      max: 64
    },
    data: require('dsv!./csv/6_nts.csv')
  },
  {
    slug: 'shigella-fluoroquinolones',
    name: 'Shigella vs fluoroquinolones',
    title: 'Resistance to fluoroquinolones in percent. Of all infections with this bacterium, this percentage was resistant to this antibiotic.',
    annotation: 'WHO Surveillance report 2014',
    unit: '%',
    range: {
      min: 0,
      max: 64
    },
    data: require('dsv!./csv/7_shigella.csv')
  },
  {
    slug: 'n-gono-cephalosporins',
    name: 'Neisseria gonorrhoea vs cephalosporins',
    title: 'Resistance to 3rd generation cephalosporins in percent. Of all infections with this bacterium, this percentage was resistant to this antibiotic.',
    annotation: 'WHO Surveillance report 2014',
    unit: '%',
    range: {
      min: 0,
      max: 64
    },
    data: require('dsv!./csv/8_neisseria.csv')
  },
  {
    slug: 'ab-animals',
    name: 'Antibiotikum Tiere',
    title: 'Resistance to 3rd generation cephalosporins in percent. Of all infections with this bacterium, this percentage was resistant to this antibiotic.',
    annotation: 'WHO Surveillance report 2014',
    euData: 114,
    unit: 'mg/kg',
    range: {
      min: 0,
      max: 360
    },
    colors: COLORS9,
    data: require('dsv!./csv/9_ab_animals.csv')
  },
  {
    slug: 'ab-humans',
    name: 'Antibiotikum Menschen',
    title: 'Resistance to 3rd generation cephalosporins in percent. Of all infections with this bacterium, this percentage was resistant to this antibiotic.',
    annotation: 'WHO Surveillance report 2014',
    euData: 116.4,
    unit: 'mg/kg',
    range: {
      min: 0,
      max: 360
    },
    colors: COLORS9,
    data: require('dsv!./csv/10_ab_humans.csv')
  }
]

let DEFAULT_COLORS = COLORS9
let DATASETS = {}
let DEFAULT_DATASET
let i = 0
for (let source of SOURCES) {<commit_msg>Datasets: update title and annotations for antimicrobials<commit_after>import Loader from './loader.js'
import {COLORS7, COLORS9} from './colors.js'

const SOURCES = [
  {
    slug: 'e-coli-cephalosporins',
    name: 'Escherichia coli vs cephalosporins',
    title: 'Resistance to 3rd generation cephalosporins  in percent. Of all infections with this bacterium, this percentage was resistant to this antibiotic.',
    annotation: 'ECDC Surveillance report 2014, except Poland (2013)',
    euData: 12,
    unit: '%',
    range: {
      min: 0,
      max: 64
    },
    data: require('dsv!./csv/1_e-coli.csv')
  },
  {
    slug: 'e-coli-fluoroquinolones',
    name: 'Escherichia coli vs fluoroquinolones ',
    title: 'Resistance to fluoroquinolones in percent. Of all infections with this bacterium, this percentage was resistant to this antibiotic.',
    annotation: 'ECDC Surveillance report 2014, except Poland (2013)',
    euData: 22.4,
    unit: '%',
    range: {
      min: 0,
      max: 64
    },
    data: require('dsv!./csv/0_e-coli.csv')
  },
  {
    slug: 'k-pneu-cephalosporins',
    name: 'Klebsiella pneumoniae vs cephalosporins',
    title: 'Resistance to 3rd generation cephalosporins in percent. Of all infections with this bacterium, this percentage was resistant to this antibiotic.',
    euData: 28,
    annotation: 'ECDC Surveillance report 2014, except Poland (2013)',
    unit: '%',
    range: {
      min: 0,
      max: 64
    },
    data: require('dsv!./csv/2_k-p.csv')
  },
  {
    slug: 'k-pneu-carbapenems',
    name: 'Klebsiella pneumoniae vs carbapenems',
    title: 'Resistance to carbapenems in percent. Of all infections with this bacterium, this percentage was resistant to this antibiotic.',
    euData: 7.3,
    annotation: 'ECDC Surveillance report 2014, except Poland (2013)',
    unit: '%',
    range: {
      min: 0,
      max: 64
    },
    data: require('dsv!./csv/3_k-p.csv')
  },
  {
    slug: 's-aure-methicillin',
    name: 'Staphylococcus aureus vs methicillin',
    title: 'MRSA in percent. Of all infections with this bacterium, this percentage was resistant to this antibiotic.',
    euData: 17.4,
    annotation: 'ECDC Surveillance report 2014, except Poland (2013)',
    unit: '%',
    range: {
      min: 0,
      max: 64
    },
    data: require('dsv!./csv/5_mrsa.csv')
  },
  {
    slug: 's-pneu-penicillin',
    name: 'Streptococcus pneumoniae vs penicillin',
    title: 'Resistance to penicillin in percent. Of all infections with this bacterium, this percentage was resistant to this antibiotic.',
    annotation: 'ECDC Surveillance report 2014, except Poland (2013)',
    unit: '%',
    range: {
      min: 0,
      max: 64
    },
    data: require('dsv!./csv/4_s-p.csv')
  },
  {
    slug: 'salmonella-fluoroquinolones',
    name: 'Salmonella vs fluoroquinolones',
    title: 'Resistance to fluoroquinolones in percent. Of all infections with this bacterium, this percentage was resistant to this antibiotic.',
    annotation: 'WHO Surveillance report 2014',
    unit: '%',
    range: {
      min: 0,
      max: 64
    },
    data: require('dsv!./csv/6_nts.csv')
  },
  {
    slug: 'shigella-fluoroquinolones',
    name: 'Shigella vs fluoroquinolones',
    title: 'Resistance to fluoroquinolones in percent. Of all infections with this bacterium, this percentage was resistant to this antibiotic.',
    annotation: 'WHO Surveillance report 2014',
    unit: '%',
    range: {
      min: 0,
      max: 64
    },
    data: require('dsv!./csv/7_shigella.csv')
  },
  {
    slug: 'n-gono-cephalosporins',
    name: 'Neisseria gonorrhoea vs cephalosporins',
    title: 'Resistance to 3rd generation cephalosporins in percent. Of all infections with this bacterium, this percentage was resistant to this antibiotic.',
    annotation: 'WHO Surveillance report 2014',
    unit: '%',
    range: {
      min: 0,
      max: 64
    },
    data: require('dsv!./csv/8_neisseria.csv')
  },
  {
    slug: 'ab-animals',
    name: 'Antimicrobials consumption (animals)',
    title: 'Consumption of antimicrobials by food-producing animals expressed as milligrams per kilogram biomass.',
    annotation: 'ECDC/EFSA/EMA first joint report, 2015 (Data from 2012)',
    euData: 114,
    unit: 'mg/kg',
    range: {
      min: 0,
      max: 360
    },
    colors: COLORS9,
    data: require('dsv!./csv/9_ab_animals.csv')
  },
  {
    slug: 'ab-humans',
    name: 'Antimicrobials consumption (humans)',
    title: 'Consumption of antimicrobials by humans expressed as milligrams per kilogram biomass.',
    annotation: 'ECDC/EFSA/EMA first joint report, 2015 (Data from 2012)',
    euData: 116.4,
    unit: 'mg/kg',
    range: {
      min: 0,
      max: 360
    },
    colors: COLORS9,
    data: require('dsv!./csv/10_ab_humans.csv')
  }
]

let DEFAULT_COLORS = COLORS9
let DATASETS = {}
let DEFAULT_DATASET
let i = 0
for (let source of SOURCES) {
{'fraction_non_alphanumeric': 0.11894001643385374, 'fraction_numerical': 0.030402629416598194, 'mean_word_length': 2.9726642186862504, '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': '7446596', 'n_tokens_mistral': 3675, 'n_tokens_neox': 3071, 'n_words': 989}