<commit_before>#
#   Copyright (c) 2013, <NAME>
#
#   This file is part of openbandparams.
#
#   openbandparams is free software: you can redistribute it and/or modify
#   it under the terms of the GNU Affero General Public License as published
#   by the Free Software Foundation, either version 3 of the License, or
#   (at your option) any later version.
#
#   openbandparams is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU Affero General Public License for more details.
#
#   You should have received a copy of the GNU Affero General Public License
#   along with openbandparams.  If not, see <http://www.gnu.org/licenses/>.
#
################################################################################

from openbandparams.iii_v.zinc_blende.binary import *
print ''

# Print an unformatted temperature dependent parameters
print 'GaAs bandgap (at T = 300 K): ', GaAs.Eg(), 'eV'
print ''

# Print some formatted temperature dependent parameters
print 'GaAs bandgap (at T = 300 K):  %.3f eV'%GaAs.Eg()
print 'GaAs Gamma-valley gap (at T = 300 K):  %.3f eV'%GaAs.Eg_Gamma()
print 'GaAs X-valley gap (at T = 300 K):  %.3f eV'%GaAs.Eg_X()
print 'GaAs bandgap (at T = 0 K):  %.3f eV'%GaAs.Eg(T=0)
print 'InAs bandgap (at T = 300 K):  %.3f eV'%InAs.Eg()
print ''

# Print a temperature dependent parameter
print ('InAs electron effective mass in'
       ' the Gamma-valley:  %.3f eV'%InAs.meff_e_Gamma())

# Print a table of material lattice parameters and bandgaps
import string
print ' Material | Lattice Param. [Ang] | Bandgap [eV]'
print '------------------------------------------------'
for mat in binaries:
    print string.rjust(mat.name, 7),
    print '  | ', string.rjust('%.3f'%mat.a(), 12), ' '*4,
    print '  |    %.3f'%mat.Eg()<commit_msg>updated simple_example_1<commit_after>#
#   Copyright (c) 2013, <NAME>
#
#   This file is part of openbandparams.
#
#   openbandparams is free software: you can redistribute it and/or modify
#   it under the terms of the GNU Affero General Public License as published
#   by the Free Software Foundation, either version 3 of the License, or
#   (at your option) any later version.
#
#   openbandparams is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU Affero General Public License for more details.
#
#   You should have received a copy of the GNU Affero General Public License
#   along with openbandparams.  If not, see <http://www.gnu.org/licenses/>.
#
################################################################################

from openbandparams.iii_v.zinc_blende.binary import *
print ''

# Print an unformatted temperature dependent parameters
print 'GaAs bandgap (at T = 300 K): ', GaAs.Eg(), 'eV'
print ''

# Print some formatted temperature dependent parameters
print 'GaAs bandgap (at T = 300 K):  %.3f eV'%GaAs.Eg()
print 'GaAs Gamma-valley gap (at T = 300 K):  %.3f eV'%GaAs.Eg_Gamma()
print 'GaAs X-valley gap (at T = 300 K):  %.3f eV'%GaAs.Eg_X()
print 'GaAs bandgap (at T = 0 K):  %.3f eV'%GaAs.Eg(T=0)
print 'InAs bandgap (at T = 300 K):  %.3f eV'%InAs.Eg()
print ''

# Print a temperature dependent parameter
print ('InAs electron effective mass in'
       ' the Gamma-valley:  %.3f eV'%InAs.meff_e_Gamma())
print ''

# Print a table of material lattice parameters and bandgaps
import string
print ' Material | Lattice Param. [Ang] | Bandgap [eV]'
print '------------------------------------------------'
for mat in binaries:
    print string.rjust(mat.name, 7),
    print '  | ', string.rjust('%.3f'%mat.a(), 12), ' '*4,
    print '  |    %.3f'%mat.Eg()
{'fraction_non_alphanumeric': 0.17311715481171547, 'fraction_numerical': 0.018043933054393304, 'mean_word_length': 3.5, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '215009', 'n_tokens_mistral': 1261, 'n_tokens_neox': 1172, 'n_words': 463}