<commit_before>package ciris.squants.readers

import ciris.ConfigReader
import ciris.ConfigReader.fromTry

trait SquantsConfigReaders {
  import squants.electro._

  implicit val capacitanceConfigReader: ConfigReader[Capacitance] =
    fromTry("Capacitance")(Capacitance.apply)

  implicit val conductivityConfigReader: ConfigReader[Conductivity] =
    fromTry("Conductivity")(Conductivity.apply)

  implicit val electricalConductanceConfigReader: ConfigReader[ElectricalConductance] =
    fromTry("ElectricalConductance")(ElectricalConductance.apply)

  implicit val electricalResistanceConfigReader: ConfigReader[ElectricalResistance] =
    fromTry("ElectricalResistance")(ElectricalResistance.apply)

  implicit val electricChargeConfigReader: ConfigReader[ElectricCharge] =
    fromTry("ElectricCharge")(ElectricCharge.apply)

  implicit val electricCurrentConfigReader: ConfigReader[ElectricCurrent] =
    fromTry("ElectricCurrent")(ElectricCurrent.apply)

  implicit val electricPotentialConfigReader: ConfigReader[ElectricPotential] =
    fromTry("ElectricPotential")(ElectricPotential.apply)

  implicit val inductanceConfigReader: ConfigReader[Inductance] =
    fromTry("Inductance")(Inductance.apply)

  implicit val magneticFluxConfigReader: ConfigReader[MagneticFlux] =
    fromTry("MagneticFlux")(MagneticFlux.apply)

  implicit val magneticFluxDensityConfigReader: ConfigReader[MagneticFluxDensity] =
    fromTry("MagneticFluxDensity")(MagneticFluxDensity.apply)

  implicit val resistivityConfigReader: ConfigReader[Resistivity] =
    fromTry("Resistivity")(Resistivity.apply)

  import squants.energy._

  implicit val energyConfigReader: ConfigReader[Energy] =
    fromTry("Energy")(Energy.apply)

  implicit val energyDensityConfigReader: ConfigReader[EnergyDensity] =
    fromTry("EnergyDensity")(EnergyDensity.apply)

  implicit val powerConfigReader: ConfigReader[Power] =
    fromTry("Power")(Power.apply)

  implicit val powerRampConfigReader: ConfigReader[PowerRamp] =
    fromTry("PowerRamp")(PowerRamp.apply)

  implicit val SpecificEnergyConfigReader: ConfigReader[SpecificEnergy] =
    fromTry("SpecificEnergy")(SpecificEnergy.apply)

  import squants.information._

  implicit val dataRateConfigReader: ConfigReader[DataRate] =
    fromTry("DataRate")(DataRate.apply)<commit_msg>Fix case on SpecificEnergyConfigReader<commit_after>package ciris.squants.readers

import ciris.ConfigReader
import ciris.ConfigReader.fromTry

trait SquantsConfigReaders {
  import squants.electro._

  implicit val capacitanceConfigReader: ConfigReader[Capacitance] =
    fromTry("Capacitance")(Capacitance.apply)

  implicit val conductivityConfigReader: ConfigReader[Conductivity] =
    fromTry("Conductivity")(Conductivity.apply)

  implicit val electricalConductanceConfigReader: ConfigReader[ElectricalConductance] =
    fromTry("ElectricalConductance")(ElectricalConductance.apply)

  implicit val electricalResistanceConfigReader: ConfigReader[ElectricalResistance] =
    fromTry("ElectricalResistance")(ElectricalResistance.apply)

  implicit val electricChargeConfigReader: ConfigReader[ElectricCharge] =
    fromTry("ElectricCharge")(ElectricCharge.apply)

  implicit val electricCurrentConfigReader: ConfigReader[ElectricCurrent] =
    fromTry("ElectricCurrent")(ElectricCurrent.apply)

  implicit val electricPotentialConfigReader: ConfigReader[ElectricPotential] =
    fromTry("ElectricPotential")(ElectricPotential.apply)

  implicit val inductanceConfigReader: ConfigReader[Inductance] =
    fromTry("Inductance")(Inductance.apply)

  implicit val magneticFluxConfigReader: ConfigReader[MagneticFlux] =
    fromTry("MagneticFlux")(MagneticFlux.apply)

  implicit val magneticFluxDensityConfigReader: ConfigReader[MagneticFluxDensity] =
    fromTry("MagneticFluxDensity")(MagneticFluxDensity.apply)

  implicit val resistivityConfigReader: ConfigReader[Resistivity] =
    fromTry("Resistivity")(Resistivity.apply)

  import squants.energy._

  implicit val energyConfigReader: ConfigReader[Energy] =
    fromTry("Energy")(Energy.apply)

  implicit val energyDensityConfigReader: ConfigReader[EnergyDensity] =
    fromTry("EnergyDensity")(EnergyDensity.apply)

  implicit val powerConfigReader: ConfigReader[Power] =
    fromTry("Power")(Power.apply)

  implicit val powerRampConfigReader: ConfigReader[PowerRamp] =
    fromTry("PowerRamp")(PowerRamp.apply)

  implicit val specificEnergyConfigReader: ConfigReader[SpecificEnergy] =
    fromTry("SpecificEnergy")(SpecificEnergy.apply)

  import squants.information._

  implicit val dataRateConfigReader: ConfigReader[DataRate] =
    fromTry("DataRate")(DataRate.apply)
{'fraction_non_alphanumeric': 0.08705020469726352, 'fraction_numerical': 0.0, 'mean_word_length': 7.44, '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': '7325048', 'n_tokens_mistral': 1420, 'n_tokens_neox': 1329, 'n_words': 200}