content
stringlengths 7
1.05M
|
|---|
test_cases = int(input().strip())
def recursion(n, value):
global result
if value >= result:
return
if n == N:
result = min(result, value)
return
for i in range(N):
if not visited[i]:
visited[i] = True
recursion(n + 1, value + mat[n][i])
visited[i] = False
for t in range(1, test_cases + 1):
N = int(input().strip())
mat = [list(map(int, input().strip().split())) for _ in range(N)]
visited = [False] * N
result = 999999
recursion(0, 0)
print('#{} {}'.format(t, result))
|
# Creating parameters for STFT test
"""
It is equivalent to
[(1024, 128, 'ones'),
(1024, 128, 'hann'),
(1024, 128, 'hamming'),
(2048, 128, 'ones'),
(2048, 512, 'ones'),
(2048, 128, 'hann'),
(2048, 512, 'hann'),
(2048, 128, 'hamming'),
(2048, 512, 'hamming'),
(None, None, None)]
"""
stft_parameters = []
n_fft = [1024, 2048]
hop_length = {128, 512, 1024}
window = ["ones", "hann", "hamming"]
for i in n_fft:
for k in window:
for j in hop_length:
if j < (i / 2):
stft_parameters.append((i, j, k))
stft_parameters.append((256, None, "hann"))
stft_with_win_parameters = []
n_fft = [512, 1024]
win_length = [400, 900]
hop_length = {128, 256}
for i in n_fft:
for j in win_length:
if j < i:
for k in hop_length:
if k < (i / 2):
stft_with_win_parameters.append((i, j, k))
mel_win_parameters = [(512, 400), (1024, 1000)]
|
class LRUCache:
def __init__(self, capacity: int):
self.capacity = capacity
self.items = []
self.indexes = dict()
def get(self, key: int) -> int:
if self.indexes.get(key) is None:
return -1
index = self.indexes[key]
value = self.items[index]
self.put(key, value)
return value
def put(self, key: int, value: int) -> None:
if len(self.items) == self.capacity:
if self.indexes.get(key) is None:
self.items.pop(0)
else:
index = self.indexes[key]
self.items.pop(index)
self.items.append(value)
self.indexes[key] = len(self.items) - 1
# Your LRUCache object will be instantiated and called as such:
# obj = LRUCache(capacity)
# param_1 = obj.get(key)
# obj.put(key,value)
if __name__ == "__main__":
cache = LRUCache(2)
cache.put(1, 1)
cache.put(2, 2)
cache.get(1) # returns 1
cache.put(3, 3) # evicts key 2
cache.get(2) # returns -1 (not found)
cache.put(4, 4) # evicts key 1
cache.get(1) # returns -1 (not found)
cache.get(3) # returns 3
cache.get(4) # returns 4
|
# coding=utf-8
# autogenerated using ms_props_generator.py
DATA_TYPE_MAP = {
"0x0000": "PtypUnspecified",
"0x0001": "PtypNull",
"0x0002": "PtypInteger16",
"0x0003": "PtypInteger32",
"0x0004": "PtypFloating32",
"0x0005": "PtypFloating64",
"0x0006": "PtypCurrency",
"0x0007": "PtypFloatingTime",
"0x000A": "PtypErrorCode",
"0x000B": "PtypBoolean",
"0x000D": "PtypObject",
"0x0014": "PtypInteger64",
"0x001E": "PtypString8",
"0x001F": "PtypString",
"0x0040": "PtypTime",
"0x0048": "PtypGuid",
"0x00FB": "PtypServerId",
"0x00FD": "PtypRestriction",
"0x00FE": "PtypRuleAction",
"0x0102": "PtypBinary",
"0x1002": "PtypMultipleInteger16",
"0x1003": "PtypMultipleInteger32",
"0x1004": "PtypMultipleFloating32",
"0x1005": "PtypMultipleFloating64",
"0x1006": "PtypMultipleCurrency",
"0x1007": "PtypMultipleFloatingTime",
"0x1014": "PtypMultipleInteger64",
"0x101F": "PtypMultipleString",
"0x101E": "PtypMultipleString8",
"0x1040": "PtypMultipleTime",
"0x1048": "PtypMultipleGuid",
"0x1102": "PtypMultipleBinary"
}
|
print(' a string that you "dont" have to escape \n This \n is a multi-line \n heredoc string -------> example')
|
def GetXSection(fileName): #[pb]
if fileName.find("ST_t-channel_antitop_4f_InclusiveDecays_mtop1695_TuneCP5_PSweights_13TeV-powheg-madspin-pythia8") !=-1 : return 70.89
elif fileName.find("ST_t-channel_antitop_4f_InclusiveDecays_mtop1715_TuneCP5_PSweights_13TeV-powheg-madspin-pythia8") !=-1 : return 69.66
elif fileName.find("ST_t-channel_antitop_4f_InclusiveDecays_mtop1735_TuneCP5_PSweights_13TeV-powheg-madspin-pythia8") !=-1 : return 68.45
elif fileName.find("SMS-TStauStau-Ewkino_lefthanded_dM-10to40_genHT-80_genMET-80_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0205
elif fileName.find("ST_s-channel_4f_leptonDecays_TuneCP5_PSweights_13TeV-amcatnlo-pythia8_correctnPartonsInBorn") !=-1 : return 3.74
elif fileName.find("ST_t-channel_top_4f_InclusiveDecays_mtop1695_TuneCP5_PSweights_13TeV-powheg-madspin-pythia8") !=-1 : return 118.0
elif fileName.find("ST_t-channel_top_4f_InclusiveDecays_mtop1715_TuneCP5_PSweights_13TeV-powheg-madspin-pythia8") !=-1 : return 116.1
elif fileName.find("ST_t-channel_top_4f_InclusiveDecays_mtop1735_TuneCP5_PSweights_13TeV-powheg-madspin-pythia8") !=-1 : return 114.4
elif fileName.find("ST_t-channel_top_4f_InclusiveDecays_mtop1755_TuneCP5_PSweights_13TeV-powheg-madspin-pythia8") !=-1 : return 112.5
elif fileName.find("SMS-TStauStau-Ewkino_lefthanded_dM-50_genHT-80_genMET-80_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0202
elif fileName.find("ST_t-channel_antitop_4f_hdampdown_InclusiveDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 67.91
elif fileName.find("SMS-TStauStau_lefthanded_dM-10to50_genHT-80_genMET-80_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 2.47e-08
elif fileName.find("ST_tW_antitop_5f_hdampdown_NoFullyHadronicDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.99
elif fileName.find("SMS-T2bW_X05_dM-10to80_genHT-160_genMET-80_mWMin-0p1_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0008691
elif fileName.find("ST_t-channel_antitop_4f_hdampup_InclusiveDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 67.91
elif fileName.find("ST_t-channel_antitop_4f_hdampdown_InclusiveDecays_TuneCP5_13TeV-powheg-madspin-pythia8") !=-1 : return 69.09
elif fileName.find("ST_tW_antitop_5f_hdampup_NoFullyHadronicDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.96
elif fileName.find("ST_t-channel_antitop_5f_TuneCP5_PSweights_13TeV-powheg-madspin-pythia8_vtd_vts_decay") !=-1 : return 82.52
elif fileName.find("ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5_erdON_PSweights_13TeV-powheg-pythia8") !=-1 : return 67.91
elif fileName.find("ST_t-channel_top_4f_hdampdown_InclusiveDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 113.3
elif fileName.find("ST_t-channel_antitop_4f_hdampup_InclusiveDecays_TuneCP5_13TeV-powheg-madspin-pythia8") !=-1 : return 69.09
elif fileName.find("ST_t-channel_antitop_4f_inclusiveDecays_13TeV-powhegV2-madspin-pythia8_TuneCUETP8M1") !=-1 : return 0.0
elif fileName.find("ST_t-channel_antitop_5f_TuneCP5_PSweights_13TeV-powheg-madspin-pythia8_vtd_vts_prod") !=-1 : return 225.5
elif fileName.find("SMS-T8bbstausnu_XCha0p5_mStop-200to1800_XStau0p25_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 4.916e-05
elif fileName.find("SMS-T8bbstausnu_mStop-200to1800_XCha0p5_XStau0p75_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 4.745e-05
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5_erdON_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("ST_tW_top_5f_hdampdown_NoFullyHadronicDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.92
elif fileName.find("ST_t-channel_antitop_4f_Vts_Vtd_prod_leptonicDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 2.534e-09
elif fileName.find("SMS-T2tt_dM-10to80_genHT-160_genMET-80_mWMin-0p1_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.00101
elif fileName.find("SMS-T8bbstausnu_mStop-200to1800_XCha0p5_XStau0p5_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 4.76e-05
elif fileName.find("ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5down_PSweights_13TeV-powheg-pythia8") !=-1 : return 67.91
elif fileName.find("ST_t-channel_top_4f_hdampup_InclusiveDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 113.3
elif fileName.find("ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5_erdON_13TeV-powheg-madspin-pythia8") !=-1 : return 69.09
elif fileName.find("ST_t-channel_top_4f_hdampdown_InclusiveDecays_TuneCP5_13TeV-powheg-madspin-pythia8") !=-1 : return 115.3
elif fileName.find("ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5CR1_PSweights_13TeV-powheg-pythia8") !=-1 : return 67.91
elif fileName.find("ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5CR2_PSweights_13TeV-powheg-pythia8") !=-1 : return 67.91
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5down_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("ST_tW_top_5f_hdampup_NoFullyHadronicDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.9
elif fileName.find("ST_t-channel_antitop_4f_hdampdown_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 76.17
elif fileName.find("ST_t-channel_antitop_4f_scaledown_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 0.0
elif fileName.find("ST_tW_antitop_5f_inclusiveDecays_mtop1735_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.44
elif fileName.find("ST_tW_antitop_5f_inclusiveDecays_mtop1695_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 36.65
elif fileName.find("ST_tW_antitop_5f_inclusiveDecays_mtop1715_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 35.52
elif fileName.find("ST_FCNC-TH_Thadronic_HToWWZZtautau_Ctcphi_CtcG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.08155
elif fileName.find("ST_FCNC-TH_Tleptonic_HToWWZZtautau_Ctcphi_CtcG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.04082
elif fileName.find("ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5up_PSweights_13TeV-powheg-pythia8") !=-1 : return 67.91
elif fileName.find("ST_t-channel_top_4f_InclusiveDecays_TuneCP5_erdON_PSweights_13TeV-powheg-pythia8") !=-1 : return 113.3
elif fileName.find("ST_t-channel_top_5f_TuneCP5_PSweights_13TeV-powheg-madspin-pythia8_vtd_vts_decay") !=-1 : return 138.1
elif fileName.find("ST_tW_antitop_5f_DS_NoFullyHadronicDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 35.25
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5CR1_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5CR2_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("ST_tW_antitop_5f_inclusiveDecays_mtop1755_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 33.4
elif fileName.find("ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5down_13TeV-powheg-madspin-pythia8") !=-1 : return 69.09
elif fileName.find("ST_t-channel_top_4f_hdampup_InclusiveDecays_TuneCP5_13TeV-powheg-madspin-pythia8") !=-1 : return 115.3
elif fileName.find("WJetsToLNu_BGenFilter_Wpt-100to200_TuneCP5_13TeV-madgraphMLM-pythia8_newgridpack") !=-1 : return 20.49
elif fileName.find("WJetsToLNu_BGenFilter_Wpt-200toInf_TuneCP5_13TeV-madgraphMLM-pythia8_newgridpack") !=-1 : return 2.934
elif fileName.find("ST_t-channel_antitop_4f_mtop1665_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 0.0
elif fileName.find("ST_t-channel_antitop_4f_mtop1695_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 0.0
elif fileName.find("ST_t-channel_antitop_4f_mtop1715_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 0.0
elif fileName.find("ST_t-channel_antitop_4f_mtop1735_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 0.0
elif fileName.find("ST_t-channel_antitop_4f_mtop1755_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 0.0
elif fileName.find("ST_t-channel_top_4f_inclusiveDecays_13TeV-powhegV2-madspin-pythia8_TuneCUETP8M1") !=-1 : return 0.0
elif fileName.find("ST_t-channel_antitop_4f_mtop1785_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 0.0
elif fileName.find("ST_t-channel_top_5f_TuneCP5_PSweights_13TeV-powheg-madspin-pythia8_vtd_vts_prod") !=-1 : return 547.2
elif fileName.find("SMS-T8bbllnunu_XCha0p5_XSlep0p05_mN1_700_1000_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 4.925e-05
elif fileName.find("SMS-T8bbllnunu_XCha0p5_XSlep0p95_mN1_700_1600_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 4.708e-05
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5up_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5_erdON_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5CR1_13TeV-powheg-madspin-pythia8") !=-1 : return 69.09
elif fileName.find("ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5CR2_13TeV-powheg-madspin-pythia8") !=-1 : return 69.09
elif fileName.find("TTZToLLNuNu_M-10_TuneCP5_PSweights_correctnPartonsInBorn_13TeV-amcatnlo-pythia8") !=-1 : return 0.2432
elif fileName.find("ST_t-channel_antitop_4f_hdampup_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 76.18
elif fileName.find("ST_t-channel_top_4f_Vtd_Vts_prod_leptonicDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 4.209e-09
elif fileName.find("ST_t-channel_antitop_4f_scaleup_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 0.0
elif fileName.find("ST_s-channel_4f_leptonDecays_mtop1695_TuneCP5_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 3.991
elif fileName.find("ST_s-channel_4f_leptonDecays_mtop1715_TuneCP5_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 3.824
elif fileName.find("ST_s-channel_4f_leptonDecays_mtop1735_TuneCP5_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 3.653
elif fileName.find("ST_t-channel_antitop_4f_inclusiveDecays_TuneCP5_13TeV-powhegV2-madspin-pythia8") !=-1 : return 67.91
elif fileName.find("ST_s-channel_4f_leptonDecays_mtop1755_TuneCP5_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 3.506
elif fileName.find("SMS-T8bbllnunu_XCha0p5_XSlep0p5_mN1_700_1300_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 5.087e-05
elif fileName.find("ST_FCNC-TH_Thadronic_HToWWZZtautau_Ctphi_CtG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.6462
elif fileName.find("ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 67.91
elif fileName.find("ST_t-channel_top_4f_InclusiveDecays_TuneCP5down_PSweights_13TeV-powheg-pythia8") !=-1 : return 113.3
elif fileName.find("ST_FCNC-TH_Tleptonic_HToWWZZtautau_Ctphi_CtG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.3233
elif fileName.find("ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5up_13TeV-powheg-madspin-pythia8") !=-1 : return 69.09
elif fileName.find("ST_t-channel_top_4f_InclusiveDecays_TuneCP5_erdON_13TeV-powheg-madspin-pythia8") !=-1 : return 115.3
elif fileName.find("TTWJetsToLNu_TuneCP5CR2_GluonMove_PSweights_13TeV-amcatnloFXFX-madspin-pythia8") !=-1 : return 0.2183
elif fileName.find("ST_t-channel_antitop_4f_inclusiveDecays_TuneCUETP8M2T4_13TeV-powhegV2-madspin") !=-1 : return 0.0
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("ST_t-channel_top_4f_InclusiveDecays_TuneCP5CR1_PSweights_13TeV-powheg-pythia8") !=-1 : return 113.3
elif fileName.find("ST_t-channel_top_4f_InclusiveDecays_TuneCP5CR2_PSweights_13TeV-powheg-pythia8") !=-1 : return 113.3
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5down_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("ST_tW_antitop_5f_hdampdown_NoFullyHadronicDecays_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 34.98
elif fileName.find("TTWJetsToLNu_TuneCP5CR1_QCDbased_PSweights_13TeV-amcatnloFXFX-madspin-pythia8") !=-1 : return 0.2169
elif fileName.find("ST_t-channel_top_4f_hdampdown_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 126.5
elif fileName.find("ST_t-channel_top_4f_scaledown_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 0.0
elif fileName.find("ST_tW_antitop_5f_scaledown_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1") !=-1 : return 38.06
elif fileName.find("ST_tW_top_5f_inclusiveDecays_mtop1695_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 36.58
elif fileName.find("ST_tW_top_5f_inclusiveDecays_mtop1715_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 35.46
elif fileName.find("SMS-T2bt-LLChipm_ctau-200_mStop-1550to2500_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 1.752e-06
elif fileName.find("ST_t-channel_top_4f_InclusiveDecays_TuneCP5up_PSweights_13TeV-powheg-pythia8") !=-1 : return 113.3
elif fileName.find("ST_tW_top_5f_DS_NoFullyHadronicDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 33.75
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5CR1_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5CR2_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("ST_tW_top_5f_inclusiveDecays_mtop1735_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.38
elif fileName.find("ST_tW_top_5f_inclusiveDecays_mtop1755_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 33.34
elif fileName.find("SMS-T8bbllnunu_XCha0p5_XSlep0p95_mN1_0_650_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 4.052e-05
elif fileName.find("ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5_13TeV-powheg-madspin-pythia8") !=-1 : return 69.09
elif fileName.find("ST_t-channel_top_4f_InclusiveDecays_TuneCP5down_13TeV-powheg-madspin-pythia8") !=-1 : return 115.3
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_mtop1695_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 36.65
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_mtop1715_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 36.65
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_mtop1735_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 36.65
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_mtop1755_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 36.65
elif fileName.find("ST_t-channel_top_4f_mtop1665_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 0.0
elif fileName.find("ST_t-channel_top_4f_mtop1695_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 0.0
elif fileName.find("ST_t-channel_top_4f_mtop1715_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 0.0
elif fileName.find("ST_t-channel_top_4f_mtop1735_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 0.0
elif fileName.find("ST_t-channel_top_4f_mtop1755_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 0.0
elif fileName.find("ST_t-channel_top_4f_mtop1785_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 0.0
elif fileName.find("ST_tW_antitop_5f_mtop1695_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1") !=-1 : return 39.87
elif fileName.find("ST_tW_antitop_5f_mtop1755_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1") !=-1 : return 36.35
elif fileName.find("SMS-T2bW_X05_dM-10to80_2Lfilter_mWMin-0p1_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.003536
elif fileName.find("SMS-T2bt-LLChipm_ctau-10_mStop-1550to2500_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 1.614e-06
elif fileName.find("SMS-T2bt-LLChipm_ctau-50_mStop-1550to2500_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 2.24e-06
elif fileName.find("ST_FCNC-TH_Thadronic_HToWWZZtautau_Ctcphi_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.03095
elif fileName.find("ST_FCNC-TH_Tleptonic_HToWWZZtautau_Ctcphi_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.0155
elif fileName.find("ST_t-channel_eleDecays_anomwtbLVRV_LVRVunphys_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 47.81
elif fileName.find("ST_t-channel_tauDecays_anomwtbLVLT_LVLTunphys_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 84.72
elif fileName.find("ST_t-channel_tauDecays_anomwtbLVRV_LVRVunphys_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 47.69
elif fileName.find("ST_tW_antitop_5f_inclusiveDecays_TuneCP5down_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5up_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("ST_t-channel_top_4f_InclusiveDecays_TuneCP5CR1_13TeV-powheg-madspin-pythia8") !=-1 : return 115.3
elif fileName.find("ST_t-channel_top_4f_InclusiveDecays_TuneCP5CR2_13TeV-powheg-madspin-pythia8") !=-1 : return 115.3
elif fileName.find("ST_tW_antitop_5f_hdampup_NoFullyHadronicDecays_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("ST_t-channel_4f_scaledown_leptonDecays_13TeV-amcatnlo-pythia8_TuneCUETP8M1") !=-1 : return 67.17
elif fileName.find("ST_t-channel_top_4f_hdampup_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 126.5
elif fileName.find("ST_t-channel_top_4f_scaleup_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 0.0
elif fileName.find("ST_tW_antitop_5f_scaleup_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1") !=-1 : return 38.06
elif fileName.find("ST_t-channel_top_4f_inclusiveDecays_TuneCP5_13TeV-powhegV2-madspin-pythia8") !=-1 : return 113.3
elif fileName.find("ST_FCNC-TH_Thadronic_HToWWZZtautau_Ctphi_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.2354
elif fileName.find("ST_FCNC-TH_Tleptonic_HToWWZZtautau_Ctphi_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.1177
elif fileName.find("ST_t-channel_eDecays_anomwtbLVRT_LV3RT1_13TeV-comphep-pythia8_TuneCUETP8M1") !=-1 : return 54.49
elif fileName.find("ST_t-channel_muDecays_anomwtbLVLT_LVLTunphys_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 84.86
elif fileName.find("ST_t-channel_muDecays_anomwtbLVRV_LVRVunphys_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 47.63
elif fileName.find("ST_t-channel_top_4f_InclusiveDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 113.3
elif fileName.find("ST_tW_antitop_5f_DS_inclusiveDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 35.25
elif fileName.find("ST_t-channel_antitop_5f_TuneCP5_13TeV-powheg-madspin-pythia8_vtd_vts_decay") !=-1 : return 82.52
elif fileName.find("ST_t-channel_top_4f_InclusiveDecays_TuneCP5up_13TeV-powheg-madspin-pythia8") !=-1 : return 115.3
elif fileName.find("DYJetsToLL_M-50_HT-1200to2500_TuneCP5_PSweights_13TeV-madgraphMLM-pythia8") !=-1 : return 0.1937
elif fileName.find("ST_t-channel_top_4f_inclusiveDecays_TuneCUETP8M2T4_13TeV-powhegV2-madspin") !=-1 : return 0.0
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("ST_FCNC-TH_Thadronic_HToWWZZtautau_CtcG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.0241
elif fileName.find("ST_FCNC-TH_Tleptonic_HToWWZZtautau_CtcG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.01205
elif fileName.find("ST_s-channel_4f_leptonDecays_TuneCP5down_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 3.74
elif fileName.find("ST_t-channel_eDecays_anomwtbLVLT_LVLTunphys_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 84.84
elif fileName.find("ST_tW_antitop_5f_inclusiveDecays_TuneCP5up_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("ST_t-channel_antitop_5f_TuneCP5_13TeV-powheg-madspin-pythia8_vtd_vts_prod") !=-1 : return 225.5
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5_erdON_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("ST_tW_top_5f_hdampdown_NoFullyHadronicDecays_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("WJetsToLNu_BGenFilter_Wpt-200toInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 3.774
elif fileName.find("DYJetsToLL_M-50_HT-2500toInf_TuneCP5_PSweights_13TeV-madgraphMLM-pythia8") !=-1 : return 0.003514
elif fileName.find("DYJetsToLL_M-50_HT-800to1200_TuneCP5_PSweights_13TeV-madgraphMLM-pythia8") !=-1 : return 0.8021
elif fileName.find("ST_tW_top_5f_scaledown_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1") !=-1 : return 38.09
elif fileName.find("SMS-T2tt_dM-10to80_genHT-160_genMET-80_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0009043
elif fileName.find("SMS-TChiHH_HToWWZZTauTau_HToWWZZTauTau_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 1.272e-06
elif fileName.find("ST_FCNC-TH_Thadronic_HToWWZZtautau_CtG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.2215
elif fileName.find("ST_FCNC-TH_Thadronic_HToaa_Ctcphi_CtcG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.08174
elif fileName.find("ST_FCNC-TH_Tleptonic_HToWWZZtautau_CtG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.1108
elif fileName.find("ST_FCNC-TH_Tleptonic_HToaa_Ctcphi_CtcG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.0408
elif fileName.find("ST_FCNC-TH_Tleptonic_HTobb_Ctcphi_CtcG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.0408
elif fileName.find("ST_s-channel_4f_leptonDecays_TuneCP5CR1_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 3.74
elif fileName.find("ST_s-channel_4f_leptonDecays_TuneCP5CR2_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 3.74
elif fileName.find("ST_t-channel_top_4f_InclusiveDecays_TuneCP5_13TeV-powheg-madspin-pythia8") !=-1 : return 115.3
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_mtop1695_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 36.65
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_mtop1715_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 36.65
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_mtop1735_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 36.65
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_mtop1755_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 36.65
elif fileName.find("TTJets_SingleLeptFromT_genMET-150_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 5.952
elif fileName.find("WJetsToLNu_BGenFilter_Wpt-40toInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 202.9
elif fileName.find("DYJetsToLL_M-50_HT-100to200_TuneCP5_PSweights_13TeV-madgraphMLM-pythia8") !=-1 : return 160.7
elif fileName.find("DYJetsToLL_M-50_HT-200to400_TuneCP5_PSweights_13TeV-madgraphMLM-pythia8") !=-1 : return 48.63
elif fileName.find("DYJetsToLL_M-50_HT-400to600_TuneCP5_PSweights_13TeV-madgraphMLM-pythia8") !=-1 : return 6.993
elif fileName.find("DYJetsToLL_M-50_HT-600to800_TuneCP5_PSweights_13TeV-madgraphMLM-pythia8") !=-1 : return 1.761
elif fileName.find("ST_t-channel_antitop_4f_inclusiveDecays_13TeV-powhegV2-madspin-herwigpp") !=-1 : return 0.0
elif fileName.find("ST_tW_antitop_PSscaledown_5f_NoFullyHadronicDecays_13TeV-powheg-pythia8") !=-1 : return 38.09
elif fileName.find("ST_tW_top_5f_DS_NoFullyHadronicDecays_13TeV-powheg-pythia8_TuneCUETP8M1") !=-1 : return 36.21
elif fileName.find("ST_tW_top_5f_mtop1695_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1") !=-1 : return 39.9
elif fileName.find("ST_tW_top_5f_mtop1755_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1") !=-1 : return 36.39
elif fileName.find("ST_tW_antitop_5f_inclusiveDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("SMS-T6bbllslepton_mSbottom-1400To1800_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 4.512e-05
elif fileName.find("ST_s-channel_4f_leptonDecays_TuneCP5up_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 3.74
elif fileName.find("ST_t-channel_tauDecays_anomwtbLVRT_LV1RT4_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 108.3
elif fileName.find("ST_t-channel_tauDecays_anomwtbLVRT_LV2RT2_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 102.2
elif fileName.find("ST_t-channel_tauDecays_anomwtbLVRT_LV3RT1_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 54.52
elif fileName.find("ST_tW_top_5f_inclusiveDecays_TuneCP5down_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5down_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("ST_tW_top_5f_hdampup_NoFullyHadronicDecays_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 34.9
elif fileName.find("WJetsToLNu_Wpt-200toInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8_TuneDown") !=-1 : return 50.55
elif fileName.find("DYJetsToLL_M-50_VBFFilter_TuneCP5_PSweights_13TeV-amcatnloFXFX-pythia8") !=-1 : return 266.1
elif fileName.find("DYJetsToLL_M-50_HT-70to100_TuneCP5_PSweights_13TeV-madgraphMLM-pythia8") !=-1 : return 146.5
elif fileName.find("ST_tW_top_5f_scaleup_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1") !=-1 : return 38.09
elif fileName.find("SMS-T6bbllslepton_mSbottom-800To1375_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0005656
elif fileName.find("SMS-TChiStauStau_mChi1050to1200_x0p5_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0005313
elif fileName.find("ST_FCNC-TH_Thadronic_HToaa_Ctphi_CtG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.6452
elif fileName.find("ST_FCNC-TH_Tleptonic_HToaa_Ctphi_CtG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.323
elif fileName.find("ST_FCNC-TH_Tleptonic_HTobb_Ctphi_CtG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.3227
elif fileName.find("ST_t-channel_muDecays_anomwtbLVRT_LV1RT4_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 108.6
elif fileName.find("ST_t-channel_muDecays_anomwtbLVRT_LV2RT2_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 102.7
elif fileName.find("ST_t-channel_muDecays_anomwtbLVRT_LV3RT1_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 54.72
elif fileName.find("ST_tW_top_5f_DS_inclusiveDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 33.75
elif fileName.find("ST_tW_antitop_5f_DS_NoFullyHadronicDecays_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 35.13
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5CR1_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5CR2_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("TTJets_SingleLeptFromTbar_genMET-150_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 6.167
elif fileName.find("TTZToLLNuNu_M-10_TuneCP5CR2_GluonMove_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 0.2432
elif fileName.find("DYJetsToLL_M-50_VBFFilter_TuneCP5_PSweights_13TeV-madgraphMLM-pythia8") !=-1 : return 202.3
elif fileName.find("ST_tW_antitop_5f_DS_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1") !=-1 : return 36.23
elif fileName.find("ST_tW_antitop_5f_PSscaleup_NoFullyHadronicDecays_13TeV-powheg-pythia8") !=-1 : return 38.06
elif fileName.find("ST_s-channel_4f_leptonDecays_TuneCP5_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 3.74
elif fileName.find("SMS-T2qqgamma_mSq-200to800_dM-5to50_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0002782
elif fileName.find("SMS-T6bbllslepton_mSbottom-400To775_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.03313
elif fileName.find("SMS-TChiStauStau_mLSP-625to800_x0p5_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0008715
elif fileName.find("ST_t-channel_4f_leptonDecays_TuneCP5_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 70.9
elif fileName.find("ST_t-channel_eDecays_anomwtbLVRT_LV1RT4_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 108.9
elif fileName.find("ST_t-channel_eDecays_anomwtbLVRT_LV2RT2_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 102.9
elif fileName.find("ST_tW_top_5f_inclusiveDecays_TuneCP5up_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("SMS-T6ttHZ_BR-H_0p6_mStop1050to1600_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.000122
elif fileName.find("ST_t-channel_top_5f_TuneCP5_13TeV-powheg-madspin-pythia8_vtd_vts_prod") !=-1 : return 547.2
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5up_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5_erdON_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("TTJets_SingleLeptFromTbar_genMET-80_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 31.68
elif fileName.find("TTZToLLNuNu_M-10_TuneCP5CR1_QCDbased_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 0.2432
elif fileName.find("WJetsToLNu_Wpt-200toInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8_TuneUp") !=-1 : return 50.81
elif fileName.find("DYJetsToLL_M-50_HT-1200to2500_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 0.1512
elif fileName.find("DYJetsToLL_M-50_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8_CUETP8M1Down") !=-1 : return 5940.0
elif fileName.find("LambdaBToLambdaMuMu_SoftQCDnonDTest_TuneCUEP8M1_13TeV-pythia8-evtgen") !=-1 : return 1521000.0
elif fileName.find("ST_tW_antitop_5f_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M2T4") !=-1 : return 38.06
elif fileName.find("ST_tW_antitop_5f_mtop1695_NoFullyHadronicDecays_13TeV-powheg-pythia8") !=-1 : return 39.87
elif fileName.find("ST_tW_antitop_5f_mtop1755_NoFullyHadronicDecays_13TeV-powheg-pythia8") !=-1 : return 36.35
elif fileName.find("SMS-T6ttHZ_BR-H_0p6_mStop300to1000_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.00583
elif fileName.find("ST_t-channel_tauDecays_anomwtbLVRT_RT4_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 53.84
elif fileName.find("TTWJetsToLNu_TuneCP5CR2_GluonMove_13TeV-amcatnloFXFX-madspin-pythia8") !=-1 : return 0.2188
elif fileName.find("WJetsToLNu_BGenFilter_Wpt-100to200_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 26.44
elif fileName.find("WJetsToLNu_BGenFilter_Wpt-200toInf_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 3.89
elif fileName.find("WJetsToLNu_CGenFilter_Wpt-100to200_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 215.2
elif fileName.find("WJetsToLNu_CGenFilter_Wpt-200toInf_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 24.52
elif fileName.find("DYJetsToLL_M-50_HT-2500toInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 0.003659
elif fileName.find("DYJetsToLL_M-50_HT-800to1200_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 0.6229
elif fileName.find("DYJetsToLL_M-50_Zpt-150toInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 18.36
elif fileName.find("ST_t-channel_top_4f_inclusiveDecays_13TeV-powhegV2-madspin-herwigpp") !=-1 : return 0.0
elif fileName.find("ST_tW_top_PSscaledown_5f_NoFullyHadronicDecays_13TeV-powheg-pythia8") !=-1 : return 38.06
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("ST_tW_top_5f_inclusiveDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("MSSM-higgsino_genHT-160_genMET-80_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.08053
elif fileName.find("SMS-TChiHZ_HToWWZZTauTau_2LFilter_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 1.159e-06
elif fileName.find("SMS-TChiSlepSnu_tauenriched_x0p05_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0001499
elif fileName.find("SMS-TChiSlepSnu_tauenriched_x0p95_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0001581
elif fileName.find("ST_FCNC-TH_Thadronic_HToaa_Ctcphi_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.03097
elif fileName.find("ST_FCNC-TH_Tleptonic_HToaa_Ctcphi_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.0155
elif fileName.find("ST_FCNC-TH_Tleptonic_HTobb_Ctcphi_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.01551
elif fileName.find("ST_t-channel_muDecays_anomwtbLVRT_RT4_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 53.81
elif fileName.find("ST_t-channel_tauDecays_anomwtbLVLT_LT_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 71.8
elif fileName.find("ST_t-channel_tauDecays_anomwtbLVRV_RV_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 24.06
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCH3_13TeV-powheg-herwig7") !=-1 : return 34.99
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5down_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("TTJets_SingleLeptFromTbar_TuneCUETP8M2T4_13TeV-amcatnloFXFX-pythia8") !=-1 : return 157.9
elif fileName.find("TTJets_SingleLeptFromT_genMET-150_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 6.212
elif fileName.find("TTWJetsToLNu_TuneCP5CR1_QCDbased_13TeV-amcatnloFXFX-madspin-pythia8") !=-1 : return 0.2183
elif fileName.find("DYJetsToLL_M-50_HT-100to200_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 147.4
elif fileName.find("DYJetsToLL_M-50_HT-200to400_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 41.04
elif fileName.find("DYJetsToLL_M-50_HT-400to600_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 5.674
elif fileName.find("DYJetsToLL_M-50_HT-600to800_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 1.358
elif fileName.find("DYJetsToLL_M-50_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8_CUETP8M1Up") !=-1 : return 5872.0
elif fileName.find("QCD_HT1000to1500_BGenFilter_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 189.4
elif fileName.find("QCD_HT1500to2000_BGenFilter_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 20.35
elif fileName.find("ST_tW_antitop_5f_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1") !=-1 : return 38.06
elif fileName.find("SMS-T2tt_mStop-2050to2800_mLSP-1_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 5.359e-07
elif fileName.find("SMS-T5qqqqVV_dM20_mGlu-600to2300_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0003048
elif fileName.find("SMS-T8bbllnunu_XCha0p5_XSlep0p05_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 5.516e-05
elif fileName.find("SMS-T8bbllnunu_XCha0p5_XSlep0p95_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 4.501e-05
elif fileName.find("SMS-TChiSlepSnu_tauenriched_x0p5_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0001798
elif fileName.find("ST_FCNC-TH_Thadronic_HToaa_Ctphi_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.2357
elif fileName.find("ST_FCNC-TH_Tleptonic_HToaa_Ctphi_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.1178
elif fileName.find("ST_FCNC-TH_Tleptonic_HTobb_Ctphi_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.1177
elif fileName.find("ST_t-channel_eDecays_anomwtbLVRT_RT4_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 53.7
elif fileName.find("ST_t-channel_muDecays_anomwtbLVLT_LT_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 71.67
elif fileName.find("ST_t-channel_muDecays_anomwtbLVRV_RV_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 24.21
elif fileName.find("ST_tW_top_5f_DS_NoFullyHadronicDecays_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 33.67
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5CR1_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5CR2_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("TTJets_SingleLeptFromT_genMET-80_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 32.27
elif fileName.find("DYJetsToLL_M-50_HT-70to100_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 147.4
elif fileName.find("QCD_HT2000toInf_BGenFilter_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 4.463
elif fileName.find("QCD_HT700to1000_BGenFilter_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 978.4
elif fileName.find("ST_tW_top_5f_DS_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1") !=-1 : return 36.21
elif fileName.find("ST_tW_top_5f_PSscaleup_NoFullyHadronicDecays_13TeV-powheg-pythia8") !=-1 : return 38.09
elif fileName.find("ST_FCNC-TH_Thadronic_HToaa_CtcG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.02415
elif fileName.find("ST_FCNC-TH_Tleptonic_HToaa_CtcG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.01206
elif fileName.find("ST_FCNC-TH_Tleptonic_HTobb_CtcG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.01205
elif fileName.find("ST_t-channel_eDecays_anomwtbLVLT_LT_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 71.81
elif fileName.find("ST_t-channel_eDecays_anomwtbLVRV_RV_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 24.12
elif fileName.find("SMS-T8bbllnunu_XCha0p5_XSlep0p5_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 6.146e-05
elif fileName.find("ST_tW_antitop_5f_inclusiveDecays_TuneCP5down_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5up_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("TTWJetsToLNu_TuneCP5_PSweights_13TeV-amcatnloFXFX-madspin-pythia8") !=-1 : return 0.2198
elif fileName.find("QCD_HT200to300_BGenFilter_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 154400.0
elif fileName.find("QCD_HT300to500_BGenFilter_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 37680.0
elif fileName.find("QCD_HT1000to1500_GenJets5_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 626.0
elif fileName.find("QCD_HT1500to2000_GenJets5_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 67.33
elif fileName.find("QCD_HT500to700_BGenFilter_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 4141.0
elif fileName.find("ST_s-channel_4f_leptonDecays_13TeV-amcatnlo-pythia8_TuneCUETP8M1") !=-1 : return 3.365
elif fileName.find("ST_tW_top_5f_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M2T4") !=-1 : return 38.09
elif fileName.find("ST_tW_top_5f_mtop1695_NoFullyHadronicDecays_13TeV-powheg-pythia8") !=-1 : return 39.9
elif fileName.find("ST_tW_top_5f_mtop1755_NoFullyHadronicDecays_13TeV-powheg-pythia8") !=-1 : return 36.39
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_13TeV-powheg_TuneCUETP8M1") !=-1 : return 38.06
elif fileName.find("ST_t-channel_4f_leptonDecays_13TeV-amcatnlo-pythia8_TuneCUETP8M1") !=-1 : return 67.17
elif fileName.find("SMS-TChiWH_HToGG_mChargino-175_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 2.364
elif fileName.find("SMS-TChipmSlepSnu_mC1_825_1500_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 7.128e-05
elif fileName.find("ST_FCNC-TH_Thadronic_HToaa_CtG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.2221
elif fileName.find("ST_FCNC-TH_Tleptonic_HToaa_CtG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.1109
elif fileName.find("ST_FCNC-TH_Tleptonic_HTobb_CtG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.111
elif fileName.find("ST_tW_DS_antitop_5f_inclusiveDecays_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 35.13
elif fileName.find("TTJets_SingleLeptFromT_TuneCUETP8M2T4_13TeV-amcatnloFXFX-pythia8") !=-1 : return 159.3
elif fileName.find("TTJets_SingleLeptFromTbar_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 114.0
elif fileName.find("DYJetsToLL_M-50_HT-1200to2500_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 0.1933
elif fileName.find("DYJetsToLL_M-50_HT-1200to2500_TuneCP5_14TeV-madgraphMLM-pythia8") !=-1 : return 0.2466
elif fileName.find("QCD_HT2000toInf_GenJets5_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 14.52
elif fileName.find("QCD_HT700to1000_GenJets5_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 3030.0
elif fileName.find("ST_tW_antitop_MEscaledown_5f_NoFullyHadronicDecays_13TeV-powheg") !=-1 : return 39.24
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("SMS-TChiWH_WToLNu_HToVVTauTau_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.002159
elif fileName.find("SMS-TSlepSlep_mSlep-500To1300_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 1.084e-05
elif fileName.find("ST_s-channel_antitop_leptonDecays_13TeV-PSweights_powheg-pythia") !=-1 : return 3.579
elif fileName.find("ST_s-channel_4f_leptonDecays_TuneCP5down_13TeV-amcatnlo-pythia8") !=-1 : return 3.74
elif fileName.find("ST_tW_antitop_5f_inclusiveDecays_TuneCP5up_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_TuneCH3_13TeV-powheg-herwig7") !=-1 : return 34.92
elif fileName.find("TTJets_DiLept_genMET-150_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 3.638
elif fileName.find("WJetsToLNu_HT-1200To2500_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 1.329
elif fileName.find("WJetsToQQ_HT-800toInf_qc19_3j_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 34.69
elif fileName.find("DYJetsToLL_M-50_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8_DownPS") !=-1 : return 5735.0
elif fileName.find("DYJetsToLL_M-50_HT-2500toInf_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 0.003468
elif fileName.find("DYJetsToLL_M-50_HT-800to1200_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 0.8052
elif fileName.find("DYJetsToLL_M-50_Zpt-150toInf_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 22.93
elif fileName.find("QCD_HT300to500_GenJets5_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 70260.0
elif fileName.find("QCD_HT500to700_GenJets5_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 11200.0
elif fileName.find("ST_tW_antitop_5f_DS_NoFullyHadronicDecays_13TeV-powheg-pythia8") !=-1 : return 36.23
elif fileName.find("ST_tW_top_5f_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1") !=-1 : return 38.09
elif fileName.find("ST_t-channel_antitop_5f_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 71.74
elif fileName.find("SMS-T2cc_genHT-160_genMET-80_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.001685
elif fileName.find("SMS-T5ttcc_mGluino1750to2800_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 3.337e-05
elif fileName.find("ST_s-channel_4f_leptonDecays_TuneCP5CR1_13TeV-amcatnlo-pythia8") !=-1 : return 3.74
elif fileName.find("ST_s-channel_4f_leptonDecays_TuneCP5CR2_13TeV-amcatnlo-pythia8") !=-1 : return 3.74
elif fileName.find("TTZPrimeToMuMu_M-1000_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 0.00154
elif fileName.find("TTZPrimeToMuMu_M-1200_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 0.0006259
elif fileName.find("TTZPrimeToMuMu_M-1300_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 0.0004131
elif fileName.find("TTZPrimeToMuMu_M-1400_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 0.0002778
elif fileName.find("TTZPrimeToMuMu_M-1500_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 0.0001903
elif fileName.find("TTZPrimeToMuMu_M-1600_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 0.0001325
elif fileName.find("TTZPrimeToMuMu_M-1700_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 9.353e-05
elif fileName.find("TTZPrimeToMuMu_M-1800_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 6.693e-05
elif fileName.find("TTZPrimeToMuMu_M-1900_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 4.862e-05
elif fileName.find("TTZPrimeToMuMu_M-2000_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 3.577e-05
elif fileName.find("WJetsToLNu_DStarFilter_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8") !=-1 : return 1995.0
elif fileName.find("WJetsToLNu_HT-2500ToInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 0.03209
elif fileName.find("WJetsToLNu_HT-800To1200_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 5.497
elif fileName.find("WJetsToLNu_Pt-100To250_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8") !=-1 : return 627.1
elif fileName.find("WJetsToLNu_Pt-250To400_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8") !=-1 : return 21.83
elif fileName.find("WJetsToLNu_Pt-400To600_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8") !=-1 : return 2.635
elif fileName.find("WJetsToLNu_Pt-600ToInf_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8") !=-1 : return 0.4102
elif fileName.find("WJetsToLNu_Wpt-100to200_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 457.8
elif fileName.find("WJetsToLNu_Wpt-200toInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 50.48
elif fileName.find("WJetsToQQ_HT400to600_qc19_3j_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 315.2
elif fileName.find("WJetsToQQ_HT600to800_qc19_3j_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 68.58
elif fileName.find("DYJetsToLL_M-500to700_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8") !=-1 : return 0.2334
elif fileName.find("DYJetsToLL_M-50_HT-100to200_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 161.1
elif fileName.find("DYJetsToLL_M-50_HT-200to400_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 48.66
elif fileName.find("DYJetsToLL_M-50_HT-400to600_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 6.968
elif fileName.find("DYJetsToLL_M-50_HT-600to800_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 1.743
elif fileName.find("ST_tW_antitop_5f_MEscaleup_NoFullyHadronicDecays_13TeV-powheg") !=-1 : return 37.24
elif fileName.find("Test_ZprimeToTT_M-4500_W-45_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 0.000701
elif fileName.find("ST_tW_antitop_5f_inclusiveDecays_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("MSSM-higgsino_no1l_2lfilter_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.7001
elif fileName.find("SMS-T1qqqq-LLChipm_ctau-200_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 3.08e-05
elif fileName.find("SMS-T1qqqq-compressedGluino_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.03711
elif fileName.find("SMS-T2tt_dM-10to80_2Lfilter_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.003416
elif fileName.find("SMS-T5ZZ_mGluino-1850to2400_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0001696
elif fileName.find("SMS-TChiWZ_ZToLL_dM-90to100_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.01817
elif fileName.find("ST_s-channel_4f_hadronicDecays_TuneCP5_13TeV-amcatnlo-pythia8") !=-1 : return 11.24
elif fileName.find("BdToPsi2sKst_MuTrkFilter_DGamma0_TuneCP5_13TeV-pythia8-evtgen") !=-1 : return 5942000.0
elif fileName.find("ST_s-channel_4f_hadronicDecays_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 11.24
elif fileName.find("ST_s-channel_4f_leptonDecays_TuneCP5up_13TeV-amcatnlo-pythia8") !=-1 : return 3.74
elif fileName.find("TTJets_SingleLeptFromT_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 114.0
elif fileName.find("TTZToLLNuNu_M-10_TuneCP5down_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 0.2432
elif fileName.find("TTZPrimeToMuMu_M-300_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 0.2194
elif fileName.find("TTZPrimeToMuMu_M-400_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 0.06842
elif fileName.find("TTZPrimeToMuMu_M-500_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 0.0287
elif fileName.find("TTZPrimeToMuMu_M-600_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 0.01409
elif fileName.find("TTZPrimeToMuMu_M-700_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 0.007522
elif fileName.find("TTZPrimeToMuMu_M-800_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 0.004257
elif fileName.find("TTZPrimeToMuMu_M-900_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 0.002515
elif fileName.find("WJetsToLNu_HT-100To200_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 1346.0
elif fileName.find("WJetsToLNu_HT-200To400_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 360.1
elif fileName.find("WJetsToLNu_HT-400To600_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 48.8
elif fileName.find("WJetsToLNu_HT-600To800_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 12.07
elif fileName.find("WjetsToLNu_Pt-50To100_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8") !=-1 : return 3046.0
elif fileName.find("DYJetsToLL_M-50_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8_UpPS") !=-1 : return 6005.0
elif fileName.find("DYJetsToLL_M-50_HT-70to100_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 146.7
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_13TeV-powheg_herwigpp") !=-1 : return 38.06
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_13TeV-powheg_TuneCUETP8M1") !=-1 : return 38.09
elif fileName.find("SMS-T1qqqq-LLChipm_ctau-10_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 3.144e-05
elif fileName.find("SMS-T1qqqq-LLChipm_ctau-50_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 3.646e-05
elif fileName.find("SMS-TChiHH_HToBB_HToTauTau_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 3.328e-07
elif fileName.find("TChiWZ_genHT-160_genMET-80_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.004759
elif fileName.find("ST_tW_DS_top_5f_inclusiveDecays_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 33.67
elif fileName.find("TTWJetsToLNu_TuneCUETP8M1_13TeV-amcatnloFXFX-madspin-pythia8") !=-1 : return 0.2001
elif fileName.find("TTWJetsToLNu_TuneCUETP8M1_14TeV-amcatnloFXFX-madspin-pythia8") !=-1 : return 0.2358
elif fileName.find("TTZToLLNuNu_M-10_TuneCP5CR2_GluonMove_13TeV-amcatnlo-pythia8") !=-1 : return 0.2432
elif fileName.find("WJetsToLNu_HT-70To100_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 1353.0
elif fileName.find("WJetsToQQ_HT-600ToInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 99.65
elif fileName.find("DYJetsToLL_M-50_TuneCUETP8M1_13TeV-madgraphMLM-herwigpp_30M") !=-1 : return 14240.0
elif fileName.find("DYJetsToLL_M-50_HT-40to70_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 311.4
elif fileName.find("ST_tW_antitop_fsrdown_5f_NoFullyHadronicDecays_13TeV-powheg") !=-1 : return 38.06
elif fileName.find("ST_tW_antitop_isrdown_5f_NoFullyHadronicDecays_13TeV-powheg") !=-1 : return 38.06
elif fileName.find("ST_tW_top_MEscaledown_5f_NoFullyHadronicDecays_13TeV-powheg") !=-1 : return 39.28
elif fileName.find("ST_s-channel_4f_leptonDecays_TuneCP5_13TeV-amcatnlo-pythia8") !=-1 : return 3.74
elif fileName.find("SMS-T2bb_mSbot-1650to2600_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 1.174e-06
elif fileName.find("SMS-T2bt-LLChipm_ctau-200_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0003144
elif fileName.find("SMS-T2qq-LLChipm_ctau-200_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 9.212e-06
elif fileName.find("SMS-T2tt_mStop-1200to2000_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 1.823e-05
elif fileName.find("SMS-TChiHH_HToBB_HToBB_2D_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 1.664e-06
elif fileName.find("ST_s-channel_top_leptonDecays_13TeV-PSweights_powheg-pythia") !=-1 : return 5.757
elif fileName.find("TTJets_SingleLeptFromTbar_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 124.6
elif fileName.find("ST_s-channel_4f_leptonDecays_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 3.74
elif fileName.find("TTJets_HT-1200to2500_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 0.1194
elif fileName.find("TTJets_SingleLeptFromTbar_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 108.7
elif fileName.find("TTWJetsToQQ_TuneCUETP8M1_13TeV-amcatnloFXFX-madspin-pythia8") !=-1 : return 0.405
elif fileName.find("TTZJetsToQQ_Dilept_TuneCP5_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 0.0568
elif fileName.find("TTZToLLNuNu_M-10_TuneCP5up_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 0.2432
elif fileName.find("TTZToLLNuNu_M-10_TuneCP5CR1_QCDbased_13TeV-amcatnlo-pythia8") !=-1 : return 0.2432
elif fileName.find("QCD_HT1000to1500_BGenFilter_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 138.2
elif fileName.find("QCD_HT1500to2000_BGenFilter_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 13.61
elif fileName.find("SMS-T2bH_HToGG_mSbot-250_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 14.34
elif fileName.find("SMS-T2bt-LLChipm_ctau-10_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0002197
elif fileName.find("SMS-T2bt-LLChipm_ctau-50_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0004198
elif fileName.find("SMS-T2qq-LLChipm_ctau-10_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 8.05e-06
elif fileName.find("SMS-T2qq-LLChipm_ctau-50_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 1.013e-05
elif fileName.find("SMS-T2tt_mStop-400to1200_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.001795
elif fileName.find("TTJets_HT-2500toInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 0.001445
elif fileName.find("TTJets_HT-800to1200_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 0.6736
elif fileName.find("TTJets_DiLept_genMET-150_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 3.655
elif fileName.find("tZq_ll_4f_ckm_NLO_TuneCP5_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 0.07358
elif fileName.find("WJetsToLNu_HT-1200To2500_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 1.074
elif fileName.find("QCD_HT2000toInf_BGenFilter_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 2.92
elif fileName.find("QCD_HT700to1000_BGenFilter_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 721.8
elif fileName.find("ST_t-channel_eleDecays_13TeV-comphep-pythia8_TuneCUETP8M1") !=-1 : return 23.9
elif fileName.find("ST_t-channel_tauDecays_13TeV-comphep-pythia8_TuneCUETP8M1") !=-1 : return 23.92
elif fileName.find("ST_tW_antitop_5f_fsrup_NoFullyHadronicDecays_13TeV-powheg") !=-1 : return 38.06
elif fileName.find("ST_tW_antitop_5f_isrup_NoFullyHadronicDecays_13TeV-powheg") !=-1 : return 38.06
elif fileName.find("ST_tW_top_5f_MEscaleup_NoFullyHadronicDecays_13TeV-powheg") !=-1 : return 37.28
elif fileName.find("ST_tW_top_5f_inclusiveDecays_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("SMS-T2qq_mSq-1850to2600_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 9.716e-06
elif fileName.find("SMS-T2tt_mStop-150to250_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 20.95
elif fileName.find("SMS-T2tt_mStop-250to350_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 4.516
elif fileName.find("SMS-TChiWH_WToLNu_HToBB_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.002528
elif fileName.find("VBF-C1N2_leptonicDecays_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0003095
elif fileName.find("BdToXKst_MuTrkFilter_DGamma0_TuneCP5_13TeV-pythia8-evtgen") !=-1 : return 7990000.0
elif fileName.find("SMS-T2tt_mStop-350to400_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 1.487
elif fileName.find("TTJets_HT-600to800_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 1.65
elif fileName.find("TTJets_DiLept_genMET-80_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 22.45
elif fileName.find("TTZToLLNuNu_M-10_TuneCP5_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 0.2432
elif fileName.find("WJetsToLNu_HT-2500ToInf_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 0.008001
elif fileName.find("WJetsToLNu_HT-800To1200_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 5.366
elif fileName.find("WJetsToLNu_Pt-100To250_TuneCP5_13TeV-amcatnloFXFX-pythia8") !=-1 : return 779.1
elif fileName.find("WJetsToLNu_Pt-250To400_TuneCP5_13TeV-amcatnloFXFX-pythia8") !=-1 : return 27.98
elif fileName.find("WJetsToLNu_Pt-400To600_TuneCP5_13TeV-amcatnloFXFX-pythia8") !=-1 : return 3.604
elif fileName.find("WJetsToLNu_Pt-600ToInf_TuneCP5_13TeV-amcatnloFXFX-pythia8") !=-1 : return 0.5545
elif fileName.find("DYJetsToLL_M-500to700_TuneCP5_13TeV-amcatnloFXFX-pythia8") !=-1 : return 0.2558
elif fileName.find("DYJetsToLL_M-50_TuneCP5_13TeV-madgraphMLM-pythia8_Fall17") !=-1 : return 5350.0
elif fileName.find("QCD_HT300to500_BGenFilter_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 27960.0
elif fileName.find("QCD_HT100to200_BGenFilter_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 1275000.0
elif fileName.find("QCD_HT200to300_BGenFilter_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 111700.0
elif fileName.find("QCD_HT500to700_BGenFilter_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 3078.0
elif fileName.find("ST_t-channel_muDecays_13TeV-comphep-pythia8_TuneCUETP8M1") !=-1 : return 23.89
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_13TeV-powheg_herwigpp") !=-1 : return 38.09
elif fileName.find("ST_tWnunu_5f_LO_TuneCP5_PSweights_13TeV-madgraph-pythia8") !=-1 : return 0.02099
elif fileName.find("SMS-T1ttbb_deltaM5to25_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 6.074e-05
elif fileName.find("SMS-T5Wg_mGo2150To2800_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 3.449e-05
elif fileName.find("SMS-T6Wg_mSq1850To2450_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 1.761e-05
elif fileName.find("SMS-TChiHH_HToBB_HToBB_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 4.546e-07
elif fileName.find("SMS-TChiHZ_HToBB_ZToLL_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 9.084e-07
elif fileName.find("SMS-TChiStauStau_x0p05_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.000755
elif fileName.find("SMS-TChiStauStau_x0p95_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0007372
elif fileName.find("SMS-TChiZZ_ZToLL_ZToLL_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 1.096e-06
elif fileName.find("TTJets_SingleLeptFromT_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 124.9
elif fileName.find("TTJets_SingleLeptFromT_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 109.6
elif fileName.find("WJetsToLNu_HT-200To400_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 407.9
elif fileName.find("WJetsToLNu_HT-400To600_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 57.48
elif fileName.find("WJetsToLNu_HT-600To800_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 12.87
elif fileName.find("WJetsToLNu_HT-100To200_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 1395.0
elif fileName.find("WJetsToLNu_Pt-50To100_TuneCP5_13TeV-amcatnloFXFX-pythia8") !=-1 : return 3570.0
elif fileName.find("DYJetsToLL_M-50_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8") !=-1 : return 5941.0
elif fileName.find("QCD_HT1000to1500_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 1207.0
elif fileName.find("QCD_HT1500to2000_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 120.0
elif fileName.find("ST_tW_top_fsrdown_5f_NoFullyHadronicDecays_13TeV-powheg") !=-1 : return 38.09
elif fileName.find("ST_tW_top_isrdown_5f_NoFullyHadronicDecays_13TeV-powheg") !=-1 : return 38.09
elif fileName.find("SMS-TChiSlepSnu_x0p05_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 9.607e-05
elif fileName.find("SMS-TChiSlepSnu_x0p95_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 9.562e-05
elif fileName.find("SMS-TChiStauStau_x0p5_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.002364
elif fileName.find("SMS-TChipmWW_WWTo2LNu_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.002556
elif fileName.find("TTJets_Dilept_TuneCUETP8M2T4_13TeV-amcatnloFXFX-pythia8") !=-1 : return 76.75
elif fileName.find("TTWJetsToLNu_TuneCP5_13TeV-amcatnloFXFX-madspin-pythia8") !=-1 : return 0.2149
elif fileName.find("WJetsToLNu_HT-70To100_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 1292.0
elif fileName.find("WJetsToLNu_Wpt-0To50_TuneCP5_13TeV-amcatnloFXFX-pythia8") !=-1 : return 61850.0
elif fileName.find("DYJetsToLL_M-50_TuneCUETHS1_13TeV-madgraphMLM-herwigpp") !=-1 : return 358.6
elif fileName.find("DYJetsToLL_M-50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 4963.0
elif fileName.find("QCD_HT2000toInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 25.25
elif fileName.find("QCD_HT700to1000_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 6829.0
elif fileName.find("ST_s-channel_4f_InclusiveDecays_13TeV-amcatnlo-pythia8") !=-1 : return 10.12
elif fileName.find("Test_BulkGravToWW_narrow_M-4000_13TeV_TuneCP1-madgraph") !=-1 : return 4.464e-05
elif fileName.find("Test_BulkGravToWW_narrow_M-4000_13TeV_TuneCP2-madgraph") !=-1 : return 4.467e-05
elif fileName.find("Test_BulkGravToWW_narrow_M-4000_13TeV_TuneCP3-madgraph") !=-1 : return 4.413e-05
elif fileName.find("Test_BulkGravToWW_narrow_M-4000_13TeV_TuneCP4-madgraph") !=-1 : return 4.459e-05
elif fileName.find("Test_BulkGravToWW_narrow_M-4000_13TeV_TuneCP5-madgraph") !=-1 : return 4.543e-05
elif fileName.find("ST_tWll_5f_LO_TuneCP5_PSweights_13TeV-madgraph-pythia8") !=-1 : return 0.01103
elif fileName.find("SMS-TChiSlepSnu_x0p5_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.000111
elif fileName.find("TTJets_HT-1200to2500_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 0.1316
elif fileName.find("TTWJetsToQQ_TuneCP5_13TeV-amcatnloFXFX-madspin-pythia8") !=-1 : return 0.4316
elif fileName.find("WZTo1L1Nu2Q_13TeV_TuneCP5_amcatnloFXFX_madspin_pythia8") !=-1 : return 11.74
elif fileName.find("WJetsToQQ_HT400to600_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 1447.0
elif fileName.find("WJetsToQQ_HT600to800_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 318.8
elif fileName.find("QCD_HT100to200_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 28060000.0
elif fileName.find("QCD_HT200to300_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 1710000.0
elif fileName.find("QCD_HT300to500_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 347500.0
elif fileName.find("QCD_HT500to700_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 32060.0
elif fileName.find("ST_tW_top_5f_fsrup_NoFullyHadronicDecays_13TeV-powheg") !=-1 : return 38.09
elif fileName.find("ST_tW_top_5f_isrup_NoFullyHadronicDecays_13TeV-powheg") !=-1 : return 38.09
elif fileName.find("SMS-TChiNG_BF50N50G_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 2.458e-07
elif fileName.find("TTJets_HT-800to1200_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 0.7532
elif fileName.find("TTJets_HT-2500toInf_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 0.001407
elif fileName.find("QCD_HT50to100_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 246300000.0
elif fileName.find("ST_t-channel_eleDecays_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 24.85
elif fileName.find("ST_t-channel_tauDecays_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 24.7
elif fileName.find("VBF-C1N2_tauDecays_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0003081
elif fileName.find("ST_t-channel_antitop_5f_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 82.52
elif fileName.find("TTJets_DiLept_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 56.86
elif fileName.find("TTJets_HT-600to800_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 1.821
elif fileName.find("TTZToLLNuNu_M-10_TuneCUETP8M1_13TeV-amcatnlo-pythia8") !=-1 : return 0.2529
elif fileName.find("TTZPrimeToMuMu_M-1000_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.001539
elif fileName.find("TTZPrimeToMuMu_M-1200_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.0006278
elif fileName.find("TTZPrimeToMuMu_M-1300_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.0004127
elif fileName.find("TTZPrimeToMuMu_M-1400_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.0002776
elif fileName.find("TTZPrimeToMuMu_M-1500_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.0001899
elif fileName.find("TTZPrimeToMuMu_M-1600_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.0001324
elif fileName.find("TTZPrimeToMuMu_M-1700_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 9.354e-05
elif fileName.find("TTZPrimeToMuMu_M-1800_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 6.694e-05
elif fileName.find("TTZPrimeToMuMu_M-1900_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 4.857e-05
elif fileName.find("TTZPrimeToMuMu_M-2000_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.001539
elif fileName.find("ST_s-channel_4f_leptonDecays_13TeV-amcatnlo-pythia8") !=-1 : return 3.365
elif fileName.find("SMS-T6qqllslepton_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 8.693e-05
elif fileName.find("SMS-TChipmSlepSnu_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.00333
elif fileName.find("SMS-TChipmStauSnu_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0005573
elif fileName.find("ST_t-channel_muDecays_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 24.72
elif fileName.find("TTZPrimeToMuMu_M-300_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.22
elif fileName.find("TTZPrimeToMuMu_M-400_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.0684
elif fileName.find("TTZPrimeToMuMu_M-500_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.02871
elif fileName.find("TTZPrimeToMuMu_M-600_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.01408
elif fileName.find("TTZPrimeToMuMu_M-700_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.007514
elif fileName.find("TTZPrimeToMuMu_M-800_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.004255
elif fileName.find("TTZPrimeToMuMu_M-900_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.002517
elif fileName.find("TTZToLLNuNu_M-10_TuneCP5down_13TeV-amcatnlo-pythia8") !=-1 : return 0.2432
elif fileName.find("DYJetsToLL_M-50_TuneCP5_13TeV-amcatnloFXFX-pythia8") !=-1 : return 6529.0
elif fileName.find("QCD_HT1000to1500_TuneCH3_13TeV-madgraphMLM-herwig7") !=-1 : return 1.137
elif fileName.find("QCD_HT1500to2000_TuneCH3_13TeV-madgraphMLM-herwig7") !=-1 : return 0.02693
elif fileName.find("QCD_HT1000to1500_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 1092.0
elif fileName.find("QCD_HT1500to2000_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 99.76
elif fileName.find("SMS-T5Wg_TuneCP2_13TeV-madgraphMLM-pythia8_testCPU") !=-1 : return 0.0007515
elif fileName.find("SMS-T5tttt_dM175_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 8.671e-05
elif fileName.find("SMS-TChiHH_HToGG_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 6.501e-06
elif fileName.find("SMS-TChiHZ_HToGG_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 5.739e-06
elif fileName.find("SMS-TChiWH_HToGG_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.01489
elif fileName.find("SMS-TChiWZ_ZToLL_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.002535
elif fileName.find("SMS-TChiZZ_ZToLL_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 1.128e-06
elif fileName.find("WJetsToLNu_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8") !=-1 : return 60430.0
elif fileName.find("DYJetsToLL_M-50_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 5343.0
elif fileName.find("DYJetsToLL_M-50_TuneCH3_13TeV-madgraphMLM-herwig7") !=-1 : return 9.402
elif fileName.find("DYJetsToLL_M-50_TuneCP1_13TeV-madgraphMLM-pythia8") !=-1 : return 4661.0
elif fileName.find("DYJetsToLL_M-50_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 4878.0
elif fileName.find("QCD_HT2000toInf_TuneCH3_13TeV-madgraphMLM-herwig7") !=-1 : return 0.1334
elif fileName.find("QCD_HT700to1000_TuneCH3_13TeV-madgraphMLM-herwig7") !=-1 : return 5.65
elif fileName.find("QCD_HT2000toInf_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 20.35
elif fileName.find("QCD_HT700to1000_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 6344.0
elif fileName.find("QCD_Pt-15to7000_TuneCP2_Flat_13TeV_pythia8_FlatPU") !=-1 : return 2060000000.0
elif fileName.find("SMS-T5WgStealth_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0002458
elif fileName.find("SMS-T6WgStealth_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.01157
elif fileName.find("SMS-T6qqWW_dM10_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 9.439e-05
elif fileName.find("SMS-T6qqWW_dM15_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0002814
elif fileName.find("SMS-T6qqWW_dM20_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 8.567e-05
elif fileName.find("SMS-T7WgStealth_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0001827
elif fileName.find("TTZToLLNuNu_M-10_TuneCP5up_13TeV-amcatnlo-pythia8") !=-1 : return 0.2432
elif fileName.find("WJetsToLNu_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 50260.0
elif fileName.find("QCD_HT100to200_TuneCH3_13TeV-madgraphMLM-herwig7") !=-1 : return 3979.0
elif fileName.find("QCD_HT200to300_TuneCH3_13TeV-madgraphMLM-herwig7") !=-1 : return 673.8
elif fileName.find("QCD_HT300to500_TuneCH3_13TeV-madgraphMLM-herwig7") !=-1 : return 829.2
elif fileName.find("QCD_HT500to700_TuneCH3_13TeV-madgraphMLM-herwig7") !=-1 : return 15.19
elif fileName.find("QCD_HT100to200_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 23590000.0
elif fileName.find("QCD_HT200to300_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 1551000.0
elif fileName.find("QCD_HT300to500_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 323400.0
elif fileName.find("QCD_HT500to700_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 30140.0
elif fileName.find("ST_t-channel_top_5f_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 119.7
elif fileName.find("ST_tch_14TeV_antitop_incl-powheg-pythia8-madspin") !=-1 : return 29.2
elif fileName.find("SMS-T2bH_HToGG_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.01149
elif fileName.find("SMS-T6qqWW_dM5_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0001039
elif fileName.find("WJetsToLNu_0J_TuneCP5_13TeV-amcatnloFXFX-pythia8") !=-1 : return 0.0
elif fileName.find("WJetsToLNu_1J_TuneCP5_13TeV-amcatnloFXFX-pythia8") !=-1 : return 0.0
elif fileName.find("WJetsToLNu_2J_TuneCP5_13TeV-amcatnloFXFX-pythia8") !=-1 : return 0.0
elif fileName.find("QCD_HT1000to1500_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 1088.0
elif fileName.find("QCD_HT1500to2000_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 99.11
elif fileName.find("QCD_HT50to100_TuneCH3_13TeV-madgraphMLM-herwig7") !=-1 : return 119700.0
elif fileName.find("QCD_HT50to100_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 185300000.0
elif fileName.find("QCD_Pt-15to7000_TuneCP2_Flat_NoPU_13TeV_pythia8") !=-1 : return 2048000000.0
elif fileName.find("QCD_Pt-15to7000_TuneCP5_Flat_13TeV_pythia8_test") !=-1 : return 1393000000.0
elif fileName.find("SMS-TSlepSlep_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.003472
elif fileName.find("TTJets_DiLept_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 62.49
elif fileName.find("TTJets_DiLept_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 54.23
elif fileName.find("TTZToLLNuNu_M-10_TuneCP5_13TeV-amcatnlo-pythia8") !=-1 : return 0.2432
elif fileName.find("WZTo1L3Nu_13TeV_amcatnloFXFX_madspin_pythia8_v2") !=-1 : return 3.3
elif fileName.find("QCD_HT2000toInf_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 20.23
elif fileName.find("QCD_HT700to1000_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 6334.0
elif fileName.find("SMS-T5bbbbZg_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 5.352e-05
elif fileName.find("SMS-T5qqqqHg_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 5.127e-05
elif fileName.find("SMS-T5qqqqVV_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 8.771e-05
elif fileName.find("SMS-T5ttttZg_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 5.139e-05
elif fileName.find("SMS-TChipmWW_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.000512
elif fileName.find("ST_tWlnuZ_5f_LO_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.001267
elif fileName.find("TTJets_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8") !=-1 : return 690.9
elif fileName.find("TTZToLL_M-1to10_TuneCP5_13TeV-amcatnlo-pythia8") !=-1 : return 0.05324
elif fileName.find("TTZJets_TuneCUETP8M1_14TeV_madgraphMLM-pythia8") !=-1 : return 0.6615
elif fileName.find("WZTo1L1Nu2Q_13TeV_amcatnloFXFX_madspin_pythia8") !=-1 : return 10.73
elif fileName.find("QCD_HT100to200_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 23700000.0
elif fileName.find("QCD_HT200to300_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 1547000.0
elif fileName.find("QCD_HT300to500_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 322600.0
elif fileName.find("QCD_HT500to700_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 29980.0
elif fileName.find("SMS-T1qqqqL_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0001578
elif fileName.find("ST_tWqqZ_5f_LO_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.001122
elif fileName.find("VBF-C1N2_WZ_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0003344
elif fileName.find("TTJets_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 511.3
elif fileName.find("TTZZTo4b_5f_LO_TuneCP5_13TeV_madgraph_pythia8") !=-1 : return 0.001385
elif fileName.find("ST_tch_14TeV_top_incl-powheg-pythia8-madspin") !=-1 : return 48.03
elif fileName.find("SMS-T1bbbb_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 3.653e-05
elif fileName.find("SMS-T1qqqq_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 4.281e-05
elif fileName.find("SMS-T1ttbb_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 8.06e-05
elif fileName.find("SMS-T1tttt_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 3.855e-05
elif fileName.find("SMS-T5ttcc_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.005095
elif fileName.find("SMS-T6ttWW_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0001474
elif fileName.find("SMS-T6ttZg_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 4.206e-05
elif fileName.find("SMS-TChiNG_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 2.484e-07
elif fileName.find("SMS-TChiWG_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 9.996e-05
elif fileName.find("SMS-TChiWZ_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0004769
elif fileName.find("SMS-TChiWH_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0003865
elif fileName.find("WZTo1L3Nu_13TeV_amcatnloFXFX_madspin_pythia8") !=-1 : return 3.054
elif fileName.find("ZZTo2Q2Nu_13TeV_amcatnloFXFX_madspin_pythia8") !=-1 : return 4.033
elif fileName.find("WJetsToLNu_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 52940.0
elif fileName.find("TTZToQQ_TuneCUETP8M1_13TeV-amcatnlo-pythia8") !=-1 : return 0.5297
elif fileName.find("WZTo2L2Q_13TeV_amcatnloFXFX_madspin_pythia8") !=-1 : return 5.606
elif fileName.find("ZZTo2L2Q_13TeV_amcatnloFXFX_madspin_pythia8") !=-1 : return 3.222
elif fileName.find("ST_tW_DR_14TeV_antitop_incl-powheg-pythia8") !=-1 : return 45.02
elif fileName.find("QCD_Pt-15to7000_TuneCP2_Flat_13TeV_pythia8") !=-1 : return 2051000000.0
elif fileName.find("RPV-monoPhi_TuneCP2_13TeV-madgraph-pythia8") !=-1 : return 0.01296
elif fileName.find("SMS-T2bW_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0002628
elif fileName.find("SMS-T2bb_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0001507
elif fileName.find("SMS-T2bt_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.001012
elif fileName.find("SMS-T2qq_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0003827
elif fileName.find("SMS-T5Wg_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0007355
elif fileName.find("SMS-T5ZZ_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.002739
elif fileName.find("SMS-T6Wg_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0003838
elif fileName.find("TTTW_TuneCUETP8M2T4_13TeV-madgraph-pythia8") !=-1 : return 0.0008612
elif fileName.find("TTWH_TuneCUETP8M2T4_13TeV-madgraph-pythia8") !=-1 : return 0.001344
elif fileName.find("TTWW_TuneCUETP8M2T4_13TeV-madgraph-pythia8") !=-1 : return 0.007834
elif fileName.find("TTWZ_TuneCUETP8M2T4_13TeV-madgraph-pythia8") !=-1 : return 0.002938
elif fileName.find("TTZH_TuneCUETP8M2T4_13TeV-madgraph-pythia8") !=-1 : return 0.001244
elif fileName.find("TTZZ_TuneCUETP8M2T4_13TeV-madgraph-pythia8") !=-1 : return 0.001563
elif fileName.find("TTJets_TuneCP5_13TeV-amcatnloFXFX-pythia8") !=-1 : return 722.8
elif fileName.find("ttWJets_TuneCP5_13TeV_madgraphMLM_pythia8") !=-1 : return 0.4611
elif fileName.find("ttZJets_TuneCP5_13TeV_madgraphMLM_pythia8") !=-1 : return 0.5407
elif fileName.find("WJetsToQQ_HT180_13TeV-madgraphMLM-pythia8") !=-1 : return 3105.0
elif fileName.find("TTJets_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 496.1
elif fileName.find("ST_tWnunu_5f_LO_13TeV_MadGraph_pythia8") !=-1 : return 0.02124
elif fileName.find("ST_tWnunu_5f_LO_13TeV-MadGraph-pythia8") !=-1 : return 0.02122
elif fileName.find("ST_tW_DR_14TeV_top_incl-powheg-pythia8") !=-1 : return 45.06
elif fileName.find("TTZToQQ_TuneCP5_13TeV-amcatnlo-pythia8") !=-1 : return 0.5104
elif fileName.find("TTZToBB_TuneCP5_13TeV-amcatnlo-pythia8") !=-1 : return 0.1118
elif fileName.find("ST_tWll_5f_LO_13TeV-MadGraph-pythia8") !=-1 : return 0.01104
elif fileName.find("ST_tWll_5f_LO_13TeV_MadGraph_pythia8") !=-1 : return 0.01103
elif fileName.find("TTTW_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.0007314
elif fileName.find("TTWH_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.001141
elif fileName.find("TTWW_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.006979
elif fileName.find("TTWZ_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.002441
elif fileName.find("TTZH_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.00113
elif fileName.find("TTZZ_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.001386
elif fileName.find("WWTo2L2Nu_13TeV-powheg-CUETP8M1Down") !=-1 : return 10.48
elif fileName.find("ZZTo2L2Nu_13TeV_powheg_pythia8_ext1") !=-1 : return 0.5644
elif fileName.find("ttZJets_13TeV_madgraphMLM-pythia8") !=-1 : return 0.6529
elif fileName.find("WWTo2L2Nu_13TeV-powheg-CUETP8M1Up") !=-1 : return 10.48
elif fileName.find("WWTo2L2Nu_13TeV-powheg-herwigpp") !=-1 : return 10.48
elif fileName.find("ZZTo2L2Nu_13TeV_powheg_pythia8") !=-1 : return 0.5644
elif fileName.find("WWTo2L2Nu_13TeV-powheg") !=-1 : return 10.48
elif fileName.find("WWToLNuQQ_13TeV-powheg") !=-1 : return 43.53
elif fileName.find("WJetsToLNu_Wpt-50To100") !=-1 : return 3298.373338
elif fileName.find("WJetsToLNu_Pt-100To250") !=-1 : return 689.749632
elif fileName.find("WJetsToLNu_Pt-250To400") !=-1 : return 24.5069015
elif fileName.find("WJetsToLNu_Pt-400To600") !=-1 : return 3.110130566
elif fileName.find("WJetsToLNu_Pt-600ToInf") !=-1 : return 0.4683178368
elif fileName.find("WJetsToLNu_Wpt-0To50") !=-1 : return 57297.39264
elif fileName.find("TTJetsFXFX") !=-1 : return 831.76
elif fileName.find("SingleMuon")!=-1 or fileName.find("SingleElectron") !=-1 or fileName.find("JetHT") !=-1 or fileName.find("MET") !=-1 or fileName.find("MTHT") !=-1: return 1.
else:
print("Cross section not defined! Returning 0 and skipping sample:\n{}\n".format(fileName))
return 0
|
#
# PySNMP MIB module HH3C-LswMAM-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HH3C-LswMAM-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:15:14 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueRangeConstraint, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ConstraintsUnion")
hh3cdot1qVlanIndex, = mibBuilder.importSymbols("HH3C-LswVLAN-MIB", "hh3cdot1qVlanIndex")
hh3clswCommon, = mibBuilder.importSymbols("HH3C-OID-MIB", "hh3clswCommon")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
Counter32, ObjectIdentity, IpAddress, Counter64, TimeTicks, MibIdentifier, iso, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, ModuleIdentity, Unsigned32, Integer32, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "ObjectIdentity", "IpAddress", "Counter64", "TimeTicks", "MibIdentifier", "iso", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "ModuleIdentity", "Unsigned32", "Integer32", "NotificationType")
DisplayString, MacAddress, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "MacAddress", "TextualConvention")
hh3cLswMacPort = ModuleIdentity((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3))
hh3cLswMacPort.setRevisions(('2001-06-29 00:00',))
if mibBuilder.loadTexts: hh3cLswMacPort.setLastUpdated('200106290000Z')
if mibBuilder.loadTexts: hh3cLswMacPort.setOrganization('Hangzhou H3C Tech. Co., Ltd.')
class InterfaceIndex(TextualConvention, Integer32):
status = 'current'
displayHint = 'd'
class PortList(TextualConvention, OctetString):
status = 'current'
hh3cdot1qMacSearchTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 1), )
if mibBuilder.loadTexts: hh3cdot1qMacSearchTable.setStatus('current')
hh3cdot1qMacSearchEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 1, 1), ).setIndexNames((0, "HH3C-LswMAM-MIB", "hh3cdot1qMacSearchAddress"), (0, "HH3C-LswMAM-MIB", "hh3cdot1qMacSearchVlanID"))
if mibBuilder.loadTexts: hh3cdot1qMacSearchEntry.setStatus('current')
hh3cdot1qMacSearchAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 1, 1, 1), MacAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hh3cdot1qMacSearchAddress.setStatus('current')
hh3cdot1qMacSearchVlanID = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1, -1), ValueRangeConstraint(1, 4096), ))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hh3cdot1qMacSearchVlanID.setStatus('current')
hh3cdot1qMacSearchPort = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 1, 1, 3), InterfaceIndex()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hh3cdot1qMacSearchPort.setStatus('current')
hh3cdot1qMacSearchAgeTime = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 1, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hh3cdot1qMacSearchAgeTime.setStatus('current')
hh3cdot1qTpFdbSetTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 2), )
if mibBuilder.loadTexts: hh3cdot1qTpFdbSetTable.setStatus('current')
hh3cdot1qTpFdbSetEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 2, 1), ).setIndexNames((0, "HH3C-LswVLAN-MIB", "hh3cdot1qVlanIndex"), (0, "HH3C-LswMAM-MIB", "hh3cdot1qTpFdbSetAddress"))
if mibBuilder.loadTexts: hh3cdot1qTpFdbSetEntry.setStatus('current')
hh3cdot1qTpFdbSetAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 2, 1, 1), MacAddress())
if mibBuilder.loadTexts: hh3cdot1qTpFdbSetAddress.setStatus('current')
hh3cdot1qTpFdbSetPort = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 2, 1, 2), InterfaceIndex()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hh3cdot1qTpFdbSetPort.setStatus('current')
hh3cdot1qTpFdbSetStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3, 6, 7, 9, 11))).clone(namedValues=NamedValues(("other", 1), ("learned", 3), ("static", 6), ("dynamic", 7), ("blackhole", 9), ("security", 11)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hh3cdot1qTpFdbSetStatus.setStatus('current')
hh3cdot1qTpFdbSetOperate = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("add", 1), ("delete", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hh3cdot1qTpFdbSetOperate.setStatus('current')
hh3cdot1qTpFdbGroupSetTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 3), )
if mibBuilder.loadTexts: hh3cdot1qTpFdbGroupSetTable.setStatus('current')
hh3cdot1qTpFdbGroupSetEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 3, 1), ).setIndexNames((0, "HH3C-LswVLAN-MIB", "hh3cdot1qVlanIndex"), (0, "HH3C-LswMAM-MIB", "hh3cdot1qTpFdbGroupSetAddress"))
if mibBuilder.loadTexts: hh3cdot1qTpFdbGroupSetEntry.setStatus('current')
hh3cdot1qTpFdbGroupSetAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 3, 1, 1), MacAddress())
if mibBuilder.loadTexts: hh3cdot1qTpFdbGroupSetAddress.setStatus('current')
hh3cdot1qTpFdbGroupSetPort = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 3, 1, 2), PortList()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hh3cdot1qTpFdbGroupSetPort.setStatus('current')
hh3cdot1qTpFdbGroupSetOperate = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("add", 1), ("delete", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hh3cdot1qTpFdbGroupSetOperate.setStatus('current')
mibBuilder.exportSymbols("HH3C-LswMAM-MIB", hh3cdot1qTpFdbSetStatus=hh3cdot1qTpFdbSetStatus, hh3cdot1qTpFdbSetTable=hh3cdot1qTpFdbSetTable, hh3cdot1qTpFdbGroupSetOperate=hh3cdot1qTpFdbGroupSetOperate, hh3cdot1qTpFdbGroupSetPort=hh3cdot1qTpFdbGroupSetPort, InterfaceIndex=InterfaceIndex, hh3cdot1qTpFdbSetAddress=hh3cdot1qTpFdbSetAddress, hh3cdot1qTpFdbSetOperate=hh3cdot1qTpFdbSetOperate, PortList=PortList, hh3cdot1qTpFdbSetPort=hh3cdot1qTpFdbSetPort, hh3cdot1qMacSearchPort=hh3cdot1qMacSearchPort, hh3cdot1qTpFdbGroupSetAddress=hh3cdot1qTpFdbGroupSetAddress, hh3cdot1qMacSearchAgeTime=hh3cdot1qMacSearchAgeTime, PYSNMP_MODULE_ID=hh3cLswMacPort, hh3cdot1qMacSearchAddress=hh3cdot1qMacSearchAddress, hh3cdot1qMacSearchEntry=hh3cdot1qMacSearchEntry, hh3cdot1qTpFdbSetEntry=hh3cdot1qTpFdbSetEntry, hh3cdot1qMacSearchVlanID=hh3cdot1qMacSearchVlanID, hh3cdot1qMacSearchTable=hh3cdot1qMacSearchTable, hh3cLswMacPort=hh3cLswMacPort, hh3cdot1qTpFdbGroupSetEntry=hh3cdot1qTpFdbGroupSetEntry, hh3cdot1qTpFdbGroupSetTable=hh3cdot1qTpFdbGroupSetTable)
|
"""Author: Gina Chatzimarkaki"""
#test-calculator-substract.py
def handle(str):
"""
Substract two numbers and return the result. If there are more
just take the first two
Parameters
----------
str : String
the provided input
Returns
-------
int
the 2 numbers substracted
"""
try:
numbers = str.strip().split()
if len(numbers) == 2:
print( float(numbers[0]) - float(numbers[1]) )
else:
print("*** Need two values, got", len(numbers))
except ValueError as v:
print("*** Value Error: ", v)
except Exception as x:
print("*** Error: ", x)
def main():
print("Hello World!")
arg = '125.0 67.0'
print(arg)
handle(arg)
if __name__ == "__main__":
main()
|
class MemeDataGenerator(tf.keras.utils.Sequence):
"""
An iterable that returns [batch_size, (images embeddigns, [unrolled input text sequences, text target])].
Instead of batching over images, we choose to batch over [image, description] pairs because unlike typical
image captioning tasks that has 3-5 texts per image, we have 180-200 texts per image. Batching over images
in our case significantly boosted memory cost and we could only batch 1-2 images using AWS p2.xLarge or p3
This class inherets from tf.keras.utils.Sequences to avoid data redundancy and syncing error.
https://www.tensorflow.org/api_docs/python/tf/keras/utils/Sequence
https://keras.io/utils/#sequence
dataset: [meme name, meme text] pairs
shuffle: If True, shuffles the samples before every epoch
batch_size: How many images to return in each call
INPUT:
========
- dataset: list of meme_name and meme_text pairs. [[meme_name, meme_text], [...], ...]
- img_embds: a pickled dictionary of {meme_name: image embeddings}
- tokenizer: tf.keras.preprocessing.text.Tokenizer
- batch_size: batch size
- max_length: maximum length of words
- vocab_size: size of the vocaburaries.
- shuffle: if True, shuffles the dataset between every epoch
OUTPUT:
=======
- outputs list: Usually empty in regular training. But if detection_targets
is True then the outputs list contains target class_ids, bbox deltas,
and masks.
"""
def __init__(self, dataset, img_embds, tokenizer, batch_size: int, max_length: int, vocab_size: int, shuffle=False):
self.dataset = dataset
self.img_embds = img_embds
self.tokenizer = tokenizer
self.batch_size = batch_size
self.max_length = max_length
self.vocab_size = vocab_size
self.shuffle = shuffle
self.on_epoch_end()
def __len__(self):
""" Number of batches in the Sequence """
return int(np.floor(len(self.dataset) / self.batch_size))
def __getitem__(self, idx):
"""
Generate one batch of data. One element in a batch is a pair of meme_name, meme_text.
Dataset is indexed using 'indexes' and 'indexes' will be shuffled every epoch if shuffle is True.
"""
indexes = self.indexes[idx*self.batch_size:(idx+1)*self.batch_size]
current_data = [self.dataset[i] for i in indexes]
in_img, in_seq, out_word = self.__generate_data(current_data)
# print(in_img.shape, in_seq.shape, out_word.shape)
return [in_img, in_seq], out_word
def on_epoch_end(self):
""" Method called at between every epoch """
self.indexes = np.arange(len(self.dataset))
if self.shuffle == True:
np.random.shuffle(self.indexes)
pass
def __generate_data(self, data_batch):
"""
Loop through the batch of data list and generate unrolled sequences of each list of data
"""
X1, X2, y = list(), list(), list()
# print("start ___generate_data")
for data in data_batch:
img_embd = self.img_embds[data[0]][0]
X1_tmp, X2_tmp, y_tmp = self.__create_sequence(img_embd, data[1])
# print("after __create_sequence")
# print(X1_tmp, X2_tmp, y_tmp)
# print(len(X1_tmp), len(X2_tmp), len(y_tmp))
# print(np.array(X1_tmp).shape, np.array(X2_tmp).shape, np.array(y_tmp).shape)
# X1.append(X1_tmp[0])
# X2.append(X2_tmp[0])
# y.append(y_tmp[0])
# X1.append(X1_tmp)
# X2.append(X2_tmp)
# y.append(y_tmp)
X1.extend(X1_tmp)
X2.extend(X2_tmp)
y.extend(y_tmp)
# print("end__generate_data")
# print(len(X1), len(X2), len(y))
# print(np.array(X1).shape, np.array(X2).shape, np.array(y).shape)
return np.array(X1), np.array(X2), np.array(y)
def __create_sequence(self, image, meme_text):
"""
Create one sequence of images, input sequences and output text for a single meme_text, e.g.,
img_vec input output
======== ======== ========
IMAGE_VEC startseq hi
IMAGE_VEC startseq hi this
IMAGE_VEC startseq hi this is
IMAGE_VEC startseq hi this is not
IMAGE_VEC startseq hi this is not fun
IMAGE_VEC startseq hi this is not fun endseq
Tokenized sequences will be padded from the front, keras default. The output word will be
one hot encoded w/ keras' to_categorical, and to save memory size, we cast it to float16
# https://stackoverflow.com/questions/42943291/what-does-keras-io-preprocessing-sequence-pad-sequences-do
INPUT:
========
image: image vectors
meme_text: text to be unrolled into max length length of sequences
tokenizer: tokenizer used to convert words to numbers
OUTPUT:
========
X1: image vector, list
X2: tokenized sequences, padded to max length, list
y: next texts, target, list
"""
X1, X2, y = list(), list(), list()
seq = self.tokenizer.texts_to_sequences([meme_text])[0]
#seq = meme_text.split(' ')#self.tokenizer.texts_to_sequences([meme_text])[0]
for i in range(1, len(seq)):
in_seq, out_seq = seq[:i], seq[i]
# print(in_seq, out_seq)
in_seq = pad_sequences([in_seq], maxlen=self.max_length)[0]
out_seq = to_categorical([out_seq], num_classes=self.vocab_size, dtype='float16')[0]
X1.append(image)
X2.append(in_seq)
y.append(out_seq) # bracket or not?
# print("__create_sequence")
# print(X1, X2, y)
# print(np.array(X1).shape, np.array(X2).shape, np.array(y).shape)
return X1, X2, y
|
#
# elkme - the command-line sms utility
# see main.py for the main entry-point
#
__version__ = '0.6.0'
__release_date__ = '2017-07-17'
|
#
# add leapfrog's template loader
#
TEMPLATE_LOADERS = (
'leapfrog.loaders.Loader',
# then the default template loaders
# ...
)
#
# enable the leapfrog app
#
INSTALLED_APPS = (
# ...
# all your other apps, plus south and the sentry apps:
'south',
'indexer',
'paging',
'sentry',
'sentry.client',
# and the leapfrog app:
'leapfrog',
)
#
# include the template context processors
#
TEMPLATE_CONTEXT_PROCESSORS = (
# include the default django context processors:
"django.contrib.auth.context_processors.auth",
"django.core.context_processors.debug",
"django.core.context_processors.i18n",
"django.core.context_processors.media",
"django.contrib.messages.context_processors.messages",
# and add leapfrog's:
"leapfrog.context_processors.random_rotator",
"leapfrog.context_processors.typekit_code",
)
#
# web service API settings
#
# create an Application at http://www.typepad.com/account/access/developer and set these settings:
TYPEPAD_APPLICATION = '6p...' # application ID
TYPEPAD_CONSUMER = ('consumer key', 'secret')
TYPEPAD_ANONYMOUS_ACCESS_TOKEN = ('anonymous access token', 'secret')
# create an app at http://www.flickr.com/services/apps/create/ and set this setting:
FLICKR_KEY = ('key', 'secret')
# create a Facebook app and set this setting:
FACEBOOK_CONSUMER = ('consumer key', 'secret')
# create an app at http://vimeo.com/api/applications and set this setting:
VIMEO_CONSUMER = ('consumer key', 'secret')
# create an app at http://www.tumblr.com/oauth/apps and set this setting:
TUMBLR_CONSUMER = ('oauth consumer key', 'secret')
|
class BinaryOption:
def __init__(self):
self.__data = None
def SetData(self, bit):
self.__data = bit
def Has(self, value):
return (self.__data & value)
def Set(self, value):
self.__data = self.__data | value
@staticmethod
def Create(value):
result = BinaryOption()
result.SetData(value)
return result
IPV4MAP = 1 << 0
IPV6MAP = 1 << 1
BLACKLISTFILE = 1 << 2
BINARYDATA = 1 << 7
TREEDATA = 1 << 2
STRINGDATA = 1 << 3
SMALLINTDATA = 1 << 4
INTDATA = 1 << 5
FLOATDATA = 1 << 6
ISPROXY = 1 << 0
ISVPN = 1 << 1
ISTOR = 1 << 2
ISCRAWLER = 1 << 3
ISBOT = 1 << 4
RECENTABUSE = 1 << 5
ISBLACKLISTED = 1 << 6
ISPRIVATE = 1 << 7
ISMOBILE = 1 << 0
HASOPENPORTS = 1 << 1
ISHOSTINGPROVIDER = 1 << 2
ACTIVEVPN = 1 << 3
ACTIVETOR = 1 << 4
PUBLICACCESSPOINT = 1 << 5
RESERVEDONE = 1 << 6
RESERVEDTWO = 1 << 7
RESERVEDTHREE = 1 << 0
RESERVEDFOUR = 1 << 1
RESERVEDFIVE = 1 << 2
CONNECTIONTYPEONE = 1 << 3
CONNECTIONTYPETWO = 1 << 4
CONNECTIONTYPETHREE = 1 << 5
ABUSEVELOCITYONE = 1 << 6
ABUSEVELOCITYTWO = 1 << 7
|
#!/usr/bin/env python3
n, p, *a = map(int, open(0).read().split())
c = 0
for a, b in zip(a, a[n:]):
c += min(p+a, b)
p = a - max(min(b-p, a), 0)
print(c)
|
#function to generate dicitonary of terms
def stockDictGen():
stockDict = []
stockDict.append({"word": "stock", "definition": "the capital raised by a business or corporation through the issuing of shares"})
stockDict.append({"word":"share", "definition": "the piece of paper that signifies ownership of the company"})
stockDict.append({"word":"position" , "definition": "another term for owning stock. Ex: I have a position in Jim’s Coffee Company."})
stockDict.append({"word":"stock price" , "definition": "the public price at which buyers and sellers trade shares"})
stockDict.append({"word":"market price" , "definition": "the public price at which buyers and sellers trade shares"})
stockDict.append({"word":"buyer" , "definition": "Someone who wants to purchase shares of a stock, gaining ownership"})
stockDict.append({"word":"seller" , "definition": "Someone who wants to sell their shares of a stock, losing ownership"})
stockDict.append({"word":"stock broker" , "definition": "Person/Company who executes trades for you. Example: E-trade, Scottrade, Edward Jones, etc."})
stockDict.append({"word":"stock account" , "definition": "Holds your different shares/positions in stocks, usually set up through a broker"})
stockDict.append({"word":"bid" , "definition": "Current highest price someone’s willing to pay for a stock"})
stockDict.append({"word":"ask" , "definition": "Current lowest price someone’s willing to sell the stock at"})
stockDict.append({"word":"spread" , "definition": "Difference between current bid and ask price of the stock"})
stockDict.append({"word":"volume" , "definition": "Amount of shares being traded"})
stockDict.append({"word":"volatility" , "definition": "How quickly stock prices move"})
stockDict.append({"word":"liquidity" , "definition": "Ease of getting in and out of a position, volume level of a stock"})
stockDict.append({"word":"buy" , "definition": "Purchasing a stock. Increases the demand for a stock"})
stockDict.append({"word":"sell", "definition": "Selling a stock. Increases the supply for a stock"})
stockDict.append({"word":"short sell" , "definition": "Borrowing shares from broker, selling them and holding the money in your account hoping stock price falls and then you buy back the borrowed shares for a cheaper price and keep the difference"})
stockDict.append({"word":"short", "definition": "Borrowing shares from broker, selling them and holding the money in your account hoping stock price falls and then you buy back the borrowed shares for a cheaper price and keep the difference"})
stockDict.append({"word":"buy to cover" , "definition": "Buying back the borrowed shares, ending your short sell trade"})
stockDict.append({"word":"cover" , "definition": "Buying back the borrowed shares, ending your short sell trade"})
stockDict.append({"word":"market order" , "definition": "An order placed at current market price, executes quickly usually" })
stockDict.append({"word":"limit order" , "definition": "An order placed to trade stock at a certain specified price or else order doesn’t get filled"})
stockDict.append({"word":"limit" , "definition": "An order placed to trade stock at a certain specified price or else order doesn’t get filled"})
stockDict.append({"word":"stop loss order" , "definition": "Order placed to liquidate/sell position when a specified price is reached or passed to stop any further losses."})
stockDict.append({"word":"stop loss" , "definition": "Order placed to liquidate/sell position when a specified price is reached or passed to stop any further losses."})
stockDict.append({"word":"trailing stop loss order" , "definition": "A stop loss order that adjusts as stock price changes to lock in more and more profit potential"})
stockDict.append({"word":"trailing stop loss" , "definition": "A stop loss order that adjusts as stock price changes to lock in more and more profit potential"})
stockDict.append({"word":"moving average" , "definition": "Average volume for the past X days. Helps you know how a stock’s price is behaving compared to volume in a term period."})
stockDict.append({"word":"moves on low volume" , "definition": "When a stock is thinly traded meaning there is low volume, price movement can’t be taken as serious because little trading volume leaves people less options for prices to buy and sell to the spread is bigger usually."})
stockDict.append({"word":"moves on high volume" , "definition": "A heavily traded stock gives more proof that a price move is legit as a lot of people are trading and interested in buying or selling the stock for some reason. This should cause you to take a closer look at why."})
stockDict.append({"word":"market valuation" , "definition": "Company Value (Shares x Stock Price)"})
stockDict.append({"word":"market cap" , "definition": "Company Value (Shares x Stock Price)"})
stockDict.append({"word":"shares outstanding" , "definition": "the # of shares issued by the company."})
stockDict.append({"word":"outstanding shares" , "definition": "the # of shares issued by the company."})
stockDict.append({"word":"float" , "definition": "# of shares available to public to trade"})
stockDict.append({"word":"restricted shares" , "definition": "shares owned by the company insiders still, not trade-able by the public. Insiders can sell these to raise more capital causing the float to increase."})
stockDict.append({"word":"micro cap" , "definition": "company valued under $250 million (most penny stocks)"})
stockDict.append({"word":"small cap" , "definition": "company valued between $250 million and $1 billion"})
stockDict.append({"word":"mid cap" , "definition": "company valued between $1 billion and $10 billion"})
stockDict.append({"word":"large cap" , "definition": "company valued over $10 billion"})
stockDict.append({"word":"independent investors" , "definition": "Traders who use personal capital/leverage to trade"})
stockDict.append({"word":"independent traders" , "definition": "Traders who use personal capital/leverage to trade"})
stockDict.append({"word":"institutional investors" , "definition": "Traders working for firms"})
stockDict.append({"word":"institutional traders" , "definition": "Traders working for firms"})
stockDict.append({"word":"distressed investors" , "definition": "Traders who buy suffering companies and turn them around"})
stockDict.append({"word":"distressed traders" , "definition": "Traders who buy suffering companies and turn them around"})
stockDict.append({"word":"value investors" , "definition": "Invest in stocks that have solid fundamentals"})
stockDict.append({"word":"value traders" , "definition": "Invest in stocks that have solid fundamentals"})
stockDict.append({"word":"growth investors" , "definition": "Invest in fast growing companies. High % growth seen in the EPS of recent quarter compared to year ago quarter."})
stockDict.append({"word":"growth traders" , "definition": "Invest in fast growing companies. High % growth seen in the EPS of recent quarter compared to year ago quarter."})
stockDict.append({"word":"penny stocks" , "definition": "Investing in stocks under $5 but usually stocks under $1"})
stockDict.append({"word":"hedge funds" , "definition": "Huge million and billion dollar funds made up of high net worth individuals. Usually focus on high priced stocks and less risk so not anything to worry about in penny stocks."})
stockDict.append({"word":"mutual funds" , "definition": "Pooled money by many investors used on higher priced stocks usually. Mutual funds can have down years and the managers still reap huge gains unlike hedge fund managers who only do well when they perform well."})
stockDict.append({"word":"sec" , "definition": "They regulate the stock market and can hault stocks and eliminate scam companies."})
stockDict.append({"word":"securities exchange commission" , "definition": "They regulate the stock market and can hault stocks and eliminate scam companies."})
stockDict.append({"word":"ipo" , "definition": "Private company sells shares to public for first time to raise capital."})
stockDict.append({"word":"initial public offering" , "definition": "Private company sells shares to public for first time to raise capital."})
stockDict.append({"word":"merger" , "definition": "two companies combine to cut costs and get rid of wasted labor and resources. More efficient"})
stockDict.append({"word":"ipo share lock up" , "definition": "After an IPO, insiders are restricted from trading for 6 months usually but sometimes up to a year or two. They can’t sell their shares until the lock up period ends."})
stockDict.append({"word":"secondary offering" , "definition": "When insiders and executives of the company sell stock for personal gain like if they received stock as part of compensation package or bonus. Capital goes to them personally and not the company."})
stockDict.append({"word":"margin " , "definition": "using money borrowed from broker to trade stocks"})
stockDict.append({"word":"short squeeze" , "definition": "Short seller buys to cover position when price is going up and not down like they wanted. Short squeeze results in more demand to buy stock raising the price."})
stockDict.append({"word":"pre borrow" , "definition": "Ability to reserve shares from your broker ahead of time to borrow when you short sell"})
stockDict.append({"word":"pink sheets" , "definition": "tiny companies, penny stock type companies, very volatile"})
stockDict.append({"word":"otc bulletin board" , "definition": "Non Nasdaq listed stocks that rarely trade over $5"})
stockDict.append({"word":"otcbb" , "definition": "Non Nasdaq listed stocks that rarely trade over $5"})
stockDict.append({"word":"nasdaq" , "definition": "American stock exchange at One Liberty Plaza"})
stockDict.append({"word":"russell 2000" , "definition": "represents the 2000 smallest publicly traded companies but doesn’t include pink sheet and OTCBB stocks"})
stockDict.append({"word":"s&p 500" , "definition": "The 500 biggest companies by market cap"})
stockDict.append({"word":"dow jones industrial average" , "definition": "A price weighted index of 30 significant and actively traded blue chip stocks."})
return stockDict
|
r1 = float(input('Digite o valor da primeira reta: '))
r2 = float(input('Digite o valor da segunda reta: '))
r3 = float(input('Digite o valor da terceira reta: '))
if r1 < r2 + r3 and r2 < r1 + r3 and r3 < r1 + r2:
print('Os segmentos acima podem formar um triângulo.')
if r1 == r2 == r3:
print('Equilátero')
elif r1 != r2 != r3 != r1:
print('Escaleno')
else:
print('Isósceles')
else:
print('Os segmentos acima não pode formar um triângulo')
|
var2 = {
# Video Only files
'.webm' : ('WebM', 'Free and libre format created for HTML5 video.'),
'.mkv' : ('Matroska', ''),
'.flv' : ('Flash Video', 'Use of the H.264 and AAC compression formats in the FLV file format has some limitations and authors of Flash Player strongly encourage everyone to embrace the new standard F4V file format.[2] De facto standard for web-based streaming video (over RTMP).'),
'.flv' : ('F4V', 'Replacement for FLV.'),
'.vob' : ('Vob', 'Files in VOB format have .vob filename extension and are typically stored in the VIDEO_TS folder at the root of a DVD.[5] The VOB format is based on the MPEG program stream format.'),
'.ogv' : ('Ogg Video', 'Open source'),
'.ogg' : ('Ogg Video', 'Open source'),
'.drc' : ('Dirac', 'Open source'),
'.mng' : ('Multiple-image Network Graphics', 'Inefficient, not widely used.'),
'.avi' : ('AVI', 'Uses RIFF'),
'.mov' : ('QuickTime File Format', ''),
'.qt' : ('QuickTime File Format', ''),
'.wmv' : ('Windows Media Video', ''),
'.yuv' : ('Raw video format', 'Supports all resolutions, sampling structures, and frame rates'),
'.rm' : ('RealMedia (RM)', 'Made for RealPlayer'),
'.rmvb' : ('RealMedia Variable Bitrate (RMVB)', 'Made for RealPlayer'),
'.asf' : ('Advanced Systems Format (ASF)', ''),
'.mp4' : ('MPEG-1', 'Old, but very widely used due to installed base.'),
'.mp2' : ('MPEG-1', 'Old, but very widely used due to installed base.'),
'.mpeg' : ('MPEG-1', 'Old, but very widely used due to installed base.'),
'.mpe' : ('MPEG-1', 'Old, but very widely used due to installed base.'),
'.mpv' : ('MPEG-1', 'Old, but very widely used due to installed base.'),
'.mpg' : ('MPEG-2 - Video', ''),
'.mpeg' : ('MPEG-2 - Video', ''),
'.m2v' : ('MPEG-2 - Video', ''),
'.m4v' : ('M4V - (file format for videos for iPods and PlayStation Portables developed by Apple)', 'Developed by Apple, used in iTunes. Very similar to MP4 format, but may optionally have DRM.'),
'.svi' : ('SVI', 'Samsung video format for portable players'),
'.3gp' : ('3GPP', 'Common video format for cell phones'),
'.3g2' : ('3GPP2', 'Common video format for cell phones'),
'.mxf' : ('Material Exchange Format (MXF)', ''),
'.roq' : ('ROQ', 'used by Quake 3'),
'.nsv' : ('Nullsoft Streaming Video (NSV)', 'For streaming video content over the Internet'),
}
var1 = {
# Audio Only files
'.3gp' : 'multimedia container format can contain proprietary formats as AMR, AMR-WB or AMR-WB+, but also some open formats',
'.act' : 'ACT is a lossy ADPCM 8 kbit/s compressed audio format recorded by most Chinese MP3 and MP4 players with a recording function, and voice recorders',
'.aiff' : 'standard audio file format used by Apple. It could be considered the Apple equivalent of wav.',
'.aac' : 'the Advanced Audio Coding format is based on the MPEG-2 and MPEG-4 standards. aac files are usually ADTS or ADIF containers.',
'.amr' : 'AMR-NB audio, used primarily for speech.',
'.au' : 'the standard audio file format used by Sun, Unix and Java. The audio in au files can be PCM or compressed with the u-law, a-law or G729 codecs.',
'.awb' : 'AMR-WB audio, used primarily for speech, same as the ITU-T\'s G.722.2 specification.',
'.dct' : 'A variable codec format designed for dictation. It has dictation header information and can be encrypted (as may be required by medical confidentiality laws). A proprietary format of NCH Software.',
'.dss' : 'dss files are an Olympus proprietary format. It is a fairly old and poor codec. Gsm or mp3 are generally preferred where the recorder allows. It allows additional data to be held in the file header.',
'.dvf' : 'a Sony proprietary format for compressed voice files; commonly used by Sony dictation recorders.',
'.flac' : 'File format for the Free Lossless Audio Codec, a lossless compression codec.',
'.gsm' : 'designed for telephony use in Europe, gsm is a very practical format for telephone quality voice. It makes a good compromise between file size and quality. Note that wav files can also be encoded with the gsm codec.',
'.iklax' : 'An iKlax Media proprietary format, the iKlax format is a multi-track digital audio format allowing various actions on musical data, for instance on mixing and volumes arrangements.',
'.ivs' : '3D Solar UK Ltd A proprietary version with Digital Rights Management developed by 3D Solar UK Ltd for use in music downloaded from their Tronme Music Store and interactive music and video player.',
'.m4a' : 'An audio-only MPEG-4 file, used by Apple for unprotected music downloaded from their iTunes Music Store. Audio within the m4a file is typically encoded with AAC, although lossless ALAC may also be used.',
'.m4p' : 'A version of AAC with proprietary Digital Rights Management developed by Apple for use in music downloaded from their iTunes Music Store.',
'.mmf' : 'a Samsung audio format that is used in ringtones.',
'.mp3' : 'MPEG Layer III Audio. Is the most common sound file format used today.',
'.mpc' : 'Musepack or MPC (formerly known as MPEGplus, MPEG+ or MP+) is an open source lossy audio codec, specifically optimized for transparent compression of stereo audio at bitrates of 160-180 kbit/s.',
'.msv' : 'a Sony proprietary format for Memory Stick compressed voice files.',
'.ogg' : 'a free, open source container format supporting a variety of formats, the most popular of which is the audio format Vorbis. Vorbis offers compression similar to MP3 but is less popular.',
'.oga' : 'a free, open source container format supporting a variety of formats, the most popular of which is the audio format Vorbis. Vorbis offers compression similar to MP3 but is less popular.',
'.opus' : 'a lossy audio compression format developed by the Internet Engineering Task Force (IETF) and made especially suitable for interactive real-time applications over the Internet. As an open format standardised through RFC 6716, a reference implementation is provided under the 3-clause BSD license.',
'.ra' : 'a RealAudio format designed for streaming audio over the Internet. The .ra format allows files to be stored in a self-contained fashion on a computer, with all of the audio data contained inside the file itself.',
'.rm' : 'a RealAudio format designed for streaming audio over the Internet. The .ra format allows files to be stored in a self-contained fashion on a computer, with all of the audio data contained inside the file itself.',
'.raw' : 'a raw file can contain audio in any format but is usually used with PCM audio data. It is rarely used except for technical tests.',
'.sln' : 'Signed Linear PCM format used by Asterisk. Prior to v.10 the standard formats were 16-bit Signed Linear PCM sampled at 8kHz and at 16kHz. With v.10 many more sampling rates were added.',
'.tta' : 'The True Audio, real-time lossless audio codec.',
'.vox' : 'the vox format most commonly uses the Dialogic ADPCM (Adaptive Differential Pulse Code Modulation) codec. Similar to other ADPCM formats, it compresses to 4-bits. Vox format files are similar to wave files except that the vox files contain no information about the file itself so the codec sample rate and number of channels must first be specified in order to play a vox file.',
'.wav' : 'standard audio file container format used mainly in Windows PCs. Commonly used for storing uncompressed (PCM), CD-quality sound files, which means that they can be large in size-around 10 MB per minute. Wave files can also contain data encoded with a variety of (lossy) codecs to reduce the file size (for example the GSM or MP3 formats). Wav files use a RIFF structure.',
'.wma' : 'Windows Media Audio format, created by Microsoft. Designed with Digital Rights Management (DRM) abilities for copy protection.',
'.wv' : 'format for wavpack file http://www.wavpack.com/flash/wavpack.htm',
'.webm' : 'Royalty-free format created for HTML5 video.',
}
|
# -*- coding: utf-8 -*-
abstract = """BACKGROUND:
The systematic, complete and correct reconstruction of genome-scale metabolic networks or metabolic pathways is one of
the most challenging tasks in systems biology research. An essential requirement is the access to the complete
biochemical knowledge - especially on the biochemical reactions. This knowledge is extracted from the scientific
literature and collected in biological databases. Since the available databases differ in the number of biochemical
reactions and the annotation of the reactions, an integrated knowledge resource would be of great value.
RESULTS:
We developed a comprehensive non-redundant reaction database containing known enzyme-catalyzed and spontaneous
reactions. Currently, it comprises 18,172 unique biochemical reactions. As source databases the biochemical databases
BRENDA, KEGG, and MetaCyc were used. Reactions of these databases were matched and integrated by aligning substrates
and products. For the latter a two-step comparison using their structures (via InChIs) and names was performed. Each
biochemical reaction given as a reaction equation occurring in at least one of the databases was included.
CONCLUSIONS:
An integrated non-redundant reaction database has been developed and is made available to users. The database can
significantly facilitate and accelerate the construction of accurate biochemical models."""
pmid = 21824409
title = 'BKM-react, an integrated biochemical reaction database.'
description = """BKMS-react is an integrated and non-redundant biochemical reaction database containing known
enzyme-catalyzed and spontaneous reactions. Biochemical reactions collected from BRENDA, KEGG, MetaCyc and SABIO-RK
were matched and integrated by aligning substrates and products.""".replace('\n', '')
|
def example_1():
###### 0123456789012345678901234567890123456789012345678901234567890
record = ' 100 513.25 '
cost = int(record[20:32]) * float(record[40:48])
print(cost)
SHARES = slice(20, 32)
PRICE = slice(40, 48)
cost = int(record[SHARES]) * float(record[PRICE])
print(cost)
def example_2():
items = [0, 1, 2, 3, 4, 5, 6]
a = slice(2, 4)
print(items[2:4], items[a])
items[a] = [10, 11]
print(items)
del items[a]
print(items)
a = slice(10, 50, 2)
print(a.start)
print(a.stop)
print(a.step)
def example_3():
s = 'HelloWorld'
a = slice(0, 10, 2)
print(a.indices(len(s)))
for i in range(*a.indices(len(s))):
print(s[i])
if __name__ == '__main__':
example_1()
example_2()
example_3()
|
#Aprimore o desafio 93 para que ele funcione com vários jogadores, incluindo um sistema de visualização de detalhes de aproveitamento de cada jogador.
lista = dict()
campeonato = []
total = 0
while True:
lista['nome'] = str(input('Nome: '))
lista['partidas'] = int(input(f'Quantas partidas {lista["nome"]} jogou? '))
for n in range(1,lista["partidas"]+1):
campeonato.append(int(input(f'Quantos gols na partida {n}? ')))
lista['gols'] = campeonato
resp = str(input('Deseja continuar?' ))
for v in campeonato:
total = total + v
lista['total'] = total
print('-' * 30)
print(lista)
print('-' * 30)
for k, v in lista.items():
print(f'O campo {k} tem o valor {v}')
print('-' * 30)
print(f'O jogador {lista["nome"]} jogou {lista["partidas"]} partidas.')
for n in range(1, lista["partidas"] + 1):
print(f'Na partida {n} fez {lista["gols"][n-1]} gols.',end=' ')
print()
if resp in 'Nn':
break
|
name = 'Escape'
movies = [
{'title': 'My Neighbor Totoro', 'year': '1988'},
{'title': 'Dead Poets Society', 'year': '1989'},
{'title': 'A Perfect World', 'year': '1993'},
{'title': 'Leon', 'year': '1994'},
{'title': 'Mahjong', 'year': '1996'},
{'title': 'Swallowtail Butterfly', 'year': '1996'},
{'title': 'King of Comedy', 'year': '1999'},
{'title': 'Devils on the Doorstep', 'year': '1999'},
{'title': 'WALL-E', 'year': '2008'},
{'title': 'The Pork of Music', 'year': '2012'}
]
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright 2020- IBM Inc. All rights reserved
# SPDX-License-Identifier: Apache2.0
#
"""
"""
class Array:
array_length = 0
array_element_size = 0
base_element = None
def __init__(self, array_length, base_element, array_element_size):
self.base_element = base_element
self.array_length = array_length
self.array_element_size = array_element_size
def __call__(self):
values = []
# FIXME: do we need this?
# data_size = self.base_element.length
for i in range(self.array_length):
values.append(self.base_element.__call__())
self.base_element.locator = self.base_element.locator.new_from(
self.array_element_size
)
return values
|
def calculated_quadratic_equation(a = 0, b = 0, c = 0):
r = a ** 2 + b + c
return r
print(calculated_quadratic_equation())
|
# %%
__depends__ = []
__dest__ = ['../../data/']
# %%
|
def extractIsogashiineetoWordpressCom(item):
'''
Parser for 'isogashiineeto.wordpress.com'
'''
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol) or "preview" in item['title'].lower():
return None
tagmap = [
('NEET Hello Work', 'NEET dakedo Hello Work ni Ittara Isekai ni Tsuretekareta', 'translated'),
('Dark Magician Hero', 'Dark Magician as a Hero', 'translated'),
('Hatena☆Illusion', 'Hatena☆Illusion', 'translated'),
('PRC', 'PRC', 'translated'),
('Loiterous', 'Loiterous', 'oel'),
]
for tagname, name, tl_type in tagmap:
if tagname in item['tags']:
return buildReleaseMessageWithType(item, name, vol, chp, frag=frag, postfix=postfix, tl_type=tl_type)
return False
|
with open('students_log.txt', 'r', encoding='utf-8') as f:
for row in f.read().splitlines():
last_name, first_name, patronymic, row_marks = row.split(maxsplit=3)
patronymic = patronymic.strip(',')
# marks = list(map(int, map(str.strip, row_marks.split(','))))
# ' 5' -> map str.strip(' 5') -> '5' -> map int('5') -> 5
# map(callback_1, iterable)
# map(callback_2, map(callback_1, iterable))
# map(callback_3, map(callback_2, map(callback_1, src_iterable)))
marks = []
for mark in row_marks.split(','):
marks.append(int(mark.strip()))
avg_mark = sum(marks) / len(marks)
print(last_name, first_name, patronymic, ':', marks, ', средний балл', avg_mark)
|
class WorkCli:
def __init__(self, workbranch):
self.workbranch = workbranch
def add_subparser(self, subparsers):
work_parser = subparsers.add_parser('work', help="Keep track of a currently important branch")
work_parser.add_argument("current", nargs="?", type=str, default=None, help="Show current work branch")
work_parser.add_argument("-s", action="store_true", help="Set current work branch")
work_parser.add_argument("-c", action="store_true", help="Checkout current work branch")
work_parser.add_argument("-ch", type=int, help="Checkout work branch from history by id")
work_parser.add_argument("-H", "--history", action="store_true", help="Show work branch history")
work_parser.set_defaults(func=self.handle_work)
def handle_work(self, args):
if args.s:
self.set_work_branch()
elif args.c:
self.checkout_work_branch()
elif args.ch:
self.checkout_work_branch_history(args.ch)
elif args.history:
self.print_work_branch_history()
else:
self.print_current_work_branch()
def print_current_work_branch(self):
current = self.workbranch.get_work_branch()
print("Current work branch is", ("not set" if current is None else current))
def print_work_branch_history(self):
for i, branch in enumerate(self.workbranch.get_work_branch_history()):
print(i, branch)
def set_work_branch(self):
branch = self.workbranch.set_work_branch()
print("Current work branch is %s" % branch)
def checkout_work_branch(self):
branch = self.workbranch.checkout_work_branch()
print("Switched to branch '%s'" % branch)
def checkout_work_branch_history(self, index):
branch = self.workbranch.checkout_work_branch_from_history(index)
print("No such branch" if branch is None else "Switched to branch '%s'" % branch)
|
class Scope:
def __init__ (self, parent=None):
self.parent = parent
self.elements = dict()
def get_element (self, name, type, current=False):
r = self.elements.get(type, None)
if r != None:
r = r.get(name, None)
if r == None and self.parent != None and not current:
return self.parent.get_element(name, type)
else:
return r
def add_element (self, obj):
_type = type(obj)
if _type not in self.elements:
self.elements[_type] = dict()
self.elements[_type][obj.name] = obj
def subscope (self):
return Scope(self)
def topscope (self):
return self.parent
|
# Fibonacci: Sum of the last two numbers gives the next one.
# Series: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610 .....
# Works only with positive integers
# Step1: Recursive Case
# fibonacci(n) = fibonacci(n-1) + fibonacci(n-2)
# Step2: Base Case
# fibonacci(0) = 0
# fibonacci(1) = 1
# Step3: Edge Cases or Constraints
# Only positive integers
# fibonacci(-1) ??
# fibonacci(1.5) ??
def fibonacci(n):
if n in [0,1]:
return n
else:
return fibonacci(n-1) + fibonacci(n-2)
def is_int(n, is_pos=False):
try:
n = int(n)
if is_pos:
if n > 0:
return True
else:
return False
else:
return True
except:
return False
if __name__ == '__main__':
n = input("Enter the value of n:")
if is_int(n, is_pos=True):
n = int(n)
for i in range(n):
print(fibonacci(i))
# print(fibonacci(n))
else:
print("Please enter a positive integer only.")
|
class Player:
def __init__(self, name):
"""Initializes the player's name. The default score is 0"""
self._name = name
self._score = 0
def get_name(self):
"""Return player's name"""
return self._name
def get_score(self):
"""Return player's score"""
return self._score
def get_name_score(self):
"""Returns the player's name and score as a string,
maybe displayable for the high score section if we decide to make one?"""
print(f'{self._name}: {self._score}')
def score_increment(self):
self._score += 100
|
'''
URL: https://leetcode.com/problems/count-the-number-of-consistent-strings/
Difficulty: Easy
Description: Count the Number of Consistent Strings
You are given a string allowed consisting of distinct characters and an array of strings words. A string is consistent if all characters in the string appear in the string allowed.
Return the number of consistent strings in the array words.
Example 1:
Input: allowed = "ab", words = ["ad","bd","aaab","baa","badab"]
Output: 2
Explanation: Strings "aaab" and "baa" are consistent since they only contain characters 'a' and 'b'.
Example 2:
Input: allowed = "abc", words = ["a","b","c","ab","ac","bc","abc"]
Output: 7
Explanation: All strings are consistent.
Example 3:
Input: allowed = "cad", words = ["cc","acd","b","ba","bac","bad","ac","d"]
Output: 4
Explanation: Strings "cc", "acd", "ac", and "d" are consistent.
Constraints:
1 <= words.length <= 104
1 <= allowed.length <= 26
1 <= words[i].length <= 10
The characters in allowed are distinct.
words[i] and allowed contain only lowercase English letters.
'''
class Solution:
def countConsistentStrings(self, allowed, words):
return sum([1 for s in words if set(s).issubset(set(allowed))])
|
board_width, board_length = list(map(int, input().split()))
domino_length = 2
if board_width % 2 == 0:
print((board_width // domino_length) * board_length)
elif board_length % 2 == 0:
print((board_length // domino_length) * board_width)
else:
print((board_width * board_length) // domino_length)
|
class VehiclesDataset:
def __init__(self):
self.num_vehicle = 0
self.num_object = 0
self.num_object_with_kp = 0
self.vehicles = dict()
self.valid_ids = set()
self.mean_shape = None
self.pca_comp = None
self.camera_mtx = None
self.image_names = None
self.data_dir = None
self.mean_traj = None
self.cov_traj = None
self.plane = None
def __str__(self):
return "Vehicle Dataset: {} vehicles, {} objects".format(self.num_vehicle, self.num_of_objects())
def insert_vehicle(self, id, vehicle):
self.vehicles[id] = vehicle
self.valid_ids.add(id)
sorted(self.valid_ids)
self.num_vehicle += 1
def get_vehicle(self, query_id):
if query_id not in self.valid_ids:
return None
else:
return self.vehicles[query_id]
def size(self):
return self.num_vehicle
def contains(self, query_id):
return query_id in self.valid_ids
def num_of_objects(self):
num = 0
for k, v in self.vehicles.items():
num += v.num_objects
self.num_object = num
return num
def num_of_objects_with_kp(self):
num = 0
for k, v in self.vehicles.items():
num += v.num_objects_with_kp
self.num_object_with_kp = num
return num
class Vehicle:
def __init__(self, image_path, keypoint, bbox, image_id, keypoint_pool):
self.num_objects = 0
self.num_objects_with_kp = 0
self.id = None
self.frames = dict()
self.image_paths = dict()
self.keypoints = dict()
self.keypoints_backup = dict()
self.keypoints_det2 = dict()
self.keypoints_proj2 = dict()
self.bboxs = dict()
self.image_ids = dict()
self.rt = dict()
self.keypoints_pool = dict()
self.insert_object(image_path, keypoint, bbox, image_id, keypoint_pool)
self.pca = [0.0] * 5
self.shape = [[0.0, 0.0, 0.0] * 12]
self.spline = None # np.zeros((6, ))
self.spline_points = None
self.spline_predict = None # np.zeros((6, ))
self.spline_points_predict = None
self.rt_traj = dict()
self.rotation_world2cam = None
self.translation_world2cam = None
self.first_appearance_frame_id = None
self.stop_frame_range = None
self.first_move_frame_id = None
self.first_appearance_frame_time_pred = None
self.traj_cluster_id = None
def __str__(self):
return "ID: {}, with {} objects".format(self.id, self.num_objects) + ', PCA: [' + \
', '.join(["{0:0.2f}".format(i) for i in self.pca]) + ']'
def insert_object(self, image_path, keypoint, bbox, image_id, keypoint_pool=None, backup=False):
if image_path in self.image_paths:
print('{} is already contained, discard!'.format(image_path))
return None
else:
object_id = self.num_objects
self.image_paths[object_id] = image_path
self.frames[object_id] = int(image_path[-8:-4])
self.image_ids[object_id] = image_id
if backup:
self.keypoints_backup[object_id] = keypoint
else:
self.keypoints_backup[object_id] = None
self.keypoints[object_id] = keypoint
self.bboxs[object_id] = bbox
self.rt[object_id] = None
self.keypoints_pool[object_id] = keypoint_pool
self.num_objects += 1
if keypoint is not None:
self.num_objects_with_kp += 1
return object_id
def set_id(self, init_id):
self.id = init_id
def set_pca(self, pca):
if type(pca) is not list or len(pca) is not 5:
raise Warning("PCA component should be list of length 5")
else:
self.pca = pca
def set_3d_shape(self, shape):
if type(shape) is not list or len(shape) is not 12:
raise Warning("3D shape should be list of length 12, each has [x, y, z]")
else:
self.shape = shape
def set_rt(self, obj_id, rvec, tvec):
if type(rvec) is not list or len(rvec) is not 3 or type(tvec) is not list or len(tvec) is not 3:
raise Warning("rvec and tvec should be list of length 3.")
elif obj_id >= self.num_objects:
raise Warning("object id doesnot exist.")
else:
self.rt[obj_id] = [rvec, tvec]
def set_keypoints(self, obj_id, keypoints, backup=False):
if len(keypoints) is not 12:
# if type(keypoints) is not list or len(keypoints) is not 12:
raise Warning("keypoints should be list of length 12.")
elif obj_id >= self.num_objects:
raise Warning("object id doesnot exist.")
else:
if backup:
self.keypoints_backup[obj_id] = self.keypoints[obj_id]
self.keypoints[obj_id] = keypoints
def set_keypoints_cam2(self, obj_id, keypoints, det=True):
if len(keypoints) is not 12:
raise Warning("keypoints should be list of length 12.")
elif obj_id >= self.num_objects:
raise Warning("object id doesnot exist.")
else:
if det:
self.keypoints_det2[obj_id] = keypoints
else:
self.keypoints_proj2[obj_id] = keypoints
|
class UrineProcessorAssembly:
name = "Urine Processor Assembly"
params = [
{
"key": "max_urine_consumed_per_hour",
"label": "",
"units": "kg/hr",
"private": False,
"value": 0.375,
"confidence": 0,
"notes": "9 kg/day / 24 per wikipedia",
"source": "https://en.wikipedia.org/wiki/ISS_ECLSS"
},
{
"key": "min_urine_consumed_per_hour",
"label": "",
"units": "kg/hr",
"private": False,
"value": 0.1,
"confidence": 0,
"notes": "",
"source": "fake"
},
{
"key": "dc_kwh_consumed_per_hour",
"label": "",
"units": "kwh",
"private": False,
"value": 1.501,
"confidence": 0,
"notes": "TODO: Should be per kg input",
"source": "https://simoc.space/wp-content/uploads/2020/06/simoc_agent_currencies-20200601.pdf"
},
{
"key": "efficiency",
"label": "",
"units": "decimal %",
"private": False,
"value": 0.85,
"confidence": 0,
"notes": "Not sure if this is accurate",
"source": "https://en.wikipedia.org/wiki/ISS_ECLSS"
},
{
"key": "mass",
"label": "",
"units": "kg",
"private": False,
"value": 193.3,
"confidence": 0,
"notes": "",
"source": "https://simoc.space/wp-content/uploads/2020/06/simoc_agent_currencies-20200601.pdf"
},
{
"key": "volume",
"label": "",
"units": "m3",
"private": False,
"value": 0.39,
"confidence": 0,
"notes": "",
"source": "https://simoc.space/wp-content/uploads/2020/06/simoc_agent_currencies-20200601.pdf"
}
]
states = []
@staticmethod
def run_step(states, params, utils):
if states.urine < params.min_urine_consumed_per_hour:
return
if states.available_dc_kwh < params.dc_kwh_consumed_per_hour:
return
urine_processed = min(states.urine, params.max_urine_consumed_per_hour)
states.urine -= urine_processed
states.available_dc_kwh -= min(states.available_dc_kwh, params.dc_kwh_consumed_per_hour)
states.unfiltered_water += urine_processed
|
n=6
while n >0:
n-=1
if n % 2 ==0:
print(n, end ="")
if n % 3 == 0:
print(n, end='')
|
#https://www.wwpdb.org/documentation/file-format-content/format23/v2.3.html
def line_is_ATOM_record(line):
return line.startswith('ATOM ')
def line_is_HETATM_record(line):
return line.startswith('HETATM')
def get_fields_from_ATOM_record(record):
fields={}
fields['ATOM '] = record[0:6]
fields['serial'] = int(record[6:11])
fields['name'] = record[12:16]
fields['altLoc'] = record[16]
fields['resName'] = record[17:20]
fields['chainID'] = record[21]
fields['resSeq'] = int(record[22:26])
fields['iCode'] = record[26]
fields['x'] = float(record[30:38])
fields['y'] = float(record[38:46])
fields['z'] = float(record[46:54])
fields['occupancy'] = float(record[54:60])
fields['tempFactor'] = float(record[60:66])
fields['element'] = record[76:78]
fields['charge'] = float(record[78:80])
def get_fields_from_HETATM_record(record):
fields={}
fields['HETATM'] = record[0:6]
fields['serial'] = int(record[6:11])
fields['name'] = record[12:16]
fields['altLoc'] = record[16]
fields['resName'] = record[17:20]
fields['chainID'] = record[21]
fields['resSeq'] = int(record[22:26])
fields['iCode'] = record[26]
fields['x'] = float(record[30:38])
fields['y'] = float(record[38:46])
fields['z'] = float(record[46:54])
fields['occupancy'] = float(record[54:60])
fields['tempFactor'] = float(record[60:66])
fields['element'] = record[76:78]
fields['charge'] = float(record[78:80])
|
class CircularBufferError(Exception):
pass
class CircularBuffer(object):
"""Unlike traditional circular buffers, this allows reading and writing
multiple values at a time. Additionally, this object provides peeking and
commiting reads. See test_circular_buffer.py for examples.
The interface is almost identical to the following code but unlike it our
implementation efficiently frees up space when commiting reads:
http://c.learncodethehardway.org/book/ex44.html
"""
def __init__(self, capacity):
self._capacity = capacity
self._length = self._capacity + 1
self._data = bytearray([0] * self._length)
self._start = 0
self._end = 0
def __len__(self):
return self.available_data()
def __repr__(self):
return 'CircularBuffer(%s, length=%d, free=%d, capacity=%d)' % \
(self.peek_all(),
self.available_data(),
self.available_space(),
self._capacity)
def _read(self, amount, commit):
"""Read up to amount and return a list. May return less data than
requested when amount > available_data(). It is the caller's
responsibility to check the length of the returned result list.
@return: bytearray
"""
if amount <= 0:
raise CircularBufferError('Must request a positive amount of data')
if not self.available_data():
return bytearray()
amount = min(amount, self.available_data())
read_end = self._start + amount
if read_end < self._length:
ret = self._data[self._start:read_end]
else:
ret = self._data[self._start:] + self._data[:(read_end - self._length)]
if commit:
self.commit_read(amount)
return ret
def available_data(self):
return (self._end - self._start) % self._length
def available_space(self):
return self._capacity - self.available_data()
def commit_read(self, amount):
self._start = (self._start + amount) % self._length
def commit_write(self, amount):
self._end = (self._end + amount) % self._length
def read(self, amount):
return self._read(amount, commit=True)
def read_all(self):
if not self.available_data():
return bytearray()
return self.read(self.available_data())
def peek(self, amount):
return self._read(amount, commit=False)
def peek_all(self):
if not self.available_data():
return bytearray()
return self.peek(self.available_data())
def write(self, data):
"""Writes a string or bytes into the buffer if it fits.
@param data, str or byte
"""
amount = len(data)
if amount > self.available_space():
raise CircularBufferError(
'Not enough space: %d requested, %d available' % \
(amount, self.available_space()))
write_end = self._end + amount
if write_end < self._length: # if no wrap around
self._data[self._end:write_end] = data
else: # if wrap around
partition = self._length - self._end
end_block = data[:partition]
start_block = data[partition:]
self._data[self._end:] = end_block # write at end of buffer
self._data[:len(start_block)] = start_block # write leftover at beginning
self.commit_write(amount)
|
class Calculator:
def __init__(self):
self.calculation = 0
self.operation = None
def plus(self, num):
self.calculation += num
def minus(self, num):
self.calculation -= num
def multiply(self, num):
self.calculation *= num
def divide(self, num):
self.calculation /= num
|
# Apache License Version 2.0
#
# Copyright (c) 2021., Redis Labs Modules
# All rights reserved.
#
def create_extract_arguments(parser):
parser.add_argument(
"--redis-url",
type=str,
default="redis://localhost:6379",
help="The url for Redis connection",
)
parser.add_argument(
"--output-tags-json",
type=str,
default="extracted_tags.json",
help="output filename containing the extracted tags from redis.",
)
parser.add_argument(
"--s3-bucket-name",
type=str,
default="benchmarks.redislabs",
help="S3 bucket name.",
)
parser.add_argument(
"--upload-results-s3",
default=False,
action="store_true",
help="uploads the result files and configuration file to public "
"'benchmarks.redislabs' bucket. Proper credentials are required",
)
parser.add_argument(
"--cluster-mode",
default=False,
action="store_true",
help="Run client in cluster mode",
)
return parser
|
####################################################################
#
# Copyright (c) 2001-2019, Arm Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
# Filename - globaldefinesrsaformat.py
# Description - This file contains global defines used in the RSA
# Format parser
####################################################################
# Parameter type
PARAM_MOD = 1
PARAM_PRIV_EXP = 2
PARAM_EXP = 3
# PEM header and footer
PEM_START = "-----BEGIN RSA PRIVATE KEY-----\n"
PEM_END = "\n-----END RSA PRIVATE KEY-----\n"
# PEM header size
PEM_HEADER_SIZE_BYTES = 4
# PEM version size
PEM_VERSION_SIZE_BYTES = 3
# Parameters ASN.1 DER type
PARAM_HEADER_INTEGER_TYPE = 2
# Length ASN.1 DER
PARAM_LENGTH_INDICATION_BIT = 7
PARAM_LENGTH_INDICATION = 0x1 << PARAM_LENGTH_INDICATION_BIT
PARAM_LENGTH_BITS_MASK = 0x7F
# Size of expected Mod & Priv exponent
RSA_MOD_SIZE_BYTES = 256
# Modulus & Priv Exponent ASN.1 header size
MOD_HEADER_FIXED_SIZE_BYTES = 4
# Exponent ASN.1 header size
EXP_HEADER_FIXED_SIZE_BYTES = 2
# Exponent expected value
EXP_EXPECTED_VAL = 65537
# AES key fixed size
AES_KEY_SIZE_IN_BYTES = 32
|
"""
Entradas
salario --> int --> s
categoria --> int --> c
Salidas
aumento --> int --> a
salario nuevo --> int --> sn
"""
s = int (input ( "Digotar el salario:" ))
c = int (input ( " Digitar categoria del 1 al 5: "))
if ( c == 1 ):
a = s * .10
if ( c == 2 ):
a = s * .15
if ( c == 3 ):
a == s * .20
if ( c == 4 ):
a = s * .40
if ( c == 5 ):
a = s * .60
sn = s + a
print ( "El aumento es de:" + str (a))
print ( "Valor del nuevo sueldo:" + str (sn))
|
class Trie(object):
def __init__(self):
self.child = {}
def insert(self, word):
word = word.strip()
current = self.child
for l in word:
if l not in current:
current[l] = {}
current = current[l]
current['#']=1
def search(self, word):
word = word.strip()
current = self.child
for l in word:
if l not in current:
return False
current = current[l]
return '#' in current
def startsWith(self, prefix):
prefix = prefix.strip()
current = self.child
for l in prefix:
if l not in current:
return False
current = current[l]
return True
def tostring(self):
print("Trie structure: ")
print(self.child)
|
def SB_BinaryStats(y,binaryMethod = 'diff'):
yBin = BF_Binarize(y,binaryMethod)
N = len(yBin)
outDict = {}
outDict['pupstat2'] = np.sum((yBin[math.floor(N /2):] == 1)) / np.sum((yBin[:math.floor(N /2)] == 1))
stretch1 = []
stretch0 = []
count = 1
for i in range(1,N):
if yBin[i] == yBin[i - 1]:
count = count + 1
else:
if yBin[i - 1] == 1:
stretch1.append(count)
else:
stretch0.append(count)
count = 1
if yBin[N-1] == 1:
stretch1.append(count)
else:
stretch0.append(count)
outDict['pstretch1'] = len(stretch1) / N
if stretch0 == []:
outDict['longstretch0'] = 0
outDict['meanstretch0'] = 0
outDict['stdstretch0'] = None
else:
outDict['longstretch0'] = np.max(stretch0)
outDict['meanstretch0'] = np.mean(stretch0)
outDict['stdstretch0'] = np.std(stretch0,ddof = 1)
if stretch1 == []:
outDict['longstretch1'] = 0
outDict['meanstretch1'] = 0
outDict['stdstretch1'] = None
else:
outDict['longstretch1'] = np.max(stretch1)
outDict['meanstretch1'] = np.mean(stretch1)
outDict['stdstretch1'] = np.std(stretch1,ddof = 1)
try:
outDict['meanstretchdiff'] = outDict['meanstretch1'] - outDict['meanstretch0']
outDict['stdstretchdiff'] = outDict['stdstretch1'] - outDict['stdstretch0']
except:
pass
return outDict
|
"""Basic memory stream with random sampling."""
class MemoryStream(object):
def __init__(self, size):
self.memory = deque([])
def add(self, item):
self.memory.append(item)
if len(self.memory) > size:
memory.popleft()
def sample(self, shape):
return np.random.sample(memory, shape)
|
"""
Custom exceptions for Clinical Research Study Manager package
"""
class MyException(ValueError):
def __init__(self, msg):
super().__init__(msg)
class HeaderException(MyException):
def __init__(self, msg):
super().__init__(msg)
class InputException(MyException):
"""
Exceptions for different user inputs. Will display a different error message based on the input type.
If input type is not one of the given exceptions will default to the error message in the called functions.
"""
def __init__(self, msg, input_type):
messages = dict()
messages['age'] = 'Please enter a number greater than 0'
messages['enrollment status'] = 'Please enter Y, N, NA'
messages['eligibility status'] = 'Please enter Y, N, NA'
messages['follow up complete'] = 'Please enter Y, N, NA'
messages['sex'] = 'Please enter M, F, O, U'
if messages.get(input_type) is not None:
msg = messages[input_type]
else:
msg = msg
super().__init__(msg)
|
"""
Copyright (C) 2018 SunSpec Alliance
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
"""
class socket(object):
def __init__(self, family=None, stype=None, proto=None):
self.test_socket = True
self.family = family
self.stype = stype
self.proto = proto
self.connected = False
self.timeout = 0
self.in_buf = b''
self.out_buf = b''
def connect(self, addr_port):
self.connected = True
def settimeout(self, timeout):
self.timeout = timeout
def close(self):
self.connected = False
def recv(self, size):
data = ''
read_len = size
data_len = len(self.in_buf)
if data_len < read_len:
read_len = data_len
if read_len > 0:
data = self.in_buf[:read_len]
self.in_buf = self.in_buf[read_len:]
return data
def send(self, data):
self.out_buf += data
def sendall(self, data):
self.out_buf += data
|
#
# PySNMP MIB module LINKSYS-WLAN-ACCESS-POINT-REF-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/LINKSYS-WLAN-ACCESS-POINT-REF-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:07:23 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
SingleValueConstraint, ConstraintsUnion, ValueRangeConstraint, ConstraintsIntersection, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsUnion", "ValueRangeConstraint", "ConstraintsIntersection", "ValueSizeConstraint")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
iso, NotificationType, MibScalar, MibTable, MibTableRow, MibTableColumn, ModuleIdentity, TimeTicks, IpAddress, Bits, ObjectIdentity, Counter32, MibIdentifier, enterprises, Gauge32, Integer32, Counter64, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "NotificationType", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ModuleIdentity", "TimeTicks", "IpAddress", "Bits", "ObjectIdentity", "Counter32", "MibIdentifier", "enterprises", "Gauge32", "Integer32", "Counter64", "Unsigned32")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
linksys = ModuleIdentity((1, 3, 6, 1, 4, 1, 3955))
linksys.setRevisions(('2014-04-09 12:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: linksys.setRevisionsDescriptions(('Initial release.',))
if mibBuilder.loadTexts: linksys.setLastUpdated('201404090000Z')
if mibBuilder.loadTexts: linksys.setOrganization('Linksys, LLC. Corporation')
if mibBuilder.loadTexts: linksys.setContactInfo(' Postal: Linksys International, Inc. 131 Theory Drive Irvine, CA 92617 Tel: +1 949 270 8500')
if mibBuilder.loadTexts: linksys.setDescription('Wireless-AC Dual Band LAPAC1750PRO Access Point with PoE.')
smb = MibIdentifier((1, 3, 6, 1, 4, 1, 3955, 1000))
mibBuilder.exportSymbols("LINKSYS-WLAN-ACCESS-POINT-REF-MIB", PYSNMP_MODULE_ID=linksys, linksys=linksys, smb=smb)
|
print("The variable Pp/Ptot, i.e. the fraction of paused polymerases, seems to provide the best contrast between its minimal and maximal values as K_3 varies, regardless of the values of K_1 and K_2. In this example, it is not very surprising. Sometimes it is more difficult to find which model output is the most sensitive to a given parameter. ")
print(" The sensitivity is optimal for low values of K_3, i.e. K_3<K_1*K_2, where the slope of the curve Pp/Ptot=function(K_3) is the steepest.")
print(" To find out whether Pp/Ptot is sensitive to K_1 and or K_2, we need to give a value to K_3 and plot as a function of the other variables. ")
print("Starting with low K_3=0.3, we find that Pp is sensitive to K_2 mostly for K_2 lower than K_3, for larger values it becomes a flat curve. This remains true for larger K_3. And this is even more true for Pp/Ptot as a function of K_1, where the curve is flat for almost the entire range of K_1, regardless of the values of K_2 and K_3.")
print("")
print("So in summary, to measure differences across the genes in the pausing rate, we would need to 1) measure the fraction of paused polymerase complexes Pp/Ptot, and 2) try to work in experimental conditions where the other rates are as large as possible, where their influence on Pp/Ptot=function(K_3) is minimal. Maximizing K_1 could for instance be achieved by stabilizing the polymerase on DNA, which would reduce the k_off rate; maximizing K_2 could be achieved by selecting genes with low mRNA transcription rate, indicative in this model a low termination rate.")
|
# -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-LOG 蓝鲸日志平台 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-LOG 蓝鲸日志平台 is licensed under the MIT License.
License for BK-LOG 蓝鲸日志平台:
--------------------------------------------------------------------
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial
portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
TRAINING_HOUR = 1
class StepName(object):
"""
模型执行步骤(对应计算平台执行步骤step_name)
"""
# 样本准备
SAMPLE_LOADING = "sample_loading"
# 样本切分
SAMPLE_PREPARATION = "sample_preparation"
# 模型训练
MODEL_TRAIN = "model_train"
# 模型评估
MODEL_EVALUATION = "model_evaluation"
TRAINING_INPUT_VALUE = {
"feature_columns": [
{
"field_type": "string",
"field_alias": "日志内容",
"description": None,
"is_dimension": False,
"field_name": "log",
"field_index": 1,
"default_value": None,
"properties": {
"used_by": "user",
"allow_modified": True,
"is_advanced": False,
"allow_null": True,
"support": True,
},
"sample_value": None,
"attr_type": "not_defined",
"data_field_name": "log",
"data_field_alias": None,
"roles": {},
"is_ts_field": False,
"origin": [],
"used_by": "user",
"deletable": False,
"err": {"field_name": "", "data_field_name": ""},
"is_save": True,
},
{
"field_type": "string",
"field_alias": "唯一辨识id",
"description": None,
"is_dimension": False,
"field_name": "uuid",
"field_index": 2,
"default_value": None,
"properties": {},
"sample_value": None,
"attr_type": "not_defined",
"data_field_name": "uuid",
"data_field_alias": None,
"roles": {},
"is_ts_field": False,
"origin": [],
"used_by": "user",
"deletable": False,
"err": {"field_name": "", "data_field_name": ""},
"is_save": True,
},
],
"label_columns": [],
}
ALGORITHM_CONFIG_FEATURE_COLUMNS = [
{
"field_name": "log",
"field_alias": "日志内容",
"field_index": 1,
"default_value": None,
"sample_value": None,
"value": None,
"data_field_name": None,
"data_field_alias": None,
"field_type": "string",
"allowed_values": [],
"roles": {},
"properties": {
"used_by": "user",
"allow_modified": True,
"is_advanced": False,
"allow_null": True,
"support": True,
},
"origin": [],
"description": None,
"used_by": "user",
},
{
"field_name": "uuid",
"field_alias": "唯一辨识id",
"field_index": 2,
"default_value": None,
"sample_value": None,
"value": None,
"data_field_name": None,
"data_field_alias": None,
"field_type": "string",
"allowed_values": [],
"roles": {},
"properties": {},
"origin": [],
"description": None,
"used_by": "user",
},
]
ALGORITHM_CONFIG_PREDICT_OUTPUT = [
{
"field_name": "token",
"field_alias": "token",
"field_index": 1,
"default_value": None,
"sample_value": None,
"value": None,
"data_field_name": None,
"data_field_alias": None,
"field_type": "text",
"allowed_values": [],
"roles": {},
"properties": {
"used_by": "user",
"allow_modified": True,
"is_advanced": False,
"allow_null": True,
"support": True,
},
"origin": [],
"description": None,
"used_by": "user",
},
{
"field_name": "log_signature",
"field_alias": "log_signature",
"field_index": 2,
"default_value": None,
"sample_value": None,
"value": None,
"data_field_name": None,
"data_field_alias": None,
"field_type": "text",
"allowed_values": [],
"roles": {},
"properties": {},
"origin": [],
"description": None,
"used_by": "user",
},
{
"field_name": "log",
"field_alias": "log",
"field_index": 3,
"default_value": None,
"sample_value": None,
"value": None,
"data_field_name": None,
"data_field_alias": None,
"field_type": "string",
"allowed_values": [],
"roles": {},
"properties": {},
"origin": [],
"description": None,
"used_by": "user",
},
{
"field_name": "uuid",
"field_alias": "唯一辨识id",
"field_index": 4,
"default_value": None,
"sample_value": None,
"value": None,
"data_field_name": None,
"data_field_alias": None,
"field_type": "string",
"allowed_values": [],
"roles": {},
"properties": {},
"origin": [],
"description": None,
"used_by": "user",
},
]
# ["IP-PORT:\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\s+:\\d{1,5}/","IP:
# \\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}","DATETIME:datetime.datetime
# \\(\\d{4},\\s\\d{1,2},\\s\\d{1,2},\\s\\d{1,2},\\s\\d{1,2},\\s\\d{1,2},
# \\s\\d{5},\\stzinfo=<\\w{3,4}>\\)>","DATETIME:\\d{2}/\\w{3,4}/\\d{4}:
# \\d{1,2}:\\d{1,2}:\\d{1,2}\\s\\+\\d{4}","DATETIME:\\d{4}-\\d{1,2}-\
# \d{1,2}\\s\\d{1,2}:\\d{1,2}:\\d{1,2}\\.\\d*\\+\\d{2}:\\d{2}","DATETIME
# :\\d{4}-\\d{1,2}-\\d{1,2}T\\d{1,2}:\\d{1,2}:\\d{1,2}\\.\\d*\\+\\d{2}
# :\\d{2}","DATETIME:\\d{6,8}\\s\\d{1,2}:\\d{1,2}:\\d{1,2}\\.\\d*\\+\
# \d{2}:\\d{2}","DATETIME:\\d{4}-\\d{1,2}-\\d{1,2}\\s\\d{1,2}:\\d{1,2}
# :\\d{1,2}\\+\\d{2}:\\d{2}","DATETIME:\\d{4}-\\d{1,2}-\\d{1,2}\\s\\d{1,2}
# :\\d{1,2}:\\d{1,2}\\.\\d{6}","DATETIME:\\d{4}-\\d{1,2}-\\d{1,2}\\s\\d{1,2}
# :\\d{1,2}:\\d{1,2},\\d{3}","DATETIME:\\d{4}-\\d{1,2}-\\d{1,2}\\s\\d{1,2}
# :\\d{1,2}:\\d{1,2}\\s\\+\\d{4}","DATETIME:\\d{4}\\d{1,2}\\d{1,2}\\s\\d{1,2}
# :\\d{1,2}:\\d{1,2}\\.\\d{6}","DATETIME:\\d{4}/\\d{1,2}/\\d{1,2}\\s\\d{1,2}
# :\\d{1,2}:\\d{1,2}","DATETIME:\\d{4}-\\d{1,2}-\\d{1,2}\\s\\d{2}:\\d{2}:
# \\d{2}","DATE:20\\d{2}\\d{1,2}\\d{1,2}/","DATE:\\d{4}-\\d{1,2}-\\d{1,2}/"
# ,"TIME:\\d{1,2}:\\d{1,2}:\\d{1,2}.\\d{6}","NUMBER:^[-+]?[0-9]+$","
# NUMBER:^[-+]?[0-9]*\\.[0-9]+","UUID:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}
# -[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}","UUID:[0-9a-fA-F]{32}"]
PREDEFINED_VARIBLES_DEFAULT_VALUE = (
"WyJJUC1QT1JUOlxcZHsxLDN9XFwuXFxkezEsM31cXC5cXGR7MSwzfVxcLlxcZHsxLDN9XFx"
"zKzpcXGR7MSw1fS8iLCJJUDpcXGR7MSwzfVxcLlxcZHsxLDN9XFwuXFxkezEsM31cXC5cXG"
"R7MSwzfSIsIkRBVEVUSU1FOmRhdGV0aW1lLmRhdGV0aW1lXFwoXFxkezR9LFxcc1xcZHsxL"
"DJ9LFxcc1xcZHsxLDJ9LFxcc1xcZHsxLDJ9LFxcc1xcZHsxLDJ9LFxcc1xcZHsxLDJ9LFxc"
"c1xcZHs1fSxcXHN0emluZm89PFxcd3szLDR9PlxcKT4iLCJEQVRFVElNRTpcXGR7Mn0vXFx"
"3ezMsNH0vXFxkezR9OlxcZHsxLDJ9OlxcZHsxLDJ9OlxcZHsxLDJ9XFxzXFwrXFxkezR9Ii"
"wiREFURVRJTUU6XFxkezR9LVxcZHsxLDJ9LVxcZHsxLDJ9XFxzXFxkezEsMn06XFxkezEsM"
"n06XFxkezEsMn1cXC5cXGQqXFwrXFxkezJ9OlxcZHsyfSIsIkRBVEVUSU1FOlxcZHs0fS1c"
"XGR7MSwyfS1cXGR7MSwyfVRcXGR7MSwyfTpcXGR7MSwyfTpcXGR7MSwyfVxcLlxcZCpcXCt"
"cXGR7Mn06XFxkezJ9IiwiREFURVRJTUU6XFxkezYsOH1cXHNcXGR7MSwyfTpcXGR7MSwyfT"
"pcXGR7MSwyfVxcLlxcZCpcXCtcXGR7Mn06XFxkezJ9IiwiREFURVRJTUU6XFxkezR9LVxcZ"
"HsxLDJ9LVxcZHsxLDJ9XFxzXFxkezEsMn06XFxkezEsMn06XFxkezEsMn1cXCtcXGR7Mn06"
"XFxkezJ9IiwiREFURVRJTUU6XFxkezR9LVxcZHsxLDJ9LVxcZHsxLDJ9XFxzXFxkezEsMn0"
"6XFxkezEsMn06XFxkezEsMn1cXC5cXGR7Nn0iLCJEQVRFVElNRTpcXGR7NH0tXFxkezEsMn"
"0tXFxkezEsMn1cXHNcXGR7MSwyfTpcXGR7MSwyfTpcXGR7MSwyfSxcXGR7M30iLCJEQVRFVE"
"lNRTpcXGR7NH0tXFxkezEsMn0tXFxkezEsMn1cXHNcXGR7MSwyfTpcXGR7MSwyfTpcXGR7MS"
"wyfVxcc1xcK1xcZHs0fSIsIkRBVEVUSU1FOlxcZHs0fVxcZHsxLDJ9XFxkezEsMn1cXHNcXG"
"R7MSwyfTpcXGR7MSwyfTpcXGR7MSwyfVxcLlxcZHs2fSIsIkRBVEVUSU1FOlxcZHs0fS9cXG"
"R7MSwyfS9cXGR7MSwyfVxcc1xcZHsxLDJ9OlxcZHsxLDJ9OlxcZHsxLDJ9IiwiREFURVRJTU"
"U6XFxkezR9LVxcZHsxLDJ9LVxcZHsxLDJ9XFxzXFxkezJ9OlxcZHsyfTpcXGR7Mn0iLCJEQV"
"RFOjIwXFxkezJ9XFxkezEsMn1cXGR7MSwyfS8iLCJEQVRFOlxcZHs0fS1cXGR7MSwyfS1cXG"
"R7MSwyfS8iLCJUSU1FOlxcZHsxLDJ9OlxcZHsxLDJ9OlxcZHsxLDJ9LlxcZHs2fSIsIk5VTU"
"JFUjpeWy0rXT9bMC05XSskIiwiTlVNQkVSOl5bLStdP1swLTldKlxcLlswLTldKyIsIlVVSU"
"Q6WzAtOWEtZkEtRl17OH0tWzAtOWEtZkEtRl17NH0tWzAtOWEtZkEtRl17NH0tWzAtOWEtZk"
"EtRl17NH0tWzAtOWEtZkEtRl17MTJ9IiwiVVVJRDpbMC05YS1mQS1GXXszMn0iXQ"
)
# ""\"|\\;|\\,|\\,|\\[|\\]|\\:|\\s|\\(|\\)|\\=|\\||\\{|\\}|\\>|\\<|\\
# ||'|\\\uff08|\\\uff0c|\\\uff09|\\/|\\\uff0c|\\\u3010|\\\u3011|\\。|\\:""
DELIMETER_DEFAULT_VALUE = (
"IlwifFxcO3xcXCx8XFwsfFxcW3xcXF18XFw6fFxcc3xcXCh8XFwpfFxcPXxcXHx8XFx7fF"
"xcfXxcXD58XFw8fFxcfHwnfFxcXHVmZjA4fFxcXHVmZjBjfFxcXHVmZjA5fFxcL3xcXFx1Z"
"mYwY3xcXFx1MzAxMHxcXFx1MzAxMXxcXOOAgnxcXDoi"
)
|
def F():
a,b = 0,1
while True:
yield a
a, b = b, a + b
def SubFib(startNumber, endNumber):
for cur in F():
if cur > endNumber: return
if cur >= startNumber:
yield cur
# for i in SubFib(10, 200):
# print(i)
def fib(x):
if x < 2:
return [i for i in range(x+1 )]
ans = fib(x-1)
return ans + [ans[-1] + ans[-2]]
print(fib(10))
|
#!/usr/bin/python3
Rectangle = __import__('2-rectangle').Rectangle
my_rectangle = Rectangle(2, 4)
print("Area: {} - Perimeter: {}".format(my_rectangle.area(), my_rectangle.perimeter()))
print("--")
my_rectangle.width = 10
my_rectangle.height = 3
print("Area: {} - Perimeter: {}".format(my_rectangle.area(), my_rectangle.perimeter()))
|
# 순위
#
# https://programmers.co.kr/learn/courses/30/lessons/49191
def solution(n, results):
answer=0
adj=[[0 for _ in range(n+1)] for _ in range(n+1)]
for w,l in results:
adj[w][l]=2
adj[l][w]=1
# for i in range(n+1):
# for j in range(n+1):
# if adj[i][j]==1:
# for k in range(n+1):
# if adj[i][k]==2:
# adj[j][k]=2
# elif adj[i][j]==2:
# for k in range(n+1):
# if adj[i][k]==1:
# adj[j][k]=1
for i in range(n+1):
for j in range(n+1):
for k in range(n+1):
if adj[i][j]==1 and adj[i][k]==2:
adj[j][k]=2
elif adj[i][j]==2 and adj[i][k]==1:
adj[j][k]=1
for lis in adj:
if lis.count(0)==2:
answer+=1
return answer
solution(5,[[4, 3], [4, 2], [3, 2], [1, 2], [2, 5]])
|
# -*- coding: utf-8 -*-
"""common/tests/__init__.py
By David J. Thomas, thePortus.com, dave.a.base@gmail.com
The init file for the common module tests
"""
|
a = b = c = d = e = f = 12
x, y = 1, 2 # unpacking tuple
print(x)
print(y)
print('unpack tuple - or any sequence type')
data = (1, 2, 3)
a, b, c = data
print(a)
print(b)
print(c)
print('unpack list - or any sequence type')
data_list = [4, 5, 6]
a, b, c = data_list
print(a)
print(b)
print(c)
|
def calcu():
pass
def calc_add(a,b):
return a+b
def calc_minus(a,b):
return a-b
|
HEALTH_STATES = []
class App:
def __init__(self, j):
self.url = 'https://api.newrelic.com/v2/applications.json'
if j:
self.id = j.get('id')
self.name = j.get('name')
self.health_status = j.get('health_status')
links = j.get('links')
self.policy_id = links.get('alert_policy')
self.hosts = links.get('application_hosts', [])
self.instances = links.get('application_instances', [])
self.servers = links.get('servers', [])
self.channels = []
self.application_summary = j.get('application_summary', {})
self.end_user_summary = j.get('end_user_summary', {})
self.labels = []
def __str__(self):
return ', '.join(['"%s":"%s"' % x for x in self.__dict__.items()])
"""{
"id": "integer",
"name": "string",
"language": "string",
"health_status": "string",
"reporting": "boolean",
"last_reported_at": "time",
"application_summary": {
"response_time": "float",
"throughput": "float",
"error_rate": "float",
"apdex_target": "float",
"apdex_score": "float",
"host_count": "integer",
"instance_count": "integer",
"concurrent_instance_count": "integer"
},
"end_user_summary": {
"response_time": "float",
"throughput": "float",
"apdex_target": "float",
"apdex_score": "float"
},
"settings": {
"app_apdex_threshold": "float",
"end_user_apdex_threshold": "float",
"enable_real_user_monitoring": "boolean",
"use_server_side_config": "boolean"
},
"links": {
"servers": [
"integer"
],
"application_hosts": [
"integer"
],
"application_instances": [
"integer"
],
"alert_policy": "integer"
}
}"""
|
def has_cycle(head):
slowref=head
if not slowref or not slowref.next:
return False
fastref=head.next.next
while slowref != fastref:
slowref=slowref.next
if not slowref or not slowref.next:
return False
fastref=fastref.next.next
return True
|
__title__ = 'electric'
__description__ = "A package manager for Windows, MacOS And Linux!"
__url__ = 'https://github.com/TheBossProSniper/Electric'
__version__ = '0.0.1'
__author__ = 'Electric Inc.'
__credits__ = ""
__license__ = """Apache License 2.0
A permissive license whose main conditions require preservation
of copyright and license notices. Contributors provide an express
grant of patent rights. Licensed works, modifications, and larger
works may be distributed under different terms and without source
code.
"""
|
def main():
# input
S = list(input())
# compute
N = len(S)
cnt = 0
while ''.join(S).count('BW') != 0:
for i in range(N-1):
if S[i]=='B' and S[i+1]=='W':
S[i], S[i+1] = S[i+1], S[i]
cnt += 1
print(cnt, ''.join(S))
# output
print(cnt)
if __name__ == '__main__':
main()
|
""" Exceptions. """
# This is the part of *teryt* library.
# Author: Stim (stijm), 2021
# License: MIT
class Error(Exception):
""" An error. """
class ResourceError(Exception):
""" A resource error. """
class MissingResourcesError(ResourceError):
""" Missing resources error. """
class ErroneousUnitName(Error):
""" Erroneous unit name error. """
class UnpackError(Error):
""" Unpack error. """
class EntryNotFoundError(Error):
""" Entry not found – error. """
class UnitNotFound(EntryNotFoundError):
""" Unit not found – error. """
class LocalityNotFound(EntryNotFoundError):
""" Locality not found – error. """
class StreetNotFound(EntryNotFoundError):
""" Street not found – error. """
|
'''
In un file di testo e' riportata una sequenza binaria S. Siamo interessati alla
frequenza delle sottosequenze di S(la frequenza di una sottosequenza di S e'
il numero di volte che la sottosequenza occorre in S).
Si consideri ad esempio il file di testo f1.txt contenente la sequenza
01010010010001000111101100001010011001111000010010011110010000000
la sottosequenza '00' ha frequenza 23 mentre la sottosequenza'1000' ha frequenza 5.
Dati gli interi a,b con a<=b
siamo interessati a contare le frequenze delle sottosequenze si S che presentano
una lunghezza tra a e b. Dato l'intero n vogliamo listare le al piu' n frequenze massime
ciascuna con le corrispondenti sottosequenze. Nel caso ci siano meno di n distinte
frequenze con lunghezza tra a e b, l'output avra' meno di n elementi.
Progettare la funzione es(ftesto, a,b,n) che prende come parametri:
- ftesto: l'indirizzo del file di testo in cui e' registrata la sequenza binaria
in una o piu' righe consecutive.
- a,b: i due interi a e b con a<=b che indicano l'intervallo
delle lunghezze delle sottosequenze di cui contare le frequenze
- n: l'intero che indica il numero di frequenze massime cui siamo interessati.
e restituisce una lista di tuple.
Ciascuna tupla della lista ha come prima coordinata una frequenza e
come seconda coordinata la lista delle sottosequenze che hanno quella frequenza.
La lista deve contenere solo le tuple con le prime n frequenze massime e in caso
ci siano meno di n frequenze distinte conterra' tutte le tuple con frequenze distinte.
La lista e' ordinata in ordine lessicografico rispetto
alla prima coordinata delle tuple e in ciascuna tupla la lista
presente nella seconda coordinata e' ordinata lessicograficamente.
Ad esempio es1('ft1.txt', 2, 4, 20) restituisce la lista:
[ (4, ['0001', '0011', '1100' ]),
(5, ['011', 1000', '110' ]),
(6, ['0000', '111']),
(7, ['0010','1001' ]),
(8, ['0100']),
(10,['010']),
(11,['000', '001', '11']),
(12,['100']),
(15,['01','10']),
(23,['00'])
]
NOTA: il timeout previsto per questo esercizio è di 0.5 secondi per ciascun test
ATTENZIONE: quando caricate il file assicuratevi che sia nella codifica UTF8
(ad esempio editatelo dentro Spyder)
'''
def es1(ftesto,a,b,n):
risultato = []
registro = {}
with open(ftesto) as f:
testo = f.read().splitlines()
testo = decoded(testo)
wseq = [ _ for _ in range(a, b+1) ]
sub_seq = n_seq(wseq)
for i in sub_seq.values():
for j in i:
start = 0
cont = 0
while True:
testo_bis = testo[start:]
if j in testo_bis:
start = testo_bis.index(j)
start += 1
else:
break
cont += 1
registro[cont] = j
return risultato
pass
def decoded(testo):
risultato = ''
for i in testo:
risultato += i
return risultato
def n_seq(wseq):
risultato = {}
for i in wseq:
pseq = []
for j in range(0, 2**i):
num = bin(j)[2:]
if len(num) < i:
n_corr = '0'*(i-len(num)) + num
pseq.append(n_corr)
else:
pseq.append(num)
risultato[i] = pseq
return risultato
if __name__ == '__main__':
pass
# inserite qui i vostri test
|
class Solution:
def reverse(self, x: int) -> int:
# get the sign of x
if x == 0:
return x
sign = abs(x) / x
x = abs(x)
# reverse number
num = 0
# reverse process
while x != 0:
temp = x % 10
num = num * 10 + temp
x = x // 10
num = int(sign * num)
return num if -2**31 < num < 2**31 - 1 else 0
|
#* Asked in Uber
#? You are given a string of parenthesis. Return the minimum number of parenthesis that would need to be removed
#? in order to make the string valid. "Valid" means that each open parenthesis has a matching closed parenthesis.
#! Example:
# "()())()"
#? The following input should return 1.
# ")"
def count_invalid_parenthesis(string):
count = 0
for i in string:
if i == "(" or i == "[" or i == "{":
count += 1
elif i == ")" or i == "]" or i == "}":
count -= 1
return abs(count)
print(count_invalid_parenthesis("()())()"))
# 1
|
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/config.ipynb (unless otherwise specified).
__all__ = ['AppConfig', 'PathConfig', 'TrainConfig']
# Cell
class AppConfig:
SEED = 8080
NUM_CLASSES = 7
class PathConfig:
# DATA_PATH = '/content/data'
# IMAGE_PATH = '/content/data/images'
# CSV_PATH = '/content/data/HAM10000_metadata.csv'
DATA_PATH = "/Work/Workspace/ML/HAM10000/data"
IMAGE_PATH = DATA_PATH + "/images"
CSV_PATH = DATA_PATH + "/HAM10000_metadata.csv"
class TrainConfig:
BATCH_SIZE = 64
EPOCHS = 100
LR = 1e-6
|
#accessibility numbers for science. Pretty sure fosscord just hardcodes this as 128.
class ACCESSIBILITY_FEATURES:
SCREENREADER = 1 << 0
REDUCED_MOTION = 1 << 1
REDUCED_TRANSPARENCY = 1 << 2
HIGH_CONTRAST = 1 << 3
BOLD_TEXT = 1 << 4
GRAYSCALE = 1 << 5
INVERT_COLORS = 1 << 6
PREFERS_COLOR_SCHEME_LIGHT = 1 << 7
PREFERS_COLOR_SCHEME_DARK = 1 << 8
CHAT_FONT_SCALE_INCREASED = 1 << 9
CHAT_FONT_SCALE_DECREASED = 1 << 10
ZOOM_LEVEL_INCREASED = 1 << 11
ZOOM_LEVEL_DECREASED = 1 << 12
MESSAGE_GROUP_SPACING_INCREASED = 1 << 13
MESSAGE_GROUP_SPACING_DECREASED = 1 << 14
DARK_SIDEBAR = 1 << 15
REDUCED_MOTION_FROM_USER_SETTINGS = 1 << 16
class Accessibility:
@staticmethod
def calculate_accessibility(types):
accessibility_num = 0
for i in types:
feature = i.upper().replace(' ', '_')
if hasattr(ACCESSIBILITY_FEATURES, feature):
accessibility_num |= getattr(ACCESSIBILITY_FEATURES, feature)
return accessibility_num
@staticmethod
def check_accessibilities(accessibility_num, check):
return (accessibility_num & check) == check
|
"""
Rename this file to 'secret.py' once all settings are defined
"""
SECRET_KEY = "..."
HOSTNAME = "example.com"
DATABASE_URL = "mysql://<user>:<password>@<host>/<database>"
AWS_ACCESS_KEY_ID = "12345"
AWS_SECRET_ACCESS_KEY = "12345"
|
#!/usr/bin/python
# --------------------------------------- #
# Cara Define Sebuah Function pada Python #
# --------------------------------------- #
# def functionname( parameters ): #
# "function_docstring" #
# function_suite #
# return [expression] #
# --------------------------------------- #
# Define Function
def changeme( mylist ):
"This changes a passed list into this function"
mylist.append([1,2,3,4]);
print ("Values inside the function: ", mylist)
return
# Calling the Function
mylist = [10,20,30];
changeme( mylist );
print ("Values outside the function: ", mylist)
|
class Custom(
):
pass
|
def primitive_triplets():
pass
def triplets_in_range():
pass
def is_triplet():
pass
|
n, m = map(int, input().split())
for i in range(n):
if i % 2 == 0:
print('#' * m)
else:
if (i + 1) % 4 == 0:
print('#' + '.' * (m - 1))
else:
print('.' * (m - 1) + '#')
|
pa = int(input('Digite o primeiro termo da PA: '))
r = int(input('Digite a razao da PA: '))
c = 0
mais = 10
tot = 0
print('Os termos são', end=" ")
while mais != 0:
tot += mais
while c <= tot:
c += 1
print('{}'.format(pa), end=' -> ')
pa = pa + r
print('PAUSA')
mais = int(input('Quantos termos a mais? '))
print('Foram digitados um total de {} termos'.format(tot))
|
# Binary dependencies needed for running the bash commands
DEPS = ["mvn", "openssl", "awk"]
# helper function to encapsulate bash commands.
def _execute(ctx, command):
return ctx.execute(["bash", "-c", """
set -ex
%s""" % command])
# Assert that all relevant binaries are on class path
#TODO(petros): how should I depend on the migration_tool project. Should I fetch it like I do bazel.
def _check_dependencies(ctx):
for dep in DEPS:
if ctx.which(dep) == None:
fail("%s requires %s as a dependency. Please check your PATH." % (ctx.name, dep))
#TODO(petros): actually implement this.
#TODO(petros): how to integrate the migration_tool and then call shell command use it.
def _transitive_maven_jar_impl(ctx):
print("Checking if dependencies are met.")
_check_dependencies(ctx)
_common_maven_rule_attrs = {
"artifact":attr.string(
default="",
mandatory=True,
),
"sha1":attr.string(default = ""),
}
def _printer_impl(ctx):
print("Rule name = %s, package = %s" % (ctx.label.name, ctx.label.package))
print("There are %d deps" % len(ctx.attr.deps))
for i in ctx.attr.deps:
print("- %s" % i.label)
print(" files = %s" % [f.path for f in i.files])
printer = rule(
implementation=_printer_impl,
attrs={
"number":attr.int(default = 1),
"deps":attr.label_list(allow_files=True),
}
)
transitive_maven_jar = repository_rule (
implementation=_transitive_maven_jar_impl,
attrs=_common_maven_rule_attrs + {
"exclude":attr.string_list(mandatory=False),
"generate_workspace_tool" : attr.label(executable=True, cfg="host",
default=Label("//pkg:generate_workspace"))
},
local=False,
)
|
produto = {}
produto["2295"] = [5.99, "Banana Nanica"]
produto["2219"] = [7.99, "Banana prata"]
produto["2172"] = [9.99, "Maçã Fuji"]
produto["2547"] = [8.99, "Maçã Gala"]
produto["2127"] = [12.99, "Mamão Papaya"]
produto["2134"] = [10.99, "Mamão Formosa"]
produto["5843"] = [12.99, "Pão Francês"]
produto["1052"] = [4.99, "Tomate Carmem"]
produto["7622210194046"] = [12.99, "CHOCOLATE MILKA 100G"]
produto["9788575225639"] = [56, "Entendendo algoritmos"]
produto["5601229873236"] = [3, "Lapiseira Molin 0,7mm"]
produto["7898938236034"] = [6.99, "Coca-Cola Garrafa Pet 2L"]
|
"""
Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n.
Example:
Input: 13
Output: 6
Explanation: Digit 1 occurred in the following numbers: 1, 10, 11, 12, 13.
"""
class Solution:
def countDigitOne(self, n: int) -> int:
cnt = 0
mark = 1
while n >= mark:
c, r = divmod(n, (mark * 10))
cnt += c * mark
if r >= mark:
cnt += min(r - mark + 1, mark)
mark *= 10
return cnt
|
# Copyright 2015 VMware, Inc.
# All Rights Reserved
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
# Edge size
COMPACT = 'compact'
LARGE = 'large'
XLARGE = 'xlarge'
QUADLARGE = 'quadlarge'
# Edge type
SERVICE_EDGE = 'service'
VDR_EDGE = 'vdr'
# Internal element purpose
INTER_EDGE_PURPOSE = 'inter_edge_net'
|
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
fb_native = struct(
android_aar = native.android_aar,
android_app_modularity = native.android_app_modularity,
android_binary = native.android_binary,
android_build_config = native.android_build_config,
android_bundle = native.android_bundle,
android_instrumentation_apk = native.android_instrumentation_apk,
android_instrumentation_test = native.android_instrumentation_test,
android_library = native.android_library,
android_manifest = native.android_manifest,
android_prebuilt_aar = native.android_prebuilt_aar,
android_resource = native.android_resource,
apk_genrule = native.apk_genrule,
apple_asset_catalog = native.apple_asset_catalog,
apple_binary = native.apple_binary,
apple_bundle = native.apple_bundle,
apple_library = native.apple_library,
apple_package = native.apple_package,
apple_resource = native.apple_resource,
apple_test = native.apple_test,
cgo_library = native.cgo_library,
command_alias = native.command_alias,
config_setting = native.config_setting,
constraint_setting = native.constraint_setting,
constraint_value = native.constraint_value,
core_data_model = native.core_data_model,
csharp_library = native.csharp_library,
cxx_binary = native.cxx_binary,
cxx_genrule = native.cxx_genrule,
cxx_library = native.cxx_library,
cxx_lua_extension = native.cxx_lua_extension,
cxx_precompiled_header = native.cxx_precompiled_header,
cxx_python_extension = native.cxx_python_extension,
cxx_test = native.cxx_test,
d_binary = native.d_binary,
d_library = native.d_library,
d_test = native.d_test,
export_file = native.export_file,
filegroup = native.filegroup,
gen_aidl = native.gen_aidl,
genrule = native.genrule,
go_binary = native.go_binary,
go_library = native.go_library,
go_test = native.go_test,
groovy_library = native.groovy_library,
groovy_test = native.groovy_test,
gwt_binary = native.gwt_binary,
halide_library = native.halide_library,
haskell_binary = native.haskell_binary,
haskell_ghci = native.haskell_ghci,
haskell_haddock = native.haskell_haddock,
haskell_library = native.haskell_library,
haskell_prebuilt_library = native.haskell_prebuilt_library,
http_archive = native.http_archive,
http_file = native.http_file,
jar_genrule = native.jar_genrule,
java_annotation_processor = native.java_annotation_processor,
java_binary = native.java_binary,
java_library = native.java_library,
java_test = native.java_test,
js_bundle = native.js_bundle,
js_bundle_genrule = native.js_bundle_genrule,
js_library = native.js_library,
keystore = native.keystore,
kotlin_library = native.kotlin_library,
kotlin_test = native.kotlin_test,
lua_binary = native.lua_binary,
lua_library = native.lua_library,
ndk_library = native.ndk_library,
ocaml_binary = native.ocaml_binary,
ocaml_library = native.ocaml_library,
platform = native.platform,
prebuilt_apple_framework = native.prebuilt_apple_framework,
prebuilt_cxx_library = native.prebuilt_cxx_library,
prebuilt_cxx_library_group = native.prebuilt_cxx_library_group,
prebuilt_dotnet_library = native.prebuilt_dotnet_library,
prebuilt_go_library = native.prebuilt_go_library,
prebuilt_jar = native.prebuilt_jar,
prebuilt_native_library = native.prebuilt_native_library,
prebuilt_ocaml_library = native.prebuilt_ocaml_library,
prebuilt_python_library = native.prebuilt_python_library,
prebuilt_rust_library = native.prebuilt_rust_library,
python_binary = native.python_binary,
python_library = native.python_library,
python_test = native.python_test,
remote_file = native.remote_file,
robolectric_test = native.robolectric_test,
rust_binary = native.rust_binary,
rust_library = native.rust_library,
rust_test = native.rust_test,
scala_library = native.scala_library,
scala_test = native.scala_test,
scene_kit_assets = native.scene_kit_assets,
sh_binary = native.sh_binary,
sh_test = native.sh_test,
swift_library = native.swift_library,
test_suite = native.test_suite,
versioned_alias = native.versioned_alias,
worker_tool = native.worker_tool,
xcode_postbuild_script = native.xcode_postbuild_script,
xcode_prebuild_script = native.xcode_prebuild_script,
xcode_workspace_config = native.xcode_workspace_config,
zip_file = native.zip_file,
)
|
def getPackageList():
f = open('./libs.txt', 'r')
for line in f.readlines():
# print(line)
line = line.strip()
# print(linestr)
linestrlist = line.split(" ")
# print(linestrlist)
packageList = set(linestrlist)
f.close()
f = open('./built-in_libs.txt', 'r', encoding='UTF-8')
for line in f.readlines():
line = line.strip()
pac = line.split(" ")[1]
packageList.add(pac)
print(packageList)
# packageList已经是可以用的包了,下面是把它们存进文件
# f = open('./packageList.txt', 'w+')
# for i in packageList:
# f.write(i+" ")
return packageList
|
jogador = dict()
time = list()
partidas = list ()
print('-='*30)
print(f'{"Estatistica da Bola":^60}')
print('-='*30)
while True:
jogador.clear()
jogador['nome']=str(input('Nome: '))
total=int(input(f'Quantas partidas {jogador["nome"]} jogou? '))
partidas.clear()
for c in range (0, total):
partidas.append(int(input(f'Quantos gols fez na partica {c}? ')))
jogador['gols']=partidas[:]
jogador['total'] = sum(partidas)
time.append(jogador.copy())
while True:
continuar = str(input('Quer continuar? [S/N] ')).upper().strip()[0]
if continuar in 'SN':
break
print('Erro! Tente novamente!')
if continuar in 'N':
break
print('-'*70)
print('TABELA DE INFORMAÇÕES')
print('-'*70)
print(' cod ', end='')
for i in jogador.keys():
print(f'{i:<25}', end='')
print()
print('-'*70)
for k, v in enumerate(time):#lista
print(f'{k:>4} ', end='')
for d in v.values():#dicionário dentro da lista
print(f'{str(d):<25}', end='')
print()
print('-'*70)
while True:
busca = int(input('Digite o cod do jogador para ver as estatísticas (999 para sair): '))
if busca == 999:
break
if busca >= len(time):
print('Digite um código válido.')
else:
print(f' --- Levantamento do Jogador {time[busca]["nome"]} ---')
for i, g in enumerate(time[busca]['gols']):
print(f'No jogo {i} fez {g} gols.')
print('-'*70)
|
def findDecision(obj): #obj[0]: Passanger, obj[1]: Time, obj[2]: Coupon, obj[3]: Education, obj[4]: Occupation, obj[5]: Bar, obj[6]: Coffeehouse, obj[7]: Restaurant20to50, obj[8]: Direction_same, obj[9]: Distance
# {"feature": "Coupon", "instances": 8148, "metric_value": 0.4751, "depth": 1}
if obj[2]>1:
# {"feature": "Coffeehouse", "instances": 5867, "metric_value": 0.461, "depth": 2}
if obj[6]>0.0:
# {"feature": "Distance", "instances": 4415, "metric_value": 0.44, "depth": 3}
if obj[9]<=2:
# {"feature": "Passanger", "instances": 3980, "metric_value": 0.4296, "depth": 4}
if obj[0]<=2:
# {"feature": "Time", "instances": 2590, "metric_value": 0.4538, "depth": 5}
if obj[1]<=3:
# {"feature": "Bar", "instances": 2109, "metric_value": 0.4613, "depth": 6}
if obj[5]<=3.0:
# {"feature": "Direction_same", "instances": 2050, "metric_value": 0.4587, "depth": 7}
if obj[8]<=0:
# {"feature": "Occupation", "instances": 1153, "metric_value": 0.4716, "depth": 8}
if obj[4]>0:
# {"feature": "Restaurant20to50", "instances": 1144, "metric_value": 0.4729, "depth": 9}
if obj[7]<=3.0:
# {"feature": "Education", "instances": 1129, "metric_value": 0.4745, "depth": 10}
if obj[3]<=4:
return 'True'
elif obj[3]>4:
return 'True'
else: return 'True'
elif obj[7]>3.0:
# {"feature": "Education", "instances": 15, "metric_value": 0.2909, "depth": 10}
if obj[3]>0:
return 'True'
elif obj[3]<=0:
return 'True'
else: return 'True'
else: return 'True'
elif obj[4]<=0:
# {"feature": "Education", "instances": 9, "metric_value": 0.1111, "depth": 9}
if obj[3]<=0:
return 'True'
elif obj[3]>0:
# {"feature": "Restaurant20to50", "instances": 2, "metric_value": 0.5, "depth": 10}
if obj[7]<=1.0:
return 'True'
else: return 'True'
else: return 'True'
else: return 'True'
elif obj[8]>0:
# {"feature": "Occupation", "instances": 897, "metric_value": 0.4395, "depth": 8}
if obj[4]>0:
# {"feature": "Restaurant20to50", "instances": 892, "metric_value": 0.4409, "depth": 9}
if obj[7]<=2.0:
# {"feature": "Education", "instances": 801, "metric_value": 0.4454, "depth": 10}
if obj[3]<=2:
return 'True'
elif obj[3]>2:
return 'True'
else: return 'True'
elif obj[7]>2.0:
# {"feature": "Education", "instances": 91, "metric_value": 0.3801, "depth": 10}
if obj[3]<=3:
return 'True'
elif obj[3]>3:
return 'True'
else: return 'True'
else: return 'True'
elif obj[4]<=0:
return 'True'
else: return 'True'
else: return 'True'
elif obj[5]>3.0:
# {"feature": "Occupation", "instances": 59, "metric_value": 0.4428, "depth": 7}
if obj[4]<=7:
# {"feature": "Education", "instances": 41, "metric_value": 0.4497, "depth": 8}
if obj[3]<=2:
# {"feature": "Restaurant20to50", "instances": 32, "metric_value": 0.3877, "depth": 9}
if obj[7]>0.0:
# {"feature": "Direction_same", "instances": 17, "metric_value": 0.2773, "depth": 10}
if obj[8]<=0:
return 'True'
elif obj[8]>0:
return 'True'
else: return 'True'
elif obj[7]<=0.0:
# {"feature": "Direction_same", "instances": 15, "metric_value": 0.4786, "depth": 10}
if obj[8]>0:
return 'False'
elif obj[8]<=0:
return 'True'
else: return 'True'
else: return 'False'
elif obj[3]>2:
# {"feature": "Direction_same", "instances": 9, "metric_value": 0.3333, "depth": 9}
if obj[8]<=0:
# {"feature": "Restaurant20to50", "instances": 6, "metric_value": 0.5, "depth": 10}
if obj[7]<=4.0:
return 'False'
else: return 'False'
elif obj[8]>0:
return 'False'
else: return 'False'
else: return 'False'
elif obj[4]>7:
# {"feature": "Restaurant20to50", "instances": 18, "metric_value": 0.2685, "depth": 8}
if obj[7]<=3.0:
# {"feature": "Education", "instances": 12, "metric_value": 0.1111, "depth": 9}
if obj[3]>0:
return 'False'
elif obj[3]<=0:
# {"feature": "Direction_same", "instances": 3, "metric_value": 0.0, "depth": 10}
if obj[8]<=0:
return 'False'
elif obj[8]>0:
return 'True'
else: return 'True'
else: return 'False'
elif obj[7]>3.0:
# {"feature": "Direction_same", "instances": 6, "metric_value": 0.4, "depth": 9}
if obj[8]<=0:
# {"feature": "Education", "instances": 5, "metric_value": 0.4667, "depth": 10}
if obj[3]<=0:
return 'True'
elif obj[3]>0:
return 'False'
else: return 'False'
elif obj[8]>0:
return 'False'
else: return 'False'
else: return 'False'
else: return 'False'
else: return 'False'
elif obj[1]>3:
# {"feature": "Education", "instances": 481, "metric_value": 0.4106, "depth": 6}
if obj[3]>0:
# {"feature": "Bar", "instances": 314, "metric_value": 0.4334, "depth": 7}
if obj[5]<=1.0:
# {"feature": "Occupation", "instances": 211, "metric_value": 0.407, "depth": 8}
if obj[4]<=13.096181893771217:
# {"feature": "Restaurant20to50", "instances": 178, "metric_value": 0.3918, "depth": 9}
if obj[7]<=2.0:
# {"feature": "Direction_same", "instances": 165, "metric_value": 0.4021, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
elif obj[7]>2.0:
# {"feature": "Direction_same", "instances": 13, "metric_value": 0.2604, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
else: return 'True'
elif obj[4]>13.096181893771217:
# {"feature": "Restaurant20to50", "instances": 33, "metric_value": 0.4718, "depth": 9}
if obj[7]>0.0:
# {"feature": "Direction_same", "instances": 29, "metric_value": 0.4851, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
elif obj[7]<=0.0:
# {"feature": "Direction_same", "instances": 4, "metric_value": 0.375, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
else: return 'True'
else: return 'True'
elif obj[5]>1.0:
# {"feature": "Occupation", "instances": 103, "metric_value": 0.4649, "depth": 8}
if obj[4]<=19:
# {"feature": "Restaurant20to50", "instances": 101, "metric_value": 0.4709, "depth": 9}
if obj[7]<=3.0:
# {"feature": "Direction_same", "instances": 93, "metric_value": 0.4791, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
elif obj[7]>3.0:
# {"feature": "Direction_same", "instances": 8, "metric_value": 0.375, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
else: return 'True'
elif obj[4]>19:
return 'False'
else: return 'False'
else: return 'True'
elif obj[3]<=0:
# {"feature": "Bar", "instances": 167, "metric_value": 0.3508, "depth": 7}
if obj[5]<=2.0:
# {"feature": "Occupation", "instances": 150, "metric_value": 0.3215, "depth": 8}
if obj[4]>2:
# {"feature": "Restaurant20to50", "instances": 118, "metric_value": 0.281, "depth": 9}
if obj[7]<=2.0:
# {"feature": "Direction_same", "instances": 109, "metric_value": 0.2879, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
elif obj[7]>2.0:
# {"feature": "Direction_same", "instances": 9, "metric_value": 0.1975, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
else: return 'True'
elif obj[4]<=2:
# {"feature": "Restaurant20to50", "instances": 32, "metric_value": 0.4271, "depth": 9}
if obj[7]>0.0:
# {"feature": "Direction_same", "instances": 24, "metric_value": 0.4965, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
elif obj[7]<=0.0:
# {"feature": "Direction_same", "instances": 8, "metric_value": 0.2188, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
else: return 'True'
else: return 'True'
elif obj[5]>2.0:
# {"feature": "Occupation", "instances": 17, "metric_value": 0.3922, "depth": 8}
if obj[4]>4:
# {"feature": "Restaurant20to50", "instances": 15, "metric_value": 0.4074, "depth": 9}
if obj[7]<=1.0:
# {"feature": "Direction_same", "instances": 9, "metric_value": 0.3457, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
elif obj[7]>1.0:
# {"feature": "Direction_same", "instances": 6, "metric_value": 0.5, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
else: return 'True'
elif obj[4]<=4:
return 'False'
else: return 'False'
else: return 'True'
else: return 'True'
else: return 'True'
elif obj[0]>2:
# {"feature": "Bar", "instances": 1390, "metric_value": 0.3797, "depth": 5}
if obj[5]<=3.0:
# {"feature": "Education", "instances": 1328, "metric_value": 0.3739, "depth": 6}
if obj[3]<=3:
# {"feature": "Occupation", "instances": 1246, "metric_value": 0.3798, "depth": 7}
if obj[4]<=7.746388443017657:
# {"feature": "Restaurant20to50", "instances": 778, "metric_value": 0.361, "depth": 8}
if obj[7]<=1.0:
# {"feature": "Time", "instances": 521, "metric_value": 0.3817, "depth": 9}
if obj[1]<=3:
# {"feature": "Direction_same", "instances": 380, "metric_value": 0.3903, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
elif obj[1]>3:
# {"feature": "Direction_same", "instances": 141, "metric_value": 0.3585, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
else: return 'True'
elif obj[7]>1.0:
# {"feature": "Time", "instances": 257, "metric_value": 0.3099, "depth": 9}
if obj[1]>0:
# {"feature": "Direction_same", "instances": 203, "metric_value": 0.3558, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
elif obj[1]<=0:
# {"feature": "Direction_same", "instances": 54, "metric_value": 0.1372, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
else: return 'True'
else: return 'True'
elif obj[4]>7.746388443017657:
# {"feature": "Restaurant20to50", "instances": 468, "metric_value": 0.4073, "depth": 8}
if obj[7]>-1.0:
# {"feature": "Time", "instances": 464, "metric_value": 0.4104, "depth": 9}
if obj[1]<=3:
# {"feature": "Direction_same", "instances": 350, "metric_value": 0.4177, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
elif obj[1]>3:
# {"feature": "Direction_same", "instances": 114, "metric_value": 0.3878, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
else: return 'True'
elif obj[7]<=-1.0:
return 'True'
else: return 'True'
else: return 'True'
elif obj[3]>3:
# {"feature": "Occupation", "instances": 82, "metric_value": 0.246, "depth": 7}
if obj[4]<=12:
# {"feature": "Restaurant20to50", "instances": 58, "metric_value": 0.3353, "depth": 8}
if obj[7]>0.0:
# {"feature": "Time", "instances": 45, "metric_value": 0.379, "depth": 9}
if obj[1]>0:
# {"feature": "Direction_same", "instances": 36, "metric_value": 0.4244, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
elif obj[1]<=0:
# {"feature": "Direction_same", "instances": 9, "metric_value": 0.1975, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
else: return 'True'
elif obj[7]<=0.0:
# {"feature": "Time", "instances": 13, "metric_value": 0.1154, "depth": 9}
if obj[1]<=2:
return 'True'
elif obj[1]>2:
# {"feature": "Direction_same", "instances": 4, "metric_value": 0.375, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
else: return 'True'
else: return 'True'
elif obj[4]>12:
return 'True'
else: return 'True'
else: return 'True'
elif obj[5]>3.0:
# {"feature": "Occupation", "instances": 62, "metric_value": 0.437, "depth": 6}
if obj[4]<=12:
# {"feature": "Education", "instances": 47, "metric_value": 0.4186, "depth": 7}
if obj[3]>0:
# {"feature": "Restaurant20to50", "instances": 35, "metric_value": 0.4502, "depth": 8}
if obj[7]>0.0:
# {"feature": "Time", "instances": 33, "metric_value": 0.4703, "depth": 9}
if obj[1]>0:
# {"feature": "Direction_same", "instances": 25, "metric_value": 0.4608, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
elif obj[1]<=0:
# {"feature": "Direction_same", "instances": 8, "metric_value": 0.5, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
else: return 'True'
elif obj[7]<=0.0:
return 'True'
else: return 'True'
elif obj[3]<=0:
# {"feature": "Time", "instances": 12, "metric_value": 0.2593, "depth": 8}
if obj[1]<=2:
# {"feature": "Restaurant20to50", "instances": 9, "metric_value": 0.3016, "depth": 9}
if obj[7]>0.0:
# {"feature": "Direction_same", "instances": 7, "metric_value": 0.2449, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
elif obj[7]<=0.0:
# {"feature": "Direction_same", "instances": 2, "metric_value": 0.5, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
else: return 'True'
elif obj[1]>2:
return 'True'
else: return 'True'
else: return 'True'
elif obj[4]>12:
# {"feature": "Time", "instances": 15, "metric_value": 0.3333, "depth": 7}
if obj[1]>0:
# {"feature": "Education", "instances": 10, "metric_value": 0.4444, "depth": 8}
if obj[3]<=0:
# {"feature": "Restaurant20to50", "instances": 9, "metric_value": 0.4889, "depth": 9}
if obj[7]>1.0:
# {"feature": "Direction_same", "instances": 5, "metric_value": 0.48, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
elif obj[7]<=1.0:
# {"feature": "Direction_same", "instances": 4, "metric_value": 0.5, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
else: return 'True'
elif obj[3]>0:
return 'False'
else: return 'False'
elif obj[1]<=0:
return 'False'
else: return 'False'
else: return 'False'
else: return 'True'
else: return 'True'
elif obj[9]>2:
# {"feature": "Passanger", "instances": 435, "metric_value": 0.485, "depth": 4}
if obj[0]>0:
# {"feature": "Education", "instances": 419, "metric_value": 0.484, "depth": 5}
if obj[3]>0:
# {"feature": "Time", "instances": 281, "metric_value": 0.4684, "depth": 6}
if obj[1]>0:
# {"feature": "Bar", "instances": 243, "metric_value": 0.485, "depth": 7}
if obj[5]>-1.0:
# {"feature": "Restaurant20to50", "instances": 240, "metric_value": 0.4876, "depth": 8}
if obj[7]<=2.0:
# {"feature": "Occupation", "instances": 217, "metric_value": 0.4907, "depth": 9}
if obj[4]>0:
# {"feature": "Direction_same", "instances": 215, "metric_value": 0.4952, "depth": 10}
if obj[8]<=0:
return 'False'
else: return 'False'
elif obj[4]<=0:
return 'False'
else: return 'False'
elif obj[7]>2.0:
# {"feature": "Occupation", "instances": 23, "metric_value": 0.3794, "depth": 9}
if obj[4]<=12:
# {"feature": "Direction_same", "instances": 22, "metric_value": 0.3967, "depth": 10}
if obj[8]<=0:
return 'False'
else: return 'False'
elif obj[4]>12:
return 'True'
else: return 'True'
else: return 'False'
elif obj[5]<=-1.0:
return 'False'
else: return 'False'
elif obj[1]<=0:
# {"feature": "Occupation", "instances": 38, "metric_value": 0.3008, "depth": 7}
if obj[4]<=11:
# {"feature": "Bar", "instances": 28, "metric_value": 0.3869, "depth": 8}
if obj[5]<=1.0:
# {"feature": "Restaurant20to50", "instances": 16, "metric_value": 0.4167, "depth": 9}
if obj[7]>0.0:
# {"feature": "Direction_same", "instances": 15, "metric_value": 0.4444, "depth": 10}
if obj[8]<=0:
return 'False'
else: return 'False'
elif obj[7]<=0.0:
return 'True'
else: return 'True'
elif obj[5]>1.0:
# {"feature": "Restaurant20to50", "instances": 12, "metric_value": 0.2667, "depth": 9}
if obj[7]>0.0:
# {"feature": "Direction_same", "instances": 10, "metric_value": 0.32, "depth": 10}
if obj[8]<=0:
return 'False'
else: return 'False'
elif obj[7]<=0.0:
return 'False'
else: return 'False'
else: return 'False'
elif obj[4]>11:
return 'False'
else: return 'False'
else: return 'False'
elif obj[3]<=0:
# {"feature": "Restaurant20to50", "instances": 138, "metric_value": 0.4841, "depth": 6}
if obj[7]<=3.0:
# {"feature": "Time", "instances": 136, "metric_value": 0.4842, "depth": 7}
if obj[1]>0:
# {"feature": "Occupation", "instances": 113, "metric_value": 0.4765, "depth": 8}
if obj[4]<=22:
# {"feature": "Bar", "instances": 112, "metric_value": 0.477, "depth": 9}
if obj[5]<=3.0:
# {"feature": "Direction_same", "instances": 107, "metric_value": 0.4769, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
elif obj[5]>3.0:
# {"feature": "Direction_same", "instances": 5, "metric_value": 0.48, "depth": 10}
if obj[8]<=0:
return 'False'
else: return 'False'
else: return 'False'
elif obj[4]>22:
return 'False'
else: return 'False'
elif obj[1]<=0:
# {"feature": "Occupation", "instances": 23, "metric_value": 0.4306, "depth": 8}
if obj[4]>1:
# {"feature": "Bar", "instances": 21, "metric_value": 0.4121, "depth": 9}
if obj[5]<=0.0:
# {"feature": "Direction_same", "instances": 11, "metric_value": 0.4959, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
elif obj[5]>0.0:
# {"feature": "Direction_same", "instances": 10, "metric_value": 0.32, "depth": 10}
if obj[8]<=0:
return 'False'
else: return 'False'
else: return 'False'
elif obj[4]<=1:
return 'True'
else: return 'True'
else: return 'False'
elif obj[7]>3.0:
return 'False'
else: return 'False'
else: return 'True'
elif obj[0]<=0:
# {"feature": "Restaurant20to50", "instances": 16, "metric_value": 0.1786, "depth": 5}
if obj[7]<=1.0:
return 'True'
elif obj[7]>1.0:
# {"feature": "Bar", "instances": 7, "metric_value": 0.0, "depth": 6}
if obj[5]>1.0:
return 'True'
elif obj[5]<=1.0:
return 'False'
else: return 'False'
else: return 'True'
else: return 'True'
else: return 'False'
elif obj[6]<=0.0:
# {"feature": "Passanger", "instances": 1452, "metric_value": 0.4944, "depth": 3}
if obj[0]<=1:
# {"feature": "Distance", "instances": 925, "metric_value": 0.4846, "depth": 4}
if obj[9]<=1:
# {"feature": "Time", "instances": 498, "metric_value": 0.486, "depth": 5}
if obj[1]>0:
# {"feature": "Bar", "instances": 313, "metric_value": 0.473, "depth": 6}
if obj[5]<=0.0:
# {"feature": "Direction_same", "instances": 169, "metric_value": 0.4379, "depth": 7}
if obj[8]>0:
# {"feature": "Occupation", "instances": 94, "metric_value": 0.4613, "depth": 8}
if obj[4]>3:
# {"feature": "Education", "instances": 63, "metric_value": 0.4968, "depth": 9}
if obj[3]<=3:
# {"feature": "Restaurant20to50", "instances": 60, "metric_value": 0.4986, "depth": 10}
if obj[7]>0.0:
return 'True'
elif obj[7]<=0.0:
return 'True'
else: return 'True'
elif obj[3]>3:
# {"feature": "Restaurant20to50", "instances": 3, "metric_value": 0.3333, "depth": 10}
if obj[7]>0.0:
return 'True'
elif obj[7]<=0.0:
return 'False'
else: return 'False'
else: return 'False'
elif obj[4]<=3:
# {"feature": "Restaurant20to50", "instances": 31, "metric_value": 0.3752, "depth": 9}
if obj[7]<=1.0:
# {"feature": "Education", "instances": 24, "metric_value": 0.3964, "depth": 10}
if obj[3]<=1:
return 'True'
elif obj[3]>1:
return 'True'
else: return 'True'
elif obj[7]>1.0:
# {"feature": "Education", "instances": 7, "metric_value": 0.2143, "depth": 10}
if obj[3]<=0:
return 'True'
elif obj[3]>0:
return 'True'
else: return 'True'
else: return 'True'
else: return 'True'
elif obj[8]<=0:
# {"feature": "Education", "instances": 75, "metric_value": 0.3407, "depth": 8}
if obj[3]>0:
# {"feature": "Restaurant20to50", "instances": 40, "metric_value": 0.2083, "depth": 9}
if obj[7]<=1.0:
# {"feature": "Occupation", "instances": 30, "metric_value": 0.2711, "depth": 10}
if obj[4]<=6:
return 'True'
elif obj[4]>6:
return 'True'
else: return 'True'
elif obj[7]>1.0:
return 'True'
else: return 'True'
elif obj[3]<=0:
# {"feature": "Occupation", "instances": 35, "metric_value": 0.4573, "depth": 9}
if obj[4]>4:
# {"feature": "Restaurant20to50", "instances": 22, "metric_value": 0.4052, "depth": 10}
if obj[7]>0.0:
return 'True'
elif obj[7]<=0.0:
return 'True'
else: return 'True'
elif obj[4]<=4:
# {"feature": "Restaurant20to50", "instances": 13, "metric_value": 0.4615, "depth": 10}
if obj[7]>0.0:
return 'True'
elif obj[7]<=0.0:
return 'False'
else: return 'False'
else: return 'False'
else: return 'True'
else: return 'True'
elif obj[5]>0.0:
# {"feature": "Occupation", "instances": 144, "metric_value": 0.4721, "depth": 7}
if obj[4]<=20:
# {"feature": "Education", "instances": 136, "metric_value": 0.4907, "depth": 8}
if obj[3]>1:
# {"feature": "Direction_same", "instances": 92, "metric_value": 0.4865, "depth": 9}
if obj[8]>0:
# {"feature": "Restaurant20to50", "instances": 49, "metric_value": 0.4685, "depth": 10}
if obj[7]<=2.0:
return 'False'
elif obj[7]>2.0:
return 'False'
else: return 'False'
elif obj[8]<=0:
# {"feature": "Restaurant20to50", "instances": 43, "metric_value": 0.4857, "depth": 10}
if obj[7]>0.0:
return 'True'
elif obj[7]<=0.0:
return 'False'
else: return 'False'
else: return 'True'
elif obj[3]<=1:
# {"feature": "Restaurant20to50", "instances": 44, "metric_value": 0.4568, "depth": 9}
if obj[7]<=1.0:
# {"feature": "Direction_same", "instances": 31, "metric_value": 0.4578, "depth": 10}
if obj[8]<=0:
return 'True'
elif obj[8]>0:
return 'False'
else: return 'False'
elif obj[7]>1.0:
# {"feature": "Direction_same", "instances": 13, "metric_value": 0.3192, "depth": 10}
if obj[8]>0:
return 'True'
elif obj[8]<=0:
return 'True'
else: return 'True'
else: return 'True'
else: return 'True'
elif obj[4]>20:
return 'True'
else: return 'True'
else: return 'True'
elif obj[1]<=0:
# {"feature": "Occupation", "instances": 185, "metric_value": 0.4726, "depth": 6}
if obj[4]<=7.951351351351351:
# {"feature": "Education", "instances": 114, "metric_value": 0.4532, "depth": 7}
if obj[3]<=3:
# {"feature": "Bar", "instances": 103, "metric_value": 0.4401, "depth": 8}
if obj[5]>-1.0:
# {"feature": "Direction_same", "instances": 102, "metric_value": 0.4422, "depth": 9}
if obj[8]<=0:
# {"feature": "Restaurant20to50", "instances": 61, "metric_value": 0.4554, "depth": 10}
if obj[7]>0.0:
return 'False'
elif obj[7]<=0.0:
return 'False'
else: return 'False'
elif obj[8]>0:
# {"feature": "Restaurant20to50", "instances": 41, "metric_value": 0.4103, "depth": 10}
if obj[7]<=1.0:
return 'False'
elif obj[7]>1.0:
return 'False'
else: return 'False'
else: return 'False'
elif obj[5]<=-1.0:
return 'True'
else: return 'True'
elif obj[3]>3:
# {"feature": "Restaurant20to50", "instances": 11, "metric_value": 0.4545, "depth": 8}
if obj[7]<=1.0:
# {"feature": "Direction_same", "instances": 10, "metric_value": 0.4762, "depth": 9}
if obj[8]<=0:
# {"feature": "Bar", "instances": 7, "metric_value": 0.4762, "depth": 10}
if obj[5]>0.0:
return 'True'
elif obj[5]<=0.0:
return 'True'
else: return 'True'
elif obj[8]>0:
# {"feature": "Bar", "instances": 3, "metric_value": 0.4444, "depth": 10}
if obj[5]<=0.0:
return 'False'
else: return 'False'
else: return 'False'
elif obj[7]>1.0:
return 'True'
else: return 'True'
else: return 'True'
elif obj[4]>7.951351351351351:
# {"feature": "Direction_same", "instances": 71, "metric_value": 0.4524, "depth": 7}
if obj[8]<=0:
# {"feature": "Education", "instances": 39, "metric_value": 0.4732, "depth": 8}
if obj[3]>0:
# {"feature": "Bar", "instances": 29, "metric_value": 0.4606, "depth": 9}
if obj[5]<=3.0:
# {"feature": "Restaurant20to50", "instances": 28, "metric_value": 0.4675, "depth": 10}
if obj[7]>0.0:
return 'False'
elif obj[7]<=0.0:
return 'False'
else: return 'False'
elif obj[5]>3.0:
return 'False'
else: return 'False'
elif obj[3]<=0:
# {"feature": "Restaurant20to50", "instances": 10, "metric_value": 0.4444, "depth": 9}
if obj[7]<=1.0:
# {"feature": "Bar", "instances": 9, "metric_value": 0.4815, "depth": 10}
if obj[5]<=0.0:
return 'False'
elif obj[5]>0.0:
return 'True'
else: return 'True'
elif obj[7]>1.0:
return 'True'
else: return 'True'
else: return 'True'
elif obj[8]>0:
# {"feature": "Bar", "instances": 32, "metric_value": 0.3822, "depth": 8}
if obj[5]<=1.0:
# {"feature": "Restaurant20to50", "instances": 26, "metric_value": 0.3178, "depth": 9}
if obj[7]<=0.0:
# {"feature": "Education", "instances": 14, "metric_value": 0.4396, "depth": 10}
if obj[3]>0:
return 'True'
elif obj[3]<=0:
return 'True'
else: return 'True'
elif obj[7]>0.0:
# {"feature": "Education", "instances": 12, "metric_value": 0.1333, "depth": 10}
if obj[3]>0:
return 'True'
elif obj[3]<=0:
return 'True'
else: return 'True'
else: return 'True'
elif obj[5]>1.0:
# {"feature": "Education", "instances": 6, "metric_value": 0.25, "depth": 9}
if obj[3]<=0:
# {"feature": "Restaurant20to50", "instances": 4, "metric_value": 0.3333, "depth": 10}
if obj[7]>1.0:
return 'True'
elif obj[7]<=1.0:
return 'True'
else: return 'True'
elif obj[3]>0:
return 'False'
else: return 'False'
else: return 'True'
else: return 'True'
else: return 'True'
else: return 'False'
elif obj[9]>1:
# {"feature": "Bar", "instances": 427, "metric_value": 0.466, "depth": 5}
if obj[5]<=1.0:
# {"feature": "Restaurant20to50", "instances": 341, "metric_value": 0.4776, "depth": 6}
if obj[7]<=1.0:
# {"feature": "Occupation", "instances": 269, "metric_value": 0.4701, "depth": 7}
if obj[4]<=6:
# {"feature": "Time", "instances": 143, "metric_value": 0.4445, "depth": 8}
if obj[1]<=3:
# {"feature": "Education", "instances": 121, "metric_value": 0.4697, "depth": 9}
if obj[3]<=3:
# {"feature": "Direction_same", "instances": 108, "metric_value": 0.4664, "depth": 10}
if obj[8]<=0:
return 'False'
elif obj[8]>0:
return 'False'
else: return 'False'
elif obj[3]>3:
# {"feature": "Direction_same", "instances": 13, "metric_value": 0.4957, "depth": 10}
if obj[8]<=0:
return 'False'
elif obj[8]>0:
return 'False'
else: return 'False'
else: return 'False'
elif obj[1]>3:
# {"feature": "Education", "instances": 22, "metric_value": 0.2864, "depth": 9}
if obj[3]<=0:
# {"feature": "Direction_same", "instances": 12, "metric_value": 0.375, "depth": 10}
if obj[8]<=0:
return 'False'
else: return 'False'
elif obj[3]>0:
# {"feature": "Direction_same", "instances": 10, "metric_value": 0.18, "depth": 10}
if obj[8]<=0:
return 'False'
else: return 'False'
else: return 'False'
else: return 'False'
elif obj[4]>6:
# {"feature": "Education", "instances": 126, "metric_value": 0.4844, "depth": 8}
if obj[3]<=3:
# {"feature": "Direction_same", "instances": 115, "metric_value": 0.4801, "depth": 9}
if obj[8]<=0:
# {"feature": "Time", "instances": 81, "metric_value": 0.4525, "depth": 10}
if obj[1]>0:
return 'False'
elif obj[1]<=0:
return 'False'
else: return 'False'
elif obj[8]>0:
# {"feature": "Time", "instances": 34, "metric_value": 0.4303, "depth": 10}
if obj[1]>0:
return 'False'
elif obj[1]<=0:
return 'True'
else: return 'True'
else: return 'False'
elif obj[3]>3:
# {"feature": "Time", "instances": 11, "metric_value": 0.3961, "depth": 9}
if obj[1]<=2:
# {"feature": "Direction_same", "instances": 7, "metric_value": 0.1905, "depth": 10}
if obj[8]<=0:
return 'True'
elif obj[8]>0:
return 'False'
else: return 'False'
elif obj[1]>2:
# {"feature": "Direction_same", "instances": 4, "metric_value": 0.375, "depth": 10}
if obj[8]<=0:
return 'False'
else: return 'False'
else: return 'False'
else: return 'True'
else: return 'False'
elif obj[7]>1.0:
# {"feature": "Education", "instances": 72, "metric_value": 0.4683, "depth": 7}
if obj[3]>0:
# {"feature": "Time", "instances": 52, "metric_value": 0.4623, "depth": 8}
if obj[1]>0:
# {"feature": "Occupation", "instances": 43, "metric_value": 0.4508, "depth": 9}
if obj[4]<=12:
# {"feature": "Direction_same", "instances": 39, "metric_value": 0.4959, "depth": 10}
if obj[8]<=0:
return 'False'
elif obj[8]>0:
return 'False'
else: return 'False'
elif obj[4]>12:
return 'False'
else: return 'False'
elif obj[1]<=0:
# {"feature": "Occupation", "instances": 9, "metric_value": 0.1944, "depth": 9}
if obj[4]<=12:
# {"feature": "Direction_same", "instances": 8, "metric_value": 0.2188, "depth": 10}
if obj[8]<=0:
return 'False'
else: return 'False'
elif obj[4]>12:
return 'True'
else: return 'True'
else: return 'False'
elif obj[3]<=0:
# {"feature": "Occupation", "instances": 20, "metric_value": 0.375, "depth": 8}
if obj[4]<=7:
# {"feature": "Time", "instances": 16, "metric_value": 0.3462, "depth": 9}
if obj[1]<=3:
# {"feature": "Direction_same", "instances": 13, "metric_value": 0.4126, "depth": 10}
if obj[8]<=0:
return 'True'
elif obj[8]>0:
return 'False'
else: return 'False'
elif obj[1]>3:
return 'True'
else: return 'True'
elif obj[4]>7:
# {"feature": "Direction_same", "instances": 4, "metric_value": 0.0, "depth": 9}
if obj[8]<=0:
return 'False'
elif obj[8]>0:
return 'True'
else: return 'True'
else: return 'False'
else: return 'True'
else: return 'False'
elif obj[5]>1.0:
# {"feature": "Occupation", "instances": 86, "metric_value": 0.3849, "depth": 6}
if obj[4]>5:
# {"feature": "Education", "instances": 64, "metric_value": 0.4409, "depth": 7}
if obj[3]<=2:
# {"feature": "Time", "instances": 58, "metric_value": 0.4183, "depth": 8}
if obj[1]>0:
# {"feature": "Restaurant20to50", "instances": 47, "metric_value": 0.3969, "depth": 9}
if obj[7]<=2.0:
# {"feature": "Direction_same", "instances": 46, "metric_value": 0.4038, "depth": 10}
if obj[8]<=0:
return 'False'
elif obj[8]>0:
return 'False'
else: return 'False'
elif obj[7]>2.0:
return 'False'
else: return 'False'
elif obj[1]<=0:
# {"feature": "Direction_same", "instances": 11, "metric_value": 0.297, "depth": 9}
if obj[8]>0:
# {"feature": "Restaurant20to50", "instances": 6, "metric_value": 0.25, "depth": 10}
if obj[7]>0.0:
return 'True'
elif obj[7]<=0.0:
return 'True'
else: return 'True'
elif obj[8]<=0:
# {"feature": "Restaurant20to50", "instances": 5, "metric_value": 0.3, "depth": 10}
if obj[7]>0.0:
return 'False'
elif obj[7]<=0.0:
return 'False'
else: return 'False'
else: return 'False'
else: return 'True'
elif obj[3]>2:
# {"feature": "Direction_same", "instances": 6, "metric_value": 0.2667, "depth": 8}
if obj[8]<=0:
# {"feature": "Time", "instances": 5, "metric_value": 0.2667, "depth": 9}
if obj[1]<=1:
# {"feature": "Restaurant20to50", "instances": 3, "metric_value": 0.4444, "depth": 10}
if obj[7]<=1.0:
return 'True'
else: return 'True'
elif obj[1]>1:
return 'True'
else: return 'True'
elif obj[8]>0:
return 'False'
else: return 'False'
else: return 'True'
elif obj[4]<=5:
# {"feature": "Time", "instances": 22, "metric_value": 0.0909, "depth": 7}
if obj[1]>0:
return 'False'
elif obj[1]<=0:
# {"feature": "Education", "instances": 4, "metric_value": 0.3333, "depth": 8}
if obj[3]>0:
# {"feature": "Restaurant20to50", "instances": 3, "metric_value": 0.0, "depth": 9}
if obj[7]<=1.0:
return 'False'
elif obj[7]>1.0:
return 'True'
else: return 'True'
elif obj[3]<=0:
return 'True'
else: return 'True'
else: return 'False'
else: return 'False'
else: return 'False'
else: return 'False'
elif obj[0]>1:
# {"feature": "Distance", "instances": 527, "metric_value": 0.4617, "depth": 4}
if obj[9]>1:
# {"feature": "Bar", "instances": 356, "metric_value": 0.4414, "depth": 5}
if obj[5]<=2.0:
# {"feature": "Time", "instances": 323, "metric_value": 0.4297, "depth": 6}
if obj[1]>0:
# {"feature": "Restaurant20to50", "instances": 252, "metric_value": 0.4506, "depth": 7}
if obj[7]>-1.0:
# {"feature": "Occupation", "instances": 241, "metric_value": 0.4626, "depth": 8}
if obj[4]<=7.132780082987552:
# {"feature": "Education", "instances": 160, "metric_value": 0.4669, "depth": 9}
if obj[3]<=1:
# {"feature": "Direction_same", "instances": 89, "metric_value": 0.4469, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
elif obj[3]>1:
# {"feature": "Direction_same", "instances": 71, "metric_value": 0.492, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
else: return 'True'
elif obj[4]>7.132780082987552:
# {"feature": "Education", "instances": 81, "metric_value": 0.4416, "depth": 9}
if obj[3]<=3:
# {"feature": "Direction_same", "instances": 77, "metric_value": 0.4385, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
elif obj[3]>3:
# {"feature": "Direction_same", "instances": 4, "metric_value": 0.5, "depth": 10}
if obj[8]<=0:
return 'False'
else: return 'False'
else: return 'False'
else: return 'True'
elif obj[7]<=-1.0:
# {"feature": "Occupation", "instances": 11, "metric_value": 0.1515, "depth": 8}
if obj[4]>6:
# {"feature": "Education", "instances": 6, "metric_value": 0.25, "depth": 9}
if obj[3]<=0:
# {"feature": "Direction_same", "instances": 4, "metric_value": 0.375, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
elif obj[3]>0:
return 'True'
else: return 'True'
elif obj[4]<=6:
return 'True'
else: return 'True'
else: return 'True'
elif obj[1]<=0:
# {"feature": "Restaurant20to50", "instances": 71, "metric_value": 0.2784, "depth": 7}
if obj[7]>-1.0:
# {"feature": "Occupation", "instances": 68, "metric_value": 0.28, "depth": 8}
if obj[4]<=9:
# {"feature": "Education", "instances": 47, "metric_value": 0.215, "depth": 9}
if obj[3]<=2:
# {"feature": "Direction_same", "instances": 38, "metric_value": 0.2659, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
elif obj[3]>2:
return 'True'
else: return 'True'
elif obj[4]>9:
# {"feature": "Education", "instances": 21, "metric_value": 0.3866, "depth": 9}
if obj[3]>0:
# {"feature": "Direction_same", "instances": 17, "metric_value": 0.3599, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
elif obj[3]<=0:
# {"feature": "Direction_same", "instances": 4, "metric_value": 0.5, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
else: return 'True'
else: return 'True'
elif obj[7]<=-1.0:
return 'False'
else: return 'False'
else: return 'True'
elif obj[5]>2.0:
# {"feature": "Occupation", "instances": 33, "metric_value": 0.4242, "depth": 6}
if obj[4]<=18:
# {"feature": "Time", "instances": 28, "metric_value": 0.4792, "depth": 7}
if obj[1]>0:
# {"feature": "Education", "instances": 24, "metric_value": 0.4921, "depth": 8}
if obj[3]<=2:
# {"feature": "Restaurant20to50", "instances": 21, "metric_value": 0.4952, "depth": 9}
if obj[7]>0.0:
# {"feature": "Direction_same", "instances": 16, "metric_value": 0.5, "depth": 10}
if obj[8]<=0:
return 'False'
else: return 'False'
elif obj[7]<=0.0:
# {"feature": "Direction_same", "instances": 5, "metric_value": 0.48, "depth": 10}
if obj[8]<=0:
return 'False'
else: return 'False'
else: return 'False'
elif obj[3]>2:
# {"feature": "Restaurant20to50", "instances": 3, "metric_value": 0.4444, "depth": 9}
if obj[7]<=1.0:
# {"feature": "Direction_same", "instances": 3, "metric_value": 0.4444, "depth": 10}
if obj[8]<=0:
return 'False'
else: return 'False'
else: return 'False'
else: return 'False'
elif obj[1]<=0:
# {"feature": "Restaurant20to50", "instances": 4, "metric_value": 0.25, "depth": 8}
if obj[7]<=1.0:
return 'True'
elif obj[7]>1.0:
# {"feature": "Education", "instances": 2, "metric_value": 0.5, "depth": 9}
if obj[3]<=2:
# {"feature": "Direction_same", "instances": 2, "metric_value": 0.5, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
else: return 'True'
else: return 'True'
else: return 'True'
elif obj[4]>18:
return 'False'
else: return 'False'
else: return 'False'
elif obj[9]<=1:
# {"feature": "Occupation", "instances": 171, "metric_value": 0.4644, "depth": 5}
if obj[4]>1.3264107549745603:
# {"feature": "Education", "instances": 137, "metric_value": 0.4459, "depth": 6}
if obj[3]<=3:
# {"feature": "Time", "instances": 126, "metric_value": 0.432, "depth": 7}
if obj[1]>0:
# {"feature": "Bar", "instances": 94, "metric_value": 0.3985, "depth": 8}
if obj[5]<=3.0:
# {"feature": "Restaurant20to50", "instances": 93, "metric_value": 0.3939, "depth": 9}
if obj[7]<=2.0:
# {"feature": "Direction_same", "instances": 88, "metric_value": 0.4163, "depth": 10}
if obj[8]<=0:
return 'False'
else: return 'False'
elif obj[7]>2.0:
return 'False'
else: return 'False'
elif obj[5]>3.0:
return 'True'
else: return 'True'
elif obj[1]<=0:
# {"feature": "Bar", "instances": 32, "metric_value": 0.4688, "depth": 8}
if obj[5]>-1.0:
# {"feature": "Restaurant20to50", "instances": 30, "metric_value": 0.4974, "depth": 9}
if obj[7]<=1.0:
# {"feature": "Direction_same", "instances": 21, "metric_value": 0.4989, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
elif obj[7]>1.0:
# {"feature": "Direction_same", "instances": 9, "metric_value": 0.4938, "depth": 10}
if obj[8]<=0:
return 'False'
else: return 'False'
else: return 'False'
elif obj[5]<=-1.0:
return 'False'
else: return 'False'
else: return 'False'
elif obj[3]>3:
# {"feature": "Bar", "instances": 11, "metric_value": 0.1455, "depth": 7}
if obj[5]<=0.0:
return 'True'
elif obj[5]>0.0:
# {"feature": "Restaurant20to50", "instances": 5, "metric_value": 0.2667, "depth": 8}
if obj[7]<=0.0:
# {"feature": "Time", "instances": 3, "metric_value": 0.3333, "depth": 9}
if obj[1]>0:
# {"feature": "Direction_same", "instances": 2, "metric_value": 0.5, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
elif obj[1]<=0:
return 'False'
else: return 'False'
elif obj[7]>0.0:
return 'False'
else: return 'False'
else: return 'False'
else: return 'True'
elif obj[4]<=1.3264107549745603:
# {"feature": "Education", "instances": 34, "metric_value": 0.444, "depth": 6}
if obj[3]>1:
# {"feature": "Restaurant20to50", "instances": 18, "metric_value": 0.3704, "depth": 7}
if obj[7]<=1.0:
# {"feature": "Bar", "instances": 15, "metric_value": 0.4103, "depth": 8}
if obj[5]<=2.0:
# {"feature": "Time", "instances": 13, "metric_value": 0.4256, "depth": 9}
if obj[1]>0:
# {"feature": "Direction_same", "instances": 10, "metric_value": 0.42, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
elif obj[1]<=0:
# {"feature": "Direction_same", "instances": 3, "metric_value": 0.4444, "depth": 10}
if obj[8]<=0:
return 'False'
else: return 'False'
else: return 'False'
elif obj[5]>2.0:
return 'True'
else: return 'True'
elif obj[7]>1.0:
return 'True'
else: return 'True'
elif obj[3]<=1:
# {"feature": "Restaurant20to50", "instances": 16, "metric_value": 0.4271, "depth": 7}
if obj[7]<=1.0:
# {"feature": "Time", "instances": 12, "metric_value": 0.3429, "depth": 8}
if obj[1]<=2:
# {"feature": "Bar", "instances": 7, "metric_value": 0.2286, "depth": 9}
if obj[5]<=0.0:
# {"feature": "Direction_same", "instances": 5, "metric_value": 0.32, "depth": 10}
if obj[8]<=0:
return 'False'
else: return 'False'
elif obj[5]>0.0:
return 'False'
else: return 'False'
elif obj[1]>2:
# {"feature": "Bar", "instances": 5, "metric_value": 0.48, "depth": 9}
if obj[5]<=0.0:
# {"feature": "Direction_same", "instances": 5, "metric_value": 0.48, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
else: return 'True'
else: return 'True'
elif obj[7]>1.0:
# {"feature": "Time", "instances": 4, "metric_value": 0.0, "depth": 8}
if obj[1]<=3:
return 'True'
elif obj[1]>3:
return 'False'
else: return 'False'
else: return 'True'
else: return 'False'
else: return 'True'
else: return 'False'
else: return 'True'
else: return 'True'
elif obj[2]<=1:
# {"feature": "Bar", "instances": 2281, "metric_value": 0.4567, "depth": 2}
if obj[5]<=1.0:
# {"feature": "Occupation", "instances": 1601, "metric_value": 0.4436, "depth": 3}
if obj[4]>1.887387522319548:
# {"feature": "Education", "instances": 1333, "metric_value": 0.4585, "depth": 4}
if obj[3]>0:
# {"feature": "Time", "instances": 882, "metric_value": 0.438, "depth": 5}
if obj[1]>0:
# {"feature": "Coffeehouse", "instances": 613, "metric_value": 0.4124, "depth": 6}
if obj[6]<=3.0:
# {"feature": "Direction_same", "instances": 574, "metric_value": 0.4244, "depth": 7}
if obj[8]<=0:
# {"feature": "Restaurant20to50", "instances": 515, "metric_value": 0.4338, "depth": 8}
if obj[7]<=1.0:
# {"feature": "Passanger", "instances": 361, "metric_value": 0.4108, "depth": 9}
if obj[0]<=2:
# {"feature": "Distance", "instances": 303, "metric_value": 0.3955, "depth": 10}
if obj[9]<=2:
return 'False'
elif obj[9]>2:
return 'False'
else: return 'False'
elif obj[0]>2:
# {"feature": "Distance", "instances": 58, "metric_value": 0.4786, "depth": 10}
if obj[9]>1:
return 'False'
elif obj[9]<=1:
return 'False'
else: return 'False'
else: return 'False'
elif obj[7]>1.0:
# {"feature": "Distance", "instances": 154, "metric_value": 0.465, "depth": 9}
if obj[9]>1:
# {"feature": "Passanger", "instances": 108, "metric_value": 0.447, "depth": 10}
if obj[0]<=2:
return 'False'
elif obj[0]>2:
return 'False'
else: return 'False'
elif obj[9]<=1:
# {"feature": "Passanger", "instances": 46, "metric_value": 0.49, "depth": 10}
if obj[0]<=1:
return 'True'
elif obj[0]>1:
return 'False'
else: return 'False'
else: return 'True'
else: return 'False'
elif obj[8]>0:
# {"feature": "Restaurant20to50", "instances": 59, "metric_value": 0.2805, "depth": 8}
if obj[7]<=3.0:
# {"feature": "Passanger", "instances": 58, "metric_value": 0.2819, "depth": 9}
if obj[0]<=1:
# {"feature": "Distance", "instances": 51, "metric_value": 0.263, "depth": 10}
if obj[9]>1:
return 'False'
elif obj[9]<=1:
return 'False'
else: return 'False'
elif obj[0]>1:
# {"feature": "Distance", "instances": 7, "metric_value": 0.4082, "depth": 10}
if obj[9]<=2:
return 'False'
else: return 'False'
else: return 'False'
elif obj[7]>3.0:
return 'True'
else: return 'True'
else: return 'False'
elif obj[6]>3.0:
# {"feature": "Passanger", "instances": 39, "metric_value": 0.148, "depth": 7}
if obj[0]<=2:
# {"feature": "Distance", "instances": 35, "metric_value": 0.1048, "depth": 8}
if obj[9]<=2:
# {"feature": "Direction_same", "instances": 24, "metric_value": 0.15, "depth": 9}
if obj[8]<=0:
# {"feature": "Restaurant20to50", "instances": 20, "metric_value": 0.1765, "depth": 10}
if obj[7]<=2.0:
return 'False'
elif obj[7]>2.0:
return 'False'
else: return 'False'
elif obj[8]>0:
return 'False'
else: return 'False'
elif obj[9]>2:
return 'False'
else: return 'False'
elif obj[0]>2:
# {"feature": "Restaurant20to50", "instances": 4, "metric_value": 0.3333, "depth": 8}
if obj[7]<=1.0:
# {"feature": "Direction_same", "instances": 3, "metric_value": 0.4444, "depth": 9}
if obj[8]<=0:
# {"feature": "Distance", "instances": 3, "metric_value": 0.4444, "depth": 10}
if obj[9]<=2:
return 'True'
else: return 'True'
else: return 'True'
elif obj[7]>1.0:
return 'False'
else: return 'False'
else: return 'False'
else: return 'False'
elif obj[1]<=0:
# {"feature": "Restaurant20to50", "instances": 269, "metric_value": 0.4746, "depth": 6}
if obj[7]<=1.0:
# {"feature": "Coffeehouse", "instances": 193, "metric_value": 0.4579, "depth": 7}
if obj[6]>-1.0:
# {"feature": "Distance", "instances": 188, "metric_value": 0.4641, "depth": 8}
if obj[9]<=2:
# {"feature": "Direction_same", "instances": 166, "metric_value": 0.4761, "depth": 9}
if obj[8]<=0:
# {"feature": "Passanger", "instances": 86, "metric_value": 0.4493, "depth": 10}
if obj[0]>0:
return 'False'
elif obj[0]<=0:
return 'False'
else: return 'False'
elif obj[8]>0:
# {"feature": "Passanger", "instances": 80, "metric_value": 0.4916, "depth": 10}
if obj[0]<=1:
return 'False'
elif obj[0]>1:
return 'True'
else: return 'True'
else: return 'False'
elif obj[9]>2:
# {"feature": "Passanger", "instances": 22, "metric_value": 0.2944, "depth": 9}
if obj[0]<=1:
# {"feature": "Direction_same", "instances": 21, "metric_value": 0.3084, "depth": 10}
if obj[8]<=0:
return 'False'
else: return 'False'
elif obj[0]>1:
return 'True'
else: return 'True'
else: return 'False'
elif obj[6]<=-1.0:
return 'False'
else: return 'False'
elif obj[7]>1.0:
# {"feature": "Passanger", "instances": 76, "metric_value": 0.4869, "depth": 7}
if obj[0]<=1:
# {"feature": "Distance", "instances": 58, "metric_value": 0.4701, "depth": 8}
if obj[9]<=2:
# {"feature": "Coffeehouse", "instances": 49, "metric_value": 0.4592, "depth": 9}
if obj[6]<=1.0:
# {"feature": "Direction_same", "instances": 28, "metric_value": 0.4955, "depth": 10}
if obj[8]>0:
return 'True'
elif obj[8]<=0:
return 'True'
else: return 'True'
elif obj[6]>1.0:
# {"feature": "Direction_same", "instances": 21, "metric_value": 0.4021, "depth": 10}
if obj[8]>0:
return 'True'
elif obj[8]<=0:
return 'True'
else: return 'True'
else: return 'True'
elif obj[9]>2:
# {"feature": "Coffeehouse", "instances": 9, "metric_value": 0.2667, "depth": 9}
if obj[6]<=1.0:
# {"feature": "Direction_same", "instances": 5, "metric_value": 0.48, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
elif obj[6]>1.0:
return 'False'
else: return 'False'
else: return 'False'
elif obj[0]>1:
# {"feature": "Distance", "instances": 18, "metric_value": 0.4148, "depth": 8}
if obj[9]>1:
# {"feature": "Coffeehouse", "instances": 15, "metric_value": 0.3905, "depth": 9}
if obj[6]>1.0:
# {"feature": "Direction_same", "instances": 8, "metric_value": 0.3333, "depth": 10}
if obj[8]<=0:
return 'False'
elif obj[8]>0:
return 'False'
else: return 'False'
elif obj[6]<=1.0:
# {"feature": "Direction_same", "instances": 7, "metric_value": 0.3714, "depth": 10}
if obj[8]<=0:
return 'True'
elif obj[8]>0:
return 'True'
else: return 'True'
else: return 'True'
elif obj[9]<=1:
return 'False'
else: return 'False'
else: return 'False'
else: return 'True'
else: return 'False'
elif obj[3]<=0:
# {"feature": "Restaurant20to50", "instances": 451, "metric_value": 0.4786, "depth": 5}
if obj[7]<=2.0:
# {"feature": "Coffeehouse", "instances": 425, "metric_value": 0.4768, "depth": 6}
if obj[6]>-1.0:
# {"feature": "Time", "instances": 422, "metric_value": 0.4766, "depth": 7}
if obj[1]<=3:
# {"feature": "Passanger", "instances": 342, "metric_value": 0.4842, "depth": 8}
if obj[0]>0:
# {"feature": "Distance", "instances": 309, "metric_value": 0.4823, "depth": 9}
if obj[9]>1:
# {"feature": "Direction_same", "instances": 227, "metric_value": 0.4867, "depth": 10}
if obj[8]<=0:
return 'False'
elif obj[8]>0:
return 'False'
else: return 'False'
elif obj[9]<=1:
# {"feature": "Direction_same", "instances": 82, "metric_value": 0.47, "depth": 10}
if obj[8]>0:
return 'False'
elif obj[8]<=0:
return 'False'
else: return 'False'
else: return 'False'
elif obj[0]<=0:
# {"feature": "Distance", "instances": 33, "metric_value": 0.4481, "depth": 9}
if obj[9]>1:
# {"feature": "Direction_same", "instances": 21, "metric_value": 0.4898, "depth": 10}
if obj[8]<=0:
return 'False'
else: return 'False'
elif obj[9]<=1:
# {"feature": "Direction_same", "instances": 12, "metric_value": 0.375, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
else: return 'True'
else: return 'True'
elif obj[1]>3:
# {"feature": "Passanger", "instances": 80, "metric_value": 0.4119, "depth": 8}
if obj[0]>0:
# {"feature": "Distance", "instances": 53, "metric_value": 0.3645, "depth": 9}
if obj[9]<=1:
# {"feature": "Direction_same", "instances": 31, "metric_value": 0.4121, "depth": 10}
if obj[8]<=0:
return 'False'
else: return 'False'
elif obj[9]>1:
# {"feature": "Direction_same", "instances": 22, "metric_value": 0.2975, "depth": 10}
if obj[8]<=0:
return 'False'
else: return 'False'
else: return 'False'
elif obj[0]<=0:
# {"feature": "Distance", "instances": 27, "metric_value": 0.4921, "depth": 9}
if obj[9]<=1:
# {"feature": "Direction_same", "instances": 21, "metric_value": 0.4898, "depth": 10}
if obj[8]<=0:
return 'False'
else: return 'False'
elif obj[9]>1:
# {"feature": "Direction_same", "instances": 6, "metric_value": 0.5, "depth": 10}
if obj[8]<=0:
return 'False'
else: return 'False'
else: return 'False'
else: return 'False'
else: return 'False'
elif obj[6]<=-1.0:
return 'True'
else: return 'True'
elif obj[7]>2.0:
# {"feature": "Passanger", "instances": 26, "metric_value": 0.4141, "depth": 6}
if obj[0]<=2:
# {"feature": "Time", "instances": 20, "metric_value": 0.44, "depth": 7}
if obj[1]>0:
# {"feature": "Direction_same", "instances": 15, "metric_value": 0.3909, "depth": 8}
if obj[8]<=0:
# {"feature": "Coffeehouse", "instances": 11, "metric_value": 0.2909, "depth": 9}
if obj[6]<=2.0:
# {"feature": "Distance", "instances": 10, "metric_value": 0.3, "depth": 10}
if obj[9]<=2:
return 'True'
elif obj[9]>2:
return 'True'
else: return 'True'
elif obj[6]>2.0:
return 'False'
else: return 'False'
elif obj[8]>0:
# {"feature": "Distance", "instances": 4, "metric_value": 0.0, "depth": 9}
if obj[9]>1:
return 'False'
elif obj[9]<=1:
return 'True'
else: return 'True'
else: return 'False'
elif obj[1]<=0:
# {"feature": "Distance", "instances": 5, "metric_value": 0.0, "depth": 8}
if obj[9]<=2:
return 'True'
elif obj[9]>2:
return 'False'
else: return 'False'
else: return 'True'
elif obj[0]>2:
# {"feature": "Coffeehouse", "instances": 6, "metric_value": 0.2222, "depth": 7}
if obj[6]<=1.0:
# {"feature": "Time", "instances": 3, "metric_value": 0.0, "depth": 8}
if obj[1]<=2:
return 'True'
elif obj[1]>2:
return 'False'
else: return 'False'
elif obj[6]>1.0:
return 'True'
else: return 'True'
else: return 'True'
else: return 'True'
else: return 'False'
elif obj[4]<=1.887387522319548:
# {"feature": "Education", "instances": 268, "metric_value": 0.3409, "depth": 4}
if obj[3]<=3:
# {"feature": "Restaurant20to50", "instances": 250, "metric_value": 0.3173, "depth": 5}
if obj[7]>0.0:
# {"feature": "Coffeehouse", "instances": 204, "metric_value": 0.3657, "depth": 6}
if obj[6]<=1.0:
# {"feature": "Passanger", "instances": 121, "metric_value": 0.3252, "depth": 7}
if obj[0]<=2:
# {"feature": "Time", "instances": 100, "metric_value": 0.3062, "depth": 8}
if obj[1]>0:
# {"feature": "Direction_same", "instances": 70, "metric_value": 0.2832, "depth": 9}
if obj[8]<=0:
# {"feature": "Distance", "instances": 56, "metric_value": 0.2616, "depth": 10}
if obj[9]>1:
return 'False'
elif obj[9]<=1:
return 'False'
else: return 'False'
elif obj[8]>0:
# {"feature": "Distance", "instances": 14, "metric_value": 0.2449, "depth": 10}
if obj[9]>1:
return 'False'
elif obj[9]<=1:
return 'False'
else: return 'False'
else: return 'False'
elif obj[1]<=0:
# {"feature": "Distance", "instances": 30, "metric_value": 0.35, "depth": 9}
if obj[9]<=2:
# {"feature": "Direction_same", "instances": 28, "metric_value": 0.3743, "depth": 10}
if obj[8]>0:
return 'False'
elif obj[8]<=0:
return 'False'
else: return 'False'
elif obj[9]>2:
return 'False'
else: return 'False'
else: return 'False'
elif obj[0]>2:
# {"feature": "Time", "instances": 21, "metric_value": 0.3714, "depth": 8}
if obj[1]>2:
# {"feature": "Distance", "instances": 15, "metric_value": 0.3143, "depth": 9}
if obj[9]>1:
# {"feature": "Direction_same", "instances": 14, "metric_value": 0.3367, "depth": 10}
if obj[8]<=0:
return 'False'
else: return 'False'
elif obj[9]<=1:
return 'False'
else: return 'False'
elif obj[1]<=2:
# {"feature": "Direction_same", "instances": 6, "metric_value": 0.5, "depth": 9}
if obj[8]<=0:
# {"feature": "Distance", "instances": 6, "metric_value": 0.5, "depth": 10}
if obj[9]<=2:
return 'True'
else: return 'True'
else: return 'True'
else: return 'True'
else: return 'False'
elif obj[6]>1.0:
# {"feature": "Distance", "instances": 83, "metric_value": 0.4109, "depth": 7}
if obj[9]<=2:
# {"feature": "Passanger", "instances": 65, "metric_value": 0.4364, "depth": 8}
if obj[0]>0:
# {"feature": "Time", "instances": 60, "metric_value": 0.4303, "depth": 9}
if obj[1]<=3:
# {"feature": "Direction_same", "instances": 55, "metric_value": 0.4397, "depth": 10}
if obj[8]<=0:
return 'False'
elif obj[8]>0:
return 'False'
else: return 'False'
elif obj[1]>3:
# {"feature": "Direction_same", "instances": 5, "metric_value": 0.32, "depth": 10}
if obj[8]<=0:
return 'False'
else: return 'False'
else: return 'False'
elif obj[0]<=0:
# {"feature": "Time", "instances": 5, "metric_value": 0.4667, "depth": 9}
if obj[1]<=0:
# {"feature": "Direction_same", "instances": 3, "metric_value": 0.4444, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
elif obj[1]>0:
# {"feature": "Direction_same", "instances": 2, "metric_value": 0.5, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
else: return 'True'
else: return 'True'
elif obj[9]>2:
# {"feature": "Passanger", "instances": 18, "metric_value": 0.1961, "depth": 8}
if obj[0]<=1:
# {"feature": "Time", "instances": 17, "metric_value": 0.1991, "depth": 9}
if obj[1]>0:
# {"feature": "Direction_same", "instances": 13, "metric_value": 0.2604, "depth": 10}
if obj[8]<=0:
return 'False'
else: return 'False'
elif obj[1]<=0:
return 'False'
else: return 'False'
elif obj[0]>1:
return 'True'
else: return 'True'
else: return 'False'
else: return 'False'
elif obj[7]<=0.0:
# {"feature": "Coffeehouse", "instances": 46, "metric_value": 0.0425, "depth": 6}
if obj[6]>-1.0:
# {"feature": "Passanger", "instances": 45, "metric_value": 0.0356, "depth": 7}
if obj[0]<=2:
return 'False'
elif obj[0]>2:
# {"feature": "Time", "instances": 5, "metric_value": 0.2, "depth": 8}
if obj[1]>2:
return 'False'
elif obj[1]<=2:
# {"feature": "Direction_same", "instances": 2, "metric_value": 0.5, "depth": 9}
if obj[8]<=0:
# {"feature": "Distance", "instances": 2, "metric_value": 0.5, "depth": 10}
if obj[9]<=2:
return 'False'
else: return 'False'
else: return 'False'
else: return 'False'
else: return 'False'
elif obj[6]<=-1.0:
return 'True'
else: return 'True'
else: return 'False'
elif obj[3]>3:
# {"feature": "Coffeehouse", "instances": 18, "metric_value": 0.4, "depth": 5}
if obj[6]<=1.0:
# {"feature": "Distance", "instances": 15, "metric_value": 0.3692, "depth": 6}
if obj[9]<=2:
# {"feature": "Passanger", "instances": 13, "metric_value": 0.3462, "depth": 7}
if obj[0]>0:
# {"feature": "Direction_same", "instances": 12, "metric_value": 0.3333, "depth": 8}
if obj[8]<=0:
# {"feature": "Time", "instances": 9, "metric_value": 0.381, "depth": 9}
if obj[1]<=3:
# {"feature": "Restaurant20to50", "instances": 7, "metric_value": 0.4857, "depth": 10}
if obj[7]<=0.0:
return 'False'
elif obj[7]>0.0:
return 'False'
else: return 'False'
elif obj[1]>3:
return 'False'
else: return 'False'
elif obj[8]>0:
return 'False'
else: return 'False'
elif obj[0]<=0:
return 'True'
else: return 'True'
elif obj[9]>2:
return 'True'
else: return 'True'
elif obj[6]>1.0:
return 'True'
else: return 'True'
else: return 'True'
else: return 'False'
elif obj[5]>1.0:
# {"feature": "Restaurant20to50", "instances": 680, "metric_value": 0.4641, "depth": 3}
if obj[7]<=1.0:
# {"feature": "Time", "instances": 365, "metric_value": 0.4856, "depth": 4}
if obj[1]>0:
# {"feature": "Passanger", "instances": 267, "metric_value": 0.4792, "depth": 5}
if obj[0]<=2:
# {"feature": "Occupation", "instances": 207, "metric_value": 0.4675, "depth": 6}
if obj[4]<=14.155999220544217:
# {"feature": "Distance", "instances": 174, "metric_value": 0.4853, "depth": 7}
if obj[9]<=2:
# {"feature": "Coffeehouse", "instances": 128, "metric_value": 0.483, "depth": 8}
if obj[6]>-1.0:
# {"feature": "Education", "instances": 125, "metric_value": 0.4898, "depth": 9}
if obj[3]<=3:
# {"feature": "Direction_same", "instances": 119, "metric_value": 0.4906, "depth": 10}
if obj[8]<=0:
return 'False'
elif obj[8]>0:
return 'False'
else: return 'False'
elif obj[3]>3:
# {"feature": "Direction_same", "instances": 6, "metric_value": 0.4444, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
else: return 'True'
elif obj[6]<=-1.0:
return 'False'
else: return 'False'
elif obj[9]>2:
# {"feature": "Coffeehouse", "instances": 46, "metric_value": 0.4536, "depth": 8}
if obj[6]<=3.0:
# {"feature": "Education", "instances": 40, "metric_value": 0.4677, "depth": 9}
if obj[3]>0:
# {"feature": "Direction_same", "instances": 29, "metric_value": 0.4946, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
elif obj[3]<=0:
# {"feature": "Direction_same", "instances": 11, "metric_value": 0.3967, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
else: return 'True'
elif obj[6]>3.0:
# {"feature": "Education", "instances": 6, "metric_value": 0.2222, "depth": 9}
if obj[3]>0:
return 'True'
elif obj[3]<=0:
# {"feature": "Direction_same", "instances": 3, "metric_value": 0.4444, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
else: return 'True'
else: return 'True'
else: return 'True'
elif obj[4]>14.155999220544217:
# {"feature": "Coffeehouse", "instances": 33, "metric_value": 0.2857, "depth": 7}
if obj[6]<=3.0:
# {"feature": "Distance", "instances": 28, "metric_value": 0.3222, "depth": 8}
if obj[9]>1:
# {"feature": "Education", "instances": 18, "metric_value": 0.3571, "depth": 9}
if obj[3]<=2:
# {"feature": "Direction_same", "instances": 14, "metric_value": 0.3956, "depth": 10}
if obj[8]<=0:
return 'False'
elif obj[8]>0:
return 'True'
else: return 'True'
elif obj[3]>2:
return 'False'
else: return 'False'
elif obj[9]<=1:
# {"feature": "Education", "instances": 10, "metric_value": 0.1, "depth": 9}
if obj[3]<=2:
return 'False'
elif obj[3]>2:
# {"feature": "Direction_same", "instances": 2, "metric_value": 0.5, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
else: return 'True'
else: return 'False'
elif obj[6]>3.0:
return 'False'
else: return 'False'
else: return 'False'
elif obj[0]>2:
# {"feature": "Occupation", "instances": 60, "metric_value": 0.4169, "depth": 6}
if obj[4]>0:
# {"feature": "Coffeehouse", "instances": 59, "metric_value": 0.3999, "depth": 7}
if obj[6]<=2.0:
# {"feature": "Education", "instances": 43, "metric_value": 0.4543, "depth": 8}
if obj[3]<=2:
# {"feature": "Distance", "instances": 40, "metric_value": 0.4524, "depth": 9}
if obj[9]>1:
# {"feature": "Direction_same", "instances": 33, "metric_value": 0.4444, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
elif obj[9]<=1:
# {"feature": "Direction_same", "instances": 7, "metric_value": 0.4898, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
else: return 'True'
elif obj[3]>2:
# {"feature": "Direction_same", "instances": 3, "metric_value": 0.4444, "depth": 9}
if obj[8]<=0:
# {"feature": "Distance", "instances": 3, "metric_value": 0.4444, "depth": 10}
if obj[9]<=2:
return 'False'
else: return 'False'
else: return 'False'
else: return 'False'
elif obj[6]>2.0:
# {"feature": "Education", "instances": 16, "metric_value": 0.1786, "depth": 8}
if obj[3]<=2:
# {"feature": "Distance", "instances": 14, "metric_value": 0.131, "depth": 9}
if obj[9]>1:
# {"feature": "Direction_same", "instances": 12, "metric_value": 0.1528, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
elif obj[9]<=1:
return 'True'
else: return 'True'
elif obj[3]>2:
# {"feature": "Direction_same", "instances": 2, "metric_value": 0.5, "depth": 9}
if obj[8]<=0:
# {"feature": "Distance", "instances": 2, "metric_value": 0.5, "depth": 10}
if obj[9]<=2:
return 'False'
else: return 'False'
else: return 'False'
else: return 'False'
else: return 'True'
elif obj[4]<=0:
return 'False'
else: return 'False'
else: return 'True'
elif obj[1]<=0:
# {"feature": "Passanger", "instances": 98, "metric_value": 0.4319, "depth": 5}
if obj[0]<=1:
# {"feature": "Distance", "instances": 90, "metric_value": 0.4178, "depth": 6}
if obj[9]<=1:
# {"feature": "Occupation", "instances": 46, "metric_value": 0.3188, "depth": 7}
if obj[4]>3:
# {"feature": "Coffeehouse", "instances": 33, "metric_value": 0.4167, "depth": 8}
if obj[6]<=2.0:
# {"feature": "Education", "instances": 25, "metric_value": 0.4762, "depth": 9}
if obj[3]<=2:
# {"feature": "Direction_same", "instances": 21, "metric_value": 0.4717, "depth": 10}
if obj[8]<=1:
return 'True'
else: return 'True'
elif obj[3]>2:
# {"feature": "Direction_same", "instances": 4, "metric_value": 0.5, "depth": 10}
if obj[8]<=1:
return 'False'
else: return 'False'
else: return 'False'
elif obj[6]>2.0:
# {"feature": "Education", "instances": 8, "metric_value": 0.125, "depth": 9}
if obj[3]<=2:
return 'True'
elif obj[3]>2:
# {"feature": "Direction_same", "instances": 2, "metric_value": 0.5, "depth": 10}
if obj[8]<=1:
return 'False'
else: return 'False'
else: return 'False'
else: return 'True'
elif obj[4]<=3:
return 'True'
else: return 'True'
elif obj[9]>1:
# {"feature": "Occupation", "instances": 44, "metric_value": 0.4325, "depth": 7}
if obj[4]>4:
# {"feature": "Education", "instances": 33, "metric_value": 0.3866, "depth": 8}
if obj[3]>0:
# {"feature": "Coffeehouse", "instances": 23, "metric_value": 0.4551, "depth": 9}
if obj[6]<=2.0:
# {"feature": "Direction_same", "instances": 15, "metric_value": 0.4978, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
elif obj[6]>2.0:
# {"feature": "Direction_same", "instances": 8, "metric_value": 0.375, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
else: return 'True'
elif obj[3]<=0:
# {"feature": "Direction_same", "instances": 10, "metric_value": 0.0, "depth": 9}
if obj[8]<=0:
return 'True'
elif obj[8]>0:
return 'False'
else: return 'False'
else: return 'True'
elif obj[4]<=4:
# {"feature": "Coffeehouse", "instances": 11, "metric_value": 0.3697, "depth": 8}
if obj[6]>1.0:
# {"feature": "Education", "instances": 6, "metric_value": 0.1667, "depth": 9}
if obj[3]>0:
return 'False'
elif obj[3]<=0:
# {"feature": "Direction_same", "instances": 2, "metric_value": 0.0, "depth": 10}
if obj[8]<=0:
return 'False'
elif obj[8]>0:
return 'True'
else: return 'True'
else: return 'False'
elif obj[6]<=1.0:
# {"feature": "Education", "instances": 5, "metric_value": 0.4, "depth": 9}
if obj[3]<=0:
# {"feature": "Direction_same", "instances": 4, "metric_value": 0.5, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
elif obj[3]>0:
return 'True'
else: return 'True'
else: return 'True'
else: return 'False'
else: return 'True'
elif obj[0]>1:
# {"feature": "Occupation", "instances": 8, "metric_value": 0.3, "depth": 6}
if obj[4]<=6:
# {"feature": "Distance", "instances": 5, "metric_value": 0.3, "depth": 7}
if obj[9]>1:
# {"feature": "Coffeehouse", "instances": 4, "metric_value": 0.25, "depth": 8}
if obj[6]<=2.0:
return 'True'
elif obj[6]>2.0:
# {"feature": "Education", "instances": 2, "metric_value": 0.5, "depth": 9}
if obj[3]<=2:
# {"feature": "Direction_same", "instances": 2, "metric_value": 0.5, "depth": 10}
if obj[8]<=0:
return 'False'
else: return 'False'
else: return 'False'
else: return 'False'
elif obj[9]<=1:
return 'False'
else: return 'False'
elif obj[4]>6:
return 'False'
else: return 'False'
else: return 'False'
else: return 'True'
elif obj[7]>1.0:
# {"feature": "Education", "instances": 315, "metric_value": 0.417, "depth": 4}
if obj[3]>1:
# {"feature": "Time", "instances": 197, "metric_value": 0.451, "depth": 5}
if obj[1]>0:
# {"feature": "Passanger", "instances": 150, "metric_value": 0.4737, "depth": 6}
if obj[0]<=2:
# {"feature": "Coffeehouse", "instances": 119, "metric_value": 0.462, "depth": 7}
if obj[6]<=3.0:
# {"feature": "Occupation", "instances": 94, "metric_value": 0.4693, "depth": 8}
if obj[4]<=17:
# {"feature": "Distance", "instances": 82, "metric_value": 0.4883, "depth": 9}
if obj[9]>1:
# {"feature": "Direction_same", "instances": 49, "metric_value": 0.4624, "depth": 10}
if obj[8]<=0:
return 'False'
elif obj[8]>0:
return 'True'
else: return 'True'
elif obj[9]<=1:
# {"feature": "Direction_same", "instances": 33, "metric_value": 0.4953, "depth": 10}
if obj[8]<=0:
return 'True'
elif obj[8]>0:
return 'True'
else: return 'True'
else: return 'True'
elif obj[4]>17:
# {"feature": "Distance", "instances": 12, "metric_value": 0.2333, "depth": 9}
if obj[9]>1:
# {"feature": "Direction_same", "instances": 10, "metric_value": 0.175, "depth": 10}
if obj[8]<=0:
return 'True'
elif obj[8]>0:
return 'True'
else: return 'True'
elif obj[9]<=1:
# {"feature": "Direction_same", "instances": 2, "metric_value": 0.5, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
else: return 'True'
else: return 'True'
elif obj[6]>3.0:
# {"feature": "Direction_same", "instances": 25, "metric_value": 0.2087, "depth": 8}
if obj[8]<=0:
# {"feature": "Occupation", "instances": 23, "metric_value": 0.2008, "depth": 9}
if obj[4]<=12:
# {"feature": "Distance", "instances": 21, "metric_value": 0.1655, "depth": 10}
if obj[9]>1:
return 'True'
elif obj[9]<=1:
return 'True'
else: return 'True'
elif obj[4]>12:
# {"feature": "Distance", "instances": 2, "metric_value": 0.5, "depth": 10}
if obj[9]<=1:
return 'True'
else: return 'True'
else: return 'True'
elif obj[8]>0:
return 'False'
else: return 'False'
else: return 'True'
elif obj[0]>2:
# {"feature": "Coffeehouse", "instances": 31, "metric_value": 0.2184, "depth": 7}
if obj[6]<=3.0:
# {"feature": "Occupation", "instances": 26, "metric_value": 0.1918, "depth": 8}
if obj[4]<=17:
# {"feature": "Distance", "instances": 23, "metric_value": 0.1556, "depth": 9}
if obj[9]>1:
# {"feature": "Direction_same", "instances": 19, "metric_value": 0.1884, "depth": 10}
if obj[8]<=0:
return 'True'
else: return 'True'
elif obj[9]<=1:
return 'True'
else: return 'True'
elif obj[4]>17:
# {"feature": "Direction_same", "instances": 3, "metric_value": 0.4444, "depth": 9}
if obj[8]<=0:
# {"feature": "Distance", "instances": 3, "metric_value": 0.4444, "depth": 10}
if obj[9]<=2:
return 'False'
else: return 'False'
else: return 'False'
else: return 'False'
elif obj[6]>3.0:
return 'False'
else: return 'False'
else: return 'True'
elif obj[1]<=0:
# {"feature": "Direction_same", "instances": 47, "metric_value": 0.3225, "depth": 6}
if obj[8]<=0:
# {"feature": "Coffeehouse", "instances": 25, "metric_value": 0.426, "depth": 7}
if obj[6]>1.0:
# {"feature": "Passanger", "instances": 18, "metric_value": 0.3519, "depth": 8}
if obj[0]>0:
# {"feature": "Occupation", "instances": 12, "metric_value": 0.2381, "depth": 9}
if obj[4]<=7:
# {"feature": "Distance", "instances": 7, "metric_value": 0.4082, "depth": 10}
if obj[9]<=2:
return 'True'
else: return 'True'
elif obj[4]>7:
return 'True'
else: return 'True'
elif obj[0]<=0:
# {"feature": "Occupation", "instances": 6, "metric_value": 0.4, "depth": 9}
if obj[4]<=12:
# {"feature": "Distance", "instances": 5, "metric_value": 0.48, "depth": 10}
if obj[9]<=2:
return 'True'
else: return 'True'
elif obj[4]>12:
return 'False'
else: return 'False'
else: return 'False'
elif obj[6]<=1.0:
# {"feature": "Passanger", "instances": 7, "metric_value": 0.2286, "depth": 8}
if obj[0]>0:
# {"feature": "Occupation", "instances": 5, "metric_value": 0.2, "depth": 9}
if obj[4]<=9:
return 'False'
elif obj[4]>9:
# {"feature": "Distance", "instances": 2, "metric_value": 0.5, "depth": 10}
if obj[9]<=2:
return 'True'
else: return 'True'
else: return 'True'
elif obj[0]<=0:
return 'True'
else: return 'True'
else: return 'False'
elif obj[8]>0:
# {"feature": "Occupation", "instances": 22, "metric_value": 0.0909, "depth": 7}
if obj[4]<=16:
return 'True'
elif obj[4]>16:
# {"feature": "Coffeehouse", "instances": 4, "metric_value": 0.3333, "depth": 8}
if obj[6]>0.0:
# {"feature": "Passanger", "instances": 3, "metric_value": 0.4444, "depth": 9}
if obj[0]<=1:
# {"feature": "Distance", "instances": 3, "metric_value": 0.4444, "depth": 10}
if obj[9]<=1:
return 'False'
else: return 'False'
else: return 'False'
elif obj[6]<=0.0:
return 'True'
else: return 'True'
else: return 'False'
else: return 'True'
else: return 'True'
elif obj[3]<=1:
# {"feature": "Occupation", "instances": 118, "metric_value": 0.3338, "depth": 5}
if obj[4]>7:
# {"feature": "Time", "instances": 64, "metric_value": 0.2462, "depth": 6}
if obj[1]<=2:
# {"feature": "Coffeehouse", "instances": 38, "metric_value": 0.1373, "depth": 7}
if obj[6]<=2.0:
# {"feature": "Direction_same", "instances": 23, "metric_value": 0.1978, "depth": 8}
if obj[8]<=0:
# {"feature": "Distance", "instances": 17, "metric_value": 0.1078, "depth": 9}
if obj[9]<=2:
# {"feature": "Passanger", "instances": 12, "metric_value": 0.15, "depth": 10}
if obj[0]>0:
return 'True'
elif obj[0]<=0:
return 'True'
else: return 'True'
elif obj[9]>2:
return 'True'
else: return 'True'
elif obj[8]>0:
# {"feature": "Passanger", "instances": 6, "metric_value": 0.4444, "depth": 9}
if obj[0]<=1:
# {"feature": "Distance", "instances": 6, "metric_value": 0.4444, "depth": 10}
if obj[9]<=1:
return 'True'
else: return 'True'
else: return 'True'
else: return 'True'
elif obj[6]>2.0:
return 'True'
else: return 'True'
elif obj[1]>2:
# {"feature": "Passanger", "instances": 26, "metric_value": 0.3401, "depth": 7}
if obj[0]<=2:
# {"feature": "Direction_same", "instances": 19, "metric_value": 0.4145, "depth": 8}
if obj[8]<=0:
# {"feature": "Distance", "instances": 16, "metric_value": 0.4667, "depth": 9}
if obj[9]<=2:
# {"feature": "Coffeehouse", "instances": 15, "metric_value": 0.4636, "depth": 10}
if obj[6]>0.0:
return 'False'
elif obj[6]<=0.0:
return 'True'
else: return 'True'
elif obj[9]>2:
return 'True'
else: return 'True'
elif obj[8]>0:
return 'True'
else: return 'True'
elif obj[0]>2:
return 'True'
else: return 'True'
else: return 'True'
elif obj[4]<=7:
# {"feature": "Coffeehouse", "instances": 54, "metric_value": 0.3991, "depth": 6}
if obj[6]>0.0:
# {"feature": "Distance", "instances": 49, "metric_value": 0.4314, "depth": 7}
if obj[9]<=2:
# {"feature": "Direction_same", "instances": 43, "metric_value": 0.4197, "depth": 8}
if obj[8]<=0:
# {"feature": "Passanger", "instances": 31, "metric_value": 0.4334, "depth": 9}
if obj[0]<=2:
# {"feature": "Time", "instances": 23, "metric_value": 0.4503, "depth": 10}
if obj[1]<=3:
return 'True'
elif obj[1]>3:
return 'True'
else: return 'True'
elif obj[0]>2:
# {"feature": "Time", "instances": 8, "metric_value": 0.3571, "depth": 10}
if obj[1]<=3:
return 'True'
elif obj[1]>3:
return 'True'
else: return 'True'
else: return 'True'
elif obj[8]>0:
# {"feature": "Time", "instances": 12, "metric_value": 0.3636, "depth": 9}
if obj[1]<=1:
# {"feature": "Passanger", "instances": 11, "metric_value": 0.3967, "depth": 10}
if obj[0]<=1:
return 'True'
else: return 'True'
elif obj[1]>1:
return 'True'
else: return 'True'
else: return 'True'
elif obj[9]>2:
# {"feature": "Passanger", "instances": 6, "metric_value": 0.4, "depth": 8}
if obj[0]>0:
# {"feature": "Time", "instances": 5, "metric_value": 0.48, "depth": 9}
if obj[1]<=1:
# {"feature": "Direction_same", "instances": 5, "metric_value": 0.48, "depth": 10}
if obj[8]<=0:
return 'False'
else: return 'False'
else: return 'False'
elif obj[0]<=0:
return 'True'
else: return 'True'
else: return 'True'
elif obj[6]<=0.0:
return 'True'
else: return 'True'
else: return 'True'
else: return 'True'
else: return 'True'
else: return 'True'
else: return 'False'
|
del_items(0x80124F0C)
SetType(0x80124F0C, "void GameOnlyTestRoutine__Fv()")
del_items(0x80124F14)
SetType(0x80124F14, "int vecleny__Fii(int a, int b)")
del_items(0x80124F38)
SetType(0x80124F38, "int veclenx__Fii(int a, int b)")
del_items(0x80124F64)
SetType(0x80124F64, "void GetDamageAmt__FiPiT1(int i, int *mind, int *maxd)")
del_items(0x8012555C)
SetType(0x8012555C, "int CheckBlock__Fiiii(int fx, int fy, int tx, int ty)")
del_items(0x80125644)
SetType(0x80125644, "int FindClosest__Fiii(int sx, int sy, int rad)")
del_items(0x801257E0)
SetType(0x801257E0, "int GetSpellLevel__Fii(int id, int sn)")
del_items(0x80125854)
SetType(0x80125854, "int GetDirection8__Fiiii(int x1, int y1, int x2, int y2)")
del_items(0x80125A70)
SetType(0x80125A70, "void DeleteMissile__Fii(int mi, int i)")
del_items(0x80125AC8)
SetType(0x80125AC8, "void GetMissileVel__Fiiiiii(int i, int sx, int sy, int dx, int dy, int v)")
del_items(0x80125C7C)
SetType(0x80125C7C, "void PutMissile__Fi(int i)")
del_items(0x80125D80)
SetType(0x80125D80, "void GetMissilePos__Fi(int i)")
del_items(0x80125EA8)
SetType(0x80125EA8, "void MoveMissilePos__Fi(int i)")
del_items(0x80126010)
SetType(0x80126010, "unsigned char MonsterTrapHit__FiiiiiUc(int m, int mindam, int maxdam, int dist, int t, int shift)")
del_items(0x80126384)
SetType(0x80126384, "unsigned char MonsterMHit__FiiiiiiUc(int pnum, int m, int mindam, int maxdam, int dist, int t, int shift)")
del_items(0x80126AE4)
SetType(0x80126AE4, "unsigned char PlayerMHit__FiiiiiiUcUc(int pnum, int m, int dist, int mind, int maxd, int mtype, int shift, int earflag)")
del_items(0x80127550)
SetType(0x80127550, "unsigned char Plr2PlrMHit__FiiiiiiUc(int pnum, int p, int mindam, int maxdam, int dist, int mtype, int shift)")
del_items(0x80127D2C)
SetType(0x80127D2C, "void CheckMissileCol__FiiiUciiUc(int i, int mindam, int maxdam, unsigned char shift, int mx, int my, int nodel)")
del_items(0x8012846C)
SetType(0x8012846C, "unsigned char GetTableValue__FUci(unsigned char code, int dir)")
del_items(0x80128500)
SetType(0x80128500, "void SetMissAnim__Fii(int mi, int animtype)")
del_items(0x801285D0)
SetType(0x801285D0, "void SetMissDir__Fii(int mi, int dir)")
del_items(0x80128614)
SetType(0x80128614, "void AddLArrow__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x801287F4)
SetType(0x801287F4, "void AddArrow__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x801289B0)
SetType(0x801289B0, "void GetVileMissPos__Fiii(int mi, int dx, int dy)")
del_items(0x80128AD4)
SetType(0x80128AD4, "void AddRndTeleport__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x80128E44)
SetType(0x80128E44, "void AddFirebolt__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int micaster, int id, int dam)")
del_items(0x801290B0)
SetType(0x801290B0, "void AddMagmaball__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x801291C4)
SetType(0x801291C4, "void AddTeleport__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x801293BC)
SetType(0x801293BC, "void AddLightball__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x80129510)
SetType(0x80129510, "void AddFirewall__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x801296F8)
SetType(0x801296F8, "void AddFireball__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x80129954)
SetType(0x80129954, "void AddLightctrl__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x80129A3C)
SetType(0x80129A3C, "void AddLightning__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x80129C04)
SetType(0x80129C04, "void AddMisexp__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x80129E10)
SetType(0x80129E10, "unsigned char CheckIfTrig__Fii(int x, int y)")
del_items(0x80129EF4)
SetType(0x80129EF4, "void AddTown__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012A318)
SetType(0x8012A318, "void AddFlash__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012A528)
SetType(0x8012A528, "void AddFlash2__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012A708)
SetType(0x8012A708, "void AddManashield__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012A7D0)
SetType(0x8012A7D0, "void AddFiremove__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012A92C)
SetType(0x8012A92C, "void AddGuardian__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012AD98)
SetType(0x8012AD98, "void AddChain__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012ADF4)
SetType(0x8012ADF4, "void AddRhino__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012AFB0)
SetType(0x8012AFB0, "void AddFlare__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012B2A8)
SetType(0x8012B2A8, "void AddAcid__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012B3AC)
SetType(0x8012B3AC, "void AddAcidpud__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012B484)
SetType(0x8012B484, "void AddStone__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012B77C)
SetType(0x8012B77C, "void AddGolem__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012B934)
SetType(0x8012B934, "void AddBoom__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012B9C8)
SetType(0x8012B9C8, "void AddHeal__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012BBF0)
SetType(0x8012BBF0, "void AddHealOther__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012BC58)
SetType(0x8012BC58, "void AddElement__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012BE84)
SetType(0x8012BE84, "void AddIdentify__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012BF34)
SetType(0x8012BF34, "void AddFirewallC__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012C1E4)
SetType(0x8012C1E4, "void AddInfra__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012C2E0)
SetType(0x8012C2E0, "void AddWave__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012C364)
SetType(0x8012C364, "void AddNova__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012C57C)
SetType(0x8012C57C, "void AddRepair__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012C62C)
SetType(0x8012C62C, "void AddRecharge__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012C6DC)
SetType(0x8012C6DC, "void AddDisarm__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012C744)
SetType(0x8012C744, "void AddApoca__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012C980)
SetType(0x8012C980, "void AddFlame__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int seqno)")
del_items(0x8012CB9C)
SetType(0x8012CB9C, "void AddFlamec__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012CC8C)
SetType(0x8012CC8C, "void AddCbolt__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int micaster, int id, int dam)")
del_items(0x8012CE80)
SetType(0x8012CE80, "void AddHbolt__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int micaster, int id, int dam)")
del_items(0x8012D040)
SetType(0x8012D040, "void AddResurrect__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012D0B4)
SetType(0x8012D0B4, "void AddResurrectBeam__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012D13C)
SetType(0x8012D13C, "void AddTelekinesis__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012D1A4)
SetType(0x8012D1A4, "void AddBoneSpirit__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012D3A0)
SetType(0x8012D3A0, "void AddRportal__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012D440)
SetType(0x8012D440, "void AddDiabApoca__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012D57C)
SetType(0x8012D57C, "int AddMissile__Fiiiiiiciii(int sx, int sy, int v1, int v2, int midir, int mitype, int micaster, int id, int v3, int spllvl)")
del_items(0x8012D8C8)
SetType(0x8012D8C8, "int Sentfire__Fiii(int i, int sx, int sy)")
del_items(0x8012DAAC)
SetType(0x8012DAAC, "void MI_Dummy__Fi(int i)")
del_items(0x8012DAB4)
SetType(0x8012DAB4, "void MI_Golem__Fi(int i)")
del_items(0x8012DD10)
SetType(0x8012DD10, "void MI_SetManashield__Fi(int i)")
del_items(0x8012DD4C)
SetType(0x8012DD4C, "void MI_LArrow__Fi(int i)")
del_items(0x8012E508)
SetType(0x8012E508, "void MI_Arrow__Fi(int i)")
del_items(0x8012E724)
SetType(0x8012E724, "void MI_Firebolt__Fi(int i)")
del_items(0x8012EDF0)
SetType(0x8012EDF0, "void MI_Lightball__Fi(int i)")
del_items(0x8012F078)
SetType(0x8012F078, "void MI_Acidpud__Fi(int i)")
del_items(0x8012F188)
SetType(0x8012F188, "void MI_Firewall__Fi(int i)")
del_items(0x8012F44C)
SetType(0x8012F44C, "void MI_Fireball__Fi(int i)")
del_items(0x8012FE10)
SetType(0x8012FE10, "void MI_Lightctrl__Fi(int i)")
del_items(0x8013037C)
SetType(0x8013037C, "void MI_Lightning__Fi(int i)")
del_items(0x801304F8)
SetType(0x801304F8, "void MI_Town__Fi(int i)")
del_items(0x80130740)
SetType(0x80130740, "void MI_Flash__Fi(int i)")
del_items(0x80130B78)
SetType(0x80130B78, "void MI_Flash2__Fi(int i)")
del_items(0x80130DC0)
SetType(0x80130DC0, "void MI_Manashield__Fi(int i)")
del_items(0x801313C8)
SetType(0x801313C8, "void MI_Firemove__Fi(int i)")
del_items(0x80131804)
SetType(0x80131804, "void MI_Guardian__Fi(int i)")
del_items(0x80131BD0)
SetType(0x80131BD0, "void MI_Chain__Fi(int i)")
del_items(0x80131ECC)
SetType(0x80131ECC, "void MI_Misexp__Fi(int i)")
del_items(0x801321CC)
SetType(0x801321CC, "void MI_Acidsplat__Fi(int i)")
del_items(0x80132368)
SetType(0x80132368, "void MI_Teleport__Fi(int i)")
del_items(0x80132730)
SetType(0x80132730, "void MI_Stone__Fi(int i)")
del_items(0x801328DC)
SetType(0x801328DC, "void MI_Boom__Fi(int i)")
del_items(0x801329D4)
SetType(0x801329D4, "void MI_Rhino__Fi(int i)")
del_items(0x80132D80)
SetType(0x80132D80, "void MI_FirewallC__Fi(int i)")
del_items(0x801330E8)
SetType(0x801330E8, "void MI_Infra__Fi(int i)")
del_items(0x801331A0)
SetType(0x801331A0, "void MI_Apoca__Fi(int i)")
del_items(0x80133434)
SetType(0x80133434, "void MI_Wave__Fi(int i)")
del_items(0x80133930)
SetType(0x80133930, "void MI_Nova__Fi(int i)")
del_items(0x80133BF0)
SetType(0x80133BF0, "void MI_Flame__Fi(int i)")
del_items(0x80133DE8)
SetType(0x80133DE8, "void MI_Flamec__Fi(int i)")
del_items(0x80134070)
SetType(0x80134070, "void MI_Cbolt__Fi(int i)")
del_items(0x80134374)
SetType(0x80134374, "void MI_Hbolt__Fi(int i)")
del_items(0x80134680)
SetType(0x80134680, "void MI_Element__Fi(int i)")
del_items(0x80134D38)
SetType(0x80134D38, "void MI_Bonespirit__Fi(int i)")
del_items(0x80135140)
SetType(0x80135140, "void MI_ResurrectBeam__Fi(int i)")
del_items(0x801351B0)
SetType(0x801351B0, "void MI_Rportal__Fi(int i)")
del_items(0x801353D4)
SetType(0x801353D4, "void ProcessMissiles__Fv()")
del_items(0x801357C8)
SetType(0x801357C8, "void ClearMissileSpot__Fi(int mi)")
del_items(0x80135880)
SetType(0x80135880, "void MoveToScrollTarget__7CBlocks(struct CBlocks *this)")
del_items(0x80135894)
SetType(0x80135894, "void MonstPartJump__Fi(int m)")
del_items(0x80135A28)
SetType(0x80135A28, "void DeleteMonster__Fi(int i)")
del_items(0x80135A60)
SetType(0x80135A60, "int M_GetDir__Fi(int i)")
del_items(0x80135ABC)
SetType(0x80135ABC, "void M_StartDelay__Fii(int i, int len)")
del_items(0x80135B04)
SetType(0x80135B04, "void M_StartRAttack__Fiii(int i, int missile_type, int dam)")
del_items(0x80135C1C)
SetType(0x80135C1C, "void M_StartRSpAttack__Fiii(int i, int missile_type, int dam)")
del_items(0x80135D40)
SetType(0x80135D40, "void M_StartSpAttack__Fi(int i)")
del_items(0x80135E28)
SetType(0x80135E28, "void M_StartEat__Fi(int i)")
del_items(0x80135EF8)
SetType(0x80135EF8, "void M_GetKnockback__Fi(int i)")
del_items(0x801360D0)
SetType(0x801360D0, "void M_StartHit__Fiii(int i, int pnum, int dam)")
del_items(0x801363C8)
SetType(0x801363C8, "void M_DiabloDeath__FiUc(int i, unsigned char sendmsg)")
del_items(0x801366EC)
SetType(0x801366EC, "void M2MStartHit__Fiii(int mid, int i, int dam)")
del_items(0x80136998)
SetType(0x80136998, "void MonstStartKill__FiiUc(int i, int pnum, unsigned char sendmsg)")
del_items(0x80136C6C)
SetType(0x80136C6C, "void M2MStartKill__Fii(int i, int mid)")
del_items(0x80137034)
SetType(0x80137034, "void M_StartKill__Fii(int i, int pnum)")
del_items(0x80137124)
SetType(0x80137124, "void M_StartFadein__FiiUc(int i, int md, unsigned char backwards)")
del_items(0x80137278)
SetType(0x80137278, "void M_StartFadeout__FiiUc(int i, int md, unsigned char backwards)")
del_items(0x801373C0)
SetType(0x801373C0, "void M_StartHeal__Fi(int i)")
del_items(0x80137440)
SetType(0x80137440, "void M_ChangeLightOffset__Fi(int monst)")
del_items(0x801374E0)
SetType(0x801374E0, "int M_DoStand__Fi(int i)")
del_items(0x80137548)
SetType(0x80137548, "int M_DoWalk__Fi(int i)")
del_items(0x801377CC)
SetType(0x801377CC, "int M_DoWalk2__Fi(int i)")
del_items(0x801379B8)
SetType(0x801379B8, "int M_DoWalk3__Fi(int i)")
del_items(0x80137C7C)
SetType(0x80137C7C, "void M_TryM2MHit__Fiiiii(int i, int mid, int hper, int mind, int maxd)")
del_items(0x80137E44)
SetType(0x80137E44, "void M_TryH2HHit__Fiiiii(int i, int pnum, int Hit, int MinDam, int MaxDam)")
del_items(0x80138458)
SetType(0x80138458, "int M_DoAttack__Fi(int i)")
del_items(0x801385FC)
SetType(0x801385FC, "int M_DoRAttack__Fi(int i)")
del_items(0x80138774)
SetType(0x80138774, "int M_DoRSpAttack__Fi(int i)")
del_items(0x80138964)
SetType(0x80138964, "int M_DoSAttack__Fi(int i)")
del_items(0x80138A38)
SetType(0x80138A38, "int M_DoFadein__Fi(int i)")
del_items(0x80138B08)
SetType(0x80138B08, "int M_DoFadeout__Fi(int i)")
del_items(0x80138C1C)
SetType(0x80138C1C, "int M_DoHeal__Fi(int i)")
del_items(0x80138CC8)
SetType(0x80138CC8, "int M_DoTalk__Fi(int i)")
del_items(0x80139134)
SetType(0x80139134, "void M_Teleport__Fi(int i)")
del_items(0x80139368)
SetType(0x80139368, "int M_DoGotHit__Fi(int i)")
del_items(0x801393C8)
SetType(0x801393C8, "void DoEnding__Fv()")
del_items(0x80139474)
SetType(0x80139474, "void PrepDoEnding__Fv()")
del_items(0x80139598)
SetType(0x80139598, "int M_DoDeath__Fi(int i)")
del_items(0x80139768)
SetType(0x80139768, "int M_DoSpStand__Fi(int i)")
del_items(0x8013980C)
SetType(0x8013980C, "int M_DoDelay__Fi(int i)")
del_items(0x801398FC)
SetType(0x801398FC, "int M_DoStone__Fi(int i)")
del_items(0x80139980)
SetType(0x80139980, "void M_WalkDir__Fii(int i, int md)")
del_items(0x80139BA8)
SetType(0x80139BA8, "void GroupUnity__Fi(int i)")
del_items(0x80139F94)
SetType(0x80139F94, "unsigned char M_CallWalk__Fii(int i, int md)")
del_items(0x8013A180)
SetType(0x8013A180, "unsigned char M_PathWalk__Fi(int i, char plr2monst[9], unsigned char (*Check)())")
del_items(0x8013A244)
SetType(0x8013A244, "unsigned char M_CallWalk2__Fii(int i, int md)")
del_items(0x8013A358)
SetType(0x8013A358, "unsigned char M_DumbWalk__Fii(int i, int md)")
del_items(0x8013A3AC)
SetType(0x8013A3AC, "unsigned char M_RoundWalk__FiiRi(int i, int md, int *dir)")
del_items(0x8013A54C)
SetType(0x8013A54C, "void MAI_Zombie__Fi(int i)")
del_items(0x8013A744)
SetType(0x8013A744, "void MAI_SkelSd__Fi(int i)")
del_items(0x8013A8DC)
SetType(0x8013A8DC, "void MAI_Snake__Fi(int i)")
del_items(0x8013ACC0)
SetType(0x8013ACC0, "void MAI_Bat__Fi(int i)")
del_items(0x8013B078)
SetType(0x8013B078, "void MAI_SkelBow__Fi(int i)")
del_items(0x8013B25C)
SetType(0x8013B25C, "void MAI_Fat__Fi(int i)")
del_items(0x8013B40C)
SetType(0x8013B40C, "void MAI_Sneak__Fi(int i)")
del_items(0x8013B7F8)
SetType(0x8013B7F8, "void MAI_Fireman__Fi(int i)")
del_items(0x8013BAF0)
SetType(0x8013BAF0, "void MAI_Fallen__Fi(int i)")
del_items(0x8013BE0C)
SetType(0x8013BE0C, "void MAI_Cleaver__Fi(int i)")
del_items(0x8013BEF4)
SetType(0x8013BEF4, "void MAI_Round__FiUc(int i, unsigned char special)")
del_items(0x8013C360)
SetType(0x8013C360, "void MAI_GoatMc__Fi(int i)")
del_items(0x8013C380)
SetType(0x8013C380, "void MAI_Ranged__FiiUc(int i, int missile_type, unsigned char special)")
del_items(0x8013C5A0)
SetType(0x8013C5A0, "void MAI_GoatBow__Fi(int i)")
del_items(0x8013C5C4)
SetType(0x8013C5C4, "void MAI_Succ__Fi(int i)")
del_items(0x8013C5E8)
SetType(0x8013C5E8, "void MAI_AcidUniq__Fi(int i)")
del_items(0x8013C60C)
SetType(0x8013C60C, "void MAI_Scav__Fi(int i)")
del_items(0x8013CA24)
SetType(0x8013CA24, "void MAI_Garg__Fi(int i)")
del_items(0x8013CC04)
SetType(0x8013CC04, "void MAI_RoundRanged__FiiUciUc(int i, int missile_type, unsigned char checkdoors, int dam, int lessmissiles)")
del_items(0x8013D118)
SetType(0x8013D118, "void MAI_Magma__Fi(int i)")
del_items(0x8013D144)
SetType(0x8013D144, "void MAI_Storm__Fi(int i)")
del_items(0x8013D170)
SetType(0x8013D170, "void MAI_Acid__Fi(int i)")
del_items(0x8013D1A0)
SetType(0x8013D1A0, "void MAI_Diablo__Fi(int i)")
del_items(0x8013D1CC)
SetType(0x8013D1CC, "void MAI_RR2__Fiii(int i, int mistype, int dam)")
del_items(0x8013D6CC)
SetType(0x8013D6CC, "void MAI_Mega__Fi(int i)")
del_items(0x8013D6F0)
SetType(0x8013D6F0, "void MAI_SkelKing__Fi(int i)")
del_items(0x8013DC2C)
SetType(0x8013DC2C, "void MAI_Rhino__Fi(int i)")
del_items(0x8013E0D4)
SetType(0x8013E0D4, "void MAI_Counselor__Fi(int i, unsigned char counsmiss[4], int _mx, int _my)")
del_items(0x8013E5A0)
SetType(0x8013E5A0, "void MAI_Garbud__Fi(int i)")
del_items(0x8013E750)
SetType(0x8013E750, "void MAI_Zhar__Fi(int i)")
del_items(0x8013E948)
SetType(0x8013E948, "void MAI_SnotSpil__Fi(int i)")
del_items(0x8013EB7C)
SetType(0x8013EB7C, "void MAI_Lazurus__Fi(int i)")
del_items(0x8013EDF4)
SetType(0x8013EDF4, "void MAI_Lazhelp__Fi(int i)")
del_items(0x8013EF14)
SetType(0x8013EF14, "void MAI_Lachdanan__Fi(int i)")
del_items(0x8013F0A4)
SetType(0x8013F0A4, "void MAI_Warlord__Fi(int i)")
del_items(0x8013F1F0)
SetType(0x8013F1F0, "void DeleteMonsterList__Fv()")
del_items(0x8013F30C)
SetType(0x8013F30C, "void ProcessMonsters__Fv()")
del_items(0x8013F894)
SetType(0x8013F894, "unsigned char DirOK__Fii(int i, int mdir)")
del_items(0x8013FC7C)
SetType(0x8013FC7C, "unsigned char PosOkMissile__Fii(int x, int y)")
del_items(0x8013FCE4)
SetType(0x8013FCE4, "unsigned char CheckNoSolid__Fii(int x, int y)")
del_items(0x8013FD28)
SetType(0x8013FD28, "unsigned char LineClearF__FPFii_Uciiii(unsigned char (*Clear)(), int x1, int y1, int x2, int y2)")
del_items(0x8013FFB0)
SetType(0x8013FFB0, "unsigned char LineClear__Fiiii(int x1, int y1, int x2, int y2)")
del_items(0x8013FFF0)
SetType(0x8013FFF0, "unsigned char LineClearF1__FPFiii_Uciiiii(unsigned char (*Clear)(), int monst, int x1, int y1, int x2, int y2)")
del_items(0x80140284)
SetType(0x80140284, "void M_FallenFear__Fii(int x, int y)")
del_items(0x80140454)
SetType(0x80140454, "void PrintMonstHistory__Fi(int mt)")
del_items(0x8014067C)
SetType(0x8014067C, "void PrintUniqueHistory__Fv()")
del_items(0x801407A0)
SetType(0x801407A0, "void MissToMonst__Fiii(int i, int x, int y)")
del_items(0x80140C04)
SetType(0x80140C04, "unsigned char PosOkMonst2__Fiii(int i, int x, int y)")
del_items(0x80140E20)
SetType(0x80140E20, "unsigned char PosOkMonst3__Fiii(int i, int x, int y)")
del_items(0x80141114)
SetType(0x80141114, "int M_SpawnSkel__Fiii(int x, int y, int dir)")
del_items(0x8014126C)
SetType(0x8014126C, "void TalktoMonster__Fi(int i)")
del_items(0x8014138C)
SetType(0x8014138C, "void SpawnGolum__Fiiii(int i, int x, int y, int mi)")
del_items(0x801415E4)
SetType(0x801415E4, "unsigned char CanTalkToMonst__Fi(int m)")
del_items(0x8014161C)
SetType(0x8014161C, "unsigned char CheckMonsterHit__FiRUc(int m, unsigned char *ret)")
del_items(0x801416E8)
SetType(0x801416E8, "void MAI_Golum__Fi(int i)")
del_items(0x80141A5C)
SetType(0x80141A5C, "unsigned char MAI_Path__Fi(int i)")
del_items(0x80141BC0)
SetType(0x80141BC0, "void M_StartAttack__Fi(int i)")
del_items(0x80141CA8)
SetType(0x80141CA8, "void M_StartWalk__Fiiiiii(int i, int xvel, int yvel, int xadd, int yadd, int EndDir)")
del_items(0x80141E08)
SetType(0x80141E08, "void FreeInvGFX__Fv()")
del_items(0x80141E10)
SetType(0x80141E10, "void InvDrawSlot__Fiii(int X, int Y, int Frame)")
del_items(0x80141E94)
SetType(0x80141E94, "void InvDrawSlotBack__FiiiiUc(int X, int Y, int W, int H, int Flag)")
del_items(0x801420E8)
SetType(0x801420E8, "void InvDrawItem__FiiiUci(int ItemX, int ItemY, int ItemNo, unsigned char StatFlag, int TransFlag)")
del_items(0x801421B8)
SetType(0x801421B8, "void InvDrawSlots__Fv()")
del_items(0x80142490)
SetType(0x80142490, "void PrintStat__FiiPcUc(int Y, int Txt0, char *Txt1, unsigned char Col)")
del_items(0x8014255C)
SetType(0x8014255C, "void DrawInvStats__Fv()")
del_items(0x801430E8)
SetType(0x801430E8, "void DrawInvBack__Fv()")
del_items(0x80143170)
SetType(0x80143170, "void DrawInvCursor__Fv()")
del_items(0x8014364C)
SetType(0x8014364C, "void DrawInvMsg__Fv()")
del_items(0x80143814)
SetType(0x80143814, "void DrawInvUnique__Fv()")
del_items(0x80143938)
SetType(0x80143938, "void DrawInv__Fv()")
del_items(0x80143978)
SetType(0x80143978, "void DrawInvTSK__FP4TASK(struct TASK *T)")
del_items(0x80143CA8)
SetType(0x80143CA8, "void DoThatDrawInv__Fv()")
del_items(0x80144470)
SetType(0x80144470, "unsigned char AutoPlace__FiiiiUc(int pnum, int ii, int sx, int sy, int saveflag)")
del_items(0x80144790)
SetType(0x80144790, "unsigned char SpecialAutoPlace__FiiiiUc(int pnum, int ii, int sx, int sy, int saveflag)")
del_items(0x80144B2C)
SetType(0x80144B2C, "unsigned char GoldAutoPlace__Fi(int pnum)")
del_items(0x80144FFC)
SetType(0x80144FFC, "unsigned char WeaponAutoPlace__Fi(int pnum)")
del_items(0x80145288)
SetType(0x80145288, "int SwapItem__FP10ItemStructT0(struct ItemStruct *a, struct ItemStruct *b)")
del_items(0x80145384)
SetType(0x80145384, "void CheckInvPaste__Fiii(int pnum, int mx, int my)")
del_items(0x80147070)
SetType(0x80147070, "void CheckInvCut__Fiii(int pnum, int mx, int my)")
del_items(0x80147B20)
SetType(0x80147B20, "void RemoveInvItem__Fii(int pnum, int iv)")
del_items(0x80147DC8)
SetType(0x80147DC8, "void RemoveSpdBarItem__Fii(int pnum, int iv)")
del_items(0x80147EC8)
SetType(0x80147EC8, "void CheckInvScrn__Fv()")
del_items(0x80147F40)
SetType(0x80147F40, "void CheckItemStats__Fi(int pnum)")
del_items(0x80147FC4)
SetType(0x80147FC4, "void CheckBookLevel__Fi(int pnum)")
del_items(0x801480F8)
SetType(0x801480F8, "void CheckQuestItem__Fi(int pnum)")
del_items(0x80148520)
SetType(0x80148520, "void InvGetItem__Fii(int pnum, int ii)")
del_items(0x8014881C)
SetType(0x8014881C, "void AutoGetItem__Fii(int pnum, int ii)")
del_items(0x8014928C)
SetType(0x8014928C, "int FindGetItem__FiUsi(int idx, unsigned short ci, int iseed)")
del_items(0x80149340)
SetType(0x80149340, "void SyncGetItem__FiiiUsi(int x, int y, int idx, unsigned short ci, int iseed)")
del_items(0x801494CC)
SetType(0x801494CC, "unsigned char TryInvPut__Fv()")
del_items(0x80149694)
SetType(0x80149694, "int InvPutItem__Fiii(int pnum, int x, int y)")
del_items(0x80149B3C)
SetType(0x80149B3C, "int SyncPutItem__FiiiiUsiUciiiiiUl(int pnum, int x, int y, int idx, int icreateinfo, int iseed, int Id, int dur, int mdur, int ch, int mch, int ivalue, unsigned long ibuff)")
del_items(0x8014A098)
SetType(0x8014A098, "char CheckInvHLight__Fv()")
del_items(0x8014A3E0)
SetType(0x8014A3E0, "void RemoveScroll__Fi(int pnum)")
del_items(0x8014A5C4)
SetType(0x8014A5C4, "unsigned char UseScroll__Fv()")
del_items(0x8014A82C)
SetType(0x8014A82C, "void UseStaffCharge__FP12PlayerStruct(struct PlayerStruct *ptrplr)")
del_items(0x8014A894)
SetType(0x8014A894, "unsigned char UseStaff__Fv()")
del_items(0x8014A954)
SetType(0x8014A954, "void StartGoldDrop__Fv()")
del_items(0x8014AA50)
SetType(0x8014AA50, "unsigned char UseInvItem__Fii(int pnum, int cii)")
del_items(0x8014AF74)
SetType(0x8014AF74, "void DoTelekinesis__Fv()")
del_items(0x8014B09C)
SetType(0x8014B09C, "long CalculateGold__Fi(int pnum)")
del_items(0x8014B1D4)
SetType(0x8014B1D4, "unsigned char DropItemBeforeTrig__Fv()")
del_items(0x8014B22C)
SetType(0x8014B22C, "void ControlInv__Fv()")
del_items(0x8014B50C)
SetType(0x8014B50C, "void InvGetItemWH__Fi(int Pos)")
del_items(0x8014B600)
SetType(0x8014B600, "void InvAlignObject__Fv()")
del_items(0x8014B7B4)
SetType(0x8014B7B4, "void InvSetItemCurs__Fv()")
del_items(0x8014B948)
SetType(0x8014B948, "void InvMoveCursLeft__Fv()")
del_items(0x8014BB34)
SetType(0x8014BB34, "void InvMoveCursRight__Fv()")
del_items(0x8014BE5C)
SetType(0x8014BE5C, "void InvMoveCursUp__Fv()")
del_items(0x8014C054)
SetType(0x8014C054, "void InvMoveCursDown__Fv()")
del_items(0x8014C37C)
SetType(0x8014C37C, "void DumpMonsters__7CBlocks(struct CBlocks *this)")
del_items(0x8014C3A4)
SetType(0x8014C3A4, "void Flush__4CPad(struct CPad *this)")
del_items(0x8014C3C8)
SetType(0x8014C3C8, "void SetRGB__6DialogUcUcUc(struct Dialog *this, unsigned char R, unsigned char G, unsigned char B)")
del_items(0x8014C3E8)
SetType(0x8014C3E8, "void SetBack__6Dialogi(struct Dialog *this, int Type)")
del_items(0x8014C3F0)
SetType(0x8014C3F0, "void SetBorder__6Dialogi(struct Dialog *this, int Type)")
del_items(0x8014C3F8)
SetType(0x8014C3F8, "int SetOTpos__6Dialogi(struct Dialog *this, int OT)")
del_items(0x8014C404)
SetType(0x8014C404, "void ___6Dialog(struct Dialog *this, int __in_chrg)")
del_items(0x8014C42C)
SetType(0x8014C42C, "struct Dialog *__6Dialog(struct Dialog *this)")
del_items(0x8014C488)
SetType(0x8014C488, "void StartAutomap__Fv()")
del_items(0x8014C4A0)
SetType(0x8014C4A0, "void AutomapUp__Fv()")
del_items(0x8014C4B8)
SetType(0x8014C4B8, "void AutomapDown__Fv()")
del_items(0x8014C4D0)
SetType(0x8014C4D0, "void AutomapLeft__Fv()")
del_items(0x8014C4E8)
SetType(0x8014C4E8, "void AutomapRight__Fv()")
del_items(0x8014C500)
SetType(0x8014C500, "struct LINE_F2 *AMGetLine__FUcUcUc(unsigned char R, unsigned char G, unsigned char B)")
del_items(0x8014C5AC)
SetType(0x8014C5AC, "void AmDrawLine__Fiiii(int x0, int y0, int x1, int y1)")
del_items(0x8014C614)
SetType(0x8014C614, "void AmDrawPlayer__Fiiii(int x0, int y0, int x1, int y1)")
del_items(0x8014C67C)
SetType(0x8014C67C, "void DrawAutomapPlr__Fv()")
del_items(0x8014CA00)
SetType(0x8014CA00, "void DrawAutoMapVertWall__Fiii(int X, int Y, int Length)")
del_items(0x8014CAD4)
SetType(0x8014CAD4, "void DrawAutoMapHorzWall__Fiii(int X, int Y, int Length)")
del_items(0x8014CBA8)
SetType(0x8014CBA8, "void DrawAutoMapVertDoor__Fii(int X, int Y)")
del_items(0x8014CD7C)
SetType(0x8014CD7C, "void DrawAutoMapHorzDoor__Fii(int X, int Y)")
del_items(0x8014CF54)
SetType(0x8014CF54, "void DrawAutoMapVertGrate__Fii(int X, int Y)")
del_items(0x8014D008)
SetType(0x8014D008, "void DrawAutoMapHorzGrate__Fii(int X, int Y)")
del_items(0x8014D0BC)
SetType(0x8014D0BC, "void DrawAutoMapSquare__Fii(int X, int Y)")
del_items(0x8014D204)
SetType(0x8014D204, "void DrawAutoMapStairs__Fii(int X, int Y)")
del_items(0x8014D404)
SetType(0x8014D404, "void DrawAutomap__Fv()")
del_items(0x8014D820)
SetType(0x8014D820, "void PRIM_GetPrim__FPP7LINE_F2(struct LINE_F2 **Prim)")
|
info = {
'driver_path' : "\\\\webdriver\\\\content\\\\geckodriver.exe",
'profile_path' : "\\\\webdriver\\\\content\\\\firefox_profile",
'primary_url' : "https://web.whatsapp.com",
'send_url' : "https://web.whatsapp.com/send?phone={}&text={}",
'send_button_class_name' : "_2Ujuu"
}
|
class Group(object):
def __init__(self, _name):
self.name = _name
self.groups = []
self.users = []
def add_group(self, group):
self.groups.append(group)
def add_user(self, user):
self.users.append(user)
def get_groups(self):
return self.groups
def get_users(self):
return self.users
def get_name(self):
return self.name
def is_user_in_group(user=None, group=None):
"""
Return True if user is in the group, False otherwise.
Args:
user(str): user name/id
group(class:Group): group to check user membership against
"""
if user == None:
return "User input missing"
elif group == None:
return "Group input missing"
if not isinstance(group, Group):
return "Invalid group!"
users = group.get_users()
groups = group.get_groups()
for sub_user in users:
if sub_user == user:
return True
for sub_group in groups:
return is_user_in_group(user, sub_group)
return False
# all assert should be pass
parent = Group("parent")
assert(is_user_in_group("parent", parent) == False)
child = Group("child")
sub_child = Group("subchild")
sub_sub_child = Group("sub2child")
sub_sub_child.add_user("sub2child")
assert(is_user_in_group("sub2child", parent) == False)
sub_child_user = "sub_child_user"
sub_child.add_user(sub_child_user)
sub_child.add_user("youngqueenz")
sub_child.add_group(sub_sub_child)
assert(is_user_in_group("sub2child", sub_child) == True)
child.add_group(sub_child)
parent.add_group(child)
assert(is_user_in_group("youngqueenz", parent) == True)
assert(is_user_in_group('youngqueenz', 'group') == "Invalid group!")
assert(is_user_in_group('youngqueenz') == 'Group input missing')
assert(is_user_in_group(group=parent) == "User input missing")
|
aluno = {}
print()
aluno['nome'] = str(input('Nome do Aluno: '))
aluno['média'] = float(input(f'Média do {aluno["nome"]}: '))
if aluno['média'] >= 7:
aluno['Situação'] = 'APROVADO'
elif 5 <= aluno['média'] < 7:
aluno['situação'] = 'RECUPERAÇÃO'
else:
aluno['situação'] = 'REPROVADO'
print('*'*40)
for k, v in aluno.items():
print(f' -> {k} é igual a {v}.')
|
# -*- coding: utf-8 -*-
info = {
"%%cardinal-alternate2-13": {
"(10, 19)": "零一=%spellout-cardinal-alternate2=;",
"(20, 999999999999)": "零=%spellout-cardinal-alternate2=;",
"(1000000000000, 'inf')": "=%spellout-cardinal-alternate2=;"
},
"%%cardinal-alternate2-2": {
"(1, 9)": "零=%spellout-numbering=;",
"(10, 19)": "一=%spellout-numbering=;",
"(20, 'inf')": "=%spellout-numbering=;"
},
"%%cardinal-alternate2-3": {
"(1, 9)": "零=%spellout-numbering=;",
"(10, 19)": "零一=%spellout-cardinal-alternate2=;",
"(20, 99)": "零=%spellout-cardinal-alternate2=;",
"(100, 'inf')": "=%spellout-cardinal-alternate2=;"
},
"%%cardinal-alternate2-4": {
"(1, 9)": "零=%spellout-numbering=;",
"(10, 19)": "零一=%spellout-cardinal-alternate2=;",
"(20, 999)": "零=%spellout-cardinal-alternate2=;",
"(1000, 'inf')": "=%spellout-cardinal-alternate2=;"
},
"%%cardinal-alternate2-5": {
"(1, 9)": "零=%spellout-numbering=;",
"(10, 19)": "零一=%spellout-cardinal-alternate2=;",
"(20, 9999)": "零=%spellout-cardinal-alternate2=;",
"(10000, 'inf')": "=%spellout-cardinal-alternate2=;"
},
"%%cardinal-alternate2-8": {
"(1, 9)": "零=%spellout-numbering=;",
"(10, 19)": "零一=%spellout-cardinal-alternate2=;",
"(20, 9999999)": "零=%spellout-cardinal-alternate2=;",
"(10000000, 'inf')": "=%spellout-cardinal-alternate2=;"
},
"%%cardinal13": {
"(10, 19)": "零一=%spellout-cardinal=;",
"(20, 999999999999)": "零=%spellout-cardinal=;",
"(1000000000000, 'inf')": "=%spellout-cardinal=;"
},
"%%cardinal2": {
"(1, 9)": "零=%spellout-numbering=;",
"(10, 19)": "一=%spellout-numbering=;",
"(20, 'inf')": "=%spellout-numbering=;"
},
"%%cardinal3": {
"(1, 9)": "零=%spellout-numbering=;",
"(10, 19)": "零一=%spellout-cardinal=;",
"(20, 99)": "零=%spellout-cardinal=;",
"(100, 'inf')": "=%spellout-cardinal=;"
},
"%%cardinal4": {
"(1, 9)": "零=%spellout-numbering=;",
"(10, 19)": "零一=%spellout-cardinal=;",
"(20, 999)": "零=%spellout-cardinal=;",
"(1000, 'inf')": "=%spellout-cardinal=;"
},
"%%cardinal5": {
"(1, 9)": "零=%spellout-numbering=;",
"(10, 19)": "零一=%spellout-cardinal=;",
"(20, 9999)": "零=%spellout-cardinal=;",
"(10000, 'inf')": "=%spellout-cardinal=;"
},
"%%cardinal8": {
"(1, 9)": "零=%spellout-numbering=;",
"(10, 19)": "零一=%spellout-cardinal=;",
"(20, 9999999)": "零=%spellout-cardinal=;",
"(10000000, 'inf')": "=%spellout-cardinal=;"
},
"%%financialnumber13": {
"(10, 19)": "零壹=%spellout-cardinal-financial=;",
"(20, 999999999999)": "零=%spellout-cardinal-financial=;",
"(1000000000000, 'inf')": "=%spellout-cardinal-financial=;"
},
"%%financialnumber2": {
"(1, 9)": "零=%spellout-cardinal-financial=;",
"(10, 19)": "壹=%spellout-cardinal-financial=;",
"(20, 'inf')": "=%spellout-cardinal-financial=;"
},
"%%financialnumber3": {
"(1, 9)": "零=%spellout-cardinal-financial=;",
"(10, 19)": "零壹=%spellout-cardinal-financial=;",
"(20, 99)": "零=%spellout-cardinal-financial=;",
"(100, 'inf')": "=%spellout-cardinal-financial=;"
},
"%%financialnumber4": {
"(1, 9)": "零=%spellout-cardinal-financial=;",
"(10, 19)": "零壹=%spellout-cardinal-financial=;",
"(20, 999)": "零=%spellout-cardinal-financial=;",
"(1000, 'inf')": "=%spellout-cardinal-financial=;"
},
"%%financialnumber5": {
"(1, 9)": "零=%spellout-cardinal-financial=;",
"(10, 19)": "零壹=%spellout-cardinal-financial=;",
"(20, 9999)": "零=%spellout-cardinal-financial=;",
"(10000, 'inf')": "=%spellout-cardinal-financial=;"
},
"%%financialnumber8": {
"(1, 9)": "零=%spellout-cardinal-financial=;",
"(10, 19)": "零壹=%spellout-cardinal-financial=;",
"(20, 9999999)": "零=%spellout-cardinal-financial=;",
"(10000000, 'inf')": "=%spellout-cardinal-financial=;"
},
"%%number13": {
"(10, 19)": "〇一=%spellout-numbering=;",
"(20, 999999999999)": "〇=%spellout-numbering=;",
"(1000000000000, 'inf')": "=%spellout-numbering=;"
},
"%%number2": {
"(1, 9)": "〇=%spellout-numbering=;",
"(10, 19)": "一=%spellout-numbering=;",
"(20, 'inf')": "=%spellout-numbering=;"
},
"%%number3": {
"(1, 9)": "〇=%spellout-numbering=;",
"(10, 19)": "〇一=%spellout-numbering=;",
"(20, 99)": "〇=%spellout-numbering=;",
"(100, 'inf')": "=%spellout-numbering=;"
},
"%%number4": {
"(1, 9)": "〇=%spellout-numbering=;",
"(10, 19)": "〇一=%spellout-numbering=;",
"(20, 999)": "〇=%spellout-numbering=;",
"(1000, 'inf')": "=%spellout-numbering=;"
},
"%%number5": {
"(1, 9)": "〇=%spellout-numbering=;",
"(10, 19)": "〇一=%spellout-numbering=;",
"(20, 9999)": "〇=%spellout-numbering=;",
"(10000, 'inf')": "=%spellout-numbering=;"
},
"%%number8": {
"(1, 9)": "〇=%spellout-numbering=;",
"(10, 19)": "〇一=%spellout-numbering=;",
"(20, 9999999)": "〇=%spellout-numbering=;",
"(10000000, 'inf')": "=%spellout-numbering=;"
},
"%%numbering-days": {
"(0, 20)": "=%spellout-numbering=;",
"(21, 29)": "廿>>;",
"30": "<<十;",
"(31, 39)": "丗>>;",
"40": "<<十;",
"(41, 49)": "卌>>;",
"(50, 'inf')": "=%spellout-numbering=;"
},
"%%spellout-numbering-year-digits": {
"(0, 9)": "=%spellout-numbering=;",
"(10, 99)": "<<>>>;",
"(100, 999)": "<<>>>;",
"(1000, 'inf')": "<<>>>;"
},
"%spellout-cardinal": {
"0": "零;",
"1": "一;",
"2": "二;",
"3": "三;",
"4": "四;",
"5": "五;",
"6": "六;",
"7": "七;",
"8": "八;",
"9": "九;",
"(10, 99)": "=%spellout-numbering=;",
"(100, 999)": "<<百[>%%cardinal2>];",
"(1000, 9999)": "<<千[>%%cardinal3>];",
"(10000, 99999999)": "<<万[>%%cardinal4>];",
"(100000000, 999999999999)": "<<亿[>%%cardinal5>];",
"(1000000000000, 9999999999999999)": "<<兆[>%%cardinal8>];",
"(10000000000000000, 999999999999999999)": "<<京[>%%cardinal13>];",
"(1000000000000000000, 'inf')": "=#,##0=;"
},
"%spellout-cardinal-alternate2": {
"3": "三;",
"4": "四;",
"5": "五;",
"6": "六;",
"7": "七;",
"8": "八;",
"9": "九;",
"(10, 99)": "=%spellout-numbering=;",
"(100, 999)": "<<百[>%%cardinal-alternate2-2>];",
"(1000, 9999)": "<<千[>%%cardinal-alternate2-3>];",
"(10000, 99999999)": "<<万[>%%cardinal-alternate2-4>];",
"(100000000, 999999999999)": "<<亿[>%%cardinal-alternate2-5>];",
"(1000000000000, 9999999999999999)": "<<兆[>%%cardinal-alternate2-8>];",
"(10000000000000000, 999999999999999999)": "<<京[>%%cardinal-alternate2-13>];",
"(1000000000000000000, 'inf')": "=#,##0=;"
},
"%spellout-cardinal-financial": {
"0": "零;",
"1": "壹;",
"2": "贰;",
"3": "叁;",
"4": "肆;",
"5": "伍;",
"6": "陆;",
"7": "柒;",
"8": "捌;",
"9": "玖;",
"(10, 19)": "拾[>>];",
"(20, 99)": "<<拾[>>];",
"(100, 999)": "<<佰[>%%financialnumber2>];",
"(1000, 9999)": "<<仟[>%%financialnumber3>];",
"(10000, 99999999)": "<<万[>%%financialnumber4>];",
"(100000000, 999999999999)": "<<亿[>%%financialnumber5>];",
"(1000000000000, 9999999999999999)": "<<兆[>%%financialnumber8>];",
"(10000000000000000, 999999999999999999)": "<<京[>%%financialnumber13>];",
"(1000000000000000000, 'inf')": "=#,##0=;"
},
"%spellout-numbering": {
"0": "〇;",
"1": "一;",
"2": "二;",
"3": "三;",
"4": "四;",
"5": "五;",
"6": "六;",
"7": "七;",
"8": "八;",
"9": "九;",
"(10, 19)": "十[>>];",
"(20, 99)": "<<十[>>];",
"(100, 999)": "<<百[>%%number2>];",
"(1000, 9999)": "<<千[>%%number3>];",
"(10000, 99999999)": "<<万[>%%number4>];",
"(100000000, 999999999999)": "<<亿[>%%number5>];",
"(1000000000000, 9999999999999999)": "<<兆[>%%number8>];",
"(10000000000000000, 999999999999999999)": "<<京[>%%number13>];",
"(1000000000000000000, 'inf')": "=#,##0=;"
},
"%spellout-numbering-days": {
"0": "〇;",
"(1, 10)": "初=%spellout-numbering=;",
"(11, 20)": "=%spellout-numbering=;",
"(21, 'inf')": "=%%numbering-days=;"
},
"%spellout-numbering-year": {
"(0, 999)": "=%spellout-numbering=;",
"(1000, 9999)": "=%%spellout-numbering-year-digits=;",
"(10000, 'inf')": "=%spellout-numbering=;"
},
"%spellout-ordinal": {
"(0, 'inf')": "第=%spellout-numbering=;"
},
"cardinal-alternate2-13": {
"(1, 'inf')": "零=%spellout-numbering=;"
},
"cardinal13": {
"(1, 'inf')": "零=%spellout-numbering=;"
},
"financialnumber13": {
"(1, 'inf')": "零=%spellout-cardinal-financial=;"
},
"number13": {
"(1, 'inf')": "〇=%spellout-numbering=;"
},
"spellout-cardinal-alternate2": {
"(2, 'inf')": "两;"
}
}
|
def preencherInventario(lista):
resp="S"
while resp == "S":
equipamento=[input("Equipamento: "),
float(input("Valor: ")),
int(input("Número Serial: ")),
input("Departamento: ")]
lista.append(equipamento)
resp = input('Digite "S" para continuar: ').upper()
def preencherInventario(lista):
resp="S"
while resp == "S":
equipamento=[input("Equipamento: "),
float(input("Valor: ")),
int(input("Número Serial: ")),
input("Departamento: ")]
lista.append(equipamento)
resp = input('Digite "S" para continuar: ').upper()
def exibirInventario(lista):
for elemento in lista:
print("Nome.........: ", elemento[0])
print("Valor........: ", elemento[1])
print("Serial.......: ", elemento[2])
print("Departamento.: ", elemento[3])
def localizarPorNome(lista):
busca=input("Digite o nome do equipamento que deseja buscar: ")
for elemento in lista:
if busca==elemento[0]:
print("Valor..: ", elemento[1])
print("Serial.:", elemento[2])
def depreciarPorNome(lista, porc):
depreciacao=input("Digite o nome do equipamento que será depreciado: ")
for elemento in lista:
if depreciacao == elemento[0]:
print("Valor antigo: ", elemento[1])
elemento[1] = elemento[1] * (1-porc/100)
print("Novo valor: ", elemento[1])
def excluirPorSerial(lista):
serial=int(input("Digite o serial do equipamento que será excluido: "))
for elemento in lista:
if elemento[2]==serial:
lista.remove(elemento)
return "Itens excluídos."
def resumirValores(lista):
valores=[]
for elemento in lista:
valores.append(elemento[1])
if len(valores)>0:
print("O equipamento mais caro custa: ", max(valores))
print("O equipamento mais barato custa: ", min(valores))
print("O total de equipamentos é de: ", sum(valores))
|
config = {
"colors": {
"WHITE": (255, 255, 255),
"RED": (255, 0, 0),
"GREEN": (0, 255, 0),
"BLACK": (0, 0, 0)
},
"globals": {
"WIDTH": 600,
"HEIGHT": 400,
"BALL_RADIUS": 20,
"PAD_WIDTH": 8,
"PAD_HEIGHT": 80
}
}
|
"""Mel cepstral distortion (MCD) computations in python."""
# Copyright 2014, 2015, 2016, 2017 Matt Shannon
# This file is part of mcd.
# See `License` for details of license and warranty.
__version__ = '0.5.dev1'
|
##############################################################################
# Parte do livro Introdução à Programação com Python
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2020
# Primeira edição - Novembro/2010 - ISBN 978-85-7522-250-8
# Segunda edição - Junho/2014 - ISBN 978-85-7522-408-3
# Terceira Edição - Janeiro/2019 - ISBN 978-85-7522-718-3
#
# Site: https://python.nilo.pro.br/
#
# Arquivo: exercicios3\capitulo 09\exercicio-09-07.py
##############################################################################
# Uma boa fonte de textos para teste é o projeto Gutemberg
# http://www.gutenberg.org/
# Não esqueça de configurar o encoding do arquivo.
#
# Este programa foi testado com Moby Dick
# http://www.gutenberg.org/cache/epub/2701/pg2701.txt
# Gravado com o nome de mobydick.txt
#
LARGURA = 76
LINHAS = 60
NOME_DO_ARQUIVO = "mobydick.txt"
def verifica_pagina(arquivo, linha, pagina):
if linha == LINHAS:
rodapé = f"= {NOME_DO_ARQUIVO} - Página: {pagina} ="
arquivo.write(rodapé.center(LARGURA - 1) + "\n")
pagina += 1
linha = 1
return linha, pagina
def escreve(arquivo, linha, nlinhas, pagina):
arquivo.write(linha + "\n")
return verifica_pagina(arquivo, nlinhas + 1, pagina)
entrada = open(NOME_DO_ARQUIVO, encoding="utf-8")
saída = open("saida_paginada.txt", "w", encoding="utf-8")
pagina = 1
linhas = 1
for linha in entrada.readlines():
palavras = linha.rstrip().split(" ")
linha = ""
for p in palavras:
p = p.strip()
if len(linha) + len(p) + 1 > LARGURA:
linhas, pagina = escreve(saída, linha, linhas, pagina)
linha = ""
linha += p + " "
if linha != "":
linhas, pagina = escreve(saída, linha, linhas, pagina)
# Para imprimir o número na última página
while(linhas != 1):
linhas, pagina = escreve(saída, "", linhas, pagina)
entrada.close()
saída.close()
|
#!/usr/bin/env python
# Income Share Agreement
min = 50000.0
max = 88235.3
max_pay = 30000.0
max_income = 2117647.06
monthly_increment = (max - min)/23
print('\n24 months maximum payment with a minimum of $50,000 annual income')
print('Maximum income for 24 month repayment is $88,235.30\n')
print('For incomes exceeding $88,235.30 see chart below,\nfor reduced payback period on $30,000 repayment cap')
print('\nmonth\tannual_income\tless_isa\tmonthly\t\tless_isa\tmonthly_payment\n')
for n in range(24):
print(
"%d\t%.2f\t%.2f\t%.2f\t\t%.2f\t\t%.2f" % (n+1, (min+(n*monthly_increment)), (min+(n*monthly_increment))*0.83, (min+(n*monthly_increment))/12, (min+(n*monthly_increment))*0.83/12, ((min+(n*monthly_increment))/12) - (min+(n*monthly_increment))*0.83/12
))
print('\n')
print('$30,000 Maximum Shared Income\n')
print('total\t\tannual\t\tmonthly\npayments\tincome\t\tpayment\n')
for n in range(24,0,-1):
print('%d\t\t%.2f\t%.2f' % (n, max/(max*n/max_income), max_pay/n))
print('\n')
|
#
# PySNMP MIB module IANA-IPPM-METRICS-REGISTRY-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/IANA-IPPM-METRICS-REGISTRY-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:38:44 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueRangeConstraint, ValueSizeConstraint, SingleValueConstraint, ConstraintsIntersection, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsIntersection", "ConstraintsUnion")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
TimeTicks, mib_2, ObjectIdentity, NotificationType, IpAddress, Integer32, MibIdentifier, iso, Unsigned32, ModuleIdentity, Bits, Gauge32, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter32, Counter64 = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "mib-2", "ObjectIdentity", "NotificationType", "IpAddress", "Integer32", "MibIdentifier", "iso", "Unsigned32", "ModuleIdentity", "Bits", "Gauge32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter32", "Counter64")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
ianaIppmMetricsRegistry = ModuleIdentity((1, 3, 6, 1, 2, 1, 128))
ianaIppmMetricsRegistry.setRevisions(('2015-08-14 00:00', '2014-05-22 00:00', '2010-09-07 00:00', '2009-09-02 00:00', '2009-04-20 00:00', '2006-12-04 00:00', '2005-04-12 00:00',))
if mibBuilder.loadTexts: ianaIppmMetricsRegistry.setLastUpdated('201508140000Z')
if mibBuilder.loadTexts: ianaIppmMetricsRegistry.setOrganization('IANA')
ianaIppmMetrics = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1))
if mibBuilder.loadTexts: ianaIppmMetrics.setStatus('current')
ietfInstantUnidirConnectivity = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 1))
if mibBuilder.loadTexts: ietfInstantUnidirConnectivity.setStatus('current')
ietfInstantBidirConnectivity = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 2))
if mibBuilder.loadTexts: ietfInstantBidirConnectivity.setStatus('current')
ietfIntervalUnidirConnectivity = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 3))
if mibBuilder.loadTexts: ietfIntervalUnidirConnectivity.setStatus('current')
ietfIntervalBidirConnectivity = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 4))
if mibBuilder.loadTexts: ietfIntervalBidirConnectivity.setStatus('current')
ietfIntervalTemporalConnectivity = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 5))
if mibBuilder.loadTexts: ietfIntervalTemporalConnectivity.setStatus('current')
ietfOneWayDelay = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 6))
if mibBuilder.loadTexts: ietfOneWayDelay.setStatus('current')
ietfOneWayDelayPoissonStream = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 7))
if mibBuilder.loadTexts: ietfOneWayDelayPoissonStream.setStatus('current')
ietfOneWayDelayPercentile = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 8))
if mibBuilder.loadTexts: ietfOneWayDelayPercentile.setStatus('current')
ietfOneWayDelayMedian = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 9))
if mibBuilder.loadTexts: ietfOneWayDelayMedian.setStatus('current')
ietfOneWayDelayMinimum = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 10))
if mibBuilder.loadTexts: ietfOneWayDelayMinimum.setStatus('current')
ietfOneWayDelayInversePercentile = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 11))
if mibBuilder.loadTexts: ietfOneWayDelayInversePercentile.setStatus('current')
ietfOneWayPktLoss = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 12))
if mibBuilder.loadTexts: ietfOneWayPktLoss.setStatus('current')
ietfOneWayPktLossPoissonStream = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 13))
if mibBuilder.loadTexts: ietfOneWayPktLossPoissonStream.setStatus('current')
ietfOneWayPktLossAverage = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 14))
if mibBuilder.loadTexts: ietfOneWayPktLossAverage.setStatus('current')
ietfRoundTripDelay = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 15))
if mibBuilder.loadTexts: ietfRoundTripDelay.setStatus('current')
ietfRoundTripDelayPoissonStream = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 16))
if mibBuilder.loadTexts: ietfRoundTripDelayPoissonStream.setStatus('current')
ietfRoundTripDelayPercentile = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 17))
if mibBuilder.loadTexts: ietfRoundTripDelayPercentile.setStatus('current')
ietfRoundTripDelayMedian = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 18))
if mibBuilder.loadTexts: ietfRoundTripDelayMedian.setStatus('current')
ietfRoundTripDelayMinimum = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 19))
if mibBuilder.loadTexts: ietfRoundTripDelayMinimum.setStatus('current')
ietfRoundTripDelayInvPercentile = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 20))
if mibBuilder.loadTexts: ietfRoundTripDelayInvPercentile.setStatus('current')
ietfOneWayLossDistanceStream = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 21))
if mibBuilder.loadTexts: ietfOneWayLossDistanceStream.setStatus('current')
ietfOneWayLossPeriodStream = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 22))
if mibBuilder.loadTexts: ietfOneWayLossPeriodStream.setStatus('current')
ietfOneWayLossNoticeableRate = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 23))
if mibBuilder.loadTexts: ietfOneWayLossNoticeableRate.setStatus('current')
ietfOneWayLossPeriodTotal = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 24))
if mibBuilder.loadTexts: ietfOneWayLossPeriodTotal.setStatus('current')
ietfOneWayLossPeriodLengths = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 25))
if mibBuilder.loadTexts: ietfOneWayLossPeriodLengths.setStatus('current')
ietfOneWayInterLossPeriodLengths = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 26))
if mibBuilder.loadTexts: ietfOneWayInterLossPeriodLengths.setStatus('current')
ietfOneWayIpdv = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 27))
if mibBuilder.loadTexts: ietfOneWayIpdv.setStatus('current')
ietfOneWayIpdvPoissonStream = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 28))
if mibBuilder.loadTexts: ietfOneWayIpdvPoissonStream.setStatus('current')
ietfOneWayIpdvPercentile = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 29))
if mibBuilder.loadTexts: ietfOneWayIpdvPercentile.setStatus('current')
ietfOneWayIpdvInversePercentile = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 30))
if mibBuilder.loadTexts: ietfOneWayIpdvInversePercentile.setStatus('current')
ietfOneWayIpdvJitter = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 31))
if mibBuilder.loadTexts: ietfOneWayIpdvJitter.setStatus('current')
ietfOneWayPeakToPeakIpdv = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 32))
if mibBuilder.loadTexts: ietfOneWayPeakToPeakIpdv.setStatus('current')
ietfOneWayDelayPeriodicStream = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 33))
if mibBuilder.loadTexts: ietfOneWayDelayPeriodicStream.setStatus('current')
ietfReorderedSingleton = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 34))
if mibBuilder.loadTexts: ietfReorderedSingleton.setStatus('current')
ietfReorderedPacketRatio = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 35))
if mibBuilder.loadTexts: ietfReorderedPacketRatio.setStatus('current')
ietfReorderingExtent = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 36))
if mibBuilder.loadTexts: ietfReorderingExtent.setStatus('current')
ietfReorderingLateTimeOffset = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 37))
if mibBuilder.loadTexts: ietfReorderingLateTimeOffset.setStatus('current')
ietfReorderingByteOffset = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 38))
if mibBuilder.loadTexts: ietfReorderingByteOffset.setStatus('current')
ietfReorderingGap = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 39))
if mibBuilder.loadTexts: ietfReorderingGap.setStatus('current')
ietfReorderingGapTime = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 40))
if mibBuilder.loadTexts: ietfReorderingGapTime.setStatus('current')
ietfReorderingFreeRunx = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 41))
if mibBuilder.loadTexts: ietfReorderingFreeRunx.setStatus('current')
ietfReorderingFreeRunq = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 42))
if mibBuilder.loadTexts: ietfReorderingFreeRunq.setStatus('current')
ietfReorderingFreeRunp = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 43))
if mibBuilder.loadTexts: ietfReorderingFreeRunp.setStatus('current')
ietfReorderingFreeRuna = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 44))
if mibBuilder.loadTexts: ietfReorderingFreeRuna.setStatus('current')
ietfnReordering = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 45))
if mibBuilder.loadTexts: ietfnReordering.setStatus('current')
ietfOneWayPacketArrivalCount = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 46))
if mibBuilder.loadTexts: ietfOneWayPacketArrivalCount.setStatus('current')
ietfOneWayPacketDuplication = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 47))
if mibBuilder.loadTexts: ietfOneWayPacketDuplication.setStatus('current')
ietfOneWayPacketDuplicationPoissonStream = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 48))
if mibBuilder.loadTexts: ietfOneWayPacketDuplicationPoissonStream.setStatus('current')
ietfOneWayPacketDuplicationPeriodicStream = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 49))
if mibBuilder.loadTexts: ietfOneWayPacketDuplicationPeriodicStream.setStatus('current')
ietfOneWayPacketDuplicationFraction = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 50))
if mibBuilder.loadTexts: ietfOneWayPacketDuplicationFraction.setStatus('current')
ietfOneWayReplicatedPacketRate = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 51))
if mibBuilder.loadTexts: ietfOneWayReplicatedPacketRate.setStatus('current')
ietfSpatialOneWayDelayVector = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 52))
if mibBuilder.loadTexts: ietfSpatialOneWayDelayVector.setStatus('current')
ietfSpatialPacketLossVector = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 53))
if mibBuilder.loadTexts: ietfSpatialPacketLossVector.setStatus('current')
ietfSpatialOneWayIpdvVector = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 54))
if mibBuilder.loadTexts: ietfSpatialOneWayIpdvVector.setStatus('current')
ietfSegmentOneWayDelayStream = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 55))
if mibBuilder.loadTexts: ietfSegmentOneWayDelayStream.setStatus('current')
ietfSegmentPacketLossStream = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 56))
if mibBuilder.loadTexts: ietfSegmentPacketLossStream.setStatus('current')
ietfSegmentIpdvPrevStream = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 57))
if mibBuilder.loadTexts: ietfSegmentIpdvPrevStream.setStatus('current')
ietfSegmentIpdvMinStream = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 58))
if mibBuilder.loadTexts: ietfSegmentIpdvMinStream.setStatus('current')
ietfOneToGroupDelayVector = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 59))
if mibBuilder.loadTexts: ietfOneToGroupDelayVector.setStatus('current')
ietfOneToGroupPacketLossVector = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 60))
if mibBuilder.loadTexts: ietfOneToGroupPacketLossVector.setStatus('current')
ietfOneToGroupIpdvVector = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 61))
if mibBuilder.loadTexts: ietfOneToGroupIpdvVector.setStatus('current')
ietfOnetoGroupReceiverNMeanDelay = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 62))
if mibBuilder.loadTexts: ietfOnetoGroupReceiverNMeanDelay.setStatus('current')
ietfOneToGroupMeanDelay = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 63))
if mibBuilder.loadTexts: ietfOneToGroupMeanDelay.setStatus('current')
ietfOneToGroupRangeMeanDelay = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 64))
if mibBuilder.loadTexts: ietfOneToGroupRangeMeanDelay.setStatus('current')
ietfOneToGroupMaxMeanDelay = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 65))
if mibBuilder.loadTexts: ietfOneToGroupMaxMeanDelay.setStatus('current')
ietfOneToGroupReceiverNLossRatio = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 66))
if mibBuilder.loadTexts: ietfOneToGroupReceiverNLossRatio.setStatus('current')
ietfOneToGroupReceiverNCompLossRatio = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 67))
if mibBuilder.loadTexts: ietfOneToGroupReceiverNCompLossRatio.setStatus('current')
ietfOneToGroupLossRatio = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 68))
if mibBuilder.loadTexts: ietfOneToGroupLossRatio.setStatus('current')
ietfOneToGroupRangeLossRatio = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 69))
if mibBuilder.loadTexts: ietfOneToGroupRangeLossRatio.setStatus('current')
ietfOneToGroupRangeDelayVariation = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 70))
if mibBuilder.loadTexts: ietfOneToGroupRangeDelayVariation.setStatus('current')
ietfFiniteOneWayDelayStream = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 71))
if mibBuilder.loadTexts: ietfFiniteOneWayDelayStream.setStatus('current')
ietfFiniteOneWayDelayMean = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 72))
if mibBuilder.loadTexts: ietfFiniteOneWayDelayMean.setStatus('current')
ietfCompositeOneWayDelayMean = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 73))
if mibBuilder.loadTexts: ietfCompositeOneWayDelayMean.setStatus('current')
ietfFiniteOneWayDelayMinimum = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 74))
if mibBuilder.loadTexts: ietfFiniteOneWayDelayMinimum.setStatus('current')
ietfCompositeOneWayDelayMinimum = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 75))
if mibBuilder.loadTexts: ietfCompositeOneWayDelayMinimum.setStatus('current')
ietfOneWayPktLossEmpiricProb = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 76))
if mibBuilder.loadTexts: ietfOneWayPktLossEmpiricProb.setStatus('current')
ietfCompositeOneWayPktLossEmpiricProb = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 77))
if mibBuilder.loadTexts: ietfCompositeOneWayPktLossEmpiricProb.setStatus('current')
ietfOneWayPdvRefminStream = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 78))
if mibBuilder.loadTexts: ietfOneWayPdvRefminStream.setStatus('current')
ietfOneWayPdvRefminMean = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 79))
if mibBuilder.loadTexts: ietfOneWayPdvRefminMean.setStatus('current')
ietfOneWayPdvRefminVariance = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 80))
if mibBuilder.loadTexts: ietfOneWayPdvRefminVariance.setStatus('current')
ietfOneWayPdvRefminSkewness = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 81))
if mibBuilder.loadTexts: ietfOneWayPdvRefminSkewness.setStatus('current')
ietfCompositeOneWayPdvRefminQtil = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 82))
if mibBuilder.loadTexts: ietfCompositeOneWayPdvRefminQtil.setStatus('current')
ietfCompositeOneWayPdvRefminNPA = ObjectIdentity((1, 3, 6, 1, 2, 1, 128, 1, 83))
if mibBuilder.loadTexts: ietfCompositeOneWayPdvRefminNPA.setStatus('current')
mibBuilder.exportSymbols("IANA-IPPM-METRICS-REGISTRY-MIB", ietfRoundTripDelayInvPercentile=ietfRoundTripDelayInvPercentile, ietfOneWayLossNoticeableRate=ietfOneWayLossNoticeableRate, ietfOneWayPktLoss=ietfOneWayPktLoss, ietfOneWayIpdv=ietfOneWayIpdv, ietfOneWayInterLossPeriodLengths=ietfOneWayInterLossPeriodLengths, ietfOnetoGroupReceiverNMeanDelay=ietfOnetoGroupReceiverNMeanDelay, ietfOneWayDelayPoissonStream=ietfOneWayDelayPoissonStream, ietfCompositeOneWayPktLossEmpiricProb=ietfCompositeOneWayPktLossEmpiricProb, ietfOneWayPdvRefminMean=ietfOneWayPdvRefminMean, ietfnReordering=ietfnReordering, ietfSpatialOneWayDelayVector=ietfSpatialOneWayDelayVector, ietfOneWayPacketDuplicationFraction=ietfOneWayPacketDuplicationFraction, ietfSegmentPacketLossStream=ietfSegmentPacketLossStream, ietfSegmentIpdvMinStream=ietfSegmentIpdvMinStream, ietfCompositeOneWayPdvRefminQtil=ietfCompositeOneWayPdvRefminQtil, ietfReorderingExtent=ietfReorderingExtent, ietfOneToGroupRangeDelayVariation=ietfOneToGroupRangeDelayVariation, ietfOneToGroupRangeLossRatio=ietfOneToGroupRangeLossRatio, ietfOneWayIpdvPercentile=ietfOneWayIpdvPercentile, ietfInstantBidirConnectivity=ietfInstantBidirConnectivity, ietfCompositeOneWayDelayMean=ietfCompositeOneWayDelayMean, ietfOneToGroupDelayVector=ietfOneToGroupDelayVector, ietfRoundTripDelayMinimum=ietfRoundTripDelayMinimum, ietfFiniteOneWayDelayStream=ietfFiniteOneWayDelayStream, ietfOneWayDelayMinimum=ietfOneWayDelayMinimum, ietfOneWayDelayPeriodicStream=ietfOneWayDelayPeriodicStream, ietfOneToGroupIpdvVector=ietfOneToGroupIpdvVector, ietfOneWayPacketDuplicationPeriodicStream=ietfOneWayPacketDuplicationPeriodicStream, ietfReorderingByteOffset=ietfReorderingByteOffset, ietfReorderingFreeRuna=ietfReorderingFreeRuna, ietfOneWayLossPeriodLengths=ietfOneWayLossPeriodLengths, ietfOneToGroupMeanDelay=ietfOneToGroupMeanDelay, ietfOneToGroupReceiverNLossRatio=ietfOneToGroupReceiverNLossRatio, ietfReorderingGapTime=ietfReorderingGapTime, PYSNMP_MODULE_ID=ianaIppmMetricsRegistry, ietfCompositeOneWayPdvRefminNPA=ietfCompositeOneWayPdvRefminNPA, ietfOneWayPktLossEmpiricProb=ietfOneWayPktLossEmpiricProb, ietfOneWayPdvRefminVariance=ietfOneWayPdvRefminVariance, ietfOneWayPdvRefminSkewness=ietfOneWayPdvRefminSkewness, ietfOneToGroupReceiverNCompLossRatio=ietfOneToGroupReceiverNCompLossRatio, ietfReorderedPacketRatio=ietfReorderedPacketRatio, ietfOneWayPktLossAverage=ietfOneWayPktLossAverage, ietfOneToGroupLossRatio=ietfOneToGroupLossRatio, ietfOneWayDelay=ietfOneWayDelay, ietfReorderingGap=ietfReorderingGap, ietfOneToGroupMaxMeanDelay=ietfOneToGroupMaxMeanDelay, ietfSpatialPacketLossVector=ietfSpatialPacketLossVector, ietfOneWayDelayMedian=ietfOneWayDelayMedian, ietfCompositeOneWayDelayMinimum=ietfCompositeOneWayDelayMinimum, ietfReorderingLateTimeOffset=ietfReorderingLateTimeOffset, ietfOneWayPktLossPoissonStream=ietfOneWayPktLossPoissonStream, ietfIntervalBidirConnectivity=ietfIntervalBidirConnectivity, ietfOneWayPacketDuplication=ietfOneWayPacketDuplication, ietfOneWayPacketArrivalCount=ietfOneWayPacketArrivalCount, ietfIntervalUnidirConnectivity=ietfIntervalUnidirConnectivity, ietfSegmentIpdvPrevStream=ietfSegmentIpdvPrevStream, ietfReorderedSingleton=ietfReorderedSingleton, ietfIntervalTemporalConnectivity=ietfIntervalTemporalConnectivity, ietfReorderingFreeRunp=ietfReorderingFreeRunp, ietfFiniteOneWayDelayMinimum=ietfFiniteOneWayDelayMinimum, ianaIppmMetricsRegistry=ianaIppmMetricsRegistry, ietfOneToGroupRangeMeanDelay=ietfOneToGroupRangeMeanDelay, ietfOneWayIpdvInversePercentile=ietfOneWayIpdvInversePercentile, ietfOneWayIpdvJitter=ietfOneWayIpdvJitter, ietfOneWayPdvRefminStream=ietfOneWayPdvRefminStream, ietfOneToGroupPacketLossVector=ietfOneToGroupPacketLossVector, ietfOneWayDelayInversePercentile=ietfOneWayDelayInversePercentile, ietfReorderingFreeRunq=ietfReorderingFreeRunq, ietfOneWayPeakToPeakIpdv=ietfOneWayPeakToPeakIpdv, ianaIppmMetrics=ianaIppmMetrics, ietfInstantUnidirConnectivity=ietfInstantUnidirConnectivity, ietfRoundTripDelay=ietfRoundTripDelay, ietfRoundTripDelayPoissonStream=ietfRoundTripDelayPoissonStream, ietfReorderingFreeRunx=ietfReorderingFreeRunx, ietfFiniteOneWayDelayMean=ietfFiniteOneWayDelayMean, ietfOneWayIpdvPoissonStream=ietfOneWayIpdvPoissonStream, ietfOneWayDelayPercentile=ietfOneWayDelayPercentile, ietfSegmentOneWayDelayStream=ietfSegmentOneWayDelayStream, ietfOneWayLossDistanceStream=ietfOneWayLossDistanceStream, ietfOneWayLossPeriodStream=ietfOneWayLossPeriodStream, ietfOneWayReplicatedPacketRate=ietfOneWayReplicatedPacketRate, ietfRoundTripDelayPercentile=ietfRoundTripDelayPercentile, ietfOneWayPacketDuplicationPoissonStream=ietfOneWayPacketDuplicationPoissonStream, ietfRoundTripDelayMedian=ietfRoundTripDelayMedian, ietfOneWayLossPeriodTotal=ietfOneWayLossPeriodTotal, ietfSpatialOneWayIpdvVector=ietfSpatialOneWayIpdvVector)
|
'''
Created on 1.12.2016
@author: Darren
''''''
Given n, generate all structurally unique BST s (binary search trees) that store values 1...n.
For example,
Given n = 3, your program should return all 5 unique BST s shown below.
1 3 3 2 1
\ / / / \ \
3 2 1 1 3 2
/ / \ \
2 1 2 3
confused what "{1,#,2,3}" means? > read more on how binary tree is serialized on OJ.
OJ s Binary Tree Serialization:
The serialization of a binary tree follows a level order traversal, where # signifies a path terminator where no node exists below.
Here s an example:
1
/ \
2 3
/
4
\
5
The above binary tree is serialized as "{1,2,3,#,#,4,#,#,5}".
"
'''
# Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution(object):
def generateTrees(self, n):
"""
:type n: int
:rtype: List[TreeNode]
"""
if n<=0:
return []
return self.generateTreesUtil(1,n)
def generateTreesUtil(self, left,right):
if left==right:
return [TreeNode(left)]
if left>right:
return [None]
res=[]
for value in range(left,right+1):
for leftNode in self.generateTreesUtil(left,value-1):
for rightNode in self.generateTreesUtil(value+1,right):
root=TreeNode(value)
root.left=leftNode
root.right=rightNode
res.append(root)
return res
|
# colorsystem.py is the full list of colors that can be used to easily create themes.
class Gray:
B0 = '#000000'
B10 = '#19232D'
B20 = '#293544'
B30 = '#37414F'
B40 = '#455364'
B50 = '#54687A'
B60 = '#60798B'
B70 = '#788D9C'
B80 = '#9DA9B5'
B90 = '#ACB1B6'
B100 = '#B9BDC1'
B110 = '#C9CDD0'
B120 = '#CED1D4'
B130 = '#E0E1E3'
B140 = '#FAFAFA'
B150 = '#FFFFFF'
class Blue:
B0 = '#000000'
B10 = '#062647'
B20 = '#26486B'
B30 = '#375A7F'
B40 = '#346792'
B50 = '#1A72BB'
B60 = '#057DCE'
B70 = '#259AE9'
B80 = '#37AEFE'
B90 = '#73C7FF'
B100 = '#9FCBFF'
B110 = '#C2DFFA'
B120 = '#CEE8FF'
B130 = '#DAEDFF'
B140 = '#F5FAFF'
B150 = '##FFFFFF'
class Green:
B0 = '#000000'
B10 = '#064738'
B20 = '#055C49'
B30 = '#007A5E'
B40 = '#008760'
B50 = '#019D70'
B60 = '#02BA85'
B70 = '#20C997'
B80 = '#44DEB0'
B90 = '#3BEBB7'
B100 = '#88F2D3'
B110 = '#B0F5E1'
B120 = '#D1FBEE'
B130 = '#E4FFF7'
B140 = '#F5FFFD'
B150 = '#FFFFFF'
class Red:
B0 = '#000000'
B10 = '#470606'
B20 = '#760B0B'
B30 = '#AF0F0F'
B40 = '#D4140B'
B50 = '#DE321F'
B60 = '#E24232'
B70 = '#E74C3C'
B80 = '#F66657'
B90 = '#F88478'
B100 = '#FFACA4'
B110 = '#FFC3BD'
B120 = '#FEDDDA'
B130 = '#FFEEEE'
B140 = '#FFF5F5'
B150 = '#FFFFFF'
class Orange:
B0 = '#000000'
B10 = '#471D06'
B20 = '#692907'
B30 = '#AB3E00'
B40 = '#CE4B01'
B50 = '#E05E15'
B60 = '#E57004'
B70 = '#F37E12'
B80 = '#FF993B'
B90 = '#FFB950'
B100 = '#FFCF84'
B110 = '#FFDDA7'
B120 = '#FFEACA'
B130 = '#FFF3E2'
B140 = '#FFFBF5'
B150 = '#FFFFFF'
class GroupDark:
B10 = '#E11C1C'
B20 = '#FF8A00'
B30 = '#88BA00'
B40 = '#2DB500'
B50 = '#3FC6F0'
B60 = '#107EEC'
B70 = '#5C47E0'
B80 = '#7F27C5'
B90 = '#C88AFA'
B100 = '#AF2294'
B110 = '#DB4D8E'
B120 = '#38D4A4'
class GroupLight:
B10 = '#FF6700'
B20 = '#FFB000'
B30 = '#FFE600'
B40 = '#7FDD05'
B50 = '#00A585'
B60 = '#22BCF2'
B70 = '#1256CC'
B80 = '#803AD0'
B90 = '#B568F2'
B100 = '#CC2782'
B110 = '#FF71BF'
B120 = '#7EE8C7'
|
# Power Drive System
# Controlword common bits.
IL_MC_CW_SO = (1 << 0)
IL_MC_CW_EV = (1 << 1)
IL_MC_CW_QS = (1 << 2)
IL_MC_CW_EO = (1 << 3)
IL_MC_CW_FR = (1 << 7)
IL_MC_CW_H = (1 << 8)
# Statusword common bits.
IL_MC_SW_RTSO = (1 << 0)
IL_MC_SW_SO = (1 << 1)
IL_MC_SW_OE = (1 << 2)
IL_MC_SW_F = (1 << 3)
IL_MC_SW_VE = (1 << 4)
IL_MC_SW_QS = (1 << 5)
IL_MC_SW_SOD = (1 << 6)
IL_MC_SW_W = (1 << 7)
IL_MC_SW_RM = (1 << 9)
IL_MC_SW_TR = (1 << 10)
IL_MC_SW_ILA = (1 << 11)
IL_MC_SW_IANGLE = (1 << 14)
# PDS FSA states
# Masks for PDS FSA states
IL_MC_PDS_STA_NRTSO_MSK = (IL_MC_SW_RTSO | IL_MC_SW_SO | IL_MC_SW_OE | IL_MC_SW_F | IL_MC_SW_SOD)
IL_MC_PDS_STA_SOD_MSK = (IL_MC_SW_RTSO | IL_MC_SW_SO | IL_MC_SW_OE | IL_MC_SW_F | IL_MC_SW_SOD)
IL_MC_PDS_STA_RTSO_MSK = (IL_MC_SW_RTSO | IL_MC_SW_SO | IL_MC_SW_OE | IL_MC_SW_F | IL_MC_SW_QS | IL_MC_SW_SOD)
IL_MC_PDS_STA_SO_MSK = (IL_MC_SW_RTSO | IL_MC_SW_SO | IL_MC_SW_OE | IL_MC_SW_F | IL_MC_SW_QS | IL_MC_SW_SOD)
IL_MC_PDS_STA_OE_MSK = (IL_MC_SW_RTSO | IL_MC_SW_SO | IL_MC_SW_OE | IL_MC_SW_F | IL_MC_SW_QS | IL_MC_SW_SOD)
IL_MC_PDS_STA_QSA_MSK = (IL_MC_SW_RTSO | IL_MC_SW_SO | IL_MC_SW_OE | IL_MC_SW_F | IL_MC_SW_QS | IL_MC_SW_SOD)
IL_MC_PDS_STA_FRA_MSK = (IL_MC_SW_RTSO | IL_MC_SW_SO | IL_MC_SW_OE | IL_MC_SW_F | IL_MC_SW_SOD)
IL_MC_PDS_STA_F_MSK = (IL_MC_SW_RTSO | IL_MC_SW_SO | IL_MC_SW_OE | IL_MC_SW_F | IL_MC_SW_SOD)
# Not ready to switch on.
IL_MC_PDS_STA_NRTSO = 0x0000
# Switch on disabled.
IL_MC_PDS_STA_SOD = IL_MC_SW_SOD
# Ready to switch on.
IL_MC_PDS_STA_RTSO = (IL_MC_SW_RTSO | IL_MC_SW_QS)
# Switched on.
IL_MC_PDS_STA_SO = (IL_MC_SW_RTSO | IL_MC_SW_SO | IL_MC_SW_QS)
# Operation enabled.
IL_MC_PDS_STA_OE = (IL_MC_SW_RTSO | IL_MC_SW_SO | IL_MC_SW_OE | IL_MC_SW_QS)
# Quick stop active.
IL_MC_PDS_STA_QSA = (IL_MC_SW_RTSO | IL_MC_SW_SO | IL_MC_SW_OE)
# Fault reaction active.
IL_MC_PDS_STA_FRA = (IL_MC_SW_RTSO | IL_MC_SW_SO | IL_MC_SW_OE | IL_MC_SW_F)
# Fault.
IL_MC_PDS_STA_F = IL_MC_SW_F
# Unknown.
IL_MC_PDS_STA_UNKNOWN = 0xFFFF
# PDS FSA commands
# Shutdown.
IL_MC_PDS_CMD_SD = (IL_MC_CW_EV | IL_MC_CW_QS)
# Switch on.
IL_MC_PDS_CMD_SO = (IL_MC_CW_SO | IL_MC_CW_EV | IL_MC_CW_QS)
# Switch on + enable operation.
IL_MC_PDS_CMD_SOEO = (IL_MC_CW_SO | IL_MC_CW_EV | IL_MC_CW_QS | IL_MC_CW_EO)
# Disable voltage.
IL_MC_PDS_CMD_DV = 0x0000
# Quick stop.
IL_MC_PDS_CMD_QS = IL_MC_CW_EV
# Disable operation.
IL_MC_PDS_CMD_DO = (IL_MC_CW_SO | IL_MC_CW_EV | IL_MC_CW_QS)
# Enable operation.
IL_MC_PDS_CMD_EO = (IL_MC_CW_SO | IL_MC_CW_EV | IL_MC_CW_QS | IL_MC_CW_EO)
# Fault reset.
IL_MC_PDS_CMD_FR = IL_MC_CW_FR
# Unknown command.
IL_MC_PDS_CMD_UNKNOWN = 0xFFFF
# Homing controlword bits
# Homing operation start
IL_MC_HOMING_CW_START = (1 << 4)
# Halt
IL_MC_HOMING_CW_HALT = (1 << 8)
# Homing statusword bits
# Homing attained.
IL_MC_HOMING_SW_ATT = (1 << 12)
# Homing error.
IL_MC_HOMING_SW_ERR = (1 << 13)
# Homing states
# Homing state mask.
IL_MC_HOMING_STA_MSK= (IL_MC_SW_TR | IL_MC_HOMING_SW_ATT | IL_MC_HOMING_SW_ERR)
# Homing procedure is in progress.
IL_MC_HOMING_STA_INPROG = 0x0000
# Homing procedure is interrupted or not started.
IL_MC_HOMING_STA_INT= (IL_MC_SW_TR)
# Homing is attained, but target is not reached.
IL_MC_HOMING_STA_ATT= (IL_MC_HOMING_SW_ATT)
# Homing procedure is completed successfully.
IL_MC_HOMING_STA_SUCCESS = (IL_MC_SW_TR | IL_MC_HOMING_SW_ATT)
# Homing error occurred, velocity not zero.
IL_MC_HOMING_STA_ERR_VNZ = (IL_MC_HOMING_SW_ERR)
# Homing error ocurred, velocity is zero.
IL_MC_HOMING_STA_ERR_VZ= (IL_MC_SW_TR | IL_MC_HOMING_SW_ERR)
# Profile Position
# Profile position controlword bits
# New set-point.
IL_MC_PP_CW_NEWSP = (1 << 4)
# Change set immediately
IL_MC_PP_CW_IMMEDIATE = (1 << 5)
# Target position is relative.
IL_MC_PP_CW_REL= (1 << 6)
# Profile position specific statusword bits
# Set-point acknowledge.
IL_MC_PP_SW_SPACK = (1 << 12)
# Following error.
IL_MC_PP_SW_FOLLOWERR = (1 << 13)
# PDS
# PDS default timeout (ms).
PDS_TIMEOUT = 1000
# Flags position offset in statusword.
FLAGS_SW_POS = 10
# Number of retries to reset fault state
FAULT_RESET_RETRIES = 20
# General failure. */
IL_EFAIL = -1
# Invalid values. */
IL_EINVAL = -2
# Operation timed out. */
IL_ETIMEDOUT = -3
# Not enough memory. */
IL_ENOMEM = -4
# Already initialized. */
IL_EALREADY = -5
# Device disconnected. */
IL_EDISCONN = -6
# Access error. */
IL_EACCESS = -7
# State error. */
IL_ESTATE = -8
# I/O error. */
IL_EIO = -9
# Not supported. */
IL_ENOTSUP = -10
|
class base_graph_style():
NAME:str = ''
class default_graph_style(base_graph_style):
NAME:str = 'default'
# Task Nodes:
TASK_NODE_STYLE = 'filled'
TASK_NODE_SHAPE = 'box3d'
TASK_NODE_PENWIDTH = 1,
TASK_NODE_FONTCOLOR = 'black'
DISABLED_TASK_COLOR = 'dimgrey'
DISABLED_TASK_FONTCOLOR = TASK_NODE_FONTCOLOR
DISABLED_TASK_STYLE = 'dashed'
START_TASK_COLOR = '#3E8DCF'
END_TASK_COLOR = '#E95C3F'
MID_TASK_COLOR = '#F2A93B'
# File Nodes:
FILE_NODE_STYLE = 'filled'
FILE_FILE_SHAPE = 'note'
FILE_DIR_SHAPE = 'tab'
FILE_NODE_COLOR = '#bbd698'
FILE_NODE_PENWIDTH = 1
# Source Nodes:
SOURCE_STYLE = 'filled'
SOURCE_FONT_COLOR = 'black'
SOURCE_FILL_COLOR = '#9d6edb'
SOURCE_SHAPE = 'component'
SOURCE_PENWIDTH = 1
# Edges:
EDGE_COLOR = '#828282'
EDGE_PEN_WIDTH = 1.5
class greyscale_graph_style(base_graph_style):
NAME:str = 'greyscale'
# Task Nodes:
TASK_NODE_STYLE = 'filled'
TASK_NODE_SHAPE = 'box3d'
TASK_NODE_PENWIDTH = 1,
TASK_NODE_FONTCOLOR = 'black'
DISABLED_TASK_COLOR = 'black'
DISABLED_TASK_FONTCOLOR = 'black'
DISABLED_TASK_STYLE = 'dashed'
START_TASK_COLOR = '#c4c4c4'
MID_TASK_COLOR = '#b0b0b0'
END_TASK_COLOR = '#787878'
# File Nodes:
FILE_NODE_STYLE = 'filled'
FILE_FILE_SHAPE = 'note'
FILE_DIR_SHAPE = 'tab'
FILE_NODE_COLOR = '#f0f0f0'
FILE_NODE_PENWIDTH = 1
# Source Nodes:
SOURCE_STYLE = 'filled'
SOURCE_FONT_COLOR = 'black'
SOURCE_FILL_COLOR = 'white'
SOURCE_SHAPE = 'component'
SOURCE_PENWIDTH = 1
# Edges:
EDGE_COLOR = '#828282'
EDGE_PEN_WIDTH = 1.5
|
num1 = int(input('Enter number 1: '))
num2 = int(input('Enter number 2: '))
num3 = int(input('Enter number 3: '))
if num1 > num2 and num1 > num3:
print(str(num1) + ' is the greatest!')
if num2 > num3 and num2 > num1:
print(str(num2) + ' is the greatest!')
if num3 > num1 and num3 > num2:
print(str(num3) + ' is the greatest!')
|
MainWindow.clearData()
MainWindow.openPost3D()
PostProcess.script_openFile(-1,"Post3D","%examplesPath%/water.vtk")
PostProcess.script_openFile(-1,"Post3D","%examplesPath%/platform.vtk")
PostProcess.script_applyClicked(-1,"Post3D")
PostProcess.script_Properties_streamline_integration_direction(-1,"Post3D",3,2)
PostProcess.script_Properties_streamline_integration_type(-1,"Post3D",3,1)
PostProcess.script_Properties_streamline_integration_stepUnit(-1,"Post3D",3,2)
PostProcess.script_Properties_streamline_seeds_num_points(-1,"Post3D",3,100)
PostProcess.script_FilterStreamLine(-1,"Post3D",1)
PostProcess.script_applyClicked(-1,"Post3D")
|
class deques():
def __init__(self):
self.items = []
def addFront(self,item):
return self.items.append(item)
def addRear(self,item):
return self.items.insert(0,item)
def removeFront(self):
return self.items.pop()
def removeRear(self):
return self.items.pop(1)
def length(self):
return len(self.items)
def IsEmpty(self):
return self.items == []
d = deques()
d.IsEmpty()
d.addFront(10)
d.addFront(20)
d.addRear(30)
d.length()
d.removeRear()
d.removeRear()
d.IsEmpty()
d.removeFront()
d.IsEmpty()
|
#a matriz é obrigatoriamente quadrada, entao eu só preciso passar um parâmetro i = j
def cria_matriz(m):
matriz = []
for i in range(1,(m*2)+1):
linha = []
k = 1
for j in range(1,(m*2)+1):
if i == j:
if m < j:
linha.append((m*2)+1-j)
else:
linha.append(i)
if j > i:
if j > m:
linha.append(j-k)
else:
linha.append(i)
if i > j:
if i > m:
linha.append(i-k)
else:
linha.append(j)
matriz.append(linha)
print(linha,"\n")
return
m = int(input("Digite o inteiro M: "))
result = cria_matriz(m)
# elif (m < i or m < j):
|
Despesas = float(input("Quanto foi gasto?"))
Gorjeta = Despesas / 100 * 10
Total = Despesas + Gorjeta
print("--------------------------------------- \n O total foi de R${:.2f} \n Com uma gorjeta de R${:.2f} \n --------------------------------------- ".format(Total, Gorjeta))
|
"""
Entradas
Chelines-->int-->CA
Dracmas-->int-->DG
Pesetas-->int-->P
salidas
CA-->int-->P
DG-->int-->FrancoFrances
P-->int-->Dolares
P-->int-->LirasItalianas
"""
#entrada
CA=int(input("Ingrese la cantidad de Chelines Austriacos a cambiar: "))
DG=int(input("Ingrese la cantidad de Dracmas Griegos a cambiar: "))
P=int(input("Ingrese la cantidad de pesetas a cambiar: "))
#caja negra
Pesetas=(CA*956871)/100
FrancoFrances=((DG*88607)/100)*(1/20110)
Dolares=P/122499
LirasItalianas=(P*100)/9289
print("La cantidad de Chelines Austriacos a Pesetas es: ""{:.0F}".format(Pesetas))
print("La cantidad de Dracmas Griegos a Franco Frances es: ""{:.0F}".format(FrancoFrances))
print("La cantidad de Pesetas a Dolares es: ""{:.0F}".format(Dolares))
print("La cantidad de Pesetas a Liras Italianas es: ""{:.0F}".format(LirasItalianas))
|
def cc_lint_test_impl(ctx):
args = " ".join(
[ctx.expand_make_variables("cmd", arg, {})
for arg in ctx.attr.linter_args])
ctx.file_action(
content = "%s %s %s" % (
ctx.executable.linter.short_path,
args,
" ".join([src.short_path for src in ctx.files.srcs])),
output = ctx.outputs.executable,
executable = True)
return struct(
runfiles = ctx.runfiles(files = ctx.files.linter + ctx.files.srcs),
)
cc_lint_test = rule(
attrs = {
"srcs": attr.label_list(allow_files = True),
"linter": attr.label(
default = Label("@styleguide//:cpplint"),
executable = True,
cfg = "host"),
"linter_args": attr.string_list(
default=["--root=$$(pwd)"]),
},
test = True,
implementation = cc_lint_test_impl,
)
def cc_clang_format_test_impl(ctx):
cmds = []
cmds.append("for src in %s; do" % (
" ".join([src.short_path for src in ctx.files.srcs])))
cmds.append("clang-format -style=google $src > /tmp/formatted_src ;")
cmds.append("diff -u $src /tmp/formatted_src ;")
cmds.append("done")
ctx.file_action(
content = " ".join(cmds),
output = ctx.outputs.executable,
executable = True)
return struct(
runfiles = ctx.runfiles(files = ctx.files.srcs),
)
cc_clang_format_test = rule(
attrs = {
"srcs": attr.label_list(allow_files = True),
},
test = True,
implementation = cc_clang_format_test_impl,
)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.