<commit_before>"""Basic system of units (copied from Geant4).

The basic units are :
            millimeter              (millimeter)
            nanosecond              (nanosecond)
            Mega electron Volt      (MeV)
            positron charge         (eplus)
            degree Kelvin           (kelvin)
            the amount of substance (mole)
            luminous intensity      (candela)
            radian                  (radian)
            steradian               (steradian)

Below is a non exhaustive list of derived and pratical units 
(i.e. mostly the SI units). You can add your own units.

The SI numerical value of the positron charge is defined here,
as it is needed for conversion factor : positron charge = e_SI (coulomb)
"""

##############################
## Length [L]

millimeter  = 1.                        
millimeter2 = millimeter*millimeter
millimeter3 = millimeter*millimeter*millimeter

centimeter  = 10.*millimeter   
centimeter2 = centimeter*centimeter
centimeter3 = centimeter*centimeter*centimeter

meter  = 1000.*millimeter                  
meter2 = meter*meter
meter3 = meter*meter*meter

kilometer  = 1000.*meter                   
kilometer2 = kilometer*kilometer
kilometer3 = kilometer*kilometer*kilometer

parsec = 3.0856775807e+16*meter

micrometer = 1.e-6 *meter             
nanometer  = 1.e-9 *meter
angstrom   = 1.e-10*meter
fermi      = 1.e-15*meter

barn      = 1.e-28*meter2
millibarn = 1.e-3 *barn
microbarn = 1.e-6 *barn
nanobarn  = 1.e-9 *barn
picobarn  = 1.e-12*barn

## Symbols
mm  = millimeter                        
mm2 = millimeter2
mm3 = millimeter3

cm  = centimeter   
cm2 = centimeter2
cm3 = centimeter3

m  = meter                  
m2 = meter2
m3 = meter3

km  = kilometer                   
km2 = kilometer2
km3 = kilometer3

pc = parsec

##############################
## Angle

radian      = 1.                  
milliradian = 1.e-3*radian

degree = (3.14159265358979323846/180.0)*radian

steradian = 1.
        
## symbols
rad  = radian      
mrad = milliradian
sr   = steradian
deg  = degree

##############################
## Time [T]

nanosecond  = 1.
second      = 1.e+9 *nanosecond
millisecond = 1.e-3 *second
microsecond = 1.e-6 *second
picosecond  = 1.e-12*second

year = 31556925.445 *second

hertz     = 1./second
kilohertz = 1.e+3*hertz
megahertz = 1.e+6*hertz

## symbols
ns = nanosecond                    
s  = second
ms = millisecond

##############################
## Electric charge [Q]

eplus = 1.                 ## positron charge
e_SI  = 1.60217733e-19     ## positron charge in coulomb
coulomb = eplus/e_SI       ## coulomb = 6.24150 e+18 * eplus

##############################
## Energy [E]

megaelectronvolt  = 1. 
electronvolt      = 1.e-6*megaelectronvolt
millielectronvolt = 1.e-9*megaelectronvolt
kiloelectronvolt  = 1.e-3*megaelectronvolt
gigaelectronvolt  = 1.e+3*megaelectronvolt
teraelectronvolt  = 1.e+6*megaelectronvolt
petaelectronvolt  = 1.e+9*megaelectronvolt

joule = electronvolt/e_SI  ## joule = 6.24150 e+12 * MeV

## symbols
MeV = megaelectronvolt
eV  = electronvolt
meV = millielectronvolt
keV = kiloelectronvolt
GeV = gigaelectronvolt
TeV = teraelectronvolt
PeV = petaelectronvolt

##############################
## Mass [E][T^2][L^-2]

kilogram  = joule*second*second/(meter*meter)   
gram      = 1.e-3*kilogram
milligram = 1.e-3*gram
ton=1e+3*kilogram

## symbols
kg = kilogram
g  = gram
mg = milligram
<commit_msg>Mass unit tonne added to system of units.<commit_after>"""Basic system of units (copied from Geant4).

The basic units are :
            millimeter              (millimeter)
            nanosecond              (nanosecond)
            Mega electron Volt      (MeV)
            positron charge         (eplus)
            degree Kelvin           (kelvin)
            the amount of substance (mole)
            luminous intensity      (candela)
            radian                  (radian)
            steradian               (steradian)

Below is a non exhaustive list of derived and pratical units 
(i.e. mostly the SI units). You can add your own units.

The SI numerical value of the positron charge is defined here,
as it is needed for conversion factor : positron charge = e_SI (coulomb)
"""

##############################
## Length [L]

millimeter  = 1.                        
millimeter2 = millimeter*millimeter
millimeter3 = millimeter*millimeter*millimeter

centimeter  = 10.*millimeter   
centimeter2 = centimeter*centimeter
centimeter3 = centimeter*centimeter*centimeter

meter  = 1000.*millimeter                  
meter2 = meter*meter
meter3 = meter*meter*meter

kilometer  = 1000.*meter                   
kilometer2 = kilometer*kilometer
kilometer3 = kilometer*kilometer*kilometer

parsec = 3.0856775807e+16*meter

micrometer = 1.e-6 *meter             
nanometer  = 1.e-9 *meter
angstrom   = 1.e-10*meter
fermi      = 1.e-15*meter

barn      = 1.e-28*meter2
millibarn = 1.e-3 *barn
microbarn = 1.e-6 *barn
nanobarn  = 1.e-9 *barn
picobarn  = 1.e-12*barn

## Symbols
mm  = millimeter                        
mm2 = millimeter2
mm3 = millimeter3

cm  = centimeter   
cm2 = centimeter2
cm3 = centimeter3

m  = meter                  
m2 = meter2
m3 = meter3

km  = kilometer                   
km2 = kilometer2
km3 = kilometer3

pc = parsec

##############################
## Angle

radian      = 1.                  
milliradian = 1.e-3*radian

degree = (3.14159265358979323846/180.0)*radian

steradian = 1.
        
## symbols
rad  = radian      
mrad = milliradian
sr   = steradian
deg  = degree

##############################
## Time [T]

nanosecond  = 1.
second      = 1.e+9 *nanosecond
millisecond = 1.e-3 *second
microsecond = 1.e-6 *second
picosecond  = 1.e-12*second

year = 31556925.445 *second

hertz     = 1./second
kilohertz = 1.e+3*hertz
megahertz = 1.e+6*hertz

## symbols
ns = nanosecond                    
s  = second
ms = millisecond

##############################
## Electric charge [Q]

eplus = 1.                 ## positron charge
e_SI  = 1.60217733e-19     ## positron charge in coulomb
coulomb = eplus/e_SI       ## coulomb = 6.24150 e+18 * eplus

##############################
## Energy [E]

megaelectronvolt  = 1. 
electronvolt      = 1.e-6*megaelectronvolt
millielectronvolt = 1.e-9*megaelectronvolt
kiloelectronvolt  = 1.e-3*megaelectronvolt
gigaelectronvolt  = 1.e+3*megaelectronvolt
teraelectronvolt  = 1.e+6*megaelectronvolt
petaelectronvolt  = 1.e+9*megaelectronvolt

joule = electronvolt/e_SI  ## joule = 6.24150 e+12 * MeV

## symbols
MeV = megaelectronvolt
eV  = electronvolt
meV = millielectronvolt
keV = kiloelectronvolt
GeV = gigaelectronvolt
TeV = teraelectronvolt
PeV = petaelectronvolt

##############################
## Mass [E][T^2][L^-2]

kilogram  = joule*second*second/(meter*meter)   
gram      = 1.e-3*kilogram
milligram = 1.e-3*gram
tonne     = 1.e+3*kilogram

## symbols
kg  = kilogram
g   = gram
mg  = milligram
ton = tonne

{'fraction_non_alphanumeric': 0.13834391229082516, 'fraction_numerical': 0.050778995960761686, 'mean_word_length': 2.515720081135903, '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': '7202764', 'n_tokens_mistral': 2656, 'n_tokens_neox': 2334, 'n_words': 570}